Skip to content

Instantly share code, notes, and snippets.

@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

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 / 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.

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 / 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';
  
}
@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

This is a reply received after emailing to firebase-support@google.com, which is the official firebase support email after gogle acquired firebase in late 2014.

From: firebase-support@google.com

In order to transfer ownership of a Firebase instance, we need you to do two things: add the new owner as a collaborator; then, fill in the form below and email it to us as written verification. This must be sent from the email address which owns the Firebase instance.

----------------- 
REQUEST TO TRANSFER OWNERSHIP
I authorize the Firebase team to make **<new owner’s email>** the owner of https://**<firebase instance>**.firebaseio.com effective immediately. I have added **<new owner’s email>** as a collaborator to verify the email address is correct and to certify that I am the current owner. I understand that I am effectively granting **<new owner’s email>** full read and write access to all stored data for this instance.
@FutoRicky
FutoRicky / styles.less
Created September 8, 2016 05:11 — forked from brandondurham/styles.less
Using Operator Mono in Atom
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):
@FutoRicky
FutoRicky / gist:0aec9c3220141ba2b9828564cb2e8519
Created October 25, 2016 03:55 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@FutoRicky
FutoRicky / sales_report.csv
Created February 11, 2017 17:25
Sales Report csv
Product Cost Sold
erat id mauris 22.3 8
elementum 535.44 1
ante 172.09 100
nibh 267.5 90
vestibulum sagittis 154.96 83
et commodo vulputate 128.99 43
odio porttitor id consequat 595.16 9
tempus vivamus 420.46 98
orci luctus et ultrices 386.85 52