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
import io;
class foo {
public method bar() {
try {
io.print("try\n");
return "1";
} catch (exception e) {
io.print("exception\n");
@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 ],
class A
m1
m2
m3
class B extends A class C extends A
m1' m6
m4
m5
import io;
class foo {
public method f1() {
io.print("F1: ",self.__name(), "\n");
}
public method f2() {
self.f1();
}
public method f3() {
<?php
class foo {
public function f1() {
print("F1: ".get_class($this). "\n");
}
public function f2() {
$this->f1();
}
public function f3() {
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)
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
[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
{
"name": "jaytaph/sec",
"require": {
"symfony/security": "2.5.x"
},
"autoload" : {
"psr-0" : { "Noxlogic" : "vendor" }
},
"authors": [
{
@jaytaph
jaytaph / .gitconfig
Created November 21, 2014 21:19
.gitconfig
[color]
diff = auto
status = auto
branch = auto
[core]
whitespace = ignore-all-space
autocrlf = input
excludesfile = /home/jthijssen/.gitignore_global
pager = less -R -X