[ Launch: radial ] c11d3c3df4f53880061d by tborychowski
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 encrypt(text){ | |
var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq') | |
var crypted = cipher.update(text,'utf8','hex') | |
crypted += cipher.final('hex'); | |
return crypted; | |
} | |
function decrypt(text){ | |
var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq') | |
var dec = decipher.update(text,'hex','utf8') |
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
/* From Modernizr */ | |
function whichTransitionEvent() { | |
var el = document.createElement('fakeelement'), t, | |
transitions = { | |
'transition': 'transitionend', | |
'OTransition': 'oTransitionEnd', | |
'MozTransition': 'transitionend', | |
'WebkitTransition': 'webkitTransitionEnd', | |
'MsTransition': 'msTransitionEnd' | |
}; |
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:0 }).animate({ a:.3 },{ | |
duration: 1000, | |
step: function(){ | |
// do something | |
}, | |
complete: function(){ | |
} | |
}); |
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
/* DATE FUNCTIONS */ | |
Date.months = [ | |
{ shortName: 'jan', days: 31, name: 'January' }, | |
{ shortName: 'feb', days: 28, name: 'February' }, | |
{ shortName: 'mar', days: 31, name: 'March' }, | |
{ shortName: 'apr', days: 30, name: 'April' }, | |
{ shortName: 'may', days: 31, name: 'May' }, | |
{ shortName: 'jun', days: 30, name: 'June' }, | |
{ shortName: 'jul', days: 31, name: 'July' }, | |
{ shortName: 'aug', days: 31, name: 'August' }, |
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
console.log('%cERROR: %c siema %c tom', | |
'font: bold 12px arial; color:red; line-height:2.6em;', | |
'font: 12px arial; color:green;', | |
'font: 12px arial; color:blue;' | |
); |
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
_getUrlVars = function () { | |
var vars = {}, | |
parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) { | |
vars[key] = value; | |
}); | |
return vars; | |
} |
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
fail | |
f (![]+[])[+[]] | |
a (![]+[])[+!+[]] | |
i ([![]]+[][[]])[+!+[]+[+[]]] | |
l (![]+[])[!+[]+!+[]] | |
t (!![]+[])[+[]] | |
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
#!/usr/bin/env python | |
def gmail_checker(username,password): | |
import imaplib,re | |
i=imaplib.IMAP4_SSL('imap.gmail.com') | |
try: | |
i.login(username,password) | |
x,y=i.status('INBOX','(MESSAGES UNSEEN)') | |
messages=int(re.search('MESSAGES\s+(\d+)',y[0]).group(1)) | |
unseen=int(re.search('UNSEEN\s+(\d+)',y[0]).group(1)) | |
return (messages,unseen) |
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
var s = 1, e = s + 4; | |
var data = d3.range(s, e); | |
var col = d3.scale.category10(); | |
var scal = d3.scale.linear() | |
.domain([data[0], data[data.length-1]]) | |
.range([0, 1]); | |
var g = d3.select('svg'); | |
var groups = g.selectAll('g').data(data).enter().append('g'); |
OlderNewer