Skip to content

Instantly share code, notes, and snippets.

View inhji's full-sized avatar
🚲
I'll make better mistakes tomorrow.

Jonathan Jenne inhji

🚲
I'll make better mistakes tomorrow.
View GitHub Profile
@inhji
inhji / newsletter.html
Created May 22, 2013 13:24
newsletter.html
<!-- ***************************************************
********************************************************
HOW TO USE: Use these code examples as a guideline for formatting your HTML email. You may want to create your own template based on these snippets or just pick and choose the ones that fix your specific rendering issue(s). There are two main areas in the template: 1. The header (head) area of the document. You will find global styles, where indicated, to move inline. 2. The body section contains more specific fixes and guidance to use where needed in your design.
DO NOT COPY OVER COMMENTS AND INSTRUCTIONS WITH THE CODE to your message or risk spam box banishment :).
It is important to note that sometimes the styles in the header area should not be or don't need to be brought inline. Those instances will be marked accordingly in the comments.
********************************************************

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@inhji
inhji / GithubDark.tmtheme
Created June 5, 2013 08:22
Dark Github'ish Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Github Dark</string>
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@inhji
inhji / helpers.coffee
Created October 22, 2013 08:37
Helpers
###
http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
###
String::hashCode = ->
hash = 0
return hash if @length is 0
while i < @length
c = @charCodeAt(i)
hash = ((hash<<5) - hash) + char
hash = hash & hash
@inhji
inhji / beta.js
Created April 23, 2014 12:22
small type checkign lib
(function (root) {
"use strict";
var nativeToString = Object.prototype.toString,
callToString = function (v) {
return nativeToString.call(v)
.replace(/\[object\s{1}|\]/g, "")
.toLowerCase();
},
@inhji
inhji / multi-export.js
Last active August 29, 2015 14:01
Multi Export (Browser, CommonJS, RequireJS)
// CommonJS
if (typeof exports !== "undefined") {
if (typeof module !== "undefined" && module.exports) {
exports = module.exports = betta;
}
// RequireJS
exports["\u00df"] = betta;
} else {
// Global method
root["\u00df"] = betta;
@inhji
inhji / main.js
Created May 19, 2014 08:55
Underscore, Underscore.string and RequireJS
requirejs.config({
paths: {
'backbone' : '../lib/backbone/backbone',
'backbone.base' : '../lib/backbone/backbone.base',
'backbone.extensions' : '../lib/backbone/backbone.extensions',
'jquery' : '../lib/jquery/jquery',
'text' : '../lib/require/text',
'underscore' : '../lib/underscore/underscore',
'underscore.mixed' : '../lib/underscore/underscore.mixed',
'underscore.string' : '../lib/underscore/underscore.string'
@inhji
inhji / betta.js-next
Last active August 29, 2015 14:03
Betta
/* ---------------------------------
___ __ __
\_ |__ _____/ |__/ |______
| __ \_/ __ \ __\ __\__ \
| \_\ \ ___/| | | | / __ \_
|___ /\___ >__| |__| (____ /
\/ \/ \/
ß("ßetta", "string");
// => true
@inhji
inhji / isso.js
Last active August 29, 2015 14:04
Isso
var isso = (function(root){
var value = undefined;
function isso(v){
return (v)? new inner(v): ex;
}
function inner(v){
this.value = v;
return this;