Skip to content

Instantly share code, notes, and snippets.

use_bpm 90
live_loop :wow do
sample :drum_bass_hard
sleep 0.5
sample :drum_heavy_kick
sleep 0.5
end
define :basszone do |wow|
sync :wow
@vbop9834
vbop9834 / pizero.md
Last active November 18, 2020 23:21

Shoving ads up the Pi-Hole

First steps

The Raspberry Pi Zero W has a micro sd card (2GB) plugged in with the headless operating system raspbian(linux distro)

Raspberry Pi Zero Specs https://www.raspberrypi.org/pi-zero-w/

The power adapter plugs into the USB C port that is the farthest from the center of the board.

@vbop9834
vbop9834 / configuration.nix
Last active February 29, 2020 14:06
thinkpad x1 carbon nixos
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
icons = "awesome"
[theme]
name = "solarized-dark"
[theme.overrides]
idle_bg = "#06060f"
idle_fg = "#c1c1c1"
info_bg = "#00223f"
info_fg = "#c1c1c1"
good_bg = "#394049"
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@vbop9834
vbop9834 / gramschmidt.fsx
Created March 29, 2017 04:30
Gram Schmidt in fsharp
type Vector = {Vector : float list} with
static member Create vector =
{ Vector = vector }
member this.InnerProduct otherVector =
List.zip this.Vector otherVector.Vector
|> List.map (fun (vectorOneNumber, vectorTwoNumber) -> vectorOneNumber * vectorTwoNumber)
|> List.sum
member this.Length =
@vbop9834
vbop9834 / MnistDataReader.ex
Last active March 10, 2017 17:11
Elixir functions for parsing Mnist binary data - http://yann.lecun.com/exdb/mnist/
defmodule MnistDataReader do
def read_training_image_data(path) do
{:ok, data} = File.read path
parse_training_image_data data
end
def read_training_label_data(path) do
{:ok, data} = File.read path
parse_training_label_data data
#I "../NeuralFish"
#load "NeuralFish_dev.fsx"
open NeuralFish.Types
open NeuralFish.Core
open NeuralFish.EvolutionChamber
open NeuralFish.Exporter
type SquareId = int
@vbop9834
vbop9834 / App.elm
Created October 5, 2016 19:50
Example app for Elm 0.17
module App exposing (..)
import Html exposing (Html, h1, text)
import Html.App
type alias Model = String
init : ( Model, Cmd Msg )
init =
( "Hello", Cmd.none )