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
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#define WIFI_SSID "<removed>" | |
#define WIFI_PSK "<removed>" | |
#define GPIO_LED 13 | |
#define GPIO_RELAY 12 |
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 | |
set -e | |
input="../$1" | |
stdin="$2" | |
function measure() | |
{ | |
total=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
import Control.Concurrent.Async | |
import Data.Foldable | |
import Control.Exception | |
import Control.DeepSeq | |
numThreads = 4 | |
maxChunkSize = 1024000 | |
isPrime :: [Int] -> Int -> Bool | |
isPrime primes x = all ((/=0) . (mod x)) $ takeWhile ((<=x) . (^2)) primes |
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 "printf", "malloc", "free" from "libc.so.6"; | |
var cfree = free; | |
var minfactor = 3; | |
var maxfactor = 7; | |
var maxsize = 1 << maxfactor; | |
var startBlock = 1 << maxfactor; | |
var used = null; |
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
if SERVER then | |
util.AddNetworkString("deathrecap_show") | |
util.AddNetworkString("deathrecap_hide") | |
local recap = {} | |
local startTime = 0 | |
hook.Add("EntityTakeDamage", "deathrecap_takedmg", function(target, ev) | |
if target:IsPlayer() then | |
local name = target:GetName() | |
recap[name] = recap[name] or {} |
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 | |
function printUsage | |
{ | |
printf "Commands:\n h : show this help\n c : clear the screen\n\ | |
q : quit\n r : restart player\n l : view player log\n\ | |
<id> : add id to queue\n" | |
} | |
printUsage | |
printf "\n" |
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
(function e(t, n, r) { | |
function s(o, u) { | |
if (!n[o]) { | |
if (!t[o]) { | |
var a = typeof require == "function" && require; | |
if (!u && a) return a(o, !0); | |
if (i) return i(o, !0); | |
var f = new Error("Cannot find module '" + o + "'"); | |
throw f.code = "MODULE_NOT_FOUND", f | |
} |
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("chat") | |
import("math") | |
import("debug") | |
import("./calculator.js") | |
command("gamerule sendCommandFeedback false") | |
command("scoreboard objectives add calc dummy") | |
command("scoreboard objectives add calcVal dummy") | |
curr = score("@e[type=ArmorStand,x=0,y=5,z=-1,r=0]", "calc") |
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("util.command"); | |
import("util.callAsync"); | |
import("util.setTimeout"); | |
import("chat.tellraw"); | |
import("scoreboard"); | |
static int base = 10; // try 2 or 16 | |
static bool debug = false; | |
object cursor = @e[type=ArmorStand,name=cursor]; |
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("util.command"); | |
import("math"); | |
import("chat.tellraw"); | |
fixed start = math.pi(); | |
start *= -1; //start at -pi | |
fixed stop = math.pi(); //stop at pi | |
for(fixed i = start; i <= stop; i += 0.2) |