I hereby claim:
- I am xtian on github.
- I am xtian (https://keybase.io/xtian) on keybase.
- I have a public key whose fingerprint is 9AAC 0C89 F8FA 7A8E E696 1B62 1E79 34DD 510B ECD0
To claim this, I am signing this object:
!!! 5 | |
html(class='no-js') | |
head | |
meta(charset='utf-8') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
title | |
meta(name='description', content='') | |
meta(name='viewport', content='width=device-width, initial-scale=1') |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2338577/hack.sh | sh | |
# |
~/Projects/es6-transpile$ npm i [email protected] --loglevel=verbose | |
npm info it worked if it ends with ok | |
npm verb cli [ '/usr/local/Cellar/node/0.10.21/bin/node', | |
npm verb cli '/usr/local/bin/npm', | |
npm verb cli 'i', | |
npm verb cli '[email protected]', | |
npm verb cli '--loglevel=verbose' ] | |
npm info using [email protected] | |
npm info using [email protected] | |
npm verb cache add [ '[email protected]', null ] |
def multiline_truncate(string, width, max_lines) | |
lines = word_wrap(string, line_width: width).split("\n") | |
# string does not wrap past maximum number of lines | |
return string unless lines[max_lines].present? | |
# join the last two lines and truncate them | |
last_line = "#{lines[max_lines - 1]} #{lines[max_lines]}" | |
lines[max_lines - 1] = truncate(last_line, length: width) |
TypeFast.GameRoute = Ember.Route.extend({ | |
model: function() { | |
return this.store.find('quote', Math.floor((Math.random()*3)+1)); | |
}, | |
setupController: function(controller, model) { | |
controller.set('model', model); | |
} | |
}); | |
var obj = { |
+~/Projects/rails-test$ rails new test_app -q --edge | |
Updating git://github.com/rails/rails.git | |
Updating git://github.com/rails/arel.git | |
Updating git://github.com/rails/sprockets-rails.git | |
Updating git://github.com/rails/sass-rails.git | |
Updating git://github.com/rails/coffee-rails.git | |
Fetching gem metadata from https://rubygems.org/........ | |
Fetching additional metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using json (1.8.1) |
I hereby claim:
To claim this, I am signing this object:
Line 2: Unexpected token => Error: Line 2: Unexpected token => | |
at throwError (/Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/node_modules/esprima/esprima.js:2038:21) | |
at throwUnexpected (/Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/node_modules/esprima/esprima.js:2100:9) | |
at parsePrimaryExpression (/Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/node_modules/esprima/esprima.js:2554:16) | |
at /Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/node_modules/esprima/esprima.js:5120:38 | |
at trackLeftHandSideExpressionAllowCall (/Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/node_modules/esprima/esprima.js:5022:61) | |
at parsePostfixExpression (/Users/xtian/Projects/es6-test/node_modules/broccoli-es6-concatenator/node_m |
Verifying that +xtian is my openname (Bitcoin username). https://onename.com/xtian |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
checked: true, | |
actions: { | |
clickCheck() { | |
this.toggleProperty("checked"); | |
debugger | |
} |