- fetch entity data only
- does not alter any data, ever
- create a new entity with the data values provided in the body
- if an entity already exists with these values, create it anyway (read: non-idempotent)
- should not be used to alter an existing entity
#!/usr/bin/env python3 | |
# Linux-compatible clone of Quitter for Mac https://marco.org/apps#quitter | |
# implementation inspired by: https://github.com/acenturyandabit/mini-miza/blob/master/autohide.py | |
import subprocess | |
import time | |
import os | |
apps = { |
function getUsername () { | |
var homeDir = process.env['HOME'].split('/'); | |
return homeDir[homeDir.length - 1]; | |
} |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style type="text/css" media="all"> | |
#main { | |
width: 300px; | |
height: 400px; | |
overflow: scroll; | |
} |
function myFn1 (arg1) { | |
var var1 = doSomethingWith(arg1), // set breakpoint here | |
var2 = doSomethingElseWith(var1); | |
_.each([1, 2, 3], function (val) { | |
doAnotherThingWth(var2); // var2 is still available in dev tools here, but var1 is not | |
}) | |
}; |
module.exports = function (io) { | |
"use strict"; | |
// set up websockets | |
io.sockets.on('connection', function (socket) { | |
var eventTypes = [ | |
'Backbone.Model.change', | |
'Backbone.Collection.add', | |
'Backbone.Collection.remove', | |
'Backbone.Collection.sort' |
try | |
tell application "Google Chrome" | |
set the bounds of the second window to {-1400, 0, -100, 900} | |
set the bounds of the first window to {100, 0, 1500, 2000} | |
end tell | |
end try | |
try | |
tell application "Mail" | |
set the bounds of the first window to {-1400, 0, -100, 900} |
Julio Bashmore - Au Seve | |
Ill Blue - 2nd Nature | |
Midland - Placement (Lone Remix) | |
Grenier - RDY4U | |
Joy Orbison & Boddika - Dun Dun | |
Portishead - Machinegun (Jimmy Edgar Edit) | |
Grenier - DTF (ft Salva) | |
Astronomar - Sword Fight (Kid Kamillion Edit) | |
Mike Q - Let It All Out | |
the Goonies - Africa |
tweets.csv
in the same directory as this gist's package.json
and markov-tweets.js
filesnpm install
to install dependenciesnode markov-tweets.js
to generate some strings!Running the script may take a few seconds depending on the size of your archive CSV. When it's done it will log out 20 random strings based on the Markov chain generated.