Skip to content

Instantly share code, notes, and snippets.

View rhartzell's full-sized avatar

Rod Hartzell rhartzell

View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat
# If you have a better way to fix the permissions, comment below!
@richardpascual
richardpascual / my-regexp-test-table.sql
Created August 8, 2014 08:19
How to remove unwanted non-alphanumeric characters from an input string
-- my-regexp-workshop (Oracle database table)
-- This is how to make the supporing schema tables. The autosequenced column value/trigger combination is optional.
CREATE SEQUENCE "MY_REGEXP_WORKSHOP_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE
/
CREATE TABLE "MY_REGEXP_WORKSHOP"
( "RECORD_ID" NUMBER NOT NULL ENABLE,
"CUSTOMER_NAME" VARCHAR2(50),
"INPUT_VALUE" VARCHAR2(50),
@lrvick
lrvick / app.js
Last active April 26, 2024 13:06
AngularJS credit card form with validation
// MIT: http://opensource.org/licenses/MIT
angular.module('app', []);
angular.module('app').controller
( 'MainCtrl'
, function($scope,$locale) {
$scope.currentYear = new Date().getFullYear()
$scope.currentMonth = new Date().getMonth() + 1
$scope.months = $locale.DATETIME_FORMATS.MONTH