๐ค
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
| 1. Success(0.2) | |
| 1. Failure(scala.MatchError: 0 (of class java.lang.Integer)) | |
| 1. Failure(scala.MatchError: (of class java.lang.String)) | |
| 2. Success(0.2) | |
| 2. Success(NaN) | |
| 2. Success(NaN) | |
| 3. Success(0.2) | |
| 3. Success(NaN) | |
| 3. Success(NaN) |
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
| #!/bin/bash | |
| export PGDATABASE=${PGDATABASE:-${1:-postgres}} PGUSER=${PGUSER:-${2:-postgres}} PGHOST=${PGHOST:-localhost} | |
| echo '\dn' \ | |
| | psql -t \ | |
| | awk '/[a-z]/ && /etl/ && !/topology|tiger/ && !/_20/ && $1 != "public" {printf "%s\n",$1}' \ | |
| | while read n; do | |
| echo ${n%%_*} | |
| done \ |
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 | |
| type R int | |
| type F func(r R) R | |
| // | |
| func composer(f, g F) F { | |
| if nil == g { | |
| return f | |
| } else if nil == f { |
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
| // Note: This is _just_ an example of the versatility of Go, or, more specifically, first-class functions and duck-typing. | |
| package main | |
| import "log" | |
| type R string | |
| type E func() string | |
| // An example of a "catch" error function factory. | |
| var Failure = func(message string, callback func()) error { |
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
| .PHONY : build run | |
| run: seq | |
| ./seq Seq99.xls 2>&1 | grep -B3 B24126_036 | |
| build: seq | |
| seq: seq.go | |
| go build -o $@ |
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
| { | |
| "geocoding": { | |
| "version": "0.1", | |
| "attribution": "https://search.mapzen.com/v1/attribution", | |
| "query": { | |
| "text": "135 san lorenzo ave, coral gables, fl 33146", | |
| "parsed_text": { | |
| "name": "135 san lorenzo ave", | |
| "number": "135", | |
| "street": "san lorenzo ave", |
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
| // Basically, this allows independent chains of functions to all execute independently as goroutines | |
| // while dependencies synchronously pass their results from one routine to the next. | |
| // Surely this can be cleaned up. It was just a quick hack to toy with the concept. | |
| // The main goal which I didn't even imlpement is to allow for the cancellation of branches. | |
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "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
| app | |
| 6461f4aa65877e88485c8a0b888a579c |
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 ( | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "time" | |
| ) |
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
| .idea/ |