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
jQuery -> | |
window.youtube_iframe = (video_id, args) -> | |
default_options = { | |
width: 853 | |
height: 480 | |
autoplay: 0 | |
rel: 0 | |
class: "youtube-video" | |
frameborder: "0" | |
allowfullscreen: true |
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
#!/bin/bash | |
while read line | |
do | |
echo $line | |
wget $line > /dev/null 2>&1 | |
done < $1 | |
# USAGE: wgets.sh a.txt | |
# Where a.txt is a list of URLs | |
# Pretttty simple. TODO: accept redirected input as well |
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() { | |
jQuery(function() { | |
var looper, rotator_builder; | |
rotator_builder = function(selector, args) { | |
var $items, cur, loop_fn, num_items, prev, show_dur, trans_in, trans_in_dur, trans_out, trans_out_dur; | |
trans_in = args.trans_in || "fadeIn"; | |
trans_out = args.trans_out || "fadeOut"; | |
trans_in_dur = args.trans_in_dur || 1000; | |
trans_out_dur = args.trans_out_dur || 400; |
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
jQuery -> | |
# rotate items | |
rotator_builder = (selector, args) -> | |
trans_in = args.trans_in || "fadeIn" | |
trans_out = args.trans_out || "fadeOut" | |
trans_in_dur = args.trans_in_dur || 1000 | |
trans_out_dur = args.trans_out_dur || 400 | |
show_dur = args.show_dur || 7000 |
NewerOlder