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
{ | |
"name": "duodraco/interconphp-todo", | |
"description": "Repository for InterconPHP Challenge", | |
"minimum-stability": "stable", | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Anderson Casimiro", | |
"email": "o@duodra.co" | |
} |
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
#!/bin/bash | |
#install ubuntu 14.04 server, LAMP + Openssh server stacks | |
echo '# 2nd networkcard' >> /etc/network/interfaces | |
echo 'auto eth1' >> /etc/network/interfaces | |
echo 'iface eth1 inet dhcp' >> /etc/network/interfaces | |
/etc/init.d/networking restart | |
ifup eth1 | |
apt-get update && apt-get upgrade | |
#reboot |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<?php echo <<<VIRUS | |
Os dados do seu HD estão sendo apagados<br/><hr/> | |
Para evitar que este vírus destrua seus dados, clique com o botão direito do mouse no seu drive C:\ e clique em formatar. Isso reverterá o processo | |
VIRUS; |
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
<?php | |
namespace MyApp; | |
class HtmlHandler implements ViewHandler | |
{ | |
public function __invoke(Response $response) | |
{ | |
foreach ($response->getHeaders() as $header) | |
header($header); |
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
<?php | |
namespace MyApp; | |
class HtmlHandler implements ViewHandler | |
{ | |
public function __invoke(Response $response) | |
{ | |
foreach ($response->getHeaders() as $header) | |
header($header); |
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
<?xml version="1.0"?> | |
<project name="myChuckProject" basedir="." default="helloworld"> | |
<target name="helloworld"> | |
<echo msg="Hello Phing!"/> | |
</target> | |
</project> |
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
<?xml version="1.0"?> | |
<project basedir="." default="start"> | |
<property file="build.properties" /> | |
<target name="start" depends="cleanup,dirs,bootstrap,frontcontroller" /> | |
<target name="cleanup"> | |
<delete dir="application" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="vendor" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="tests" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="web" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="log" includeemptydirs="true" verbose="false" failonerror="true" /> |
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
project.name=LeProject | |
vendor=Duodraco | |
version=0.0.1 | |
lista.generica=a,b,c |
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
<?php | |
namespace Community; | |
use Location\SaoPaulo; | |
$you = new User(); | |
$phpsp = new Community( | |
new SaoPaulo() | |
); | |
$phpsp->welcome($you); |
OlderNewer