Skip to content

Instantly share code, notes, and snippets.

View Dhaulagiri's full-sized avatar

Brian Runnells Dhaulagiri

View GitHub Profile
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
# REPOS=('design-system-components' 'design-system-tokens' 'design-system-figma-scripting')
# REPOS=('flight')
REPOS=('design-system-tokens')
@Dhaulagiri
Dhaulagiri / mirage.config.js
Created January 15, 2018 20:52 — forked from samselikoff/mirage.config.js
Mirage 0.3 - ids or objects
export default function() {
//window.server = this;
this.get('users');
};
@Dhaulagiri
Dhaulagiri / adapters.application.js
Created January 15, 2018 20:52 — forked from samselikoff/mirage.config.js
Mirage 0.3 - ids or objects
import DS from 'ember-data';
const { RESTAdapter } = DS;
export default RESTAdapter.extend({});
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<h1 class="margin-top: 100px;" align="center">Ember.js vs. Dashboard</h1>
<h3 align="center">Release date vs. Dashboard adoption</h3>
<div id="timeline" style="height: 100%; width: 100%; text-align:center;"></div>
<script id="jsbin-javascript">
google.charts.load("current", {packages:["timeline"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var container = document.getElementById('timeline');
var chart = new google.visualization.Timeline(container);
@Dhaulagiri
Dhaulagiri / ember-master-in-ember-cli-app.md
Last active September 14, 2015 14:25 — forked from rwjblue/ember-master-in-ember-cli-app.md
Developing on Ember master (linked locally), with an Ember CLI application.

From a terminal run the following commands:

git clone git@github.com:emberjs/ember.js
cd ember.js
npm install
npm start

While that is running open another terminal and run the following (starting from the ember.js folder you cloned a moment ago):

Switch To Vim For Good

This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I did the switch.

Some background: my decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.

Non Optional

  1. Watch the Derek Wyatt videos in order (at least the “Novice” ones for now): http://derekwyatt.org/vim/tutorials/
  2. Read the first part of this Sta
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }