Skip to content

Instantly share code, notes, and snippets.

View philippeantoine's full-sized avatar

philippeantoine

  • Paris
View GitHub Profile
@philippeantoine
philippeantoine / index.js
Created May 1, 2018 20:16
2018-05-01-ArduinoButton
var argv = require('optimist')
.usage('Arduino deploy button')
.demand('d')
.describe('d', 'project directory')
.argv
var five = require("johnny-five")
var spawn = require('child_process').spawn
var board = new five.Board()
var dir = argv.d
security find-generic-password -ga "yourwifiSSID" | grep "password:"

Keybase proof

I hereby claim:

  • I am philippeantoine on github.
  • I am philippeantoine (https://keybase.io/philippeantoine) on keybase.
  • I have a public key whose fingerprint is 3FA7 8CC4 D412 7779 A058 8755 B8BA 4E62 B4A9 062F

To claim this, I am signing this object:

$social: (twitter, $Twitter),
(facebook, $FB),
(googleplus, $GPlus),
(linkedin, $LinkedIn);
@each $socialnetwork, $color in $social {
.social-link--#{$socialnetwork} {
background-color: $color;
&:focus,
<!doctype html>
<html>
<head><meta charset="UTF-8"><title>gist jsbin test</title></head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<g>
<path d="M17.916,11.605h27.348V2.697h10.475v8.908h32.035v22.621H17.916L6.172,22.912L17.916,11.605z M55.08,97.303H44.596V73.057 H55.08V97.303z M82.094,68.117H12.227V45.496H44.93v-6.908h10.484v6.908h26.68l11.734,11.306L82.094,68.117z"/>
</g>
</svg>
<!doctype html><head><meta charset="UTF-8">
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
</head><body>
<form name="f">
<!-- when I click on the a link, I get the file input popup -->
<p><a id="ok" class="btn span1"><i class="icon-plus-sign"></i> PASS</a>
<input type="file" name="fileok">
@philippeantoine
philippeantoine / tetris.html
Created April 20, 2012 13:16
Tetris #devoxxfr
<!doctype html><html>
<head><meta charset="UTF-8"><title>Tetris</title></head>
<body>
<pre id='game'></pre>
<script>
var tetris = {
empty:0,board:0,block:0,position:0,offset:0,
init: function(){
this.empty = 1<<30;
this.board = this.empty;
@philippeantoine
philippeantoine / pacman.html
Created March 22, 2012 19:31
2012-03-23 codingdojo pacman
<!doctype html><html><head><meta charset=UTF-8><title>pcmn</title>
<script src="http://code.jquery.com/qunit/git/qunit.js"></script></head><body>
<pre id='game'></pre>
<script>
String.prototype.replaceAt=function(index, char) {
@philippeantoine
philippeantoine / Tetris.html
Created February 15, 2012 21:09
2012-02-15 codingdojo tetris
<!doctype html><html><head><meta charset="UTF-8"><title>Tetris</title></head>
<body>
<pre id='game'></pre>
<script>
var tetris = {
empty:0,board:0,block:0,position:0,offset:0,
binary: function(i){
return (i).toString(2);
},
init: function(){