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
<a ui-sref="dashboard.child">show the child view</a> | |
<div ui-view></div> |
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.Component.extend({ | |
tagName: 'ul', | |
classNames: ['pagination-navigation'], | |
hasNext: function() { | |
return this.get('page') < this.get('pages'); | |
}.property('page', 'pages'), | |
hasPrevious: function() { | |
return this.get('page') > 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
// example using the raf module from npm. try changing some values! | |
var requestAnimationFrame = require("raf") | |
var canvas = document.createElement("canvas") | |
canvas.width = 500 | |
canvas.height = 500 | |
document.body.appendChild(canvas) | |
var context = canvas.getContext("2d") |
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
test |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<GraphicsConfig> | |
<MinimumAspectRatio>1.0</MinimumAspectRatio> | |
<HDRNode> | |
<KeyValue>0.500000</KeyValue> | |
<WhiteLevel>0.000000</WhiteLevel> | |
<DisplayLumScale>164.000000</DisplayLumScale> | |
<HistogramSampleWidth>60.500000</HistogramSampleWidth> | |
<ExposureThreshold>1.000000</ExposureThreshold> | |
<Percentiles>0.010000,0.540000,0.999000</Percentiles> |
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
(defmacro dlet [bindings & body] | |
`(let [~@(mapcat (fn [[n v]] | |
(if (or (vector? n) (map? n)) | |
[n v] | |
[n v '_ `(println (name '~n) ":" ~v)])) | |
(partition 2 bindings))] | |
~@body)) |
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
{ | |
"retainLines": true, | |
"compact": true, | |
"comments": false, | |
"whitelist": [ | |
"es6.arrowFunctions", | |
"es6.blockScoping", | |
"es6.classes", | |
"es6.constants", | |
"es6.destructuring", |
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
purpose | |
======= | |
Heartpts is the point system of love. It provides a fun way for a couple to keep the score and provide a channel for better communication. | |
application information | |
======================= | |
Heartpts allows someone in a relationship to give or subtract points from his/her partner and provide a reason. The visible number of points adds a fun competitive element to communication in a relationship. | |
In the future, I see Heartpts providing goals that couples can set up and try to obtain by trying to improve their relationship. These goals may be coupled with things such as a movie date or dinner with which I would want to provide some sort of discount for users. | |
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
# download and git methods swiped from http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb | |
require 'open-uri' | |
def download(from, to = from.split("/").last) | |
#run "curl -s -L #{from} > #{to}" | |
file to, open(from).read | |
rescue | |
puts "Can't get #{from} - Internet down?" | |
exit! |
OlderNewer