Skip to content

Instantly share code, notes, and snippets.

View martianmartian's full-sized avatar

martianmartian martianmartian

  • CA
View GitHub Profile
@natelandau
natelandau / .bash_profile
Last active March 20, 2024 22:19
Mac OSX 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
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active February 2, 2024 16:57
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
import UIKit
class Foo {
var bar: Int
init(bar: Int) {
self.bar = bar
}
}