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
set -g default-terminal "tmux-256color" | |
set -g mouse on | |
set -g focus-events on | |
set -g status-position top | |
set -g prefix C-a | |
setw -g mode-keys vi | |
set -sg escape-time 0 | |
set -sa terminal-features ',xterm-kitty:RGB' |
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
#!/usr/bin/env python3 | |
def eval(instructions: list): | |
stack = [] | |
mem = {} | |
exec = list(reversed(instructions)) | |
binary_ops = { | |
"add": lambda v1, v2: v1 + v2, | |
"sub": lambda v1, v2: v1 - v2, |
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
#r "nuget: NUnit, 3.12.0" | |
#r "nuget: NUnitLite, 3.12.0" | |
using NUnit.Framework; | |
using NUnitLite; | |
public class MyTests | |
{ | |
[Test] | |
public void PassingTest() | |
=> Assert.IsTrue(true); |
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
-- | |
-- setup | |
-- | |
create database servicebrokertest | |
go | |
alter database servicebrokertest set enable_broker | |
go | |
use servicebrokertest | |
go |
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" | |
"log" | |
"net/http" | |
"net/http/cgi" | |
) | |
// Render links to child pages |
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
"use strict"; | |
// A closure is a function that has one or more variables bound to it. | |
// In the following simple example, notice that the sayHi function accesses the greeting variable | |
// from outside of its scope. This is possible due to lexical scoping in javascript. | |
var greetingFactory = function() { | |
var greeting = 'Hello there' | |
var sayHi = function(name) { | |
return greeting + ' ' + name; |