{"label":"root","blocks":[{"label":"","type":"exponential","id":71,"inputs":[{"name":"rate","value":{"data":1},"type":"number"}],"outputs":[{"name":"draw","type":"number"}],"source":null,"position":{"x":18,"y":143}},{"label":"","type":"toString","id":73,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":141,"y":143}},{"label":"","type":"concat","id":74,"inputs":[{"name":"a","value":null,"type":"string"},{"name":"b","value":{"data":"s"},"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":240,"y":143}},{"label":"","type":"delay","id":72,"inputs":[{"name":"in","value":{"data":1},"type":"any"},{"name":"duration","value":null,"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":332,"y":128}},{"label":"","type":"pqLen","id":62,"inputs":[{"name":"trigger","value":null,"type":"any"}],"outputs":[{"name":"length","type":"number"}],"source":"priority-queue","position":{"x
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| type Stream chan interface{} | |
| type StreamMap func(interface{}) interface{} |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "github.com/gorilla/websocket" | |
| "log" | |
| "net/http" | |
| "sync" |
This file contains hidden or 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
| package main | |
| import ( | |
| "time" | |
| "fmt" | |
| ) | |
| type Task func(interface{}) interface{} | |
| type Sink func(interface{}) |
This file contains hidden or 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
| If you need a recurisve dot clean and your folders have spaces in them: | |
| find . -type d | sed 's/^/"/g' | sed 's/$/"/g' | xargs dot_clean -m |
This file contains hidden or 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
| // send whatever message you want over Google Tone | |
| // as far as I can tell, profile images must live on googleusercontent.com | |
| // data.url must look like a url | |
| // setting AUDIBLE_DURATION to 1 will generate no audible sound but result in a successful transmission. | |
| // | |
| // to use: | |
| // 0. install Google Tone https://chrome.google.com/webstore/detail/google-tone/nnckehldicaciogcbchegobnafnjkcne | |
| // 1. open settings > extentions | |
| // 2. click "options" under Google Tone | |
| // 3. In the Google Tone options, open the developer console and paste the following |
{"label":"root","blocks":[{"label":"","type":"exponential","id":71,"inputs":[{"name":"rate","value":{"data":1},"type":"number"}],"outputs":[{"name":"draw","type":"number"}],"source":null,"position":{"x":18,"y":143}},{"label":"","type":"toString","id":73,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":141,"y":143}},{"label":"","type":"concat","id":74,"inputs":[{"name":"a","value":null,"type":"string"},{"name":"b","value":{"data":"ms"},"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":240,"y":143}},{"label":"","type":"delay","id":72,"inputs":[{"name":"in","value":{"data":1},"type":"any"},{"name":"duration","value":null,"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":332,"y":128}},{"label":"","type":"*","id":311,"inputs":[{"name":"x","value":{"data":2},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x*y","type":"number"}],
{"label":"root","blocks":[{"label":"","type":"exponential","id":7,"inputs":[{"name":"rate","value":{"data":1},"type":"number"}],"outputs":[{"name":"draw","type":"number"}],"source":null,"position":{"x":18,"y":143}},{"label":"","type":"toString","id":8,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":141,"y":143}},{"label":"","type":"concat","id":9,"inputs":[{"name":"a","value":null,"type":"string"},{"name":"b","value":{"data":"ms"},"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":240,"y":143}},{"label":"","type":"delay","id":10,"inputs":[{"name":"in","value":{"data":1},"type":"any"},{"name":"duration","value":null,"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":332,"y":128}},{"label":"","type":"*","id":11,"inputs":[{"name":"x","value":{"data":2},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x*y","type":"number"}],"sou
{"label":"root","blocks":[{"label":"","type":"exponential","id":8,"inputs":[{"name":"rate","value":{"data":1},"type":"number"}],"outputs":[{"name":"draw","type":"number"}],"source":null,"position":{"x":18,"y":143}},{"label":"","type":"toString","id":9,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":141,"y":143}},{"label":"","type":"concat","id":10,"inputs":[{"name":"a","value":null,"type":"string"},{"name":"b","value":{"data":"ms"},"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":240,"y":143}},{"label":"","type":"delay","id":11,"inputs":[{"name":"in","value":{"data":1},"type":"any"},{"name":"duration","value":null,"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":332,"y":128}},{"label":"","type":"*","id":12,"inputs":[{"name":"x","value":{"data":2},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x*y","type":"number"}],"so
This file contains hidden or 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
| ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4 |
OlderNewer