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 * as aws from "@pulumi/aws"; | |
import * as k8s from "@pulumi/kubernetes"; | |
import * as pulumi from "@pulumi/pulumi"; | |
export type SetupRoute53ZoneArgs = { | |
zone: aws.route53.Zone; | |
zoneUserKey: aws.iam.AccessKey; | |
namespace: string; | |
domain: 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
// origin: https://gist.github.com/tomhicks/6cb5e827723c4eaef638bf9f7686d2d8 , tomhicks/plink-plonk.js | |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ |
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
public class ApiCall<POSTDATATYPE, POSTRESPONSETYPE, GETRESPONSETYPE> | |
where POSTDATATYPE:class | |
where POSTRESPONSETYPE:class | |
where GETRESPONSETYPE:class | |
{ | |
public string endpoint; | |
public EntrailsApi api; | |
public ApiCall(string endpoint, EntrailsApi api) | |
{ |
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
{ | |
allowUnfree = true; | |
packageOverrides = pkgs_: with pkgs_; { | |
pyth = with pkgs; buildEnv { | |
name = "pyth"; | |
paths = [ | |
# python35 | |
# python35Packages.psycopg2 |
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
main = do | |
let myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 3, 3, 4, 7] | |
putStrLn $ show myList | |
putStrLn $ show $ myLast myList | |
putStrLn $ show $ myButLast myList | |
putStrLn $ show $ elementAt myList 3 | |
putStrLn $ show $ myLength myList | |
putStrLn $ show $ myReverse myList | |
putStrLn $ show $ isPalindrome myList | |
putStrLn $ show $ flatten (List [Elem 1, List [Elem 2, List [Elem 3, Elem 4], Elem 5]]) |
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
(defun fib (n) | |
(loop repeat n | |
with p = 0 with q = 1 | |
do(psetq p q | |
q (+ p q)) | |
collect q | |
) | |
) | |
(print (last (fib 1000))) |
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
main = do | |
putStrLn . show . last . fib' $ 30000 | |
putStrLn . show $ move 4 1 2 3 | |
fib :: (Eq a, Num a) => a -> a | |
fib 0 = 0 | |
fib 1 = 1 | |
fib n = fib (n-1) + fib (n-2) | |
fib' :: (Eq a, Num a) => a -> [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
main = do | |
let myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 3, 3, 4, 7] | |
putStrLn $ show myList | |
putStrLn $ show $ myLast myList | |
putStrLn $ show $ myButLast myList | |
putStrLn $ show $ elementAt myList 3 | |
putStrLn $ show $ myLength myList | |
putStrLn $ show $ myReverse myList | |
putStrLn $ show $ isPalindrome myList | |
putStrLn $ show $ flatten (List [Elem 1, List [Elem 2, List [Elem 3, Elem 4], Elem 5]]) |
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
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var shell = require('gulp-shell'); | |
gulp.task('serve', function(){ | |
browserSync({ | |
proxy: 'dev.rijndam.nl', | |
open: true, | |
notify: false |
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
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var shell = require('gulp-shell'); | |
var php = require('gulp-connect-php'); | |
gulp.task('serve', function(){ | |
php.server({ base: 'build', port: 4242, keepalive: true}); | |
browserSync({ |
NewerOlder