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
===> Verifying dependencies... | |
===> Fetching clj (from {git,"git://github.com/lfex/clj.git"}) | |
===> WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected. | |
===> Fetching lfe-compile (from {git,"https://github.com/lfe-rebar3/compile.git", | |
{tag,"0.5.0"}}) | |
===> Fetching lfe (from {git,"https://github.com/rvirding/lfe.git", | |
{ref,"697e9b4996fa843f4c6a9edea25005d30a9b8a14"}}) | |
===> Compiling lfe | |
_build/default/plugins/lfe/src/lfe_macro_include.erl:28: Warning: export_all flag enabled - all functions will be exported |
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
package main | |
import ( | |
"fmt" | |
"github.com/tidwall/gjson" | |
) | |
var data = ` | |
{ |
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
package main | |
import ( | |
"fmt" | |
"github.com/buger/jsonparser" | |
) | |
var data = []byte(` | |
{ |
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
(* | |
* pickall_search_of_searches.fsx | |
* - F# Script that demonstrates the use of PickAll (github.com/gsscoder/pickall) | |
* - Searches the web adding the first two more used words in initial results | |
* - descriptions for a subsequent query | |
* - Requires PickAll.dll (0.8.0) and AngleSharp.dll (0.14.0-alpha-787) | |
* in the script directory | |
*) | |
#r "PickAll.dll" | |
open System |
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
/* | |
* Facebook_PickAll_Searcher.cs | |
* Facebook searcher for PickAll (github.com/gsscoder/pickall) | |
* Removed from repository, still pluggable as external service | |
*/ | |
using System; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; |
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
(* | |
* pickall_count_words.fsx | |
* - F# Script that demonstrates the use of PickAll (github.com/gsscoder/pickall) | |
* - Searches the web and counts the words of results descriptions | |
* - Requires PickAll.dll (0.8.0) and AngleSharp.dll (0.14.0-alpha-787) | |
* in the script directory | |
*) | |
#r "PickAll.dll" | |
open System | |
open Microsoft.FSharp.Control |
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
// compile: go build -o alive | |
// usage: | |
// $ ps -A | rg firefox | |
// 35761 ?? 0:23.28 /Applications/Firefox.app/Contents/MacOS/firefox | |
// ./alive 35761 | |
package main | |
import ( | |
"fmt" |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
for { | |
time.Sleep(time.Second) // comment this to overload the CPU |
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
// purpose: detect process end | |
// demo: | |
// - launch firefox | |
// - launch this program | |
// - close firefox and see 'died' | |
// notes: | |
// - may need sudo on *nix systems | |
using System; | |
using System.Diagnostics; |
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
{ | |
"terminal.integrated.rendererType": "dom", | |
"python.pythonPath": "/Users/coder/.pyenv/shims/python", | |
"window.zoomLevel": 0, | |
"workbench.startupEditor": "none", | |
"[python]": { | |
"editor.rulers": [ | |
72, 79 | |
], |