View malli.clj
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
(ns yd.seed.core | |
(:require [malli.core :as m] | |
[malli.error :as me] | |
[malli.generator :as mg])) | |
(def event-types | |
[:enum | |
:post | |
:comment | |
:reaction |
View temp_sensor.txt
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
383981 | |
2021-12-03 03:02:44.754101; 40.00 %RH; -50.00 °C | |
383931 | |
2021-12-03 03:02:46.927674; 40.00 %RH; -50.00 °C | |
383980 | |
2021-12-03 03:02:49.106408; 40.00 %RH; -50.00 °C | |
383999 | |
2021-12-03 03:02:51.284882; 40.00 %RH; -50.00 °C | |
384063 | |
2021-12-03 03:02:53.463237; 41.00 %RH; -50.00 °C |
View compose.js
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
const R = require('ramda') | |
const maybeFoo = next => async item => { | |
console.log('maybeFoo', item) | |
item.data++ | |
return next(item) | |
} | |
const maybeBar = next => async item => { | |
console.log('maybeBar', item) |
View async.sh
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 | |
cust_func(){ | |
echo "Do something $1 times..." | |
sleep 1 | |
} | |
# For loop 5 times | |
for i in {1..5} | |
do |
View chan.js
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
function chan(n) { | |
let internalQueue = [] | |
let drain = null | |
async function* wrappedIterator() { | |
while (true) { | |
if (internalQueue.length) { | |
if (drain) drain() | |
yield internalQueue.shift() | |
} |
View gist:2c2f4ab232a29e5f4041a688d618c110
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
### Keybase proof | |
I hereby claim: | |
* I am bhurlow on github. | |
* I am bhurlow (https://keybase.io/bhurlow) on keybase. | |
* I have a public key ASCpmfCmKZXpos21zxXdNiafraKs12mdiVC-PZEAJDWUnQo | |
To claim this, I am signing this object: |
View gist:b9e82506efdf8597bdb6243e517a7d29
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
alias ga 'git add' | |
alias gaa 'git add .' | |
alias gaaa 'git add -A' | |
alias gb 'git branch' | |
alias gbd 'git branch -d ' | |
alias gc 'git commit' | |
alias gcm 'git commit -m' | |
alias gco 'git checkout' | |
alias gcob 'git checkout -b' | |
alias gcom 'git checkout master' |
View bash
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 | |
filename=$(basename "$1") | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
ffmpeg -i $filename.$extension -codec:a libmp3lame $filename.mp3 |
View concurrent.clj
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
(ns scraper.concurrent | |
(:import [java.util.concurrent | |
ExecutorService | |
ExecutorCompletionService | |
Executors | |
CompletionService Future])) | |
(defn prln [& more] | |
(.write | |
*out* |
View gist:7f4d87b272a04c282da8
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
%{IP:client} - - \[%{HTTPDATE:time_local}\] %{QUOTEDSTRING:request} %{NUMBER:status} %{NUMBER:bytes} "-" %{QS:agent} |
NewerOlder