Skip to content

Instantly share code, notes, and snippets.

@blippy
blippy / finance.wls
Created March 16, 2018 12:08
Portfolio in Mathematica
#!/usr/bin/env wolframscript
(* ::Package:: *)
(* ::Input:: *)
(*tbl1 = Import[FileNameJoin[{$HomeDirectory , "tmp", "port.tsv"}]];*)
(* ::Input:: *)
(*(* Some of the types of prices you can ask for *)*)
(**)
@blippy
blippy / cinelerra-dependencies.sh
Last active December 6, 2020 08:21
Compiling cinelerra-cv on Ubuntu 18.04
#!/usr/bin/env bash
# Setup for Ubuntu 18.08, 18.10
# standard'ish GNU tools
sudo apt-get install libtool # stops configure.ac AC_ENABLE_SHARED, ... probs
# Other items seems required by ubuntu 17.10
sudo apt-get install nasm
sudo apt install libfontconfig1-dev intltool libxft-dev
@blippy
blippy / dependencies.txt
Created December 29, 2017 16:26
Installing Guile 2.2.3 on Ubuntu 17.10
sudo apt install libffi-dev libgmp-dev libunistring-dev
# for bdw-gc:
sudo apt install libgc-dev
@blippy
blippy / ultibo-install.sh
Created December 5, 2017 18:04
Install Ultibo on Slackware 14.2
cd
sudo sbopkg -i arm-binutils
sudo sbopkg -i newlib-headers
sudo sbopkg -i arm-gcc
wget https://github.com/ultibohub/Tools/releases/download/1.0.5/ultiboinstaller.sh
chmod +x ultiboinstaller.sh
./ultiboinstaller.sh
#To start lazarus:
@blippy
blippy / derive
Last active November 28, 2017 15:43
plaintextaccounting
#!/usr/bin/env bash
function inputs {
echo "today `date --iso`" | cat - <<insert your input files here>>
}
function pending {
DSTAMP=`date --iso`
RE="s/^pending/ntran $DSTAMP/"
@blippy
blippy / stocko.awk
Last active November 8, 2017 10:58
Stockopedia portfolio constructor
#!/usr/bin/env awk
BEGIN {
IFS="\t" ; OFS = ",";
print "TICKER,DATE,TIME,TYPE,SHARES,FX,PRICE,CURRENCY,COMMISSION,TAX,TOTAL";
}
{
#print "";
#print $0;
@blippy
blippy / pyftpd.py
Created October 4, 2017 10:38
Personal FTP server
#!/usr/bin/env python
import os
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
def main():
# Instantiate a dummy authorizer for managing 'virtual' users
@blippy
blippy / lexing.lisp
Created August 27, 2017 09:56
Lisp lexing using using alexa
;;;; https://github.com/rigetticomputing/alexa
(ql:quickload "alexa")
#|
(defpackage :blang
(:use :common-lisp :alexa))
(in-package :blang)
|#
@blippy
blippy / var.cc
Created August 16, 2017 12:36
Variant in C++
#include <iostream>
#include <string>
#include <stdexcept>
class cc {
public:
cc() { std::cout << "hi" << std::endl; }
~cc() { std::cout << "bye" << std::endl; }
};
@blippy
blippy / flag.svg
Created June 27, 2017 09:54
Turriff flag
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.