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
<entryFree> | |
<quote>aduocatum</quote> | |
<num>1382</num> | |
<title>PdLw</title> | |
<biblScope unit="volume">I</biblScope> | |
<num>1</num> | |
<pc>;</pc> | |
<quote>Iohannes Amen</quote> | |
<num>1383</num> |
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" | |
func push(arr *[]int, elements... int) { | |
for i, v := range elements { | |
fmt.Println(i) | |
if len(*arr) <= 0 { | |
*arr = append(*arr, v) | |
} else { | |
a := *arr |
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
func TestTemplateCompositionStruct(t *testing.T) { | |
type Deep struct { | |
Name string | |
} | |
type M struct { | |
Deep | |
} | |
var b bytes.Buffer |
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
import ( | |
"github.com/livesession/jsxx" | |
"github.com/livesession/shared/alerts/messages" | |
) | |
func main() { | |
tpl, err := messages.SlackMessage(&messages.SlackMessageData{ | |
event: "NetError", | |
statusCode: 400, |
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
let timer = null | |
function unlock(index = 0) { | |
document.querySelectorAll("form select")[index].removeAttribute("disabled") | |
document.querySelectorAll("form button")[index].removeAttribute("disabled") | |
} | |
function submit(index) { | |
document.querySelectorAll("form button")[index].click() | |
} |
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 helloWorld() { | |
console.log("Hello World") | |
} | |
helloWorld() |
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 ( | |
"database/sql" | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/google/go-cmp/cmp" | |
"github.com/ory/dockertest/v3" | |
"testing" | |
) |
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 url = "api.example.com/images"; | |
fetch("https://blob:example.com") | |
.then((response) => response.body) | |
.then((rb) => { | |
const reader = rb.getReader(); | |
return new ReadableStream({ | |
start(controller) { | |
// The following function handles each data chunk |
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
seed(). | |
upgrade(). | |
createWebsites(createWebsitesP{blocked: true}). | |
goFreemium(). | |
freemiumTask(freemiumTaskP{mockTime: true}). | |
checkBlockedWebsites(checkBlockedWebsitesP{expect: []}) | |
stateMachine := []interface{ | |
{Name: "upgrade", Src: []string{"trial"}, Dst: "has_plan"}, | |
{Name: "goFreemium", Src: []string{"has_plan"}, Dst: "has_freemium", MiddleState: "upgrade"}, |
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/99designs/gqlgen/api" | |
"github.com/99designs/gqlgen/codegen/config" | |
"github.com/99designs/gqlgen/plugin/modelgen" | |
"os" | |
"regexp" | |
"strings" |
NewerOlder