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
<?php | |
$info = | |
IntroducedInfoBuilder::aNewIntroducedInformation() | |
->onPage("empresas") | |
->toBeSentTo("[email protected]") | |
->build(); | |
$info->sendByEmailAndRedirect(new Form($_POST)); |
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
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]; |
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
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) { |
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
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( |
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
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; |
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
<?php | |
class Sanitizer | |
{ | |
public static function sanitizeString($str) | |
{ | |
$str = stripSlashes($str); | |
$str = htmlentities($str); | |
return strip_tags($str); | |
} |
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
sudo vi /etc/php.ini | |
sudo /sbin/service httpd restart |
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
<?php | |
class CoursesController | |
{ | |
private $coursesView; | |
private $courseCategoriesRepository; | |
private $courseProgramsRepository; | |
private $coursesToViewData; | |
public function __construct( |
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
sudo apt-get install nfs-kernel-server |
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
(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") |