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
override func prepareForSegue(segue: NSStoryboardSegue, sender: AnyObject?) { | |
if let sender = sender as? NSButton { | |
if let destination = segue.destinationController as? DeathViewController, cPerson = self.currentPerson() { | |
destination.person = cPerson | |
return | |
} | |
} | |
} |
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
<?php | |
$new = 0; | |
while ($new < 5) { | |
$tokenFinder = file_get_contents('http://www.campconiston.org/photos/displayimage.php?album=lastup&cat=0&pid=7577'); | |
preg_match_all('/"form_token":"([a-z0-9]+)"/', $tokenFinder, $token); | |
preg_match_all('/"timestamp":([0-9]+)/', $tokenFinder, $timestamp); | |
$result = file_get_contents('http://www.campconiston.org/photos/ratepic.php?rate=5&pic=7577×tamp=' . $timestamp[1][0] . '&form_token=' . $token[1][0]); | |
$new = json_decode($result, true)['new_rating']; | |
} | |
echo $new; |
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
traceroute to bugs.mojang.com (212.112.172.126), 64 hops max, 52 byte packets | |
1 10.0.0.1 (10.0.0.1) 141.939 ms 16.983 ms 23.034 ms | |
2 68.41.180.1 (68.41.180.1) 88.613 ms 26.904 ms 41.380 ms | |
3 xe-10-1-0-32767-sur01.birmingham.mi.michigan.comcast.net (68.85.85.93) 130.684 ms 16.286 ms 13.244 ms | |
4 te-0-11-0-1-ar01.pontiac.mi.michigan.comcast.net (69.139.254.17) 19.814 ms 28.709 ms | |
te-0-10-0-13-ar01.pontiac.mi.michigan.comcast.net (68.86.123.225) 14.326 ms | |
5 he-4-5-0-0-cr01.350ecermak.il.ibone.comcast.net (68.86.90.221) 21.616 ms | |
68.86.166.89 (68.86.166.89) 25.302 ms | |
he-4-4-0-0-cr01.350ecermak.il.ibone.comcast.net (68.86.90.113) 22.379 ms | |
6 66.208.229.126 (66.208.229.126) 19.167 ms * * |
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 classes = {}; | |
var times = { | |
"travel": 0, | |
"full": 1, | |
"am": 2, | |
"pm": 3 | |
}; | |
function getClassType(cl) { | |
if (cl.travel) { | |
return 'travel' |
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
if (classObject['type'] == 'am') { | |
waitlistTable += '<td>' + studentObject['wantedpm'] + '</td>'; | |
} else |
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
<div class="row row-margin-top row-margin-bottom"> | |
<div class="col-md-2"> | |
<span lang="settings.header">Settings:</span> | |
</div> | |
<div class="col-md-2 col-xs-12"> | |
<button class="btn btn-block btn-default" id="import"><span lang="settings.import">Import</span> <i class="fa fa-cloud-upload"></i></button> | |
</div> | |
<div class="col-md-2 col-xs-12"> | |
<button class="btn btn-block btn-default" id="export"><span lang="settings.export">Export</span> <i class="fa fa-cloud-download"></i></button> | |
</div> |
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/sh | |
release=$(curl 'http://s3.amazonaws.com/Minecraft.Download/versions/versions.json' | grep .*release\": | awk "{print \$2}" | tr -d '\",\012\015'); | |
snapshot=$(curl 'http://s3.amazonaws.com/Minecraft.Download/versions/versions.json' | grep .*snapshot\": | awk "{print \$2}" | tr -d '\",\012\015'); | |
clear; | |
ver=$release; | |
if [ "$1" == "snapshot" ]; then | |
read -p "Press any key to clear the $snapshot bin"; | |
ver=$snapshot; | |
elif [ "$1" == "release" ]; then | |
read -p "Press any key to clear the $release bin"; |
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 NoSavesS = new RegExp("%s(?!\\[)"); | |
var NoSavesE = new RegExp("%e(?!\\[)"); | |
var Saves = new RegExp("(%[s|e])\\[([a-zA-Z0-9]+)\\]","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
[11:14:22] Block data updated to: {id:"Sign",Text1:"{"text":"","extra":[{"text":"Click Me","clickEvent":{"action":"run_command","value":"Hey"}}]}",Text2:"""",Text3:"""",Text4:"""",z:648,y:57,x:-23,} |
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
/blockdata [x] [y] [z] {Text1:"{\"text\":\"\",\"extra\":[{\"text\":\"Click Me\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hey\"}}]}"} | |
/give @a sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"\",\"extra\":[{\"text\":\"Click Me\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hey\"}}]}",id:"Sign"}} |