Skip to content

Instantly share code, notes, and snippets.

View chrisfrancis27's full-sized avatar
Verified beard

Chris Francis chrisfrancis27

Verified beard
View GitHub Profile
@chrisfrancis27
chrisfrancis27 / main.js
Created February 7, 2014 12:17
Feature toggle snippet
// If 'sidebarNav' feature is toggled ON...
if (Features.sidebarNav) {
// Load the new SidebarNav module
require(['modules/sidebar'], function(SidebarNav) {
// ...
});
}
@chrisfrancis27
chrisfrancis27 / apple2.zsh-theme
Created November 17, 2014 10:38
ZShell - Apple2 Theme
function toon {
echo -n ""
}
get_git_dirty() {
git diff --quiet || echo '*'
}
autoload -Uz vcs_info
autoload -U colors && colors
@chrisfrancis27
chrisfrancis27 / Origami-Key-Bindings.json
Created November 18, 2014 15:49
Sublime Text - Package - Key Bindings - Origami
[
{
"keys": ["super+k", "super+w"],
"command": "destroy_pane",
"args": {"direction": "self"}
}
]
@chrisfrancis27
chrisfrancis27 / Preferences.sublime-settings
Last active August 29, 2015 14:09
Sublime Text 3 user settings (OSX)
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "smooth",
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"copy_with_empty_selection": true,
"detect_indentation": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
@chrisfrancis27
chrisfrancis27 / config
Last active August 29, 2015 14:16
Git config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[push]
default = tracking
[remote "origin"]
@chrisfrancis27
chrisfrancis27 / profile.ps1
Last active December 14, 2015 21:28
Powershell Profile
# '##::::'##::::'###::::'########::'####::::'###::::'########::'##:::::::'########::'######::
# ##:::: ##:::'## ##::: ##.... ##:. ##::::'## ##::: ##.... ##: ##::::::: ##.....::'##... ##:
# ##:::: ##::'##:. ##:: ##:::: ##:: ##:::'##:. ##:: ##:::: ##: ##::::::: ##::::::: ##:::..::
# ##:::: ##:'##:::. ##: ########::: ##::'##:::. ##: ########:: ##::::::: ######:::. ######::
# . ##:: ##:: #########: ##.. ##:::: ##:: #########: ##.... ##: ##::::::: ##...:::::..... ##:
# :. ## ##::: ##.... ##: ##::. ##::: ##:: ##.... ##: ##:::: ##: ##::::::: ##:::::::'##::: ##:
# ::. ###:::: ##:::: ##: ##:::. ##:'####: ##:::: ##: ########:: ########: ########:. ######::
# :::...:::::..:::::..::..:::::..::....::..:::::..::........:::........::........:::......:::
$ProjectsDir = "D:\Projects"
@chrisfrancis27
chrisfrancis27 / snippets.ftd
Last active December 15, 2015 06:09
Notepad++ Fingertext snippets
con
Lang:JS
console.log($[![]!]);[>END<]!$[FingerTextData FingerTextData]@#
amdmain
Lang:JS
/*jslint browser: true, vars: true, white: true, forin: true, plusplus: true */
/*global define,require,console */
(function () {
'use strict';
@chrisfrancis27
chrisfrancis27 / Sprite Grid.jsx
Created March 25, 2013 17:28
Photoshop script to generate vertical and horizontal grid line guides for use creating sprite sheets
// check for document
if(app.documents.length > 0){
// get active document
var psDoc = app.activeDocument;
// get user input on column count
var colWidth = parseInt( prompt("Column size?", 5) );
var docWidth = psDoc.width;
if (FeatureToggles.IsEnabled("SidebarNav")) {
// ...
}
<?xml version="1.0"?>
<featureToggles>
<feature name="AccountRegistrationTools" enabled="true" />
<feature name="SidebarNav" enabled="true" />
<feature name="GoogleMapsApiV3" enabled="false" />
<feature name="SystemLogging" enabled="false" />
</featureToggles>