QuickCheck
is a language for stating properties of programs.
?FORALL(X, nat(), X*X >= 0)
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
require 'rubygems' | |
require 'yaml' | |
# A demonstration of YAML anchors, references and handling of nested values | |
# For more info, see: | |
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
stooges = YAML::load( File.read('stooges.yml') ) | |
# => { | |
# "default" => { |
This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.
For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai
<?php | |
namespace Widop\Mink\Extension; | |
/** | |
* Dictionary to manage popups. | |
* | |
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com> | |
*/ | |
trait PopupDictionary |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"
#!/bin/sh | |
command=${1:-"help"} | |
SELENIUM_VERSION="2.39.0" | |
NODE_OPTIONS="-browser browserName=phantomjs" | |
download() { | |
[ -f selenium-server-standalone.jar ] || wget http://selenium.googlecode.com/files/selenium-server-standalone-${SELENIUM_VERSION}.jar -Oselenium-server-standalone.jar | |
} |
" Vim syntax file | |
" Language: Jade | |
" Filenames: *.jade | |
" Ported from tvim-haml - https://github.com/tpope/vim-haml | |
" For use with Jade - http://jade-lang.com/ | |
" Now maintained at: https://github.com/statianzo/vim-jade | |
if exists("b:current_syntax") | |
finish | |
endif |
MARKDOWN_SRC:=$(shell find doc -name '*.md') | |
DIAGRAM_SRC:=$(shell find doc -name '*.plantuml') | |
MARKDOWN_FORMAT=markdown+fenced_code_blocks+fenced_code_attributes+grid_tables+footnotes | |
# Order is significant when multiple CSS files | |
CSS_SRC:=styles/style.css | |
SITE_HTML=$(MARKDOWN_SRC:doc/%.md=out/site/%.html) $(DIAGRAM_SRC:doc/%.plantuml=out/site/%.png) | |
SITE_CSS=$(CSS_SRC:styles/%=out/site/%) |
<?php | |
trait TestTrait | |
{ | |
public function getKernel() | |
{ | |
} | |
} | |
class BaseTest |