Skip to content

Instantly share code, notes, and snippets.

View Opus1no2's full-sized avatar
🏠
Working from home

Travis Tillotson Opus1no2

🏠
Working from home
View GitHub Profile
let a = 20;
const b = 30;
var c;
function multiply(e, f) {
var g = 20;
return e * f * g;
}
// Creation Phase
function foo() {
// This is a new lexical ENV
}
{
// Lexical ENV A
{
// Lexical ENV B
{
// Lexical ENV C
<!doctype html>
<html>
<head>
<style>
.content {
display: none;
padding: 50px;
border: solid 1px;
background: #ccc;
}
@Opus1no2
Opus1no2 / index.html
Last active March 22, 2019 19:57
float
<!doctype html>
<html>
<head>
<style>
.container {
margin: 0 auto;
width: 75%;
padding-left: 25px;
padding-right: 25px;
}
@Opus1no2
Opus1no2 / form.html
Last active December 17, 2018 17:40
form submission
<!doctype html>
<html>
<head>
</head>
<body>
<form>
<label>First Name</label>
<input name='first' type='text'>
<label>Last Name</label>
<input name='last' type='text'>
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style>
.col-md-3 {
background: grey;
color: white;
border: solid 1px;
}
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<style>
.body {
margin: 0;
}
</style>
</head>
<!doctype html>
<html>
<head>
</head>
<body>
<input data-target='foo' type='checkbox'></input>
<input data-target='bar' type='checkbox'></input>
<input data-target='baz' type='checkbox'></input>
<button data-btn='foo' disabled=true>Foo</button>
<button data-btn='bar' disabled=true>Bar</button>
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/ttillotson/.oh-my-zsh
export GOPATH=$HOME/go
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/usr/local/bin/:$PATH
export PATH=$PATH:$HOME/dev/8b/bin
@Opus1no2
Opus1no2 / histo.sql
Last active October 3, 2018 11:55
oh postgres
select g.n, count(rt.latency), coalesce(max(rt.latency), 0), coalesce(min(rt.latency), 0)
from generate_series(1, 20) g(n) left join
run_times rt
on width_bucket(rt.latency, 0, 1, 20) = g.n
group by g.n
order by g.n