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 a | |
import "fmt" | |
type Sayer interface { | |
Say() string | |
} | |
type Formal struct{} |
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
CREATE EXTENSION plv8; | |
CREATE OR REPLACE FUNCTION verify_google_jwt(jwt_token TEXT) | |
RETURNS JSONB | |
LANGUAGE plv8 IMMUTABLE STRICT | |
AS $$ | |
function logerror(msg) { | |
plv8.elog(ERROR, msg); | |
} |
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
BEGIN; | |
CREATE TABLE dwh.d_date | |
( | |
date_key CHAR(10) PRIMARY KEY NOT NULL, | |
full_date DATE NOT NULL | |
); | |
CREATE UNIQUE INDEX d_date_full_date_uindex ON dwh.d_date (full_date); | |
INSERT INTO dwh.d_date |
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 java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.PipedInputStream; | |
import java.io.PipedOutputStream; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; |
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
apiVersion: v1 | |
data: | |
# Docker for Mac uses vpnkit to handle LoadBalancer ingresses, but it doesn't show an external IP, so the default | |
# ArgoCD health check for the ingress service doesn't show as Healthy. This custom health check fixes that issue. | |
resource.customizations: | | |
extensions/Service: | |
health.lua: | | |
hs = {} | |
hs.status = "Progressing" | |
if obj.status ~= nil then |
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
#!/bin/bash | |
usage () | |
{ | |
cat <<UsageHERE | |
boot2docker-fwd -- Helper function to quickly manage port forwards between the boot2docker-vm and the host | |
Usage: boot2docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT | |
or boot2docker-fwd -d RULE_NAME | |
or boot2docker-fwd -l | |
or boot2docker-fwd -A |
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
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col) } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
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 ( | |
ui "github.com/gizak/termui" // use ui as an alias | |
"strconv" | |
"fmt" | |
"math/rand" | |
"container/ring" | |
) |
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
name: Handle the data changed event | |
description: This snippet shows how to register a handler for the data-changed event. | |
author: deinspanjer | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#setup").click(() => tryCatch(setup)); | |
$("#register-data-changed-handler").click(() => tryCatch(registerDataChangedHandler)); |
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
name: Create a table | |
description: Creates a table with four columns and seven rows. | |
author: deinspanjer | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#create-table").click(createTable); | |
$("#delete-rows").click(deleteRows); |
NewerOlder