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
[remi] | |
name=Les RPM de remi pour Enterprise Linux 6 - $basearch | |
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ | |
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror | |
enabled=0 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi | |
[remi-php55] | |
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch |
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 | |
$f = fopen("data.txt", "r"); | |
fread($f, 10); | |
fread($f, 10); | |
// Run with: strace -e trace=read php test2. | |
/* |
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
foo: | |
default_endpoint: endpoint_1 # this endpoint *must* be defined inside the endpoints array | |
endpoints: | |
- name: endpoint_1 | |
value: some_endpoint_1_data | |
- name: endpoint_2 | |
value: some_endpoint_2_data | |
- name: endpoint_3 | |
value: some_endpoint_3_data |
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 | |
namespace NoxLogic\DemoBundle\Form\Type; | |
use Doctrine\ORM\EntityManager; | |
use NoxLogic\DemoBundle\Entity\Province; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; |
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
Python 2.7.3 (default, Jan 2 2013, 16:53:07) | |
[GCC 4.7.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> s = "foo" | |
>>> type(s) | |
<type 'str'> | |
>>> class mys(str) : | |
... i = 4; | |
... | |
>>> type(s) |
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 foo { | |
public function f1() { | |
print("F1: ".get_class($this). "\n"); | |
} | |
public function f2() { | |
$this->f1(); | |
} | |
public function f3() { |
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
import io; | |
class foo { | |
public method f1() { | |
io.print("F1: ",self.__name(), "\n"); | |
} | |
public method f2() { | |
self.f1(); | |
} | |
public method f3() { |
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
class A | |
m1 | |
m2 | |
m3 | |
class B extends A class C extends A | |
m1' m6 | |
m4 | |
m5 |
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
How do we create a game? | |
Could it be (simply) javascript like system? In such a way that we can interact with a game engine where we add our stuff? | |
something like (don't mind the horrible JS code) : | |
game = new Game.Game("my game name", { | |
boxed_game : true | |
playing_field : [ 51.5, -0.9, 51.6, -0.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
import io; | |
class foo { | |
public method bar() { | |
try { | |
io.print("try\n"); | |
return "1"; | |
} catch (exception e) { | |
io.print("exception\n"); |