Skip to content

Instantly share code, notes, and snippets.

Avatar
Caffeinated

Elliott Pogue epogue

Caffeinated
View GitHub Profile
View docker-for-mac-segfault.log
Process: Docker [13957]
Path: /Applications/Docker.app/Contents/MacOS/Docker
Identifier: com.docker.docker
Version: 2.0.0.3 (31259)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Docker [13957]
User ID: 501
Date/Time: 2019-06-05 10:23:05.928 -0400
View components.validated-input.js
import Ember from 'ember';
export default Ember.Component.extend({
});
@epogue
epogue / .projections.json
Created Nov 18, 2015 — forked from jeremywrowe/.projections.json
ember-cli VIM projections
View .projections.json
{
"app/adapters/*.js": {
"command": "adapter",
"template": [
"import ApplicationAdapter from './application';",
"",
"export default ApplicationAdapter.extend({",
"",
"});"
],
View rate_limit.js
/* Extend the Underscore object with the following methods */
// Rate limit ensures a function is never called more than every [rate]ms
// Unlike underscore's _.throttle function, function calls are queued so that
// requests are never lost and simply deferred until some other time
//
// Parameters
// * func - function to rate limit
// * rate - minimum time to wait between function calls
// * async - if async is true, we won't wait (rate) for the function to complete before queueing the next request
View gist:11358734
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
View embed-snippet.html
<div id="ms-embedded-request-form" data-height="400"></div>
<script type="text/javascript">
(function(s,o,g,r){
g = s.createElement(o);
r = s.getElementsByTagName(o)[0];
g.type = 'text/javascript';
g.async = 1;
g.src = 'http://assets.mosquitosquad.com/embed-form/embed.js';
r.parentNode.insertBefore(g, r);
})(document, 'script');
View st-louis-table.html
<notextile>
<table class="table table-bordered" cellpadding="0" cellspacing="0" style="max-width:600px;">
<tr class="headers">
<th></th>
<th>Halogen</th>
<th>LED</th>
</tr>
<tr>
<td><b>Bulb Life</b></td>
<td>5,000 hours</td>
@epogue
epogue / app-template.rb
Created Mar 22, 2012
Rails 3 app template
View app-template.rb
require 'open-uri'
run "rm public/index.html"
run "rm .gitignore"
rake "db:migrate"
file ".gitignore", <<-CODE
#{URI.parse("https://raw.github.com/github/gitignore/master/Rails.gitignore").read}
*.sublime-workspace
CODE
View nested_attributes.rb
# This is an incomplete implementation.
module NestedAttributes
extend ActiveSupport::Concern
module ClassMethods
def accepts_nested_attributes_for(*attr_names)
options = { :allow_destroy => false }
options.update(attr_names.extract_options!)
options.assert_valid_keys(:allow_destroy, :reject_if)
View Gist for issue 645
Bundler version 1.0.0
Ruby version 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
RVM version 1.0.1 with environment:
ruby-1.9.2-p0:
system:
uname: "Darwin Goliath.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386"