Skip to content

Instantly share code, notes, and snippets.

View Robdel12's full-sized avatar
🏁
Making a PitStop

Robert DeLuca Robdel12

🏁
Making a PitStop
View GitHub Profile
<select id="opt_group">
<option disabled selected class="hidden-option">Choose One</option>
<optgroup label="Group 1">
<option>Option 1.1</option>
</optgroup>
<optgroup label="Group 2">
<option>Option 2.1</option>
<option>Option 2.2</option>
</optgroup>
<optgroup label="Group 3" disabled>
$("#multiple").dropkick({
mobile: true
});
<select multiple id="multiple">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
...
</select>
@Robdel12
Robdel12 / sublime.json
Last active August 29, 2015 14:07
Sublime Text folder exclusions
"folder_exclude_patterns":
[
"tmp",
".git",
".sass-cache",
"junk",
".bundle",
"dist",
"node_modules",
"pkg",
def dk_select(value, options={})
from = options.delete(:from)
page.execute_script("$('select').css({display: 'block', visibility: 'visible'})")
select("#{value}", from: "#{from}")
end
// ==UserScript==
// @name Vine download link
// @namespace http://www.robert-deluca.com
// @version 0.1
// @description Download a vine video
// @author Robert DeLuca
// @match https://vine.co/*
// @grant none
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==

My computer is effed it seems. With ember cli I have to restart my server for any change that’s made.

I can boot the app intially and it's totally fine. But after I make any change to the app it recompiles (via livereload) and doesn't compile templates. Here are the STR:

  1. ember s (this loads the app just fine)
  2. Tron.__container__.lookup(‘application:template’) returns an object like it should
  3. Change any file anywhere in the app.
  4. Reloads the page to an empty white page
  5. Tron.__container__.lookup(‘application:template’) returns undefined
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@Robdel12
Robdel12 / application.controller.js
Last active January 28, 2016 18:24
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Emberx-select demo',
xSelectValue: 'bob',
actions: {
setXSelect(value) {
this.set('xSelectValue', value);
}
}