Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| print("UPDATE AUG 2023: this script is beyond old and broken") | |
| print("You may find interesting and more up to date resources in the comments of the gist") | |
| exit() | |
| from slacker import Slacker | |
| import json | |
| import argparse | |
| import os | |
| # This script finds all channels, private channels and direct messages |
| <?php | |
| // From StackOverflow | |
| function file_get_contents_curl($url, $referer="") { | |
| $header_list = array( | |
| 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7', | |
| 'Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
| 'Accept-Language: en-US,en;q=0.8' | |
| ); |
| import sys | |
| import csv | |
| import json | |
| import pycurl | |
| from StringIO import StringIO | |
| import urllib | |
| # get input file | |
| if len(sys.argv) < 2: | |
| print "Usage: $ python email.py <inputCSV>" |
Unfinished draft; do not use until this notice is removed.
We were seeing some unexpected behavior in the processes that Jenkins launches when the Jenkins user clicks "cancel" on their job. Unexpected behaviors like:
| # Voices available to `say` on OS X | |
| # "*" indicates new additions since 10.8 | |
| Agnes (en_US) | |
| Albert (en_US) | |
| Alex (en_US) | |
| *Alice (it_IT) | |
| *Alva (sv_SE) | |
| *Amelie (fr_CA) | |
| *Anna (de_DE) |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| # Initialize the scroll | |
| page = es.search( | |
| index = 'yourIndex', | |
| doc_type = 'yourType', | |
| scroll = '2m', | |
| search_type = 'scan', | |
| size = 1000, | |
| body = { | |
| # Your query's body | |
| }) |