Skip to content

Instantly share code, notes, and snippets.

View philippeantoine's full-sized avatar

philippeantoine

  • Paris
View GitHub Profile
@philippeantoine
philippeantoine / contenteditable.html
Created September 30, 2010 15:17
styleeditable
<!doctype html><html contenteditable="">
<head><meta charset="UTF-8">
<style>head,style{display:block}</style>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta charset="UTF-8" /></head>
<body>
<svg xmlns="http://www.w3.org/2000/svg">
<rect width="100px" height="100px" />
</svg></body></html>
@philippeantoine
philippeantoine / gauge.html
Created October 6, 2010 11:30
fullthrottle
<!DOCTYPE html><html>
<head><meta charset="utf-8"/><style>#viz{width:200px;height:100px;}</style></head>
<body><div id="viz"></div>
<input type="range" oninput="drawVisualization()">
<script src="http://www.google.com/jsapi"></script>
<script>
google.load('visualization', '1', {packages: ['gauge']});
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Label');
<!doctype html><html>
<head><meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<title>Unit</title></head>
<body>
<h1>Unit</h1>
<p>With
<ul>
<li>Generated Content: .class { content:"my text"; color:"red"; }
@philippeantoine
philippeantoine / gitconfig
Created October 12, 2010 11:23
config git
git config --global http.sslVerify false
git config --global http.proxy http://login:pass@proxy:8080/
test :
git config --list
set PATH=C:\bin\ruby-1.8.7-p299-i386-mingw32\bin;C:\bin\PortableGit\bin;%PATH%
set HOME=C:\atelier
set HOMEDRIVE=C:
@philippeantoine
philippeantoine / kataboids.html
Created October 27, 2010 19:19
2010-10-27 codingdojo boids
<!doctype html>
<html>
<head>
<script src="raphael.js"></script>
<style>body{width:400px;margin:auto;font-family:monospace}</style>
</head>
<body id="test">
<div id="boids"></div>
<script>
var b={x:0,y:0};
@philippeantoine
philippeantoine / puissance4 randori.java
Created April 4, 2011 21:37
2011-04-04 codingdojo puissance4 randori
package dojo.kata;
import java.util.List;
public class Puissance4 {
public Object solve(List<List<Integer>> grid) {
boolean cpt = false;
int r=0;
int c=0;
<!doctype html><html>
<head><meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<title>HTML Template</title></head>
<body><h1>HTML template</h1>
<p>Text.</p>
<table>
<thead>
@philippeantoine
philippeantoine / prefixes.html
Created February 13, 2012 11:15
prefixes.js
<!doctype html>
<html><meta charset="UTF-8"><head><title>prefixes</title></head>
<body>
<p>prefixes</p>
<style>
p{
-beta-transform: scaleY(2);
-alpha-text-stroke: 1px grey;
font: 25px sans-serif;
}
@philippeantoine
philippeantoine / Tetris.html
Last active September 30, 2015 15:58
Tetris
<!doctype html><html><head><meta charset="UTF-8"><title>Tetris</title></head>
<body><pre></pre><script>
var ttrs = { board: 0, block: 3, position: 32, offset: 0, layer: 0, speed: 1000, size: 32,
play: function(){
this.position += this.offset;
if ( this.bottom() || this.bang() ) {
this.position -= this.offset;
this.board = this.merge();
this.board = this.clear();
this.block = this.random();