Skip to content

Instantly share code, notes, and snippets.

View jasonknebel's full-sized avatar

Jason Knebel jasonknebel

View GitHub Profile
alias open="xdg-open"
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias reload="source ~/.bashrc"
alias profile="vim ~/.bashrc && source ~/.bashrc"
alias ..="cd .."
alias show-ports="sudo netstat -tulpn"
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'jpo/vim-railscasts-theme'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
" Plugin 'vim-airline/vim-airline-themes'
find . -type f -name "*rb" -exec sed -i 's/FactoryGirl/FactoryBot/' {} +
Hello
Bonjour
Good-bye
Au revoir
How are you?
Comment ça va?
I'm fine, thanks.
Hello
Olá
Good-bye
Adeus
How are you?
Como vai?
I'm fine, thanks.
### Basics (3 main branches + Releases)
1. Master Branch
- This is the cleanest code that is ready to deploy at any time.
- Commits are tagged with version numbers.
- It lives forever.
2. Development Branch
- No development will happen here, only merges from Feature branches and Release branches.
- It is never merged into any other branch.
- Nobody will commit to this branch. Depending on the project's structure and team culture, selected individuals will merge pull requests into the Development branch.
- It never dies.
@jasonknebel
jasonknebel / bounce.js
Created February 26, 2013 04:33
Bouncing ball!
var width = 450;
var height = 200;
var time = 750;
var up_right = function(){
$('img').animate({marginTop: 0, marginLeft: (width - 31) / 2}, time, 'linear', down_right);
};
var down_right = function(){
$('img').animate({marginTop: height-30, marginLeft: width - 31}, time, 'linear', up_left);
setwd('~/Documents/zooplankton')
data = read.csv("Env_x_Zoop use this data set _.csv")
chla = data[,3]
conduct = data[,4]
logTotal = data[,6]
richness = data[,7]
sumZoo = data[,8]
for(i in 9:34){sumZoo = sumZoo + data[,i]}
comm_conduct = data[1:13,4]
res_conduct = data[14:28,4]