Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@ear
ear / 01_README.md
Created November 2, 2015 09:26 — forked from rwjblue/01_README.md
New Twiddle
<!DOCTYPE html>
<meta charset="UTF-8"></meta>
<script>
/* Object.defineProperty (works in all browsers)
*
* It lets us define exactly one function that runs when a particular object's
* property is about to be read, as well as define exacly one function that runs
* when that object's property is about to be changed.
*
@ear
ear / output
Created May 23, 2015 15:26
$ ioreg -c AppleDisplay -r -d 1
+-o AppleDisplay <class AppleDisplay, id 0x10000159e, registered, matched, active, busy 0 (0 ms), retain 9>
{
"IOClass" = "AppleDisplay"
"DisplayParameterHandlerUsesCharPtr" = Yes
"IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@1/display0/AppleDisplay-610-9227"
"IODisplayEDID" = <…>
"IODisplayTechnologyType" = <00ff0203>
"IODisplayControllerID" = <000000ff>
"IOProviderClass" = "IODisplayConnect"
"IODisplayFirmwareLevel" = <ffff0138>
@ear
ear / Brocfile.js
Created May 9, 2015 20:24
Ember FastClick
app.import('bower_components/fastclick/lib/fastclick.js');
// Playground - noun: a place where people can play
import Foundation
typealias Byte = UInt8
protocol GenericIntegerType: IntegerType {
init(_ v: Int)
init(_ v: UInt)
init(_ v: Int8)
// hotfix sass sourcemaps
var appSassFiles = pickFiles('app', {
srcDir: '/styles',
destDir: '/assets/styles'
});
var bootstrapSassFiles = pickFiles('bower_components/bootstrap-sass-official/assets/stylesheets', {
srcDir: 'bootstrap',
destDir: '/assets/styles/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap'
{% assign day = post.created | date: "%d" %}
{% assign positions = "4," | append: day | split: "," %}
{% assign i = positions.min | minus: 1 %}
{% assign suffixes = "st,nd,rd,th" | split: "," %}
{% assign dayth = day | append: suffixes[i] %}
{{ dayth }}