Skip to content

Instantly share code, notes, and snippets.

<?php
$info =
IntroducedInfoBuilder::aNewIntroducedInformation()
->onPage("empresas")
->toBeSentTo("[email protected]")
->build();
$info->sendByEmailAndRedirect(new Form($_POST));
package com.adaptionsoft.games.uglytrivia;
import java.util.ArrayList;
import java.util.LinkedList;
public class Game {
ArrayList players = new ArrayList();
int[] places = new int[6];
int[] purses = new int[6];
boolean[] inPenaltyBox = new boolean[6];
package com.adaptionsoft.games.uglytrivia;
public class Game {
private Rules rules;
private Players players;
private Player currentPlayer;
private Turn turn;
public Game(Players players, Rules rules, Turn turn) {
package com.adaptionsoft.games.trivia;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
public class StandardOutputRedirection {
private ByteArrayOutputStream newOut;
private PrintStream old_out;
public StandardOutputRedirection(
package com.adaptionsoft.games.trivia;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.util.Random;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
<?php
class Sanitizer
{
public static function sanitizeString($str)
{
$str = stripSlashes($str);
$str = htmlentities($str);
return strip_tags($str);
}
sudo vi /etc/php.ini
sudo /sbin/service httpd restart
<?php
class CoursesController
{
private $coursesView;
private $courseCategoriesRepository;
private $courseProgramsRepository;
private $coursesToViewData;
public function __construct(
@trikitrok
trikitrok / intallNFS.sh
Created May 12, 2014 13:28
Install nfs on Ubuntu
sudo apt-get install nfs-kernel-server
(ns fizz_buzz.t-core
(:use midje.sweet)
(:use [fizz_buzz.core]))
(facts "About fizz-buzz-number"
(fact "A number that is not a multiple of
neither 3 nor 5
is turned into a string"
(fizz-buzz-number 1) => "1"
(fizz-buzz-number 2) => "2")