Skip to content

Instantly share code, notes, and snippets.


Will Smidlein ws

View GitHub Profile
ws / random_event.js
Created Jun 9, 2017
Find a random Facebook event (to bring yourself out of your comfort zone)
View random_event.js
// Inspired by
// Literally all of the heavy lifting is done by
var EventSearch = require('facebook-events-by-location-core')
var es = new EventSearch({
"lat": 42.338998, //
"lng": -83.048520,
"distance": 250,
"accessToken": "YOURTOKENHERE" //
ws / block_eggheads.js
Created May 6, 2016
Automatically block users with the default profile image (eggheads) who @reply you. Super simple. Will probably be expanded at some point if I have time.
View block_eggheads.js
var Twit = require('twit')
var T = new Twit({
consumer_key: '...',
consumer_secret: '...',
access_token: '...',
access_token_secret: '...'
var track = '@ws' // Also try 'trump'
ws / reply_percentage.rb
Created Oct 9, 2015
Calculate what % of your tweets are replies
View reply_percentage.rb
require 'twitter'
client = do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
ws / filters.json
Created Mar 8, 2015
Instagram Filters List (JSON)
View filters.json
"note": "I was mocking the Instagram API and couldn't find these anywhere, so I really quickly wrote a script to grab them. I think this is all of them, but no promises. Hopefully this saves you a few minutes.",
View gist:cf114bb81f9d90703a20
View smtp.js
var client = nodemailer.createTransport({
service: 'SendGrid',
auth: {
// See above

Keybase proof

I hereby claim:

  • I am ws on github.
  • I am ws ( on keybase.
  • I have a public key whose fingerprint is 70B7 5D32 E9CC 9686 F751 4749 B4DE C4A1 6B15 8330

To claim this, I am signing this object:

# in your .bash_profile / .bashrc
alias pushit='git push && open'
# to get the file into your .bash_profile
echo "alias pushit='git push && open'" >> .zshrc
ws / prompt.js
Created Sep 29, 2013
Prompt.js without the initial prompt
View prompt.js
* prompt.js: Simple prompt for prompting information from the command line
* (C) 2010, Nodejitsu Inc.
var events = require('events'),
readline = require('readline'),
utile = require('utile'),
View dabblet.css
* Snowman
#bg {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;