This file contains hidden or 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
[ | |
{ | |
"date": "2014-10-20T14:54:20.263Z", | |
"diff": { | |
"department": "AAA", | |
"learningUnits": 5, | |
"name": "Big Bad Course", | |
"number": "109" | |
}, | |
"version": 0 |
This file contains hidden or 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
(ns svg.core | |
(:require [goog.dom :as dom])) | |
(enable-console-print!) | |
(println "Hello world!") | |
(defn main [] | |
(let [root-view (dom/getElement "root")] | |
(.log js/console root-view) |
This file contains hidden or 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
macro export { | |
rule { var $x } => {var $x = exports.$x} | |
rule { function $x } => {exports.$x = function $x} | |
} | |
export export |
This file contains hidden or 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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import qualified Web.Scotty | |
import Web.Scotty.Trans | |
import Data.Text.Lazy | |
import Courses.Course | |
import Courses.Connection | |
import Control.Monad.IO.Class (liftIO) |
This file contains hidden or 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 _ = require('lodash') | |
export interface ModalConfig { | |
modalUrl:string; | |
state:string; | |
} | |
export interface Modal { | |
modalUrl: string; | |
state: string; |
This file contains hidden or 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
fib 0 = 0 | |
fib 1 = 1 | |
fib n = fib (n-1) + fib (n-2) |
This file contains hidden or 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
description 'Hint of Print API' | |
start on runlevel [2345] | |
stop on runlevel [06] | |
limit nofile 10000 15000 | |
respawn | |
respawn limit 5 5 | |
env NODE_ENV=production | |
env PORT=80 | |
chdir /root/hintprint | |
exec /usr/bin/node server/api.js >> /var/log/hintprint-api.log 2>&1 |
This file contains hidden or 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
install: | |
npm install | |
upload: | |
# sync all the files | |
rsync -rav -e ssh --delete --exclude-from config/exclude.txt . [email protected]:~/spoticka | |
deploy: upload | |
# run the remote commands | |
ssh -t [email protected] "cd ~/spoticka && bash config/deploy.sh" |
This file contains hidden or 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 http = require('http'); | |
// http.createServer(function(req, res) { | |
// // console.log("REQUEST", req) | |
// var body = "" | |
// req.on('data', function(data) { | |
// body = body + data.toString() | |
// }) | |
// req.on('end', function() { | |
// console.log("COMPLETE", JSON.parse(body)) |
This file contains hidden or 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
console.log("HI") | |
// while pressed, | |
var KEY_UP = 38 | |
var KEY_DOWN = 40 | |
var KEY_RIGHT = 39 | |
var KEY_LEFT = 37 | |
var STOP = 0; |