Skip to content

Instantly share code, notes, and snippets.

View bobey's full-sized avatar

Olivier Balais bobey

View GitHub Profile
@bobey
bobey / ember.js
Created March 1, 2013 11:42
PMSIpilot build
// Version: v1.0.0-pre.4-119-g32503f9
// Last commit: 32503f9 (2013-01-29 22:32:15 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
@bobey
bobey / Emberjs-multiples-panes-multiple-tabs.md
Created March 8, 2013 17:28
A solution to build an emberjs application around two panes, each one having multiple tabs.

Here is a solution to handle an application build around two panes, each one having multiple tabs.

The router is able to memorize the current tab selected in each pane:

  • /leftTab1/rightTab1
  • /leftTab1/rightTab2
  • /leftTab2/rightTab3
  • / ...

Here is the working associated fiddle: http://jsfiddle.net/obalais/L78yu/

@bobey
bobey / ember data lazyLoadedHasMany.js
Created July 2, 2013 07:35
Emberjs & Ember-data lazy load one to many (1-n) relationships
DS.lazyLoadedHasMany = function(type, options) {
options = options || {};
return Ember.computed(function(key, value) {
var parts = this.constructor.toString().split('.'),
name = parts[parts.length - 1];
name = name[0].toLowerCase() + name.slice(1);
@bobey
bobey / clone-projets.sh
Last active January 12, 2016 15:05
Git clone ALL the Gitlab Projets of given namespace in one command
curl -sS https://gist.githubusercontent.com/bobey/2b09d2cc72fbcc8cf551/raw/get-gitlab-projets.php | \
php -- http://gitlab.com YOUR-PRIVATE-TOKEN your-namespace | \
xargs -n 1 git clone