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
fizzbuzz(100):- | |
write_ln('Buzz'). | |
fizzbuzz(N):- | |
(0 is N mod 3, | |
0 is N mod 5, | |
write_ln('FizzBuzz'); | |
0 is N mod 3, | |
write_ln('Fizz'); | |
0 is N mod 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
%!TEX encoding = UTF-8 Unicode | |
% Define document class, font size and paper format | |
\documentclass[a4paper,12pt]{article} | |
% Set languages and encoding | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage[american, norsk]{babel} | |
\usepackage[babel]{csquotes} |
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
class NumeralRomanConverter | |
def initialize | |
@romanTable = [ ["I","IV","V","IX"], | |
["X","XL","L","LC"], | |
["C","LC","D","CM"], | |
["M"]] | |
end | |
def numeralToRoman(numeralValue) | |
numberAsString = numeralValue.to_s |
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.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.JSON'), | |
watch: { | |
files: ['src/**/*.coffee', 'test/**/*.coffee', "app.coffee"], | |
task: ['coffeelint'] | |
}, | |
coffeelint: { |
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
class Animal | |
constructor: (@name) -> | |
@mouth = new Mouth() | |
@mouth.on("woof", @woof) | |
this | |
woof: () -> | |
@mouth.woof() | |
class Mouth |
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
\begin{thenomenclature} | |
\nomgroup{A} | |
\item [{\makefirstuc {CTC}}]\begingroup Compact Trie Clustering\nomeqref {5.0} \nompageref{57} \item [{\makefirstuc {GA}}]\begingroup Genetic Algorithm\nomeqref {4.0} \nompageref{32} | |
\end{thenomenclature} |
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 | |
########################################### | |
# I heart Ubuntu 64 bits | |
# | |
# Installs various useful software: | |
# Please copy to your home folder, right click | |
# and check "executable" under permissions tab | |
# and run by typing: | |
# sudo ~/ubuntusoftwareinstaller.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
ghost: | |
image: ghost:latest | |
ports: | |
- "2368" | |
environment: | |
- "NODE_ENV=production" | |
- "VIRTUAL_HOST=yourhostname.example" | |
volumes: | |
- /srv/ghost:/var/lib/ghost |
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
nginx: | |
image: nginx:latest | |
volumes: | |
- /tmp/nginx:/etc/nginx/conf.d | |
- /srv/nginx/certs:/etc/nginx/certs | |
ports: | |
- "80:80" | |
#- "443:443" Only add if you want ssl | |
dockergen: |
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 webdriverio = require('webdriverio'), | |
moment = require('moment'); | |
var options = { | |
desiredCapabilities: { | |
browserName: 'firefox' | |
} | |
}; | |
var password = process.env.FACEBOOK_PASSWORD, | |
email = process.env.FACEBOOK_EMAIL, |
OlderNewer