Skip to content

Instantly share code, notes, and snippets.

@kurtbartholomew
kurtbartholomew / .profile
Created November 27, 2018 02:37
Shell Profile
#user-defined aliases
alias rm='rm -vi'
alias cp='cp -vi'
alias mv='mv -vi'
alias clean='rm -f "#"* "."*~ *~ *.bak *.dvi *.aux *.log'
alias svim='sudo vim'
# Prevent history duplication
export HISTCONTROL=ignoredups
@kurtbartholomew
kurtbartholomew / numberToEnglish.js
Last active April 28, 2017 18:57
numberToEnglish
/*
Instructions:
This solution requires Node to be installed on the target system.
No version requirement exists, but it is suggested that you use
6.0 or higher.
Your node version may be checked by typing `node -v` into your terminal.
To run the solution, simply type `node numberToEnglish.js`.
@kurtbartholomew
kurtbartholomew / gulpfile.js
Created August 20, 2015 15:32
Substantial gulpfile for more complex development
(function(){
'use strict';
}());
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
maps = require('gulp-sourcemaps'),
del = require('del'),
@kurtbartholomew
kurtbartholomew / gulpfile.js
Last active August 29, 2015 14:27
Extremely basic gulp dev file (proxy to backend server)
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var options = {
javascript:'client/public/src/**/*.js',
styles:'client/public/src/assets/css/*.css',
html:'client/public/src/**/*.html',
host: 'localhost:8000'
};
@kurtbartholomew
kurtbartholomew / Gruntfile.js
Created March 18, 2015 17:53
Basic LiveReloading Webdev Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
//pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'js/*.js']
},
watch: {
scripts: {
files: ['Gruntfile.js','js/*.js'],
tasks: 'jshint',
@kurtbartholomew
kurtbartholomew / MoveToOpenLine.sublime-keymap
Last active August 29, 2015 14:15
Move Up/Down to next open line macro for Sublime
/* Move to the next open line up or down (made to emulate line empty line jumping in Vim/Emacs).
Open keybindings via Preferences -> Key Bindings - User and past in between the [] brackets. */
{
"keys": ["ctrl+up"],
"command": "move",
"args": {"by": "stops", "empty_line": true, "forward": false}
},
{
"keys": ["ctrl+down"],
"command": "move",
@kurtbartholomew
kurtbartholomew / semiEnder.sublime-macro
Last active August 29, 2015 14:15
Sublime Macro to put a semicolon at the end of the line and return
// Place this file within Packages/User of your Sublime install folder
[
{ "command": "set_mark" },
{ "command": "move_to", "args": {"to": "eol"} },
{ "command": "insert_snippet", "args": {"contents": "${TM_LINE_TERMINATOR:;}"} },
{ "command": "swap_with_mark" }
]
/*
@kurtbartholomew
kurtbartholomew / Nodejs.sublime-build
Created February 10, 2015 01:07
Node JS Sublime Build System
{
"cmd": ["/usr/bin/nodejs", "$file"],
"selector": "source.js"
}
/*Replace username with your own. You can also try ~/.rvm/bin/rvm-auto-ruby, but it didn't work for me */
{
"cmd": ["/home/username/.rvm/bin/rvm-auto-ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
@kurtbartholomew
kurtbartholomew / .vimrc
Last active November 27, 2018 02:34
Gist to store my vimrc
set nocompatible
filetype off
syntax on
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Plugins start here