View child-main.go
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 i := 0; i < 10; i++ { | |
time.Sleep(1 * time.Second) |
View awaiting_response.gs
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
/* | |
* This script goes through your Gmail Inbox and finds recent emails where you | |
* were the last respondent. It applies a nice label to them, so you can | |
* see them in Priority Inbox or do something else. | |
* | |
* To remove and ignore an email thread, just remove the unrespondedLabel and | |
* apply the ignoreLabel. | |
* | |
* This is most effective when paired with a time-based script trigger. | |
* |
View generics.go
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import ( | |
"io" | |
) | |
func main() { | |
fmt.Println(Show(Query[int]{10})) |
View mail.php
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
/* | |
|-------------------------------------------------------------------------- | |
| Mailer Configurations | |
|-------------------------------------------------------------------------- | |
| | |
| Here you may configure all of the mailers used by your application plus | |
| their respective settings. Several examples have been configured for | |
| you and you are free to add your own as your application requires. | |
| |
View database.yml
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
# SQLite. Versions 3.8.0 and up are supported. | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
# | |
default: &default | |
adapter: sqlite3 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
timeout: 5000 |
View responsewriter.go
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 responsewriter | |
import ( | |
"bytes" | |
"net/http" | |
"github.com/felixge/httpsnoop" | |
) | |
// Wrap the response writer |
View grammar.go
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 route | |
//go:generate peg -switch -inline grammar.peg | |
import ( | |
"regexp" | |
"github.com/kr/pretty" | |
) |
View plugin.go
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 plugin | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
"strconv" | |
) |
View index.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
// Usage: | |
// $ node index.js | |
// | |
// Code to generate this. Should be modified to auto-generate tables, columns, etc. | |
const types = [ | |
'bigint', | |
'int8', | |
'bigserial', |
View protocol.ts
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
export type API = { | |
'get /teams/:key': { | |
request: { | |
key: string | |
} | |
response: { | |
key: string | |
name: string | |
} | |
} |
NewerOlder