This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*.rs] | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
checked: true, | |
actions: { | |
clickCheck() { | |
this.toggleProperty("checked"); | |
debugger | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@doc """ | |
Helper for returning list of errors in a struct when given certain data. | |
## Examples | |
Given a User schema that lists `:name` as a required field and validates | |
`:password` to be safe, it would return: | |
iex> errors_on(%User{}, %{}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Projects/es6-transpile$ npm i es6-module-transpiler@0.3.1 --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 'es6-module-transpiler@0.3.1', | |
npm verb cli '--loglevel=verbose' ] | |
npm info using npm@1.3.11 | |
npm info using node@v0.10.21 | |
npm verb cache add [ 'es6-module-transpiler@0.3.1', null ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
currentWhen: 'foo bar' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +xtian is my openname (Bitcoin username). https://onename.com/xtian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder