This file contains hidden or 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
# static data | |
gasolines = [ | |
{ | |
id: 1, | |
name: 'Gas 1' | |
}, | |
{ | |
id: 2, | |
name: 'Gas 2' | |
} |
This file contains hidden or 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 bash | |
set -eu | |
# | |
# Binary installer | |
# | |
# Check for Homebrew | |
if test ! $(which brew); then | |
echo "Installing homebrew..." |
This file contains hidden or 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 Em from 'ember'; | |
var DURATION = 750; | |
var EASING = 'swing'; | |
export default Em.Component.extend({ | |
tagName: 'a', | |
href: null, | |
duration: DURATION, |
This file contains hidden or 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
//records | |
.minus, .plus { cursor: pointer; } | |
tbody + .table-tbody > .table-row-parent .table-cell { border-top: 1px solid #c1c1c1; } | |
.inline-action { visibility: hidden; } | |
.table-cell-group:hover .inline-action { visibility: visible; } | |
// bank statement | |
.cell-wraper-statement { width: 100%; height: 45px;} | |
.cell-wraper-statement-active { width: 100%; height: 55px;} |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta name="description" content="todo" /> | |
<meta charset="utf-8"> | |
<title>Ember.js • TodoMVC</title> | |
<style id="jsbin-css"> | |
html, | |
body { |
This file contains hidden or 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
# If we save a record using ember-data's RESTadapter, and it fails, Rails | |
# returns the validation errors of the model as JSON hash: | |
# | |
# {"errors":{"name":["may not be blank"]}} | |
# | |
# This patches the RESTadapter to add these errors to the invalid record. It | |
# can be removed when the following Pull Request was merged into ember-data: | |
# https://github.com/emberjs/data/pull/376 | |
DS.RESTAdapter.reopen |
This file contains hidden or 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
### Router.js.coffee | |
App.Router.reopen | |
rootURL: '/' | |
location: 'auto' | |
App.Router.map -> | |
@resource 'users', -> | |
@resource 'user', path: '/:id', -> | |
@route 'edit' |
NewerOlder