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 / 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;
<?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>
if (FeatureToggles.IsEnabled("SidebarNav")) {
// ...
}
<html class="<%= FeatureToggles.GetCssClassesForFeatures('en') %>">
<html class="feat-AccountRegistrationTools feat-SidebarNav">
@chrisfrancis27
chrisfrancis27 / Preferences.sublime-settings
Last active December 20, 2015 23:08
Sublime Text 3 user settings (Ubuntu)
{
"font_face": "UbuntuMono",
"font_size" : 12,
"tab_size" : 2,
"translate_tabs_to_spaces": true,
"detect_indentation": false,
"draw_minimap_border": true,
"always_show_minimap_viewport": true,
"caret_style": "smooth",
"line_padding_top": 2,
<snippet>
<content><![CDATA[
/*jslint browser: true, white: true */
/*global define */
define([
'${1:dependencies}'
], function (${2:dependencyArgs}) {
'use strict';
@chrisfrancis27
chrisfrancis27 / main.js
Created August 15, 2013 11:14
JS module conditional feature toggle
// If 'sidebarNav' feature is toggled ON...
if ($('html').hasClass('.feat-sidebarNav')) {
// Load the new SidebarNav module
require(['modules/sidebar'], function(SidebarNav) {
// ...
});
}