Skip to content

Instantly share code, notes, and snippets.

View hbrysiewicz's full-sized avatar
💙
All you need is love

Alex Elliott hbrysiewicz

💙
All you need is love
View GitHub Profile
  1. Install Git
  2. Install Node.js
  3. Setup NPM for non-sudo installation
  4. The easiest way to do this is by checking out this awesome shell script that will do it for you
  5. NPM is the node package manager. It will automatically be installed when you install node.
  6. NPM installs packages locally (within the directory it is invoked in) for per-project modules, or globally for packages you want accessible everywhere.
  7. However, by default NPM installs global packages in a root-restricted location, requiring SUDO to install. This creates a huge headache. As an alternative, before you install any packages, follow this guide to configure your NPM to install in your home directory without requiring sudo.
  8. Install Bower: npm i -g bower
  9. Install Ember-CLI: npm i -g ember-cli
  10. And create a new project named 'wor
import Ember from 'ember';
export default Ember.Component.extend({
foo: false,
didReceiveAttrs() {
this._super(...arguments)
Ember.$.ajax({
url: `//code.highcharts.com/mapdata/countries/us/us-ca-all.js`,
dataType: 'script'
@hbrysiewicz
hbrysiewicz / attendees.json
Last active December 19, 2016 07:01
SDSW Attendee List 2016
[
[
{
"company":"The Control Group",
"name":"Amanda",
"position":"Designer"
},
{
"company":"Seed GC, LLP",
"name":"Bethany",

ember install ember-cli-mirage

git remote add origin https://github.com/DockYard/ember-music.git

git remote update

git checkout origin/master mirage

I woke up with the memory of a pretty interesting dream.
An ant space station returned to Earth for repairs because it was falling apart.
People were lined up to get a peek. No one knew this even existed,
it had been kept secret. But the ants were not normal. Apparently this
station was built as an experiment - What would happen if a species lived
with no predators and limitless resources. The ants developed individuality
and acted like humans. They did nothing but sit around and watch TV.
Without fear of death there was no need for groupthink or tunneling.
It was an odd dream.
@hbrysiewicz
hbrysiewicz / lines.js
Created March 14, 2017 19:02
Handy Ember Testing
// check what modules are loaded with regex
Object.keys(requirejs.entries).filter(x => /.+/.test(x))
// ember-cli-mirage check that initializer is loaded
Object.keys(requirejs.entries).filter(x => /initializers\/ember-cli-mirage/.test(x))
// run in debug from cli
node debug `which ember` test
@hbrysiewicz
hbrysiewicz / components.clickable-svg.js
Last active March 31, 2017 22:46
Inline SVG - Part 1
import Ember from 'ember'
const {
Component,
computed: { alias }
} = Ember
export default Ember.Component.extend({
attributeBindings: [
'data',
import Ember from 'ember'
const {
Component,
computed: { alias }
} = Ember
export default Component.extend({
attributeBindings: [
'data',
<img src={{data}} />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.