Skip to content

Instantly share code, notes, and snippets.

View noslouch's full-sized avatar

Brian Whitton noslouch

View GitHub Profile
@noslouch
noslouch / components.radio-button.js
Last active August 29, 2015 14:27
overlapping component indices
import Ember from 'ember';
const { computed, get } = Ember;
export default Ember.Component.extend({
tagName: 'input',
type: 'radio',
name: 'pledge--amount',
attributeBindings: [
'type',
@noslouch
noslouch / components.inner-component.js
Last active August 29, 2015 14:27
dupe component IDs
import Ember from 'ember';
const get = Ember.get;
export default Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: [
'checked',
'disabled',
'name',

Keybase proof

I hereby claim:

  • I am noslouch on github.
  • I am noslouch (https://keybase.io/noslouch) on keybase.
  • I have a public key whose fingerprint is EF7C E64C 6555 05FC 8525 BDF8 75CB 2BA4 49B6 42BA

To claim this, I am signing this object:

@noslouch
noslouch / site-parser.py
Last active July 25, 2019 16:22
extracting html from a buncha files using beautiful soup and csv.writer
#!/usr/local/bin/python
import csv
from bs4 import BeautifulSoup as bs
import os
accepted = ('html', 'php', 'htm')
header = ('path', 'title', 'content', 'images')
pages = []
@noslouch
noslouch / privateVariables.js
Last active December 18, 2015 01:39
Private Prototype Variables in Javascript
function makePrivate(){
var privateVariable = 0
return function(){
return privateVariable++
}
}
function Person(name){
this.name = name
console.log(Person.prototype.counter())
@noslouch
noslouch / dabblet.css
Created January 26, 2013 19:52
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.banner {
position: relative;
}
.banner .title {
color: #333;