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
<!doctype html> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
//JS to explain | |
//literals var function = + a.b () | |
//methods to explain |
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
import urllib | |
import re | |
import sys | |
def fb_likes(url): | |
html = urllib.urlopen(url).read() | |
has_fb = re.search('<iframe src=\"http\:\/\/www.facebook.com', html) | |
if has_fb: | |
fb_iframe_url = re.search('<iframe src="(http\:\/\/www.facebook.com\S+)"', html).group(1) | |
fb_html = urllib.urlopen(fb_iframe_url).read() |
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 nodes = 0, | |
unique_handlers = []; | |
jQuery && jQuery('*').each(function() { | |
var ev = jQuery(this).data('events') | |
if (ev) { | |
for (var e in ev) { | |
eh_arr = ev[e]; | |
nodes+=eh_arr.length; | |
for (var j=0, l=eh_arr.length; j<l; j++) { | |
eh = eh_arr[j].handler, sb = false; |
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() { | |
var css = [ | |
'/css/default.css', | |
'/css/section.css', | |
'/css/custom.css' | |
], | |
i = 0, | |
link = document.createElement('link'), | |
head = document.getElementsByTagName('head')[0], | |
tmp; |
NewerOlder