This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Useful for making maps like the one at http://backspace.com/mapapp/javascript_world | |
# | |
use XML::TreeBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env /YOUR/PATH/TO/node | |
var httpProxy = require('http-proxy'), | |
fs = require('fs'), | |
options; | |
require("http").createServer(function(req, res){ | |
res.writeHead(301, { | |
'Content-Type': 'text/plain', | |
'Location':'https://' + req.headers.host.replace(/^www\./, '') + req.url }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// runs under Node.js | |
var fs = require('fs'), | |
request = require('request'), | |
Twitter = require('node-twitter'); | |
var twitterRestClient = new Twitter.RestClient( | |
'CONSUMER_KEY', | |
'CONSUMER_SECRET', | |
'TOKEN', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Twitter = require('node-twitter'); | |
function getVerdict() { | |
// http://en.wikipedia.org/wiki/United_States_Foreign_Intelligence_Surveillance_Court | |
var caseNumber = Math.floor(Math.random() * 33942) + 1; | |
if (caseNumber <= 11) { return 'Application denied. Please submit appeal to the Court of Review.'; } | |
else if ((caseNumber > 11) && (caseNumber <= 504 + 515)) { return 'Please modify your request and resubmit.'; } | |
else { return 'I authorize this request.'; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
PDFDocument = require('pdfkit'), | |
async = require('async'), | |
ColorThief = require('color-thief'), | |
colorThief = new ColorThief(); | |
var bookWidth = 430; | |
var bookHeight = 343; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a node.js method for creating images of text | |
// as used in https://twitter.com/nytanon and https://twitter.com/wapoanon | |
function makeImage(object, que, callback) { | |
var text = object.text; | |
var Canvas = require('canvas'), | |
Image = Canvas.Image, | |
canvas = new Canvas(200, 200), |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id,conversation_id,created_at,date,time,timezone,user_id,username,name,place,tweet,mentions,urls,photos,replies_count,retweets_count,likes_count,hashtags,cashtags,link,retweet,quote_url,video,near,geo,source,user_rt_id,user_rt,retweet_id,reply_to,retweet_date | |
1200809611835707392,1192855827272675329,1575130296000,2019-11-30,11:11:36,EST,1192848641771393027,colmixe,Colmix,,"Día 30: Hogar / Tëk'äm | |
¿Y cómo no pensar en el territorio y las comunidades mixes sin pensar en la música? | |
El título de la obra musical es el título del mapa ¿Sabes cuál es? | |
#30daymapchallenge pic.twitter.com/RoiBym0ahe",[],[],['https://pbs.twimg.com/media/EKoh5_fWwAUNXMl.jpg'],0,0,0,['#30daymapchallenge'],[],https://twitter.com/Colmixe/status/1200809611835707392,False,,0,,,,,,,"[{'user_id': '1192848641771393027', 'username': 'Colmixe'}]", | |
1200807377500545024,1200807377500545024,1575129763000,2019-11-30,11:02:43,EST,2198358416,tjukanov,Topi Tjukanov,,"If I would like to do some analysis and collect basic statistics for the #30DayMapChalle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Works with Node v12.0 and puppeteer 4.0 | |
const URL = 'https://public.tableau.com/views/PPV_15924847800480/ppv_db?%3Aembed=y&%3AshowVizHome=no&%3Adisplay_count=y&%3Adisplay_static_image=n&%3AbootstrapWhenNotified=true&%3Alanguage=en&:embed=y&:showVizHome=n&:apiID=host0'; | |
const puppeteer = require('puppeteer'); | |
function parseDataDictionary(jsonParsed) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Make a BBEdit list of all open Safari tabs | |
Adapted by John Emerson, https://backspace.com | |
from Jesse Squires, https://www.jessesquires.com | |
who adapted it from http://veritrope.com/code/safari-tab-list-to-omnifocus/ | |
*) | |
global allItems | |
set allItems to {} |
OlderNewer