Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Component.extend({
things: ['one', 'two', 'three'],
thing: null,
init(){
this._super(...arguments);
this.addObserver('things.length', function(){console.log(this.things)})
},
@kdamball
kdamball / html-to-markdown.css
Last active June 24, 2019 21:45
Transform your HTML into markdown
* {font-size: 16px !important; font-weight: 400 !important; font-style: normal !important; background-color: white;}
h1::before {content: "# "}
h2::before {content: "## "}
h3::before {content: "### "}
h4::before {content: "#### "}
h5::before {content: "##### "}
h6::before {content: "###### "}
a {display:inline-block;}
em {display:inline-block;}
strong {display:inline-block;}
@kdamball
kdamball / controllers.application.js
Last active January 4, 2019 12:21
Testing Helpers
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Sortable',
items: [
{
name: 'Link'
},
{
name: 'Zelda'
require 'octokit'
username = ''
password = ''
org_name = 'honeypotio'
board_name = 'The Agile Bear'
column_name = 'Live/Done'
client = Octokit::Client.new(login: username, password: password)
user = client.user
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html