Skip to content

Instantly share code, notes, and snippets.

@FutoRicky
FutoRicky / git tags.md
Last active April 24, 2016 05:25
creating and pushing tags

Create:

git tag v1

Push:

git push --tag origin v1

let randomNumber = Math.random();
let randomInteger = Math.floor(Math.random());
// find random integer between 0-10:
// Math.floor(Math.random() * 10)
let randomBoolean = Math.random() >= 0.5;
@FutoRicky
FutoRicky / Converting libraries to Ember CLI addons.md
Created October 22, 2015 15:24 — forked from kristianmandrup/Converting libraries to Ember CLI addons.md
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@FutoRicky
FutoRicky / ember-cli_gh-pages_publish.md
Last active October 30, 2015 03:02
publish ember-cli addon in github pages

// apps: config/environment.js

// addons: tests/dummy/config/environment.js

if (environment === 'production') {
  
  ENV.baseURL = '/projectname';
  
}

Fake Names for integration testing

Sometimes I get frustrated when doing Integration tests, so I made the following list to keep myself entertained (feel free to add to the list):

  • Alam Brito
  • Alberto Verijas
  • Antonio Constipado
  • Benedicta Buduska
  • Brenda Maceta
  • Cabrón Figueroa
@FutoRicky
FutoRicky / npm-publishing.md
Created February 27, 2015 19:43
How to publish a node module to NPM Registry (npmjs.com)

How to publish a node module to NPM

Push repo to github

Install package-validator (globally)

npm install package-json-validator -g