Skip to content

Instantly share code, notes, and snippets.

Lance Kidwell muddylemon

View GitHub Profile
@jamtur01
jamtur01 / ladder.md
Last active Jul 4, 2020
Kickstarter Engineering Ladder
View webviewprovider.js
var webviewProvider = (function() {
if (/\/FBIOS/i.test(navigator.userAgent) === true) {
return 'facebook';
}
if (/Twitter for/i.test(navigator.userAgent) === true) {
return 'twitter';
}
if (/Pinterest\//.test(navigator.userAgent) === true) {
return 'pinterest';
}
@staltz
staltz / introrx.md
Last active Jul 11, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@munificent
munificent / gist:9749671
Last active Jan 4, 2020
You appear to be creating a new IDE...
View gist:9749671
You appear to be advocating a new:
[ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic
[ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed.
You appear to believe that:
[ ] Syntax highlighting is what makes programming difficult
[ ] Garbage collection is free
[ ] Computers have infinite memory
[ ] Nobody really needs:
@muddylemon
muddylemon / .bash_history
Created Mar 10, 2013
This is my bash history file on every machine I have
View .bash_history
pwd
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
exit
@ryndel
ryndel / handlebars.linkify.js
Created Oct 14, 2012
Handlebars.js: linkify helper #cc #handlebars
View handlebars.linkify.js
Handlebars.registerHelper('linkify', function (text) {
text = text.replace(/(https?:\/\/\S+)/gi, function (s) {
return '<a href="' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)@(\w+)/gi, function (s) {
return '<a href="http://twitter.com/' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)#(\w+)/gi, function (s) {
@vlandham
vlandham / geodesic.js
Created Oct 12, 2012 — forked from mbostock/.block
Geodesic Grid
View geodesic.js
(function() {
var φ = 1.618033988749895,
ρ = 180 / Math.PI;
var vertices = [
[1,φ,0], [-1,φ,0], [1,-φ,0], [-1,-φ,0],
[0,1,φ], [0,-1,φ], [0,1,-φ], [0,-1,-φ],
[φ,0,1], [-φ,0,1], [φ,0,-1], [-φ,0,-1]
];
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active Jul 11, 2020
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
View osx-for-hackers.sh
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@digitaljhelms
digitaljhelms / gist:3014302
Created Jun 28, 2012
Sublime Text 2 bash alias & CLI function to open projects without using the `.sublime-project` file extension
View gist:3014302
# bash alias
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
# bash function, usage: $ st -p [projectname] -opt2 -opt3
function st() {
if [ -n "$1" -a -n "$2" ]; then # if more than one argument
if [ "$1" = "-p" -o "$1" = "--project" ]; then # if arg1 is -p or --project
local projectfile="$2"
[[ $projectfile != *.sublime-project ]] && projectfile="$2.sublime-project" # detect if arg2 already includes the ext
if [ -e $projectfile ]; then # does project file exist?
@stojg
stojg / ContentAwareImage.php
Created Apr 23, 2012
Testing content aware cropping for SilverStripe Idea is that the automatic cropping will crop the most interesting part of the image
View ContentAwareImage.php
<?php
/**
* ContentAwareImage
*
* @author stig
*/
class ContentAwareImage {
protected static $start_time = 0.0;
You can’t perform that action at this time.