Skip to content

Instantly share code, notes, and snippets.

View seyDoggy's full-sized avatar

Adam Merrifield seyDoggy

View GitHub Profile
@seyDoggy
seyDoggy / Start_Shoe_Advisor.bat
Created May 23, 2014 20:28
A little batch file to launch the required services for medline and shoe advisor
START "XAMPP Control" C:\xampp\xampp-control.exe
START "Foot Sizer Service" C:\Users\pc\Documents\fgl_footsizer_csharp\FootSizerService\bin\Release\FootSizerService.exe
START "Firefox" firefox.exe
@seyDoggy
seyDoggy / fullScreenTargets.js
Last active August 29, 2015 14:04
Script for getting in and out of full screen
var fullscreenTargets = (function (launchElement, exitElement) {
launchElement.on('click', function(event) {
event.preventDefault();
if(document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen();
} else if(document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if(document.documentElement.webkitRequestFullscreen) {
document.documentElement.webkitRequestFullscreen();
} else if(document.documentElement.msRequestFullscreen) {
@seyDoggy
seyDoggy / dotfiles
Created November 1, 2014 19:06
my list of dotfiles
.CFUserTextEncoding
.DS_Store
.Trash
.__tmp_go.sh
.android
.bash_history
.bash_profile
.bashrc
.be-completion.sh
.bower
@seyDoggy
seyDoggy / panel-horizontal.css
Last active August 29, 2015 14:08
Horizontal Bootstrap style panel, using Bootstrap Markup
/*
* To see in action, go to http://jsfiddle.net/seydoggy/9jv5e8d1/
*/
.panel-horizontal {
display:table;
width:100%;
}
.panel-horizontal > .panel-heading, .panel.panel-horizontal > .panel-body, .panel.panel-horizontal > .panel-footer {
display:table-cell;
}
@seyDoggy
seyDoggy / panel-table.css
Created November 7, 2014 21:01
A table-esq Bootstrap panel
/*
* See it in action here: http://jsfiddle.net/seydoggy/6s92p51a/
*/
.panel-table {
display:table;
}
.panel-table > .panel-heading {
display: table-header-group;
background: transparent;
}
@seyDoggy
seyDoggy / state.js
Last active August 29, 2015 14:09 — forked from joladev/state.js
angular.module('services', [])
.factory('State', function ($rootScope) {
'use strict';
var state;
var broadcast = function (state) {
$rootScope.$broadcast('State.Update', state);
};
var update = function (newState) {
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// LICENSE under MIT - https://github.com/twbs/bootstrap/blob/master/LICENSE
//
// Source: https://gist.github.com/seyDoggy/4f370a676f5db6df2d1d
// Forked: https://gist.github.com/andyl/6360906
//
// This is a hack to fill the gap between 480 and 760 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
@seyDoggy
seyDoggy / tab-mappings.vim
Created November 25, 2014 15:03
My ternary operator for mapping the tab key to the appropriate plugin.
" <tab> mapping
imap <expr><TAB>
\ neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" :
\ emmet#isExpandable() ? emmet#expandAbbrIntelligent("\<tab>") :
\ pumvisible() ? "\<C-n>" :
\ "\<TAB>"
smap <expr><TAB>
\ neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" :
\ emmet#isExpandable() ? emmet#expandAbbrIntelligent("\<tab>") :
\ "\<TAB>"
@seyDoggy
seyDoggy / let g:ctrlp_custom_ignore
Created December 3, 2014 14:02
Getting around spf13-vim's ctrlp_user_command in order to set ctrlp_custom_ignore
" The custom ignore feature in ctrlp.vim is a useful feature
" when you want to ignore files and folder in your directory
" structure. However if yo set g:ctrlp_user_command then
" g:ctrlp_custom_ignore had no effect. This is all well and
" and good unless you use a vim distribution like spf13-vim
" that just so happens to set g:ctrlp_user_command. So here
" is how you get around that issue in your own .vimrc.local:
"
" unlet the original spf13-vim settings
unlet g:ctrlp_custom_ignore