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
m=Math.random,v=255;Array.from(document.querySelectorAll("*")).forEach(e=>{e.style.background=`rgb(${m()*v|0},${m()*v|0},${m()*v|0})`}) |
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
#!/bin/bash | |
_IP=$(hostname -I) || true | |
if [ " $_IP " ]; then | |
printf "$_IP" | |
fi | |
exit 0 |
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 invaders=function(){function m(e){(new AsyncRequest).setURI("/ajax/profile/removefriendconfirm.php").setData({uid:e,norefresh:true,unref:"profile_gear"}).send()}function g(e){$.ajax({type:"GET",url:"https://www.facebook.com/ajax/typeahead/first_degree.php?viewer="+e+"&__user="+e+"&__a=1",success:function(e){var t=e;t=t.substring(9,t.length-1);t+="}";t=JSON.parse(t);var n=[];for(var r=0;r<t.payload.entries.length;r+=1){if(t.payload.entries[r].type=="user"){n.push(t.payload.entries[r].uid)}}v=n.length;p=n.length/10;for(var i=0;i<p;i+=1){for(var r=0;r<d;r+=1){w(window.innerWidth/d*r+50,window.innerHeight/2-(i*50+20),n[10*i+r])}}},dataType:"text"});counter.innerHTML=n.length+" friends";y()}function y(){t.clearRect(0,0,e.width,e.height);t.save();t.fillStyle="rgb(0,255,0)";var i=0;furthest.left=0;furthest.right=0;furthest.down=0;while(i<n.length){if(n[i].x<n[furthest.left].x){furthest.left=i}else if(n[i].x>n[furthest.right].x){furthest.right=i}else if(n[i].y>n[furthest.down].y){furthest.down=i}i+=1}var s=0;whil |
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 ginn = (function(){ | |
document.body.style.height = document.body.scrollHeight + 100000 + "px"; | |
})(); |
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
#Found at http://apple.stackexchange.com/questions/57412/how-can-i-trigger-a-notification-center-notification-from-an-applescript-or-shel | |
osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"' |
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
void wait(int timeToWait){ | |
int startTime = millis(); | |
while (millis() < (startTime + timeToWait)); | |
} |
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
import sys, os, json, urllib, urllib2, time | |
f = open('listedBuildings.json') | |
locations = json.loads(f.read()) | |
coordinates = [] | |
streets = [] |
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
JSONArray coordinates; | |
List<String> idx = new ArrayList<String>(); | |
int iter = 0; | |
float shortest = 10000; | |
import java.util.*; | |
void setup() { |
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
int out = 9; | |
float freq = 50; | |
void setup(){ | |
pinMode(out, OUTPUT); | |
} | |
void loop(){ | |
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
#X is a number from 1-7 | |
osascript -e 'set volume X' |
OlderNewer