Skip to content

Instantly share code, notes, and snippets.

View RickCarlino's full-sized avatar
💾

Rick Carlino RickCarlino

💾
View GitHub Profile
@RickCarlino
RickCarlino / 01_results.txt
Last active February 3, 2024 04:45
(NOT PEER REVIEWED) My attempt to understand FSRS in Typescript
==== Simulate same grade 5 times in a row ====
====== AGAIN ======
┌─────────┬───────────────────┬─────────────────────┬─────────────────────┐
│ (index) │ D │ S │ I │
├─────────┼───────────────────┼─────────────────────┼─────────────────────┤
│ 0 │ 3.05 │ 0.4 │ 0.3999999999999999 │
│ 1 │ 4.771599999999999 │ 0.2771731229713308 │ 0.2771731229713307 │
│ 2 │ 6.475983999999999 │ 0.19535411986485177 │ 0.19535411986485174 │
│ 3 │ 8.16332416 │ 0.13925231677732938 │ 0.13925231677732935 │
│ 4 │ 9.833790918400002 │ 0.09996923095782838 │ 0.09996923095782835 │
@adryd325
adryd325 / robbyrussell.bash-theme
Last active January 19, 2023 22:39 — forked from HamidNE/robbyrussell.bash-theme
bash robbyrussell theme
prompt_exitcode() {
[[ $exitCode -eq 0 ]] && prompt+="\[\e[1;32m\]" && return
prompt+="\[\e[1;31m\]"
}
prompt_git() {
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [[ -n "$branch" ]]; then
status="$(git status 2>&1 | tee)"
bits=""
@RickCarlino
RickCarlino / see.md
Last active June 27, 2021 14:24
Retroforth SEE implementation (sort of)

dump - A Memory Inspector for RetroForth

Two words are provided below: a regular dump word, plus a dump-s word for dealing with strings.

Example output:

> #16 [ 'Hello,_world! s:put nl ] dump
3C4C: 0x801
3C4D: 0xE97

3C4E: H

# import the opencv library
import cv2
import erlang, os, struct
# define a video capture object
vid = cv2.VideoCapture(0)
AtomOk = erlang.OtpErlangAtom(bytes("ok", "utf-8"))
AtomErr = erlang.OtpErlangAtom(bytes("error", "utf-8"))
@IanColdwater
IanColdwater / twittermute.txt
Last active May 23, 2024 18:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@RickCarlino
RickCarlino / bamboo.md
Created October 26, 2019 20:04
Thinking about Bamboo / Lipmaa backlinks

What is This?

It's a pretty neat thing I found!

Please see the Bamboo project for more info.

Lipmaa Iterative Function

def lipmaa_iterative(n)
@Northern-Lights
Northern-Lights / gotk-glade-test.go
Created November 24, 2018 17:25
How to use Glade UI builder in a Go/golang GTK application using gotk
package main
import (
"fmt"
"log"
"os"
"reflect"
"github.com/gotk3/gotk3/glib"
@byjg
byjg / NoVNC_Paste.js
Last active November 24, 2023 05:46
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);
@monsonite
monsonite / TinyForth.ino
Created January 15, 2016 09:46
A Tiny Forth for Arduino - adapted from code from T. NAKAGAWA
// Tiny FORTH by T. NAKAGAWA 2004/07/04-10,7/29,8/5-6
/*
Tiny FORTH
Experimental Forth for Arduino
T. Nakagawa
2004/07/10
*/
#include <stdio.h>
@oestrich
oestrich / signer.rb
Created October 21, 2015 02:21
Signing Google Cloud Storage URLs
private_key = "..."
client_email = "..."
bucket = "..."
path = "..."
full_path = "/#{bucket}/#{path}"
expiration = 5.minutes.from_now.to_i
signature_string = [
"GET",