Skip to content

Instantly share code, notes, and snippets.

WITH
flights AS (
SELECT
DATE(event_at) AS dt,
COUNT(*)
FROM
`reporting.flight_allocations`
WHERE
event_at > "2020-04-25"
GROUP BY
#!/bin/bash -x
ARGS=$(ls /etc/spark/conf | grep -v "[a-z]")
for i in ${ARGS}
do
envvar=$(cat "/etc/spark/conf/${i^^}" | tr "-" "_")
if [ "${envvar}" != "" ]
then
export ${i^^}="${envvar}"
fi
package testing
import (
"context"
"database/sql"
"log"
"os"
"sync"
txdb "github.com/DATA-DOG/go-txdb"
package main
import (
"fmt"
"strings"
"time"
)
func main() {
nextWeekStart := time.Now()
package cmds
import (
"context"
"encoding/json"
"errors"
"fmt"
"strings"
d "github.com/opensimsim/utilities/database"
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="andyblessington"
# ZSH_THEME="avit"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15696373581886292</real>
// Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.
// Example:
// Given a = 1 and b = 2, return 3.
package main
func getSum(a int, b int) int {
}
package cmds
import (
"context"
"strings"
"time"
"github.com/jinzhu/gorm"
"github.com/opensimsim/api-v3/errors"
package main
import (
"strings"
"testing"
)
func BenchmarkFib10(b *testing.B) {
// run the Fib function b.N times
var c = "abcdefghijklmnopqrstuvwxyz"