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
// --- 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
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
> 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
# 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
_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
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
2 errors when I use Github.Mac | |
* press Clone in Mac and after cloning (i see the files in the dir) I get: | |
( | |
0 GitHub 0x00000001000755dc -[GHApplication presentError:] + 313 | |
1 GitHub 0x0000000100018817 __62-[GHCachedStateManager cloneAndAddRepository:atURL:toFileURL:]_block_invoke_0292 + 66 | |
2 libSystem.B.dylib 0x00007fff85bab284 _dispatch_call_block_and_release + 15 | |
3 libSystem.B.dylib 0x00007fff85b89df2 _dispatch_queue_drain + 251 | |
4 libSystem.B.dylib 0x00007fff85b8a69f _dispatch_queue_serial_drain_till_empty + 9 | |
5 libSystem.B.dylib 0x00007fff85bbd43c _dispatch_main_queue_callback_4CF + 37 |
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
steps: | |
1) open Apple Script Editor | |
2) paste and save: | |
on run argv | |
tell application "Adium" | |
activate | |
try | |
set usr to first contact whose display name contains (item 1 of argv) | |
set nme to name of usr |
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
<html> | |
<head> | |
<title>JS1k, 1k demo submission [984]</title> | |
<meta charset="utf-8"> | |
</head> | |
<body marginwidth="0" marginheight="0"> | |
<canvas id="c" width="1000" height="800"></canvas> | |
<script> | |
var b = document.body; | |
var c = document.getElementsByTagName('canvas')[0]; |