This file contains hidden or 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
require 'rubygems' | |
require 'fetchapi-ruby' | |
# custom info sanitized | |
FetchAPI::Base.basic_auth('*URL*', '*key*', '*token*') | |
orders = FetchAPI::Order.find(:all) | |
orders.each do |order| | |
p order.downloads | |
end |
This file contains hidden or 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
_data = '{"timestamp": 1320099130, "value": {"title": "msg", "content": "hello world"}}' | |
msg.http('https://push.ducksboard.com/') | |
.path('/values/10651/') | |
.auth(_apikey,"ignored") | |
.post(_data) (err, res, body) -> | |
msg.send body || 'unable to post' |
This file contains hidden or 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
# 502 errors on CloudFoundry due use of Rack::Session::Cookie (and sessions enabled) | |
require 'rubygems' | |
require 'sinatra' | |
require 'omniauth' | |
require 'omniauth-openid' | |
require 'openid/store/filesystem' | |
enable :sessions |
This file contains hidden or 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
> gdb "/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2" | |
gdb$ r | |
: to exit | |
gdb$ q |
This file contains hidden or 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
var expression = /[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#!]*[\w\-\@?^=%&/~\+#])?/g | |
var regex = new RegExp(expression); | |
function makeLink(s) | |
{ | |
l = s.match(regex) | |
if (l) { | |
s = s.replace(/https?:\/\//,"") | |
$(l).each(function(ss){ | |
s = s.replace(l[ss],"<a href='http://#'>#</a>".replace(/#/g,l[ss])) |
This file contains hidden or 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
// --- requirement: | |
// --- dotjs - http://defunkt.io/dotjs/ | |
// --- forrst.com | |
// --- click for next page | |
$("#content").click(function(){ | |
var href = $('.pagination a').attr('href'); | |
if (href && href != document.location) | |
document.location = href; |
This file contains hidden or 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
<style>body{overflow:hidden}z{display:none}w{position:absolute;top:50%;margin:0 auto;width:100%;text-align:center}</style><z><x>hello world</x><x>simple presentation tool</x><x>one feature:</x><x>zoom</x><x>by TBD/plugins.ro</x></z><w id='s'></u><script>b=1;c=0;d=8;e=document.getElementsByTagName("x");l="fffeeebbbaaa888444222000";function r(){if(b>d)c+=1,b=1;else if(b<0)c-=1,b=d;if(b<d)s.innerHTML=e[c].innerHTML;x=s.style;x.MozTransform=x['-webkit-transform']="scale("+b+")";x['color']='#'+l.substr(3*b,3)}t=function(e){m=e.wheelDeltaY||-e.detail;g=m&&m/Math.abs(m);b+=0.3*g;r()};q=window.addEventListener;q('mousewheel',t,0);q('DOMMouseScroll',t,0)</script> |
This file contains hidden or 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
~/Desktop ❯❯❯ roots new test | |
new project created at /test | |
~/Desktop ❯❯❯ cd test | |
~/D/test git:master ❯❯❯ roots compile ◼ | |
compiling project... | |
minifying & compressing... | |
~/D/test git:master ❯❯❯ roots deploy test ◼ | |
compiling project... done! |
This file contains hidden or 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
Chrome 23.0.1271.97, OSX 10.8.2 | |
Uncaught SyntaxError: Unexpected token , 53261709:492 | |
Uncaught ReferenceError: vimeo is not defined global_combined.min.js:599 |
This file contains hidden or 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
Objective-C stub for message `cameraWithLatitude:longitude:zoom:' type `@@:ddf' not precompiled. Make sure you properly link with the framework or library that defines this message. |