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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
delta, z := float64(1), float64(1) | |
for delta > 1e-9 { |
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 asyncFunction = (param, callback) => { | |
window.setTimeout(() => { | |
callback(param); | |
}, 1); | |
}; | |
var o = { | |
doSomething: function () { | |
// Here we pass `o` into the async function, | |
// expecting it back as `param`. |
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 playTheGame(event) { | |
var rows = world.stage.canvas.width, | |
cols = world.stage.canvas.height; | |
for(int r = 0; r < rows; r += cellHeight) { | |
for(int c = 0; c < cols; c += cellWidth) { | |
//form neighborhood here, | |
//count num cells | |
//return center cell, if it doesn't exist, add one |
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
PID: | |
7589 | |
run.sh: 4: run.sh: [[: not found | |
Connector not running. starting. | |
Traceback (most recent call last): | |
File "./bot.py", line 3, in <module> | |
from api import handlers | |
File "/home/squid/scaling-octo-robot/api/__init__.py", line 2, in <module> | |
from api.irc_actions import * | |
File "/home/squid/scaling-octo-robot/api/irc_actions.py", line 9 |
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
Ext.define('SkyNet.store.ActiveResidentsStore', { | |
extend: 'Ext.data.Store', | |
config: { | |
model: 'SkyNet.model.Resident', | |
sorters: 'LastName', | |
storeId: 'ActiveResidentsStore', | |
autoload: true, | |
grouper: { | |
groupFn: function (record) { | |
return record.get('LastName')[0]; |
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
curl --header "X-Ratelimit-Used: 1 User-Agent: radicalcakes" http://www.reddit.com/r/all.json?limit=10 | jsawk 'return this.data.children' | jsawk 'return this.data' | jsawk 'return this.url' |
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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1 | |
owGbwMvMwMSouj46n71nXTrj6QPfkhhCtpi+qVZKyk+pVLKqVkrOyUzNKwGx8hJz | |
U5WslLJTK5MSi1P1MvMV8vJTUvWyihWganSUylKLijPz84CqDPTM9YyVanVAykGa | |
0zLz0lOLCooyQWYpWRqkWSYnJxuZmhslm5klmgDp1KQkE0OTROM0ozQLs7RkoxQz | |
M+MkoJEZ+cUlKLYqgc2Mz0wBipo4GrsZuVmYuTkbuQDVOwHlSsESpqlpycmGqSZm | |
SckWhklJqaaGxklJiWbmBhYWpgZmBgYghcWpRVAvFSWmZCYn5iQnZqcWg9wMlCnL | |
TE5F8nR6ZklGaRKqrpKM1Lz8otzEnOJCkKVAfSWVBSCJ8tSkeKgR8UmZeSlAryOH | |
jSFQZXJJJsgMQxMjQwNLMxMjCx2l1IqCzKLU+EyQClNzMwsDINBRKihKLVOyyivN |
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
__author__ = 'radicalcakes' | |
import TCPHandler | |
test_json_obj = { | |
#hidden server sould do the conversion of originators and firstHopid | |
"originator": 2995272300, | |
"firstHop": 25721492, | |
"traceCount": 00, | |
"hopCount": 01, | |
"pti": 00, |
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
Single-input UT EN1210: battery=ok, firstHopId=2491058177, hopCount=1, changed=NO, tamper=NO, reset=NO, trigger1=NO, trigger2=NO, trigger3=NO, trigger4=NO, status0=0x10, status1=0x0, rawMsg={72 12 B2 88 3A 6C 01 88 7A 94 00 01 3E 00 00 10 00 00 4A} | |
Single-input UT EN1210: battery=ok, firstHopId=2725939201, hopCount=1, changed=NO, tamper=NO, reset=NO, trigger1=NO, trigger2=NO, trigger3=NO, trigger4=NO, status0=0x10, status1=0x0, rawMsg={72 12 B2 88 3A 6C 01 88 7A A2 00 01 3E 00 00 10 12 12 7C} |
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
// | |
// FirstViewController.m | |
// Matchmaker | |
// | |
// Created by radicalcakes on 1/2/15. | |
// Copyright (c) 2015 matchmaker. All rights reserved. | |
// | |
#import "FirstViewController.h" | |
#import "ParseImageController.h" |