Skip to content

Instantly share code, notes, and snippets.

View NickHeiner's full-sized avatar
💭
Wubba lubba dub dub!!

Nick Heiner NickHeiner

💭
Wubba lubba dub dub!!
View GitHub Profile
<html>
<head>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<h1>Super Cool Iframe</h1>
<p>I like iframes. They're comfortable, and easy to wear!</p>
</body>
</html
@NickHeiner
NickHeiner / gist:4637777
Created January 25, 2013 20:55
system issue output for yeoman issue
nick.heiner:~/hacks/yeoman-build-test $ yeoman --version
0.9.6
nick.heiner:~/hacks/yeoman-build-test $ echo $PATH $NODE_PATH
/Users/nick.heiner/.rvm/gems/ruby-1.9.3-p327/bin:/Users/nick.heiner/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/nick.heiner/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/nick.heiner/.rvm/bin:/opt/pose/svnmerge:/Users/nick.heiner/.rvm/bin:/Users/nick.heiner/Downloads/scala-2.9.2/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
nick.heiner:~/hacks/yeoman-build-test $ brew doctor
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
@NickHeiner
NickHeiner / gist:4637791
Created January 25, 2013 20:58
yeoman output from making a new project
nick.heiner:~/hacks/yeoman-build-test $ yeoman init angular
Running "init:yeoman" (init) task
This task will create one or more files in the current directory, based on the
environment and the answers to a few questions. Note that answering "?" to any
question will show question-specific help and answering "none" to most questions
will leave its value blank.
"yeoman" template notes:
@NickHeiner
NickHeiner / op-attr.md
Last active December 14, 2015 12:28
op-attr usage

Our QA relies on data-test- attributes for their automated testing.

<span data-test-user-name="Bob">Hi, Bob</span>

In our angular app, we wanted to be able to set data-test- attributes dynamically:

<span data-test-="">{{ 'greeting.prefix' | resolveMessageProperty }}{{value}}</span>
@NickHeiner
NickHeiner / bower-stack-overflow
Last active December 14, 2015 22:49
Trying to install angularjs on the latest bower and node
nick.heiner $ node --version
v0.10.0
nick.heiner $ npm install bower -g
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
@NickHeiner
NickHeiner / app.js
Created March 28, 2013 19:55
sample node module
/**
*
* Simple, stateless function with no external dependencies.
*
* Example:
*
* add(1, 2, 3) === 6
*
* To test: verify that add() works for all types of input.
*/
@NickHeiner
NickHeiner / readme.md
Created April 2, 2013 00:29
http mocking tool

zelda

Installation

# This won't work if you're not within the Opower firewall - all you need is zelda.js and lodash, which you can get with `bower install lodash`
$ bower install --save [email protected]:nick-heiner/zelda.git
@NickHeiner
NickHeiner / tips.json
Last active December 16, 2015 00:10
tip export
{"response":[{"name":"tip072_have_home_energy_audit","title":"Make whole house improvements with Energy Upgrade California","emailBody":"Most homes have many opportunities to save energy and money, but it can be hard to know where to start. Schedule a home energy assessment to have a certified energy expert inspect your home for ways to save.","imageName":"tip072_have_home_energy_audit"},{"name":"tip110_summer_ac_cycling","title":"Join our SmartAC&#8482; Program","emailBody":"Join your neighbors in ensuring a reliable energy supply this summer by enrolling in our AC cycling program. Allowing us to briefly cycle your AC off during peak hours will save you money and reduce stress on the grid.","imageName":"tip110_summer_ac_cycling"},{"name":"tip023_choose_efficient_windows","title":"Upgrade your windows","emailBody":"Old windows can lose a lot of heat in the winter and let unwanted heat enter in the summer. Try weatherstripping existing windows first, and for even more savings, look for the ENERGY STAR<sup>®<
@NickHeiner
NickHeiner / mc-hammer.sh
Created October 27, 2013 16:15
mc server setup
sudo apt-get install openjdk-7-jre
sudo apt-get install git
git clone $1
cd marmatrocity/
nohup java -Xmx1024M -Xms1024M -jar minecraft_server.$2.jar nogui &
@NickHeiner
NickHeiner / thoughts-on-realtimeconf.md
Created November 3, 2013 22:25
Thoughts on Realtimeconf 2013

Thoughts on Realtimeconf 2013

Adam Brault, the “producer and creator” behind Realtimeconf, announced shortly after it was over that this one was the last. I have a hard time believing that. Maybe the next &yet conference will have a different theme or different branding, but I’m incredulous that anyone who has that much energy and passion for bringing the tech community together can resist the urge for long.*

Throughout the weekend, it was obvious that Adam and the entire (massive) team behind Realtimeconf was incredibly excited about making a unique, compelling experience. They didn’t have to put everyone in the same hotel, but doing so made it easier to have the impromptu encounters that are critical for forming relationships. They could have left us to disperse for dinner Friday night, which would have resulted in people who already knew each other cliquing up and going out alone. Instead, the team provided dinn