Skip to content

Instantly share code, notes, and snippets.

View jshcrowthe's full-sized avatar

Josh Crowther jshcrowthe

View GitHub Profile
@jshcrowthe
jshcrowthe / jekyll-prep.md
Last active August 29, 2015 14:28
Things needed to do Jekyll (properly)

How To Get Up and Running with jekyll

All of the following are commands that you run at your terminal

Installing Ruby (the right way)

  • \curl -sSL https://get.rvm.io | bash -s stable --ruby

Installing Jekyll and Bundler

  • gem install jekyll
  • gem install bundler
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
@jshcrowthe
jshcrowthe / fibonacci.js
Created May 14, 2015 01:58
Fibonacci Sequence (The cool way)
var fibonacci = function(n) {
return Array.apply(null, Array(n))
.reduce(function(sequence, value, index) {
return sequence.concat((index < 2) ? index : sequence[index - 1] + sequence[index - 2]);
}, []);
};
@jshcrowthe
jshcrowthe / foreman-start.sh
Created May 2, 2015 04:28
Foreman Start Alias
alias fs="[[ -f Procfile.dev ]] && { foreman start -f Procfile.dev; true; } || foreman start"
@jshcrowthe
jshcrowthe / installing-oh-my-zsh-fedora.md
Last active December 8, 2022 18:38
Installing Oh My ZSH oh Fedora (2015 CIT 325 Image)

Installing oh-my-zsh on Fedora (for DB class images)

Oh-my-zsh is an extension of the traditional z shell that is extensible via community created plugins (Plugins found here: oh-my-zsh github repo). It is, in my opinion, a breath of fresh air in comparison to the traditional bash shell.

DO THE FOLLOWING IN ORDER

Installing ZSH (using yum)

The first step for this install is getting zsh we will do this via yum. From your terminal:

@jshcrowthe
jshcrowthe / html5Responsive.html
Created April 30, 2014 04:16
HTML5 Responsive Meta Info
<!-- Viewport Meta/Description -->
<meta name="viewport" content="width=device-width, initial-scale=1">
@jshcrowthe
jshcrowthe / SQLCreateTable.sql
Created April 13, 2014 22:34
SQL Create Table Statement
CREATE TABLE table_name
(
column_name1 data_type(size),
column_name2 data_type(size),
column_name3 data_type(size),
);
@jshcrowthe
jshcrowthe / SQLUpdate
Last active August 29, 2015 13:57
SQL Update Statement
UPDATE table_name SET column_1='new_column_value', column_2='new_column_value' WHERE Column_Test='Column_value';
@jshcrowthe
jshcrowthe / SQLDelete
Created March 24, 2014 19:21
SQL Delete Statement
DELETE FROM table_name WHERE column='column_value';
@jshcrowthe
jshcrowthe / SQLInsert
Created March 24, 2014 19:19
SQL Insert Statement
INSERT INTO table_name (column_1, column_2) VALUES ('Value 1','Value 2');