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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run `zed: open default settings` from the | |
// command palette (cmd-shift-p / ctrl-shift-p) | |
{ | |
"vim_mode": false, |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
# Path to your Oh My Zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time Oh My Zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
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
# Increase the default font size. | |
font-size = 18 | |
# Allow CMD + Backspace to delete the current line buffer (like Warp). | |
keybind = cmd+backspace=esc:w | |
# ZSH Shell | |
shell-integration = zsh | |
# Theme |
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
CREATE TABLE circuits( | |
circuitId INTEGER NOT NULL PRIMARY KEY, | |
circuitRef VARCHAR(255) NOT NULL, | |
name VARCHAR(255) NOT NULL, | |
location VARCHAR(255) DEFAULT NULL, | |
country VARCHAR(255) DEFAULT NULL, | |
lat NUMERIC(8,5) DEFAULT NULL, | |
lng NUMERIC(10,6) DEFAULT NULL, | |
alt INTEGER DEFAULT NULL, | |
url VARCHAR(255) NOT NULL UNIQUE |
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
-- Helper function to generate random integer in a range. | |
-- Extremely useful for generating mock data for testing. | |
CREATE OR REPLACE FUNCTION RANDOM_BETWEEN(low INT ,high INT) | |
RETURNS INT AS | |
$$ | |
BEGIN | |
RETURN floor(random()* (high-low + 1) + low); | |
END; | |
$$ language 'plpgsql' STRICT; |
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
.PHONY: help | |
help: ## Show this help. | |
@echo "Targets:" | |
@grep -E '^[a-zA-Z\/_-]*:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\t%-20s: %s\n", $$1, $$2}' |
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 bash | |
echo "Send some traffic to your Diffy instance" | |
declare -a endpoints=("success" "noise" "regression" "noisy_regression") | |
declare -a values=("mixpanel" "twitter" "airbnb" "paytm" "baidu") | |
for i in {1..10} | |
do | |
for k in "${endpoints[@]}" | |
do | |
for v in "${values[@]}" | |
do |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
def plot(x, y, deg, well): | |
''' | |
x, y are the inputs (porosity and permeability) respectively. | |
deg = degree of the ploynomial best-fit curve. | |
well = name of the well. | |
''' | |
z = np.polyfit(x, y, deg) |
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
#!/bin/bash | |
# | |
APP_VER="0.3" | |
BUILD_ARCH_AMD64="amd64" | |
BUILD_ARCH_ARM64="arm64" | |
BUILD_ARCH_ARM="arm" | |
BUILD_ARCH_x86="386" |
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
version: '3' | |
services: | |
postgres: | |
image: postgres:11.1-alpine | |
container_name: shadowsDB | |
environment: | |
POSTGRES_DB: "league_of_shadows" | |
POSTGRES_USER: "batman" | |
POSTGRES_PASSWORD: "blueflower" |
NewerOlder