(Play this in the back ground) https://www.youtube.com/watch?v=nVIYiBdfGwE
""" | |
All environment variable access should be performed via this module. | |
- allows tracing of where variables are used | |
- provide sensible defaults | |
- reduce string typos | |
""" | |
import os | |
import sys | |
SIZE = '10' |
# Based on: | |
# - https://unix.stackexchange.com/questions/82630/put-text-in-the-bash-command-line-buffer/82716#82716 | |
# - https://github.com/junegunn/fzf/blob/master/shell/key-bindings.bash | |
hack() { | |
if [ $((RANDOM % 10)) -eq 0 ]; then | |
# Run an interesting in the background: | |
(/full/path/to/command &) | |
fi | |
local selected="e" |
(function(){ | |
function handleClick(e) { | |
const r = Math.random(); | |
if (r > 0.1) { | |
console.log("not yet: ", r); | |
return true; | |
} | |
e.preventDefault(); | |
e.stopPropagation(); | |
s = document.body.style; |
(function(){ | |
function handleClick(e) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
s = e.target.style; | |
s.opacity = s.opacity === "" ? 0.5 : s.opacity * 0.5; | |
console.log("I'm melting!"); | |
return false; | |
} | |
document.querySelectorAll('a').forEach((a) => a.onclick = handleClick); |
#!/bin/sh | |
printf "\e[0mAll attributes off\e[0m\n" | |
printf "\e[1mBold\e[0m\n" | |
printf "\e[4mUnderline\e[0m\n" | |
printf "\e[5mBlink\e[0m\n" | |
printf "\e[8mHide\e[0m\n" | |
printf "\e[30mBlack\e[0m\n" | |
printf "\e[31mRed\e[0m\n" | |
printf "\e[32mGreen\e[0m\n" | |
printf "\e[33mYellow\e[0m\n" |
(Play this in the back ground) https://www.youtube.com/watch?v=nVIYiBdfGwE
site_name: Docs | |
theme: | |
name: material | |
docs_dir: doc | |
markdown_extensions: | |
- markdown.extensions.admonition | |
- markdown.extensions.codehilite: | |
guess_lang: false | |
- markdown.extensions.def_list |
#!/usr/bin/env ruby | |
# Run Sidekiq Web Standalone | |
require 'rack' | |
require 'sidekiq' | |
require 'sidekiq-ent' | |
require 'sidekiq-pro' | |
Sidekiq.configure_client do |config| | |
config.redis = { :size => 1 } |
Why were RECURSIVE
queries implemented in Postgres? For the Mandelbrot set!
line
---------------------------------------------------------------------------------------
@@@@@@@@@00000000%%%%%%%%%%%%%%%%%%%%%%%%%%%XXXXXXXXXXxxxxxxxx*xxx+xxXXXXXXX%%%%%%%%0
@@@@@@@@000000%%%%%%%%%%%%%%%%%%%%%%%%%%%XXXXXXXXXXXxxxxxxxxxx=.=xxxxxxxXXXXXXX%%%%%%
WITH frames AS ( | |
-- Empty row to set columns names and types | |
SELECT null::integer AS frame, ARRAY[0] AS rolls WHERE 1 = 0 | |
UNION SELECT 1, ARRAY[ 9, 1 ] | |
UNION SELECT 2, ARRAY[ 10 ] | |
UNION SELECT 3, ARRAY[ 2, 4 ] | |
UNION SELECT 4, ARRAY[ 0, 10 ] | |
UNION SELECT 5, ARRAY[ 10 ] | |
UNION SELECT 6, ARRAY[ 10 ] | |
UNION SELECT 7, ARRAY[ 8, 2 ] |