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 / .zshrc
Created April 17, 2013 08:29
zsh aliases
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="lambda-inhji"
# Example aliases
@inhji
inhji / aliases.zsh
Created August 26, 2015 17:56
zsh aliases
# util
alias c='clear'
alias r='source ~/.bashrc'
# ls aliases
alias l='ls'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
<?php
$O0O_00__OO='BEGINJ6Pn2HmH0e568SXnR6KRkmP5tQbh7KEW';
$O_0O_0OO_0='hairbird10347';
$O0O00___OO=1695;
$O0_O0__O0O='B/C/D/F';
$OO0__O0_O0=411;
$O00__O_O0O=array("bronzed","guzzledom","kikki","intercirculate","lewdness","jaqueline","graftonite","flautist","lepa","incestuous","forecourse","barrack","balanophoraceous","gibber","amomis","misexpend","mobsman","diacaustic","misworshipper","buccula");;
$O_00O0_O_O='T1';
$O_O__000OO='|likeyou|';
@inhji
inhji / InstallTrezorSSHAgent.md
Created January 21, 2018 12:53
Install Trezor SSH Agent on Ubuntu 16.04
  1. pip wget https://bootstrap.pypa.io/get-pip.py && python ./get-pip.py
  2. libudev-dev and libusb-dev sudo apt-get install libudev-dev libusb-1.0-0-dev
  3. trezor-agent sudo pip install trezor_agent
  4. libtrezor sudo pip install -e git+https://github.com/trezor/python-trezor.git#egg=trezor
@inhji
inhji / NotNull.vb
Created January 27, 2016 09:57
NotNull
Public Function NotNull(Of T)(ByVal value As T, Optional ByVal defaultValue As T) As T
If value Is Nothing OrElse String.IsNullOrEmpty(value.ToString) OrElse IsDBNull(value) Then
Return defaultValue
Else
Return value
End If
End Function
@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
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 / 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>

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 / 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.
********************************************************