Skip to content

Instantly share code, notes, and snippets.

View JeffLutzenberger's full-sized avatar

Jeff Lutzenberger JeffLutzenberger

View GitHub Profile
@JeffLutzenberger
JeffLutzenberger / simplify.swift
Last active November 14, 2017 00:25
simplify.swift
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
//
// Simplify.swift
//
// Simplification of a 3D-polyline.

Keybase proof

I hereby claim:

  • I am JeffLutzenberger on github.
  • I am jefflutzenberger (https://keybase.io/jefflutzenberger) on keybase.
  • I have a public key whose fingerprint is EF82 FC82 E44E 8624 6D11 7732 DCD5 2845 8D0E 8419

To claim this, I am signing this object:

;; User behaviors
;; -----------------------------
;; Behaviors are stored as a set of diffs that are merged together
;; to create the final set of functionality that makes up Light Table. You can
;; modify these diffs to either add or subtract functionality.
;;
;; Behaviors are added to tags, objects with those tags then automatically gain
;; whatever logic the behavior imparts. To see a list of user-level behaviors,
;; start typing a word related to the functionality you want in between the square
;; brackets (e.g. "theme").
@JeffLutzenberger
JeffLutzenberger / bash_profile
Created April 12, 2014 19:17
Show you git branch and include git tab completion
LICOLOR=1
alias ls='ls -G'
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
@JeffLutzenberger
JeffLutzenberger / .vimrc
Created April 19, 2013 23:17
current .vimrc
set nocompatible " be iMproved
filetype off " required!
syntax on
filetype plugin indent on
set laststatus=2
:set number
:colorscheme zenburn
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
@JeffLutzenberger
JeffLutzenberger / ios-notify.m
Created June 9, 2012 00:13
Simple iOS Notification
// notify
[[NSNotificationCenter defaultCenter] postNotificationName:@"YourNotifyMessage" object:self];
// observer
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(observerFunction:)
name:@"YourNotifyMessage" object:nil];
// observer function
- (void)observerFunction:(NSNotification *)notice {
<?php
class SmtpMail
{
private $server;
private $user;
private $pass;
private $port = 25;
public function __construct($server="localhost", $port=25, $user=null, $pass=null)