create an empty project and add a Gemfile
cd ~/Desktop
mkdir project-name
cd project-name
touch Gemfile
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# |
<?php | |
/** | |
* Retrieve the posts based on query variables. | |
* | |
* There are a few filters and actions that can be used to modify the post | |
* database query. | |
* | |
* @since 1.5.0 | |
* @access public | |
* @uses do_action_ref_array() Calls 'pre_get_posts' hook before retrieving posts. |
remove_action('genesis_doctype', 'genesis_do_doctype'); | |
add_action('genesis_doctype', 'child_html5_doctype'); | |
/** | |
* Removes the Genesis doctype and replaces it with an HTML5 doctype | |
* | |
* @author Justin Tallant | |
*/ | |
function child_html5_doctype() { | |
$doctype = '<!DOCTYPE html> | |
<html dir="' . get_bloginfo("text_direction") . '" lang="' . get_bloginfo("language") . '"> |
class Choice | |
attr_reader :text | |
attr_reader :decision_a | |
attr_reader :decision_b | |
def initialize(text, decision_a, decision_b) | |
@text = text | |
@decision_a = decision_a | |
@decision_b = decision_b | |
end |
<?php | |
/** | |
* Automatically minifies style.css and writes output to style.min.css | |
* | |
* @author Justin Tallant | |
* @param boolean $minification_is_on when true ends execution of the function | |
* @return void | |
* @link http://justintallant.com/switching-between-minified-and-non-minified-css-and-js-files-in-wordpress/ | |
*/ |
// app/views/users/edit.html.erb
<form action="/users/1" method="POST">
<input type="hidden" name="_method" value="PUT"
<input type="text" name="username" value="jtallant">
<input type="email" name="email" value="justin.tallant@nycda.com">
<textarea name="bio">Bio goes here</textarea>
</form>