Skip to content

Instantly share code, notes, and snippets.

View ezfe's full-sized avatar

Ezekiel ezfe

View GitHub Profile
var classes = {};
var times = {
"travel": 0,
"full": 1,
"am": 2,
"pm": 3
};
function getClassType(cl) {
if (cl.travel) {
return 'travel'
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 * *
<?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&timestamp=' . $timestamp[1][0] . '&form_token=' . $token[1][0]);
$new = json_decode($result, true)['new_rating'];
}
echo $new;
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
}
}
}
ClrAllLists
ClrHome
Prompt N
Prompt A
Prompt B
Input "Y₁=?",Str1
Str1→Y₁
(B-A)/N→H
For(I,1,N)
A+I*H→X
var currentNum = 1
mainLoop: while true {
currentNum += 2
for x in 2..<currentNum where currentNum % x == 0 {
continue mainLoop
}
print(currentNum)
}
let somelocation = Position(x: 50.5, y: 90.13)
let cat = Sprite(name: "Cat")
cat.contents.addBlock(PressFlag())
cat.contents.addBlock(Say(text: "Hello"))
cat.contents.addBlock(GoTo(location: somelocation))
print(cat)
/*
Sprite[Cat]@(0.0,0.0)
@ezfe
ezfe / CKManager.swift
Created August 22, 2016 19:01
ConnectorKit
//
// CKManager.swift
// Connector
//
// Created by Ezekiel Elin on 8/20/16.
// Copyright © 2016 Ezekiel Elin. All rights reserved.
//
import Foundation
import CloudKit
@ezfe
ezfe / conversion.md
Last active April 18, 2018 20:49
Conversion

Suppose we have:

PE version a

  • blocks
    • air (default)
    • stone
    • grass
    • reactor

PE version b

#!/bin/sh
filter='subsystem contains "com.apple.TimeMachine"'
log show --style syslog --info --last 12h --predicate "$filter"
log stream --style syslog --info --predicate "$filter"