Skip to content

Instantly share code, notes, and snippets.

View iirving's full-sized avatar
💭
Looking for the next Thing

Ian irving iirving

💭
Looking for the next Thing
View GitHub Profile
@iirving
iirving / ..git-pr.md
Created February 23, 2021 19:09 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
import Ember from 'ember';
export default Ember.Controller.extend({
intl: Ember.inject.service(),
appName: 'Ember Twiddle',
price: 232323,
enterPrice: Ember.computed('intl.locale', 'price', function() {
console.log(this.get('intl').formatNumber(this.get('price'), { currency: 'USD', format: 'USD', style: 'currency' }));
return this.get('intl').formatNumber(this.get('price'), {
currency: 'USD',
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'section',
classNames: [ 'i18n-demo' ],
i18n: Ember.inject.service(),
beenClicked: false,
text: Ember.computed('i18n.locale', function()
{
@iirving
iirving / components.limit-each.js
Last active August 4, 2016 02:16 — forked from Serabe/components.limit-each.js
Limit with init
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
const showOnly = this.get('showOnly');
console.log('showOnly', showOnly);
if (showOnly && Number.isInteger( parseInt(showOnly))) {
this.set('people', this.get('people').slice(0, parseInt(showOnly)));
}

Development Contract Killer

A fork of the popular open-source contract for web designers and developers by Stuff & Nonsense, reworded for developers


Between us [company name] and you [customer name]