Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
---
title: "Scripting News"
generator: "opmlToMarkdown v0.5.17"
urlFirstChild: "2026/10/index.md"
---
## [Friday, October 30, 2026](2026/10/30.md)
[Braintrust query](https://github.com/scripting/Scripting-News/issues/365): Does Google define the web? [#](2026/10/30/a151404.md "Direct link to this item.")
@rtanglao
rtanglao / 0-cfmu-nov12-13-2025-pocasts-missing-output.md
Last active November 25, 2025 16:59
get cfmu podcasts :-) super hackey dev house :-)

roland@Rolands-MacBook-Pro /tmp % ./getfilenames.rb

Starting retrieval for IDs 5000 to 5090...

  • ID 5000: Command failed with error:
  • ID 5001: Command failed with error:
  • ID 5002: Command failed with error:
  • ID 5003: Filename is 'The Frequency- The Brief (News)+-+[[00002025_11_06_14_00_00]].mp3'
  • ID 5004: Filename is 'Breakfast of Champions+-+[[00002025_11_06_15_00_00]].mp3'
  • ID 5005: Filename is 'String Theory+-+[[00002025_11_06_17_00_00]].mp3'
@eyeseast
eyeseast / python.md
Last active March 27, 2026 05:36
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem
from github import Github
import os
g = Github(os.getenv("GITHUB_TOKEN"))
u = g.get_user("....")
for repo in u.get_repos():
print(repo.html_url)
value = input("Delete y/n?")
if value.lower() == "y":
print("Deleting: {}".format(repo.html_url))
We can't make this file beautiful and searchable because it's too large.
Location,Crash Type,Municipality,Year,Crash Count,Latitude,Longitude
GRANDVIEW HWY S & TEMPLETON DR,Property damage only,VANCOUVER,2017,1,49.25909,-123.060191
BOUNDARY RD & REGENT ST,Property damage only,VANCOUVER,2017,1,49.259109,-123.023633
VINE ST & W 14TH AVE,Property damage only,VANCOUVER,2017,1,49.259265,-123.157816
E 13TH AVE & WATSON ST,Property damage only,VANCOUVER,2017,1,49.259302,-123.100497
ASH ST & W 13TH AVE,Property damage only,VANCOUVER,2017,3,49.259493,-123.117658
MACDONALD ST & W 14TH AVE,Property damage only,VANCOUVER,2017,3,49.259579,-123.168318
BALACLAVA ST & W 14TH AVE,Property damage only,VANCOUVER,2017,1,49.259663,-123.174155
FIR ST & W 13TH AVE,Property damage only,VANCOUVER,2017,1,49.259853,-123.141183
E 12TH AVE & KINGSWAY & MILLTOWN PL,Property damage only,VANCOUVER,2017,44,49.259878,-123.096571
#!/usr/bin/env python3
import requests
from requests.compat import urljoin
AS_TOKEN = "redacted"
HS_BASE = "https://darkfasel.net"
ROOMS = [
"!someroomid:darkfasel.net"
]
@brianleroux
brianleroux / upgrade-vim.sh
Created April 18, 2019 23:17
upgrade vim on os x from scratch
git clone https://github.com/vim/vim.git
cd vim/src
./configure --enable-multibyte --enable-terminal --enable-gui=no --without-x
make
sudo make install
@jtleek
jtleek / nhanes-flexdashboard.Rmd
Created March 13, 2019 17:50
Example interactive app in R
---
title: "How does your BMI measure up?"
output: flexdashboard::flex_dashboard
runtime: shiny
---
Inputs {.sidebar}
-------------------------------------
```{r}

Install Mongo with WSL for Windows.

Home

This doc will guide you through installing Mongo DB using WSL through the Command Line.

Most of the steps are listed out here, but this guide will trim them down and make it more straight forward for our needs. There is also 1 step that is not in the link above as well, which will be noted when we come across it.

Install MongoDB Community Edition.

  1. Follow the directions listed on the mongodb official website for your distro of choice.
@anttilipp
anttilipp / temperatureCircle.py
Created August 2, 2017 21:50
Code to reproduce the "Temperature Circle" visualization.
#
# Hi all,
# this is the Python code I used to make the visualization "Temperature circle"
# (https://twitter.com/anttilip/status/892318734244884480).
# Please be aware that originally I wrote this for my tests only so the
# code was not ment to be published and is a mess and has no comments.
# Feel free to improve, modify, do whatever you want with it. If you decide
# to use the code, make an improved version of it, or it is useful for you
# in some another way I would be happy to know about it. You can contact me
# for example in Twitter (@anttilip). Unchecked demo data (no quarantees)