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
button_options = document.createElement( 'script' ); | |
button_options.type = 'text/javascript'; | |
button_options.text = "reddit_url = '" + data.songs.song[0].reddit_url + "';\n"; | |
button_options.text += "reddit_title = '" + data.songs.song[0].reddit_title + "';\n"; | |
button_options.text += "reddit_target = 'radioreddit';\n"; | |
button_options.text += "reddit_newwindow = 1;\n"; | |
button_script = document.createElement( 'script' ); | |
button_script.type = 'text/javascript'; | |
button_script.src = 'http://reddit.com/static/button/button1.js'; |
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
Undefined symbols for architecture i386: | |
"_OBJC_METACLASS_$_PhoneGapDelegate", referenced from: | |
_OBJC_METACLASS_$_AppDelegate in AppDelegate.o | |
"_OBJC_CLASS_$_PhoneGapDelegate", referenced from: | |
_OBJC_CLASS_$_AppDelegate in AppDelegate.o | |
"_OBJC_METACLASS_$_PhoneGapCommand", referenced from: | |
_OBJC_METACLASS_$_SAiOSAdPlugin in SAiOSAdPlugin.o | |
"_OBJC_CLASS_$_PhoneGapCommand", referenced from: | |
_OBJC_CLASS_$_SAiOSAdPlugin in SAiOSAdPlugin.o | |
ld: symbol(s) not found for architecture i386 |
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
/* | |
reddit api javascript interface for phonegap | |
requires: jquery | |
requires: external hosts reddit.com, www.reddit.com in phonegap plist | |
*/ | |
var reddit = new function() { | |
/* | |
* globals | |
*/ |
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
/** | |
* A "deeper" indented text effect with the :before and :after pseudo-elements. | |
*/ | |
html, body { | |
height: 100%; | |
} | |
body { | |
margin: 0; | |
background: #0A539C; | |
background: linear-gradient(top, #4293d6 0%,#001e96 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
// http://wurstcaptures.untergrund.net/music/ | |
t * ((t>>8 | t >>2) &t>>>1 >> 12); | |
l: t * ((t>>32 | t >>12) &12 &t>>>0 >> 7) + t | |
r: t * ((t>>32 | t >>12) &12 &t>>>1 >> 7) + t | |
l: t * ((t>>32 | t >>12 | t >> 3) &3 &t>>>0 >> 9) >> (t/8000 * 30) | |
r: t * ((t>>32 | t >>12 | t >> 3) &6 &t>>>1 >> 9) >> (t/8000 * 30) | |
// 44100 |
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
'use strict'; | |
const request = require('request'), | |
promisify = require('es6-promisify'), | |
get = promisify(request.get), | |
co = require('co'), | |
okay = /^2/, | |
sites = [ | |
'https://www.google.com', | |
'https://www.twitter.com', |
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
(defn get-token [] | |
(let [options { | |
:basic-auth [app-consumer-key app-consumer-secret] | |
:form-params {:grant_type "client_credentials"}} | |
result (client/post token-url options) | |
body-json (json/read-str (:body result) :key-fn keyword)] | |
(:access_token body-json))) |
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
function *getToken () { | |
let options = { | |
'auth': { | |
'user': appConsumerKey, | |
'pass': appConsumerSecret, | |
'sendImmediately': true | |
}, | |
'form': { | |
'grant_type': 'client_credentials' | |
} |
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
function *get6wTweets () { | |
let options = { | |
'auth': { | |
'bearer': yield getToken | |
} | |
}, | |
response = yield get(searchUrl, options); | |
return parse(response.body).statuses; | |
} |
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
co(function *main () { | |
(yield get6wTweets).forEach(printStatus); | |
})(); |
OlderNewer