Skip to content

Instantly share code, notes, and snippets.

@Abundnce10
Abundnce10 / 1000.txt
Created September 14, 2015 23:40
Dr. Fry's "Instant Words"
the,of,and,a,to,in,is,you,that,it,he,was,for,on,are,as,with,his,they,I,at,be,this,have,from,or,one,had,by,words,but,not,what,all,were,we,when,your,can,said,there,use,an,each,which,she,do,how,their,if,will,up,other,about,out,many,then,them,these,so,some,her,would,make,like,him,into,time,has,look,two,more,write,go,see,number,no,way,could,people,my,than,first,water,been,called,who,oil,sit,now,find,long,down,day,did,get,come,made,may,part,over,new,sound,take,only,little,work,know,place,years,live,me,back,give,most,very,after,things,our,just,name,good,sentence,man,think,say,great,where,help,through,much,before,line,right,too,means,old,any,same,tell,boy,follow,came,want,show,also,around,form,three,small,set,put,end,does,another,well,large,must,big,even,such,because,turn,here,why,ask,went,men,read,need,land,different,home,us,move,try,kind,hand,picture,again,change,off,play,spell,air,away,animal,house,point,page,letter,mother,answer,found,study,still,learn,should,America,world,high,every,near,add,food,between,own,bel
@Abundnce10
Abundnce10 / players.py
Created February 18, 2015 22:38
NBA Player IDs - Python Dictionary
teams = {
'wizards':
{'garrett temple':'202066',
'andre miller':'1889',
'kevin seraphin':'202338',
'otto porter':'203490',
'rasual butler':'2446',
'kris humphries':'2743',
'nene hilario':'2403',
'paul pierce':'1718',
@Abundnce10
Abundnce10 / foo.log
Last active August 29, 2015 14:15 — forked from ibeex/foo.log
A warning occurred (42 apples)
An error occurred
@Abundnce10
Abundnce10 / install_python.md
Last active August 29, 2015 14:14
Install & Configure Python 2.7 on Windows 7

Install & Configure Python 2.7 on Windows 7

Getting Python 2.7 configured on a Windows machine can be challenging for people unfamiliar with Python or the command-line. I created the guide below to help new users.

Install Python

First, go to https://www.python.org/downloads/ and click the link to download Python 2.7.9. Opened the downloaded folder and move through the installation guide. Python should now be installed here C:\Python27\ (the default location).

Now, open the PowerShell program (installed by default). PowerShell should open to your User directory, so you should see PS C:\Users\example-user> (your username in place of example-user).

@Abundnce10
Abundnce10 / ngnix.conf
Last active August 29, 2015 14:13
/etc/nginx/sites-enabled/default
#--- ssl.conf ---
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_ciphers 'HIGH+EECDH +TLSv1 +3DES HIGH+EDH +HIGH+TLSv1+EDH +HIGH+3DES+EDH HIGH+kRSA +kRSA+TLSv1 +3DES+kRSA !SRP !PSK !DSS !MD5 !LOW !MEDIUM !aNULL';
#--- default.conf ---
server {
listen 80
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@Abundnce10
Abundnce10 / dailyWeatherTextMessage.js
Created June 3, 2014 04:45
Run this script on OnCue.io to get today's weather for Seattle
// require modules
var request = require('request');
var services = require('#services');
// other variables
var phoneNumber = '+1XXXXXXXXX';
var city = 'Seattle';
// Ultimate Weather API credentials

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter