Skip to content

Instantly share code, notes, and snippets.

View max's full-sized avatar
🏔️

Max Schoening max

🏔️
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@max
max / application.controller.js
Last active January 18, 2016 23:30
Contextual Components
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});

Keybase proof

I hereby claim:

  • I am max on github.
  • I am mschoening (https://keybase.io/mschoening) on keybase.
  • I have a public key ASBHo725bx5piFhJAZwu5oS_gmD99AmEjFCeivyulKg08go

To claim this, I am signing this object:

@max
max / flexi.css
Last active November 9, 2016 23:57
.element {
position: relative;
}
/**
* Screen: Create a wrapper around all of the content of a web page.
*/
.screen {
composes: element;
@max
max / components.my-slider.js
Last active December 17, 2016 00:25
Slider
import Ember from 'ember';
export default Ember.Component.extend({
});

Glimmer Apps

Light-weight UI components with the attention to detail you've come to expect from Ember.

Getting Started

Instead of worrying about project setup, configuration and glue code we want you to focus on writing components that just work. The fastest way to get started is to install the Ember CLI and leverage [a basic

sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app

The error handling for async/await with try/catch always bugs me. Go to the rescue?

function to(promise) {
  return promise
    .then(res => [null, data])
    .catch(err => [err])
}

async function doIt() {
@max
max / i.sh
Last active April 24, 2019 17:33
#!/usr/bin/env sh
set -e
echo "Fetching fonts from Apple..."
curl -o /tmp/SF-Font.dmg https://developer.apple.com/design/downloads/SF-Font.dmg
hdiutil attach -nobrowse -quiet -noverify -noautoopen -mountpoint /Volumes/SF-Font /tmp/SF-Font.dmg
echo "Installing fonts..."
cp -R /Volumes/SF-Font/. /Library/Fonts/