[ Launch: quick_d3_test ] 7140108 by vitapluvia
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 size = 256; | |
var images = document.getElementsByTagName('img') | |
var srcList = [] // Store all Image Sources // | |
//console.dir(images); | |
for (var i=0; i<images.length; i++) { | |
//printout if larger than seize | |
if (images[i].naturalWidth > size && images[i].naturalHeight > size) { | |
console.log("< ----------------------------------------------------------- >") | |
console.log("Width: " + images[i].naturalWidth) |
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> | |
<html> | |
<head> | |
<title> Youtube Playlist Generator </title> | |
<meta charset='utf-8'> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<style> | |
body { | |
font-family: helvetica; | |
/*margin:25px;*/ |
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
#!/usr/bin/python | |
import commands | |
def setDesktopRule(boolVal): | |
''' Sets the Defaults for CreateDesktop ''' | |
boolVal = str(boolVal).upper() | |
print "Setting Rule...." | |
cmd = "defaults write com.apple.Finder CreateDesktop -bool %s" %val |
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 jq=document.createElement('script');jq.src="http://code.jquery.com/jquery-latest.min.js";document.getElementsByTagName('body')[0].appendChild(jq); | |
jQuery.noConflict(); | |
var $=jQuery; | |
var size = 256; // Size of Images | |
var imgclass = '_IMG_RH___-v-v-v-v-'; | |
var imgs = document.getElementsByTagName('img') | |
var srcList = [] // Store all Image Sources // | |
var docWidth = ($(document).width()/2) | |
for (var i=0; i<imgs.length; 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
#!/usr/bin/zsh | |
# @TODO: Download into a Yeoman instance which launches the Block. | |
block="http://bl.ocks.org/mbostock/1093025" | |
curl -L $block | egrep -i "block.*github" | sed 's/.*href="//g; s/\".*//g' | uniq | xargs curl -L | egrep -i "View Raw" | sed 's/.*href=\"//g; s/^/http:\/\/gist.github.com/g; s/\".*//g' | grep -v "thumbnail.png" | xargs wget |
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
cat /dev/urandom | cut -c 10-64 | sed 's/0/\_/g; s/1/\./g' |xxd -b | sed 's/0/]/g; s/1/[/g' | sed 's/\[\]/{ /g; s/1/[/g' | sed 's/\[\_/__/g; s/1/[/g' | cut -c 10-64 | sed 's/\s/|/g' | sed 's/^/..||00||_/g' | sed 's/$/_../g' |
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
cat /dev/urandom | xxd -b | cut -c 9-64 | sed 's/0/_/g; s/1/-/g' | sed 's/ /||/g' | sed 's/..$//g' | sed 's/_-_/( )/g' | sed 's/---/.../g' | perl -e "while (<>) { print scalar reverse; print scalar reverse; }" | sed 's/_-/\/\\/g' | sed 's/-../\\\//g' | awk '{print $1,$2,$3,$4,$3,$2,$1,$2,$3,$4,$3,$2,$1}' | cut -c 1-80 | sed 's/$/||/g' | perl -e "while (<>) { print scalar reverse; print reverse; print reverse; print reverse; print reverse; print reverse; }" | sed 's/\(.*\)/\1\1\1/g' | perl -e "while (<>) { print scalar reverse; }" | cut -c 1-180 | sed 's/()/ /g' | sed 's/||\/\\/ /g' | sed 's/(\/\\/ /g' | sed 's/(|||/ /g' | sed 's/|||/___/g' | cut -c 1-120 | perl -e "while (<>) { print scalar reverse; }" | sed 's/\(.*\)/\1\1/g' | cut -c 1-180 | sed 's/^/..||00__/g; s/$/__00||../g' | sed 's/\/\\/__/g' | sed 's/( )/(___)/g' | sed 's/-||/-|-/g' | sed 's/( )_( )/ /g' | sed 's/\/_/ /g' | perl -e "while (<>) { print; print scalar reverse; }" | sed 's/\r//g' | tr '\n' ' ' |
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
cat /dev/urandom | xxd -b | rev | sed 's/10/___/g' | sed 's/0/--/g' | sed 's/1/| |/g' | sed 's/.......................$//g' | sed 's/^.......//g' | cut -c 1-80 | sed 's/$/ |_|/g; s/^/ |_|/g' |
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
// Quickly Shuffle | Randomize List | |
function shuffle(some_list) { | |
var new_list = []; | |
while(some_list.length > 0) { | |
var index = some_list[Math.round(some_list.length * Math.random())]; | |
var value = some_list.splice(index, 1); | |
if (value.length > 0) { | |
new_list.push(value[0]); | |
} |
OlderNewer