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
install: | |
npm install | |
upload: | |
# sync all the files | |
rsync -rav -e ssh --delete --exclude-from config/exclude.txt . root@dev.orbit.al:~/spoticka | |
deploy: upload | |
# run the remote commands | |
ssh -t root@dev.orbit.al "cd ~/spoticka && bash config/deploy.sh" |
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
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 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 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 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 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 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 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 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
// structure is an immstruct | |
// App is an omniscient component | |
var Main = page(structure, function(params) { | |
loadSomething(params.id, structure.cursor()) | |
return function() { | |
return App(structure.cursor()) | |
} | |
}) |
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
module Euler where | |
import Control.Monad | |
import Data.List | |
import Data.Numbers.Primes | |
{- | |
https://projecteuler.net/problem=12 |
OlderNewer