Skip to content

Instantly share code, notes, and snippets.

View revolunet's full-sized avatar
🐫
Killing bugz

Julien Bouquillon revolunet

🐫
Killing bugz
View GitHub Profile
@revolunet
revolunet / mecurial.md
Last active August 29, 2015 14:06
Mercurial+GIT memo with github

HG + GIT

Say you must use a mercurial but want to fork it on github.

  • Create a bitbucket account and fork the mercurial repo
  • Create a new github projet with the same name
  • Install hg-git : https://github.com/schacon/hg-git
  • Commit with mercurials command
  • just use hg push github to send the changes to github
@revolunet
revolunet / rpi-tricks.md
Last active August 29, 2015 14:07
some raspberrypi tricks

launch omxplayer at startup and loop

add this to /etc/rc.local

clear
omxplayer /path/to/video.avi --loop --video_fifo 1 --video_queue 1 --no-osd --no-keys > /dev/null

launch a script at startup in a screen

@revolunet
revolunet / open-webinspector.applescript
Last active August 29, 2015 14:07 — forked from Thinkscape/open-webinspector.applescript
Ouvrir automatiquement Safari web inspector avec cordova run (french version)
#!/usr/bin/osascript
#
# ajouter ce script dans .cordova/hooks/after_run/safari-webinspector.applescript
# le rendre executable avec un chmod +x
#
# lancer l'app avec par exemple : cordova run ios --target="ipad"
#
# Name of the device as visible in Safari->Develop menu
<!DOCTYPE html>
<html ng-app="demo">
<head>
<script src='http://rawgithub.com/jeremyckahn/shifty/master/dist/shifty.js'></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background: #ccc;
@revolunet
revolunet / rainbowpen.md
Last active August 29, 2015 14:07
fhacktory Rainbow Pen

Fhacktory 19/10/2014

Rainbow pen

@Mauriz & @damienromito

Wireless RGB led pen connected to iPad games via bluetooth

Cool for kids games :

@revolunet
revolunet / ngFactory.md
Last active August 29, 2015 14:07
ngFactory

ng-factory

Angular components dev workflow on fire

ng-factory aim is to give you an upgradable dev workflow so can focus on building stuff.

You keep the same workflow and documentation for all your components and applications.

Features

@revolunet
revolunet / mixin.js
Created December 9, 2014 13:20
react eventemitter (not working)
var EventEmitter = require('events').EventEmitter;
var EventEmitterMixin = function () {
var events = new EventEmitter();
//return events;
return {
on: events.on,
emit: events.emit
};
};
@revolunet
revolunet / index.html
Created December 23, 2014 02:07
React startup // source http://jsbin.com/gebopo
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-with-addons-0.12.0.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.12.2/JSXTransformer.js"></script>
<meta charset="utf-8">
<title>React startup</title>
</head>
<body>
@revolunet
revolunet / angular-react.js
Last active August 29, 2015 14:14
Angular+react without watchers
/*
<my-ng-react component="MyReactComponent" props="myProps"></my-ng-react>
*/
'use strict';
var React = require('react');
angular.module('xxx.react', [])

Play / Pause CSS3 Transition

Using CSS3, with help from Shak Dizzle, manage come up with a different icon transition, can be handy for web app's handling with multimedia such as audio and video.

A Pen by Paul Stewart on CodePen.

License.