- A$AP Ferg: Trap Lord
- Aldous Harding: Designer
- Angel Olsen: MY WOMAN
- Antony & the Johnsons: Cut the World
- Arcade Fire: The Suburbs
- Arranged Marriage NP: Arranged Marriage NP
- Astronoid: Air
- Atoms for Peace: AMOK
- Beach House: Bloom
- Beach House: Teen Dream
This file contains hidden or 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 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 = { |
- Log into Twitter and go to your settings
- Request your Twitter archive
- Download and unzip the archive file
- Put
tweets.csv
in the same directory as this gist'spackage.json
andmarkov-tweets.js
files - Run
npm install
to install dependencies - Run
node 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.
This file contains hidden or 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
Show hidden characters
{ | |
"presets": ["es2015", "react"], | |
"ignore": ["node_modules"] | |
} |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style type="text/css" media="all"> | |
#main { | |
width: 300px; | |
height: 400px; | |
overflow: scroll; | |
} |
This file contains hidden or 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/python | |
# put this in in a file in your Pi's /etc/init.d/ directory | |
import urllib2 | |
import subprocess | |
import smtplib | |
from email.mime.text import MIMEText | |
import datetime |
This file contains hidden or 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
(defn calc-height-step [height current-step] | |
(if (= 1 (mod current-step 2)) | |
(* height 2) | |
(+ height 1))) | |
(defn calc-height [] | |
(def steps (Integer/parseInt (read-line))) | |
(println (reduce calc-height-step 1 (range 1 (+ steps 1))))) | |
(def t (Integer/parseInt (read-line))) |
This file contains hidden or 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
function getUsername () { | |
var homeDir = process.env['HOME'].split('/'); | |
return homeDir[homeDir.length - 1]; | |
} |
This file contains hidden or 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 terrible attempt at listing function names that appear to not be used. Lots | |
# of false positives, especially for functions whose names are used as | |
# callbacks into other functions. | |
codepath=/path/to/javascript | |
tmpfile=/tmp/allfunctions | |
tmpfile2=/tmp/filteredfunctions | |
# search for function names | |
ack --type=js --output='$1' -h "(\w{3,})\:\s*function" $codepath > $tmpfile |
NewerOlder