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
\documentclass[oneside,11pt]{book} | |
\usepackage[a4paper,top=40mm,bottom=40mm,left=61mm,right=61mm,,headheight=0in]{geometry} | |
\usepackage{lettrine} | |
\usepackage[final]{microtype} | |
\directlua{} | |
\usepackage{fontspec} | |
\usepackage{xspace} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% babel for the Hebrew |
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
* |
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
# .NET Core 2.1 with Ubuntu Server 18.04 - Version 1.0 - ami-f4f4cf91 | |
sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) | |
sudo apt-get update | |
sudo apt-get install make m4 gcc zip aspcud emacs libssl-dev ncurses-dev pkg-config tuareg-mode libffi-dev bubblewrap linux-tools-common linux-tools-aws | |
opam init | |
eval $(opam env) | |
opam install ocamlfind core async async_ssl cohttp yojson ppx_deriving ocp-indent merlin cohttp-async |
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
APPDIRS := $(wildcard apps/*) | |
## Example hack to filter one out: | |
## APPDIRS := $(filter-out apps/fooapp, $(APPDIRS)) | |
define PROXY_TARGET | |
$(1): | |
$(foreach appdir,$(APPDIRS),$(MAKE) -C $(appdir) $(1) ;) | |
endef |
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
/* | |
Code of "Dark Bleu" game from www.lessmilk.com/10/ | |
Made with Phaser Javascript framework | |
Note: the is the main source code. I skiped the boring part (preloading the assets, and the menus) | |
*/ | |
/* | |
Programming and art made by www.lessmilk.com | |
You can freely look at the code below, |
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
from bottle import route, run, static_file, request, abort, redirect, view, template | |
import re | |
# Serve a static html with templates | |
# Create an index.tpl and save it in /views | |
''' | |
#Sample index.tpl | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="/static/styles.css" /> |
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
def translate_into_pig_latin(word) | |
if word[0] == "a"|| word[0]== "e" || word[0] == "i"|| word[0] == "u" || word[0] == "o" | |
word+"ay" | |
elsif (word[0] != "a"|| word[0] != "e" || word[0] != "i"|| word[0] != "u") && (word[1] == "a" || word[1] == "o" || word[1] == "e" || word [1] == "i" || word[1] == "u") && word[0..1] != "qu" | |
word[1..-1]+word[0]+"ay" | |
elsif (word[0] != "a"|| word[0] != "e" || word[0] != "i"|| word[0] != "u") && (word[1] != "a" || word[1] != "o" || word[1] != "e" || word [1] != "i" || word[1] != "u") | |
word[2..-1]+word[0..1]+"ay" | |
elsif word[0..1]="qu" | |
word[2..-1]+"quay" | |
else |
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
#!/usr/bin/env python | |
import pika | |
import sys | |
from optparse import OptionParser | |
def run(): | |
p = OptionParser() | |
p.add_option("--hostname", dest="hostname", | |
default="localhost", help="Hostname of AMQP endpoint") |