Test
☕
- GitHub Staff
- https://abrah.am
- @abraham@indieweb.social
This file contains 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
[ | |
{"one":"two"}, | |
{"three":"four"} | |
] |
This file contains 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
<!-- Place share links here --> | |
<div class='post-header'> |
hello world
This file contains 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
import { one, two, pipe } from './utils'; | |
class Main { | |
public sentence() { | |
return pipe<string>('word', | |
addPeriod, | |
capitalize); | |
} | |
} |
This file contains 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
Object.keys(document.styleSheets).forEach(function(styleSheetKey) { | |
var rules = document.styleSheets[styleSheetKey].rules || {}; | |
Object.keys(rules).forEach(function(ruleKey) { | |
var media = rules[ruleKey].media; | |
if (media) { | |
media.mediaText = media.mediaText.replace('print', 'screen'); | |
} | |
}); | |
}); |
This file contains 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
<?php | |
// Download TwitterOAuth from http://github.com/abraham/twitteroauth. | |
require_once('twitteroauth/twitteroauth.php'); | |
// Get consumer keys from http://dev.twitter.com/apps. | |
$consumer_key = ''; | |
$consumer_secret = ''; | |
$oauth_bridge_code = ''; |
This file contains 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
CREATE TABLE `user` ( | |
`twitter_id` int(10) unsigned NOT NULL, | |
`name` varchar(140) NOT NULL, | |
`screen_name` varchar(30) NOT NULL, | |
`location` varchar(180) default NULL, | |
`description` varchar(300) default NULL, | |
`profile_image_url` varchar(400) NOT NULL, | |
`url` varchar(400) default NULL, | |
`protected` varchar(5) default NULL, | |
`followers_count` int(10) unsigned NOT NULL, |
This file contains 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
<?php | |
// Require the TwitterOAuth library. http://github.com/abraham/twitteroauth | |
require_once('twitteroauth/twitteroauth.php'); | |
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_SECRET); | |
// Empty array that will be used to store followers. | |
$profiles = array(); | |
// Get the ids of all followers. | |
$ids = $connection->get('followers/ids'); | |
// Chunk the ids in to arrays of 100. |
This file contains 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 -tt | |
# MIT licensed by Abraham Williams - http://abrah.am | |
# Pulls your Facebook friends likes and interest and finds who you have the most in common with. | |
import urllib, json, sys | |
graph_url = 'https://graph.facebook.com/' | |
def print_intersect_count(access_token): | |
tally = {} |
NewerOlder