Skip to content

Instantly share code, notes, and snippets.

View tjnine's full-sized avatar

TJ Nine tjnine

View GitHub Profile
@tjnine
tjnine / .php_cs
Created December 11, 2015 19:36
a sample php coding standards config file
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('somedir')
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->setRules(array(
'@PSR2' => true,
@tjnine
tjnine / .scss-lint.yml
Last active December 11, 2015 17:00
default scss code climate file
# Default application configuration that all configurations inherit from.
scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
linters:
@tjnine
tjnine / States.php
Last active December 17, 2015 19:07
array of states and states abbreviations
global $_STATES, $_STATES_ABBR;
$_STATES = array(
'AL'=>'Alabama',
'AK'=>'Alaska',
'AZ'=>'Arizona',
'AR'=>'Arkansas',
'CA'=>'California',
'CO'=>'Colorado',
@tjnine
tjnine / docsheet.md
Created December 7, 2015 08:22
Vagrant Install

This will help you to download and setup a virtual machine with a minimal amount of steps, using Vagrant. It is recommended for a first installation, as it will save you from many of the common pitfalls of the installation process.

See the repository README to get the [https://github.com/edx/edx-platform#installation---the-first-time installation instructions].

== Troubleshooting ==

Note: This section deals with issues specific to the Vagrant install - see also the general troubleshooting page for more common issues.

@tjnine
tjnine / demo.html
Created November 25, 2015 17:02
Dynamically Add Text, Textbox, Checkbox, Radio, Button w/ jQuery
<div style="display:inline">
<input type="button" id="txtPlain" value="Add Plain Text" style="" />
<input type="button" id="txt" value="Add TextBox" style="" />
<input type="button" id="chk" value="Add CheckBox" style="" />
<input type="button" id="rad" value="Add Radio" style="" />
<input type="button" id="btn" value="Add Button" style="" />
</div>
<div id="holder">
@tjnine
tjnine / gist:9c9b47c9cfc9d7f69d98
Last active November 24, 2015 19:56
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@tjnine
tjnine / server.go
Created November 21, 2015 13:46
a static server written in GoLang
#-id="0.0.0.0": server ip -port="80": port the server will be listening on -root="": server root folder defaults to working directory
package main
import (
"flag"
"log"
"net/http"
"os"
)
@tjnine
tjnine / Google App launcher.markdown
Last active November 5, 2015 21:59
Google App launcher
@tjnine
tjnine / grunt-server.js
Created November 5, 2015 20:17
a local setup with a grunt server
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
@tjnine
tjnine / GoInstall
Created November 5, 2015 01:42
Go Installation Help
Installing Go
Download and run the installer found at http://golang.org/doc/install
OS X
Download an install the darwin binary from https://golang.org/dl/
Linux
Ubuntu 14.04