Skip to content

Instantly share code, notes, and snippets.

View billybonks's full-sized avatar
💭
qq

Sebastien Stettler billybonks

💭
qq
View GitHub Profile
@billybonks
billybonks / js
Created August 27, 2018 13:20
possible let
import Helper from 'ember-helper';
export default Helper.extend({
compute(params, hash, options) {
let isBlock = !!options.template.yield;
// when used as a block
if (isBlock) {
options.template.yield(params);
}
semantic-dom-selectors -----> ember-semantic-test-helpers
          |                           |
          |                           |
          |                           |   
      qunit-semantic-assertions ------
          |
          |
          |
 qunit-dom
class BaseClass {
static baseMethod () { console.log("Hello from baseMethod"); }
}
class MyClass extends BaseClass {
constructor(props) {
super(props);
}
static Woo () {
async install(repo){
this.github = await User.githubClient(this.user.id);
repo = await this.saveRepo(repo);
await this.savePullRequests(repo);
await this.ensureInstallerIsMember(repo);
return this.saveLabels(repo);
}
install(repo){
@billybonks
billybonks / SPEC.md
Last active August 28, 2018 06:22
Translations

These are my thoughts, on how the translation files should be modeled, take into consideration the following postulates:

  • Web applications are modeled around their data.
  • Web applications data models have the following states.
    • Saved
    • Deleted
    • Updated
    • Empty
    • Created
    • Loading
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@billybonks
billybonks / application.controller.js
Created September 30, 2015 03:55
Getting param in init
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
});
name value
Locke 4
Reyes 8
Ford 15
Jarrah 16
Shephard 23
Kwon 42
@billybonks
billybonks / index.html
Last active August 29, 2015 14:21
Bar chart
<!DOCTYPE html>
<style>
.chart div {
font: 10px sans-serif;
background-color: steelblue;
text-align: right;
padding: 3px;
margin: 1px;
color: white;