Skip to content

Instantly share code, notes, and snippets.

Private ID As Integer
Private DateDate As Date
Private Period As Integer
Private Duration As Integer
Private Repetitions As Integer
Public Sub Construct(c_ID As Integer)
ID = c_ID
Me.LoadData
@Akeboshiwind
Akeboshiwind / about.md
Last active July 20, 2016 20:14 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@Akeboshiwind
Akeboshiwind / .cVimrc
Last active August 12, 2019 09:38
cVim settings
"! Remember to reload all tabs after changing
" Auto update settings from this gist
set autoupdategist
" Turn on smoothscroll and slow it down
set smoothscroll
let scrollduration=300
" Try to not let the webpage grap focus
set noautofocus
@Akeboshiwind
Akeboshiwind / heavy-hitters.clj
Last active July 27, 2018 20:03
Heavy Hitters algorithm
(defn heavy-hitter
"Output the lement in the list that came up more than 50% of the time, nil otherwise."
[lst]
(let [heavy (heavy-hitter* lst)]
(when (->> lst
(filter (partial = heavy))
(count)
(<= (/ (count lst) 2)))
heavy)))
@Akeboshiwind
Akeboshiwind / reservoir-sample.clj
Created July 27, 2018 20:00
An implementation of the reservoir sampling algorithm
;; Todo: write as a transducer
(defn reservoir-sample
"Uniformly choose a sample of k elements from lst"
[k lst]
(first
(reduce
(fn [[sample length] next]
(let [r (rand-int length)]
[(if (< r k)
(assoc sample r next)
@Akeboshiwind
Akeboshiwind / lastfm-analysis.clj
Last active September 16, 2018 02:01
Lastfm Analysis
;; gorilla-repl.fileformat = 1
;; **
;;; # LastFM Analysis
;; **
;; @@
(ns lastfm-analysis
(:require [gorilla-plot.core :as plot]))
@Akeboshiwind
Akeboshiwind / echarts.clj
Last active May 6, 2019 15:31 — forked from ribelo/echarts.clj
clojuypter & echarts
(ns clojupyter.echarts
(:require [clojupyter.misc.display :as display]
[cheshire.core :as json]
[cuerdas.core :as str]))
(defn init []
(let [code "
require.config({
paths: {
@Akeboshiwind
Akeboshiwind / keybase.md
Created August 10, 2022 10:35
Keybase GitHub Proof

Keybase proof

I hereby claim:

  • I am akeboshiwind on github.
  • I am olivermarshall (https://keybase.io/olivermarshall) on keybase.
  • I have a public key ASDLJs6hPFndnzWlsd3LtY9n4d0Pa18vZtsF-TzHF7ZIzQo

To claim this, I am signing this object:

@Akeboshiwind
Akeboshiwind / sites.txt
Last active October 31, 2022 12:19
Leechblock Sites
+reddit.com/comments
+reddit.com/gallery
+reddit.com/message
+reddit.com/r/*/comments
+reddit.com/r/*/wiki
reddit.com
youtube.com
;; >> No errors
;; Works as expected
(defn ^:gen foo []
(js-yield 1)
(js-yield* [2 3])
(let [x (do (js-yield 4)
5)]
(js-yield x)))