Skip to content

Instantly share code, notes, and snippets.

Avatar

martianmartian martianmartian

  • CA
View GitHub Profile
View gist:7ffcfe58daa73d608f20b27b9cc3f791
import UIKit
class Foo {
var bar: Int
init(bar: Int) {
self.bar = bar
}
}
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active May 11, 2022
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
View nativeJavaScript.js
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
@natelandau
natelandau / .bash_profile
Last active May 11, 2022
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management