Skip to content

Instantly share code, notes, and snippets.

@duvillierA
duvillierA / dotfiles.md
Last active November 20, 2015 14:49
dotfiles

###.aliases

# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
https://github.com/cognitom/symbols-for-sketch
https://github.com/cognitom/gulp-sketch
https://github.com/nfroidure/gulp-iconfont
@duvillierA
duvillierA / gulp-git-release.js
Last active August 29, 2015 14:24
Release to git with a gulp task
var
gulp = require('gulp'),
semver = require('semver'),
$ = require('gulp-load-plugins')();
var inc = function(importance) {
return gulp.src(['./package.json'])
.pipe($.bump({type: importance}))
.pipe(gulp.dest('./'))
.pipe($.git.commit('Release v' + semver.inc(
@duvillierA
duvillierA / es6.js
Created May 18, 2015 17:32
Es6 Features
import _ from 'lodash';
'use strict';
export class Hello {
constructor(name="John") {
this.name = name;
}
set name(name) {
@duvillierA
duvillierA / readme.md
Last active August 29, 2015 14:17
How to Git rebase interactive multi columns

How to Git rebase interactive multi columns

  • ctrl+v > do the selection
  • (c > change) || (x > delete)
  • s (squash)
  • echap
  • (wq) || (x) -> write and exit

credits: @omiel

@duvillierA
duvillierA / viadeo-features.md
Last active August 29, 2015 14:17
Viadeo personal roadmap

Create a Policy middleware

  • Redirects routes
  • Display 403 page
  • ...

Usefull helper

use the best tools

  • formatDate(moment) then FormatNumber(numeral) then Format...
@duvillierA
duvillierA / doc.md
Last active June 2, 2016 19:46
How to Migrate an Ember.js 1.8.1 stack to 1.10.0 with HTMLBars on Grunt

Breaking changes


Dependencies

Dependency Version New Version Package manager
ember 1.8.1 1.10.0 Bower
ember-resolver 0.1.11 0.1.12 Bower
ember-data 1.0.0-beta.12 1.0.0-beta.14.1 Bower
@duvillierA
duvillierA / gist:ff6b95a11e01a486ab19
Last active August 29, 2015 14:14
Ember.js : Infinite scroll example
App.LocationRoute = Ember.Route.extend({
model: function() {
return this.store.find('location', params).then(function(result){
return result.get('content.firstObject');
});
}
});
App.LocationController = Ember.Controller.extend({
hasNoMoreContacts: false,
@duvillierA
duvillierA / gist:7767094
Created December 3, 2013 10:27
Seo pagination
As a reminder , a few seo rules for pagination :
* behaviour of the page parameter
- ?page=-1 ---> 404
- ?page=abc ---> 404
- ?page=0 ---> 404
- ?page=1000 (any number>max) ----> 404
- ?page=1 ----> 301 to same url without page parameter
if there is already a querystring : page parameter must be always at the same place in url !