Skip to content

Instantly share code, notes, and snippets.

View Okwori's full-sized avatar
👨‍💻
Working from home

Simon Okwori

👨‍💻
Working from home
View GitHub Profile
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://raw.githubusercontent.com/Okwori/blm/master/resources/data/fatal-police-shooting.csv"
},
"mark": "line",
"width": 600,
"transform": [
{"filter": {"field": "date", "timeUnit": "year", "lt":{ "year": 2020}}}
],
@Okwori
Okwori / kill-process.bash
Last active April 27, 2022 10:57
Kill a process from the cmd on windows
## Start cmd as admin
netstat -ano | findstr :3000 # r specify other port number
## Then get the processID from the previous command
taskkill /PID typeyourPIDhere /F # replace 'typeyourPIDhere' with appropraite process ID
## UBUNTU ##
You want to use backtick not regular tick:
@Okwori
Okwori / remote-repl.clj
Last active July 29, 2019 16:57
Running Remote CLJS REPL
;; In the main local run:
(start-fw) ;; this will start figwheel repl on port 7002
;; Then create a remote repl connection specifing the host(e.g localhost) and the port(7002)
;; Then within the new remote repl, run:
(use 'figwheel-sidecar.repl-api)
;; Then run (for luminus):
(cljs) ; to start clojurescript repl! WHICH is equivalent to (figwheel-sidecar.repl-api/cljs-repl) or just (cljs-repl)