Let's start out with something fun - Your own game!!
class ParentClass | |
def public_method | |
puts '[works] parent # public' | |
protected_method | |
end | |
protected # Can only be called from within the methods | |
def protected_method | |
puts '[works] parent # protected' | |
end |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
Everybody has terrible commit messages in some point in their life. Sometimes every single day.
Try to limit using the -m
commit flag. git commit -m "A crappy commit message"
and use git commit
with no flags.
If using the simpler git commit
command it should open up sublime text, where you can construct a better commit by following some of these simple steps.
#!/bin/sh | |
# | |
# HTML Tidy with HTML5 support | |
# https://github.com/htacg/tidy-html5 | |
# | |
# Available after install at /usr/local/tidy-html | |
INSTALL_PATH=/tmp/tidy-html5 | |
brew install cmake | |
git clone [email protected]:htacg/tidy-html5.git $INSTALL_PATH |
#!/bin/sh | |
# | |
# Run validations before commit | |
# | |
# - HTML: https://github.com/htacg/tidy-html5 | |
# - CSS: https://github.com/CSSLint/csslint | |
# - JS: http://jshint.com/docs/cli/ | |
# | |
# Author: [email protected] |
HTML-CSS-JS Prettify is a SublimeText3 package that will help you automatically indent and format your HTML, CSS, JavaScript and Json files with one click.
- Install node.js
- Open Sublime Text 3
- Install Sublime Package
Ctrl+Shift+P
orCmd+Shift+P
in Linux/Windows/OS X- Type
install
, selectPackage Control: Install Package
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"], |
# WDI PROJECT CLI | |
# Clone or Reset a bunch of WDI projects automatically | |
# | |
# Author: [email protected] | |
# General Assembly Hong Kong | |
$github_org = "wdi-hk-9" | |
$projects = %w( | |
Project-SushiMeAway |