This file contains 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
extern crate cocoa; | |
#[macro_use] | |
extern crate objc; | |
use cocoa::appkit::*; | |
use cocoa::base::*; | |
use cocoa::foundation::*; | |
use objc::runtime::*; |
This file contains 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 Json.Decode as Decode | |
type alias CoinPair = { pair: String, price: Float, rsi_15m: Int } | |
decodeCoinPair : Decode.Decoder CoinPair | |
decodeCoinPair = | |
Decode.map5 CoinPair | |
(Decode.field "pair" Decode.string) | |
(Decode.field "price" Decode.float) | |
(Decode.field "rsi_15m" decodeFloatAsInt) |
This file contains 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
module Main exposing (Model, Msg(..), Person, config, init, main, presidents, update, view) | |
import Browser | |
import Html exposing (Html, div, h1, input, text) | |
import Html.Attributes exposing (placeholder) | |
import Html.Events exposing (onInput) | |
import Table | |
main = | |
Browser.element |
This file contains 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 | |
# PRO TIP: Don't disable shit until you know exactly what it does. Remember that disabling doesn't kill the process, so most tweaks you need to reboot to fully see effects. | |
# MINI TUTORIAL ON LAUNCHCTL | |
# List all jobs in system: | |
# launchctl list | |
# first column is the process id, or - if the job is not loaded. second is exit code. |
This file contains 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 ruby | |
require 'nokogiri' | |
require 'fileutils' | |
require 'zlib' | |
require 'colorize' | |
INPUT_FILE = ARGV[0] | |
PROJECT_NAME = (ARGV[1].nil? || ARGV[1].empty?) ? nil : ARGV[1] # dirty but necessary unforch. ruby sucks. | |
OUTPUT_DIR = "./_output" |
This file contains 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
require 'fileutils' | |
require 'midilib/sequence' | |
require 'midilib/io/midifile' | |
DEBUG = false | |
LOGGING = true | |
LOG_FILE = Dir.pwd + '/error.log' | |
INPUT_DIR = './vgm/' | |
OUTPUT_DIR = '../split' |
NewerOlder