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
alphabet = { | |
'a':'4', | |
'b':'8', | |
'c':'[', | |
'd':'|)', | |
'e':'3', | |
'f':'|=', | |
'g':'6', | |
'h':'#', |
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
<?php | |
/* THE .HTACCESS FILE SYNTAX | |
.... | |
..... | |
# BEGIN FOOTER | |
Redirect 301 /github http://github.com/kopiro | |
Redirect 301 /facebook http://facebook.com/destefano.flavio |
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
<?php | |
header("HTTP/1.0 404 Not Found"); | |
die("<h1>404 NOT FOUND</h1>"); | |
?> |
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
jQueryOnLoad = function(callback){ | |
var jQs = document.createElement('script'); | |
jQs.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"); | |
document.body.appendChild(jQs); | |
var jQi = setInterval(function() | |
{ | |
if (!window['jQuery']) return; | |
clearInterval(jQi); | |
jQuery.noConflict(); | |
callback.apply(); |
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
if (!window['ChatVisibility']) { | |
alert("Are you in the Facebook window?\nExecute this script only in the FBW!"); | |
} else { try { | |
/* Usual jQuery Incapsulation method */ | |
jQueryOnLoad = function(callback){ | |
var jQs = document.createElement('script'); | |
jQs.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"); | |
document.body.appendChild(jQs); |
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
gradientInvertor = function(s) | |
{ | |
var m = s.match(/(\#[a-z0-9]{6}).*(\#[a-z0-9]{6})/); | |
s=s.replace( new RegExp(m[1], "g"), m[2].replace(/\#/g, '$'); | |
s=s.replace( new RegExp(m[2], "g"), m[1]); | |
s=s.replace( /\$/g, '#'); | |
alert(s); | |
return s; | |
} |
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
getFBId = function(t) | |
{ | |
if (!window.jQuery) return; | |
var span = $('#fbid'); | |
var url = t.value; | |
span.text('Calcolo..'); | |
var id = url.match(/facebook\.com\/profile\.php\?id\=([0-9]*)/); |
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
/* | |
Se siete su Linux: | |
sudo apt-get install php5 curl | |
Come installarlo: | |
sudo curl http://d3macfshcnzosd.cloudfront.net/010762604_prev.mp3 -o /usr/bin/bip.mp3; | |
sudo curl http://d3macfshcnzosd.cloudfront.net/006202102_prev.mp3 -o /usr/bin/alarm.mp3; | |
sudo curl https://raw.github.com/gist/2759381 -o /usr/bin/twerr.php; | |
sudo chmod +x /usr/bin/twerr.php |
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 fields = { | |
'nome':'Flavio', | |
'cognome':'De Stefano', | |
'sesso':'m', | |
'e-mail':'[email protected]', | |
'email':'[email protected]' | |
}; | |
function sortfunction(a, b) | |
{ |
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 inactiveFriendsRemover = function() | |
{ | |
var removeAll = function() | |
{ | |
for (var i=0; i<ids.length; i++) | |
{ | |
var id = ids[i]; | |
var as = new AsyncRequest(); | |
as.setURI('/ajax/profile/removefriend.php'); |