Skip to content

Instantly share code, notes, and snippets.

View k33g's full-sized avatar
💭
Read my code at https://gitlab.com/k33g

Philippe Charrière k33g

💭
Read my code at https://gitlab.com/k33g
View GitHub Profile
@k33g
k33g / RaspBerry_Pi.md
Created August 17, 2012 12:01
RaspBerry Pi
@k33g
k33g / 00-COVER.md
Created August 5, 2012 20:08
Mini-Books : But, what is it ?

##First of all ... Gh3

I've written Gh3.js, a client-side Javascript API wrapper for GitHub API V3. So, with Gh3, you can play with gists and github repositories. I need examples to demonstrate the possibilities of gh3. Here is a first draft for creating a website from the content of gists : "minibooks"

##Dependencies

@k33g
k33g / 00-ARTICLE.md
Created August 3, 2012 13:25
About Chop

#Chop ?

I <3 Backbone object model https://gist.github.com/2287018, but sometimes i need it without Backbone. Then i've created Chop, an object model Backbone-flavored. See it here https://github.com/k33g/chop;

I've cribbed the Backbone object model ;)

#How to ?

##Class , constructor & static members

@k33g
k33g / 00-INTRODUCTION.md
Created August 3, 2012 11:58
I WANT a Backbone Controller !!!

Some times to organize my code in a backbone single page application , i miss controllers (like Playframework). So, i dit that (and i'm not ashamed ;) ...) :

Backbone.Controller = function() {};
Backbone.Controller.extend = Backbone.View.extend;

So, i can write this, now :

var myControllerOfSomething = Backbone.Controller.extend({},{

doSomeThing : function () {

@k33g
k33g / 00-COUVERTURE.md
Created August 2, 2012 13:27
Mini-Book : Coffeescript en 5 minutes
@k33g
k33g / minibooksstore.js
Created August 2, 2012 13:05
Mini-Books-Store
var MiniBooksStore = {
categories : ["general", "javascript", "backbone", "coffeescript", "PlayFramework", "java", "SublimeText"],
titles : [
{
name : "Mini-Books-Store",
id : 3266964,
author : "k33g",
description : "Mini Books Store presentation",
published : "2012 August",
categories : ["general"]
@k33g
k33g / 00-COVER.md
Created August 1, 2012 11:14
Mini-Book : Enyo Object Model
@k33g
k33g / kind.js
Created April 2, 2012 20:29
Re Use Object Model of BackBone
// Just do this : (and include backbone.js)
var Kind = function() {
this.initialize && this.initialize.apply(this, arguments);
};
Kind.extend = Backbone.Model.extend
//Simpler
var Thing = function() {};
Thing.extend = Backbone.Model.extend