- Organizing larger applications
- Domain logic shouldn’t include handlers for bad/unclean data.
- validateur, bouncer, clj-schema for checking data going into the pipeline.
- domain-specific, semantic checks
- TODO: Any better ways for doing this conditional validation.
- Need to factor out common data cleaning utils into shared library.
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
CHRUBY_VERSION="0.3.8" | |
RUBIES=() | |
for dir in "$PREFIX/opt/rubies" "$HOME/.rubies"; do | |
[[ -d "$dir" && -n "$(ls -A "$dir")" ]] && RUBIES+=("$dir"/*) | |
done | |
unset dir | |
function chruby_reset() | |
{ |
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
# This is a programming chellenge from David Bock's series | |
# "What Computer Scientists Know". This is a problem that can | |
# be used to discuss a bunch of computer science topics, but | |
# as I'm providing most of the skeleton of the solution, the | |
# point of this exercise is to demonstrate 'recursive backtracking'. | |
# http://en.wikipedia.org/wiki/Backtracking | |
# this problem is based on the classic 'triange peg game', a common | |
# sight in roadside diners in America, in particular, Cracker |
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
require 'spec_helper' | |
describe DashboardController do | |
include Factories::Godzilla | |
shared_examples "successfully gets the session cards" do | |
it "is successful" do | |
get :session_cards |
This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.
We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.
NewerOlder