Skip to content

Instantly share code, notes, and snippets.

🕳
[ o o ]

Brian Abelson abelsonlive

🕳
[ o o ]
Block or report user

Report or block abelsonlive

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dot-cat.sh
#!/bin/sh
curl http://cat.www.$1.com.meowbify.com/ > index.html
s3cmd put index.html s3://$1.cat/
@abelsonlive
abelsonlive / phase-say.py
Created Apr 14, 2018
generative phase music with say
View phase-say.py
import os
import sys
import time
import random
VOICES = [
"Agnes",
"Alex",
"Alice",
"Alva",
@abelsonlive
abelsonlive / config.yml
Last active Feb 28, 2018
Dynamically add partitions to a spectrum table
View config.yml
aws_access_key_id:
aws_secret_access_key:
rs_user:
rs_server:
rs_db:
rs_port:
rs_password:
@abelsonlive
abelsonlive / thai-spicy.txt
Created Jan 23, 2018
thai spicy instructions
View thai-spicy.txt
thai spicy เผ็ดร้อนไทย, pik nam pla (พริกน้ำปลา) on the side
@abelsonlive
abelsonlive / entarteur.py
Created Dec 5, 2012
use facepy for facebook feed dumps
View entarteur.py
from facepy import GraphAPI
import facepy
import re
import json
#meta variables
access_token = 'your_token'
page_id = 'the_page' # input page id here
base_query = page_id + '/feed?limit=300'
View scrape-zillow.py
import requests
import urllib
import json
ZIP_CODES = [
'11211'
]
def get_rect_from_zip(session, zip_code):
"""
@abelsonlive
abelsonlive / lda.R
Created Dec 6, 2012
topic modeling in R
View lda.R
# Brian Abelson @brianabelson
# Harmony Institute
# December 5, 2012
# lda is a wrapper for lda.collapsed.gibbs.sampler in the "lda" package
# it fits topic models using latent dirichlet allocation
# it provides arguments for cleaning the input text and tuning the parameters of the model
# it also returns alot of useful information about the topics/documents in a format that you can easily join back to your original data
# this allows you to easily model outcomes based on the distribution of topics within a collection of texts
@abelsonlive
abelsonlive / gist:9822089
Created Mar 28, 2014
put this in `etc/conf` ... redirect facebook to nytimes' ip address
View gist:9822089
170.149.168.130 www.facebook.com
170.149.168.130 facebook.com
170.149.168.130 static.ak.fbcdn.net
170.149.168.130 www.static.ak.fbcdn.net
170.149.168.130 login.facebook.com
170.149.168.130 www.login.facebook.com
170.149.168.130 fbcdn.net
170.149.168.130 www.fbcdn.net
170.149.168.130 fbcdn.com
170.149.168.130 www.fbcdn.com
@abelsonlive
abelsonlive / getInsights.R
Created May 27, 2012
getInsights - an R API for Google Insights
View getInsights.R
#see below for query specifications
getInsights <- function(
username = "Insights4R@gmail.com",
password = "googleinsights4r",
text_query = "'hello world'",
date_query = "1/2004 108m",
geo_query = "US",
search_type= "all",
filter_category="none"){
@abelsonlive
abelsonlive / try_or_die.sh
Created Jan 17, 2017 — forked from dotike/try_or_die.sh
3 finger claw technique for POSIX shell programming. Three one-line functions which greatly enhance shell programming, enabling reliable UNIX-style programming in an extremely concise fashion.
View try_or_die.sh
#!/bin/sh
##############################################################################
# This code known is distributed under the following terms:
#
# Copyright (c) 2013 Isaac (.ike) Levy <ike@blackskyresearch.net>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
You can’t perform that action at this time.