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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Polymer Rails Example</title> | |
<link rel="import" href="../polymer/polymer.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
</head> | |
<body> | |
<paper-button raised>Fancy</paper-button> |
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 Sort = function() | |
{ | |
this.data = []; // end point of the data | |
this._initOrder = []; // Objects in order of initialization for cache optimazation | |
this._filters = {}; | |
this._sorts = {}; | |
} |
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({ |
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
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
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
(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 | |
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
{ | |
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
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) | |
{ |
OlderNewer