Skip to content

Instantly share code, notes, and snippets.

View jaytaph's full-sized avatar
:shipit:
Calculating pi

Joshua Thijssen jaytaph

:shipit:
Calculating pi
View GitHub Profile
[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
<?php
$f = fopen("data.txt", "r");
fread($f, 10);
fread($f, 10);
// Run with: strace -e trace=read php test2.
/*
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
<?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;
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)
<?php
class foo {
public function f1() {
print("F1: ".get_class($this). "\n");
}
public function f2() {
$this->f1();
}
public function f3() {
import io;
class foo {
public method f1() {
io.print("F1: ",self.__name(), "\n");
}
public method f2() {
self.f1();
}
public method f3() {
class A
m1
m2
m3
class B extends A class C extends A
m1' m6
m4
m5
@jaytaph
jaytaph / gameengine.txt
Last active August 29, 2015 13:56
game framework
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 ],
import io;
class foo {
public method bar() {
try {
io.print("try\n");
return "1";
} catch (exception e) {
io.print("exception\n");