Skip to content

Instantly share code, notes, and snippets.

@damienklinnert
damienklinnert / intro.md
Created May 31, 2016 07:27
Sydney Elm Meetup Notes

Sydney Elm Meetup Notes

Getting Started

Project Ideas And Examples

  • Build a HackerNews client (Http)
@damienklinnert
damienklinnert / startup_engineering_2.md
Last active December 18, 2015 18:28
Startup Engineering - II. Introduction
@damienklinnert
damienklinnert / lizard_brain.md
Created May 31, 2013 21:12
Seth Godin: Quieting the Lizard Brain

Seth Godin: Quieting the Lizard Brain

source http://vimeo.com/5895898

  • everyone can make something up, finishing is the only important thing
  • whats frightening is not the preparation, but the pushing out to public
  • 37signals -> ship as soon as there's no time or budget anymore
  • the closer you get to the deadline, the more you change and replace and trash (until you miss the deadline)
  • so you must trash in the beginning, NOT later
require.config({
baseUrl: 'lib',
paths: {
'jquery': '../components/jquery/jquery',
'underscore': '../components/underscore/underscore',
'backbone': '../components/backbone/backbone',
},
shim: {
'jquery': {
exports: '$',
@damienklinnert
damienklinnert / clean_css.css
Last active December 15, 2015 12:39
guidelines for clean css
/* the art of clean css code */
/* from http://www.adobe.com/devnet/html5/articles/css-everything-is-global-and-how-to-deal-with-it.html */
/* and http://nicolasgallagher.com/about-html-semantics-front-end-architecture */
/*
problem in css: all styles are global, so they can easily pollute the global namespace
and make all your styles look bad, this is especially true for reusable components and
frameworks. Here are some guidelines for clean css that won't interfere.
*/
/*
A small script for use with Rhetoricus.
https://rhetoricus.jit.su/
It clicks five unfollow buttons, then waits 20 seconds before clicking another five.
To use, paste it into Firefox's scratchpad whilst using Rhetoricus.
@damienklinnert
damienklinnert / index.html
Created March 26, 2013 22:56
A CodePen by damienklinnert. transition colors - using hover events and transitions to change the background color of an element - as seen on codeschool.com.
<h1>move your mouse over the words</h1>
<a href="#light">one</a>
<a href="#dark">two</a>
<div id="appname">
<h3 class="appname">rhetoricus <small>by @damienklinnert</small> <span class="label label-warning">stable</span></h3>
<p class="muted desc descm">See who's not following you back on app.net.<br /><br /><br /></p>
<br />
<p class="desc">
<i class="icon-chevron-right"></i> Screenshots
<div class="screenshots">
<a class="fancybox" rel="appname" href="https://my.doctape.com/s/fB5HfG/image.jpg" title="home screen">
<img src="https://my.doctape.com/s/fB5HfG/image.jpg" alt="" width="100px" height="auto" />
</a>
@damienklinnert
damienklinnert / promise_factory.js
Created February 20, 2013 10:32
a promise factory
/**
* dependencies
*/
var q = require('q');
/**
* lib
*/
@damienklinnert
damienklinnert / all-promise.js
Created February 19, 2013 08:37
What if we'd like to set off a bunch of async calls at once, and wait until they all finish (at various times, in any order) to set off the next promise in the chain? Q provides a simple method that takes an array of promises: Q.all()
function get_all_the_things(things) {
var the_promises = [];
for (var i = 0; i < things.length; i++) {
(function(i) { // keep i in scope
var deferred = Q.defer();
get_a_thing(things[i], function(result) {
deferred.resolve(result);
});
the_promises.push(deferred.promise);