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 / class.js
Last active August 29, 2015 13:56
JS minimal class implementation
// from http://raganwald.com/2014/01/19/prototypes-are-not-classes.html
var MovieCharacterClass = {
create: function create (firstName, lastName) {
var mc = Object.create(MovieCharacterClass.prototype);
mc.firstName = firstName;
mc.lastName = lastName;
return mc;
},
prototype: {
fullName: function fullName () {

Thanks for the very insightful recap. I hope i got it right :)

is the dependency graph manually generated or you got a tool ?

suggestions :

maybe a quick recap of the steps as intro (then details) ?

  • build the dependency tree by resolving modules dependencies from root->leaves
  • allow modules to be configured via the provider pattern and the config block, from leaf->root (up the tree ?).
@revolunet
revolunet / altai-password.py
Last active August 29, 2015 14:01
Change ALTAI routers password
# -*- encoding: UTF-8 -*-
"""
Change multiple WiFi routers password quickly
"""
import requests
ROUTER_AUTH = ('altai', 'wag')
{
"framework": "Kivy",
"url": "http://kivy.org",
"framework_current_version" : "1.8.0",
"comparison_data_last_update" : "2014-07-13",
"tutorial_url": "http://kivy.org/docs/tutorials/pong.html",
"license": "MIT",
"video_url": "http://vimeo.com/22725621",
@revolunet
revolunet / example.py
Created July 15, 2014 22:27
django CBV minimal JsonMixin
# urls.py
urlpatterns += patterns('', url('^test$', views.MyView.as_view()))
# views.py
import json
from django.http import HttpResponse
class JsonMixin(object):
@revolunet
revolunet / README.md
Last active August 29, 2015 14:04
sample utility belt readme

angular-utility-belt

My module is awesome in many ways !

Dependencies

Package Version
angular **^1
@revolunet
revolunet / docker-setup.md
Last active August 29, 2015 14:04
Docker OSX setup memo

Setup docker for OSX

Note: use phusion/baseimage instead of ubuntu

⚠️ The default boot2docker doesn't allow local mounts on OSX, seee workaround below !

Install boot2docker

boot2docker init
@revolunet
revolunet / pil-png-transparency.py
Last active August 29, 2015 14:05
Use Python+PIL to add multiple shapes transparency to a given PNG with antialiasing
# -*- encoding: UTF-8 -*-
import os
import math
from PIL import Image, ImageDraw
def crop(source, out, top_angle, bottom_angle, crop_height=None):
im = Image.open(source)
im = im.convert("RGBA")
@revolunet
revolunet / mp3toogg.js
Created September 3, 2014 23:18
mp3 to ogg
/* mp3 to ogg
this gives :
events.js:72
throw er; // Unhandled 'error' event
^
Error: only signed `32-bit` float samples are supported, got "16"
@revolunet
revolunet / pgday.txt
Created September 11, 2014 15:17
PGday postponed
A Message from PhoneGap:
Due to unforeseen circumstances, we are notifying you that we are postponing PhoneGap Day EU, until the spring. We sincerely apologize for any inconvenience this may have caused.
By postponing our event we will be able to insure that attendees get the most out of PhoneGap Day and the PhoneGap Workshops.
We are currently in the process of issuing a full refund for the ticket(s) you purchased. You should be receiving an email confirming your refund within the next 2 business days. If you paid by credit or debit card you should receive a credit on your account within 7 to 10 business days.
As soon as we open registration for the rescheduled event, we will provide you a discount code. This code will enable you to register for a 50% discount. We would also like to offer you a complementary T-shirt.