Skip to content

Instantly share code, notes, and snippets.

View scizzorz's full-sized avatar
🐻

John Weachock scizzorz

🐻
View GitHub Profile
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort
# standard range func like in Python
range = fn(max)
cur = 0
f = fn()
tmp = cur
if cur >= max
return
(*f).cur = cur + 1
return tmp
return f
good_value=True
for comp in [('SiO2', (30, 40)),
('NaCl', (20, 30)),
('O2', (50, 60)),
('C', (100, 120)),
('K', (13, 14))]:
if comp[1][0]>data[comp[0]] or comp[1][1]<data[comp[0]]:
good_value=False
if good_value:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css">
<link rel="stylesheet" href="main.css">
</head>
@scizzorz
scizzorz / bindings
Last active February 27, 2018 14:09
map ' Marks.activateGotoMode
map J nextTab
map K previousTab
# Left-handed browsing MACHINE
# Also add QWERASDFZXCV as the character link hints
map q previousTab
map e nextTab
map s scrollDown
map d scrollRight
return func(end)
inner = func()
if i == end
return
save [i, end]
i = i + 1
(~inner).i = 0
(~inner).end = end
[
"#2d3238",
"#CC2200",
"#00CC22",
"#2200CC",
"#AACC00",
"#8800CC",
"#0044CC",
"#abb2ba",
"#73808c",
#include <stdio.h>
#include <stdlib.h>
typedef struct item {
int id;
} item;
typedef struct container {
int cur, max;
item items[0];
@scizzorz
scizzorz / test.ll
Last active February 10, 2017 01:00
; ModuleID = "test"
target triple = "x86_64-unknown-linux-gnu"
target datalayout = ""
declare i8* @malloc(i32)
declare void @"llvm.init.trampoline"(i8*, i8*, i8*)
declare i8* @"llvm.adjust.trampoline"(i8*)
declare void @printf(i8*, ...)
@format = global [4 x i8] c"%d\0A\00"
-- Logs begin at Sat 2016-12-10 18:03:56 EST, end at Fri 2016-12-30 19:32:24 EST. --
Dec 14 18:52:58 hex pulseaudio[772]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because high-resolution timers are not available from the kernel.
Dec 14 18:52:58 hex pulseaudio[772]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because high-resolution timers are not available from the kernel.
Dec 14 18:52:58 hex pulseaudio[772]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because high-resolution timers are not available from the kernel.
Dec 14 18:52:58 hex pulseaudio[772]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because high-resolution timers are not available from the kernel.
Dec 14 18:53:08 hex pulseaudio[772]: E: [alsa-sink-ALC1150 Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
Dec 14 18:53:08 hex pulseaudio[772]: E: [alsa-sink-ALC1150 Analog] alsa-sink.c: Most likely this is a bug in