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
# PostgreSQL Client Authentication Configuration File | |
# =================================================== | |
# | |
# Refer to the "Client Authentication" section in the PostgreSQL | |
# documentation for a complete description of this file. A short | |
# synopsis follows. | |
# | |
# This file controls: which hosts are allowed to connect, how clients | |
# are authenticated, which PostgreSQL user names they can use, which | |
# databases they can access. Records take one of these forms: |
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
def curl_syntax(url, params=[], headers=[]): | |
print(url, params, headers) | |
from urllib.parse import urlencode | |
print('curl \\') | |
print(' --verbose \\') | |
for k in sorted(headers.keys()): | |
v = headers[k] | |
print(' --header "{}: {}" \\'.format(k, v)) | |
params_array = [] | |
for k in sorted(params.keys()): |
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
require 'java' | |
require 'JLink.jar' | |
# Java::ComWolframJlink::KernelLink | |
# http://reference.wolfram.com/mathematica/JLink/ref/java/com/wolfram/jlink/KernelLink.html | |
# http://reference.wolfram.com/mathematica/JLink/ref/java/com/wolfram/jlink/MathLink.html | |
# Java::ComWolframJlink::MathLinkException | |
# Java::ComWolframJlink::MathLinkFactory | |
# http://reference.wolfram.com/mathematica/JLink/ref/java/com/wolfram/jlink/MathLinkFactory.html |
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
<html> | |
<head> | |
<title>Trigonometry in the Unit Circle</title> | |
<style> | |
circle, line { | |
fill: none; | |
stroke: black; | |
stroke-width: 0.01; | |
} |
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
-- Prerequisites: | |
-- Boto: sudo pip install boto | |
-- Boto Config File: see https://code.google.com/p/boto/wiki/BotoConfig | |
-- Add PL Language Extensions | |
CREATE EXTENSION IF NOT EXISTS plpythonu; | |
CREATE OR REPLACE FUNCTION _s3_get(bucket text, key text) | |
RETURNS bytea AS $$ |
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 | |
git checkout master | |
git pull | |
git branch --remotes --merged | grep origin > .master_merged | |
git checkout release-staging | |
git pull | |
git branch --remotes --merged | grep origin > .staging_merged | |
diff .master_merged .staging_merged | |
rm .master_merged .staging_merged |
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 Color exposing (..) | |
import Graphics.Collage exposing (..) | |
import Graphics.Element exposing (..) | |
import Mouse | |
import Keyboard | |
import Char | |
import Signal | |
import Transform2D | |
import Time |
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" | |
"log" | |
) | |
type point struct { | |
x int | |
y int |
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" | |
"log" | |
) | |
// String Concatenation Monoid | |
var identity string = "" | |
var mappend = func(a, b string) string { |
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" | |
"log" | |
) | |
// A monoid that combines sum and count to calculate an average | |
type average struct { | |
sum int |
NewerOlder