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 g = { change:0, dontchange:0 }; | |
var p = 3; | |
var i = 1; | |
rnd = function(max) { return Math.floor(Math.random()*max); } | |
setInterval(function(){ | |
var doors = []; | |
for (var j=0; j<p; j++) doors.push(0); | |
doors[rnd(p)] = 1; | |
var my_ch = rnd(p); | |
var pr_chs = []; |
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
javascript:_s="3.-1.-34.18.17.12.-15.-2.4.-67.-38.-67.3.18.11.0.17.6.12.11.-59.-58.24.-86.-89.19.-2.15.-67.7.14.16.-67.-38.-67.1.12.0.18.10.2.11.17.-53.0.15.2.-2.17.2.-30.9.2.10.2.11.17.-59.-60.16.0.15.6.13.17.-60.-58.-40.-86.-89.7.14.16.-53.16.15.0.-67.-38.-67.-60.-52.-52.-2.7.-2.21.-53.4.12.12.4.9.2.-2.13.6.16.-53.0.12.10.-52.-2.7.-2.21.-52.9.6.-1.16.-52.7.14.18.2.15.22.-52.-50.-53.-45.-53.-47.-52.7.14.18.2.15.22.-53.10.6.11.-53.7.16.-60.-40.-86.-89.1.12.0.18.10.2.11.17.-53.-1.12.1.22.-53.-2.13.13.2.11.1.-32.5.6.9.1.-59.7.14.16.-58.-40.-86.-89.19.-2.15.-67.2.15.15.16.17.15.6.11.4.-67.-38.-67.-60.-16.12.10.2.-67.2.15.15.12.15.-67.12.0.0.18.15.15.2.1.-67.20.5.6.9.2.-67.2.21.2.0.18.17.6.11.4.-67.16.12.3.17.20.-2.15.2.-53.-7.11.-16.12.15.15.22.-67.3.12.15.-67.17.5.2.-67.6.11.0.12.11.19.2.11.6.2.0.2.-53.-7.11.-20.17.5.2.15.-67.6.11.3.12.15.10.-2.17.6.12.11.16.-67.-59.0.12.10.10.18.11.6.0.-2.17.2.-67.6.17.16.-67.17.12.-67.17.5.2.-67.1.2.19.2.9.12.13.2.15.-67.-35.8.12.13.6.15.12.-53.6.17.-58.-41.-60.-40.-86.-89.19 |
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
loadLastFmSong = function(user, api) { | |
$.getJSON("http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user="+user+"&api_key="+api+"&format=json&callback=?", | |
function(json) { | |
lastfmtrack = json.recenttracks.track[0]; | |
$("#lastfm_song").html('<a target="_blank" href="'+lastfmtrack.url+'">'+lastfmtrack.name+", di "+lastfmtrack.artist["#text"]+'</a>'); | |
}); | |
}; |
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
loadLastFmArtists = function(user, api, n) { | |
n = n || 3; | |
$.getJSON("http://ws.audioscrobbler.com/2.0/?method=user.gettopartists&user="+user+"&api_key=+"api+"&format=json&callback=?", | |
function(json) { | |
$(json.topartists.artist).each(function(k, v){ | |
if (k>n) return; | |
$("#lastfm_artists").append('<a target="_blank" href="'+v.url+'">'+v.name+"</a>, "); | |
}); | |
}); | |
}; |
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
.inset_shadow_text | |
{ | |
background-color: black; | |
-webkit-background-clip: text; | |
color: transparent; | |
text-shadow: rgba(255,255,255,0.5) 0 5px 6px; | |
} |
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
/* | |
Flavio De Stefano Portfolio (written in JS). | |
You can use these functions directly from the | |
javascript console built-in in any WebKit based browser, | |
or if you use Firefox in Firebug, | |
or if you prefer directly by prefixing | |
the 'javascript:' protocol in the address bar. | |
*/ |
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
## For Mac Users | |
cd /tmp; | |
curl http://garr.dl.sourceforge.net/project/sox/sox/14.3.2/sox-14.3.2-macosx.zip -o sox-14.3.2.zip; | |
unzip sox-14.3.2.zip; | |
cd sox-14.3.2; | |
sudo cp sox /usr/bin/sox; | |
sudo cp play /usr/bin/play; | |
## For Linux Users | |
sudo apt-get install sox; |
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
function genfors(n) | |
{ | |
var r = ""; | |
for (var i=97; i<97+n; i++) | |
{ | |
var x = String.fromCharCode(i); | |
r += "for(var "+x+"=32;"+x+"<127;"+x+"++)\n"; | |
} | |
r += "foo("; | |
for (var i=97; i<97+n; i++) |
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
javascript: | |
var url = "https://graph.facebook.com/" + location.href.match(/facebook\.com\/(profile\.php\?id=)?([a-z0-9\.]+)/)[2]; | |
window.open(url, '', 'width=700,height=400'); | |
void(0); |