Skip to content

Instantly share code, notes, and snippets.

@makepanic
makepanic / components.my-form.js
Last active August 25, 2017 20:33
Form weirdness
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'form',
attributeBindings: ['name:id'],
submitText: 'nothing submitted',
submit(ev){
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
modalOpen: false
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@makepanic
makepanic / application.controller.js
Created December 7, 2015 16:49
yield template helper
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@makepanic
makepanic / LICENSE.md
Last active May 29, 2018 14:34
Teamcity Widget for Dashing

The MIT License (MIT)

Copyright (c) 2014 Christian

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF

@makepanic
makepanic / qr-capture.hbs
Created April 25, 2014 12:16
QR decode Emberjs Component
<canvas id="qr-canvas"></canvas>
<div class="camera">
<video class="camera-canvas" id="v" autoplay></video>
<div class="camera-overlay-top">
<h4>{{caption}}</h4>
</div>
<div class="camera-overlay-bottom">
{{#if recording}}
<div class="topcoat-button-bar">
@makepanic
makepanic / gist:6065723
Created July 23, 2013 20:12
Intellij IDEA - File Template for JavaScript Object declaration inside a closure
#set ($MODULENAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
/**
* Created with ${PRODUCT_NAME}.
* User: ${USER}
* Date: ${DATE}
* Time: ${TIME}
*/
;(function(window, undefined){
'use strict';
@makepanic
makepanic / something-from.js
Created May 14, 2013 05:37
possible google breakout words
Abu Dhabi
Akita
Alaskan Malamute
Alcatraz Island
Almond
American Bulldog
American Staffordshire Terrier
American football
Amsterdam
Apple pie
@makepanic
makepanic / lib32-alsaequal.log
Last active December 17, 2015 05:08
arch lib32-alsaequal
problem:
ALSA lib dlmisc.c:236:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_equal.so
> uname -a
Linux momo 3.8.11-1-ARCH #1 SMP PREEMPT Wed May 1 20:18:57 CEST 2013 x86_64 GNU/Linux
> sudo packer -S lib32-alsaequal
Aur Targets (2): lib32-ladspa lib32-alsaequal
@makepanic
makepanic / nycsubway.js
Created January 9, 2013 16:11
nycsubway.org Historical_Maps inline images
$('#mw-content-text a').each(function(index, value){
var href = value.href,
gif = 'gif',
jpg = 'jpg',
base = 'http://images.nycsubway.org/',
isImage = false;
if(href.indexOf(gif, href.length - gif.length) !== -1 ||
href.indexOf(jpg, href.length - jpg.length) !== -1){
isImage = true;