Skip to content

Instantly share code, notes, and snippets.

View yannbertrand's full-sized avatar
:octocat:

Yann Bertrand yannbertrand

:octocat:
View GitHub Profile
@yannbertrand
yannbertrand / console-tips.js
Last active July 17, 2016 04:38
Some console tips
/**
* console.log
*/
console.log('Hello');
// → "Hello"
var hello = 'Hello';
console.log(hello);
// → "Hello"
@yannbertrand
yannbertrand / Preferences.sublime-settings
Last active August 29, 2015 14:24 — forked from benatkin/Global.sublime-settings
Hiding some folders from Sublime Text 3's Side Bar
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}
@yannbertrand
yannbertrand / json-stringify-tips.js
Last active August 29, 2015 14:24
JSON.stringify tips
var toto = {
foundation: 'Mozilla',
model: 'box',
week: 45,
transport: 'bus',
month: 7
};
JSON.stringify(toto);
// '{"foundation":"Mozilla","model":"box","week":45,"transport":"bus","month":7}'
@yannbertrand
yannbertrand / matches.json
Created May 21, 2015 13:30
2015 Rugby World Cup Fixtures
[
{
"matchNumber": 1,
"kickOff": "2015-09-18T20:00:00.000Z",
"pool": "A",
"teamA": "England",
"teamB": "Fiji",
"location": "Twickenham, London"
},
@yannbertrand
yannbertrand / Article.js
Created May 21, 2015 13:25
Example models
module.exports = {
attributes: {
title: {
type: 'text'
},
content: {
type: 'text'
},