This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* So first step is to hide your actual radio button because the browser won't let you hide the real thing */ | |
input[type="radio"], input[type="checkbox"] { | |
display:none; | |
} | |
/* Next specify a font size, 8px is comes out about the same size as a regular radio button */ | |
.radio-stack{ | |
font-size: 8px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"html_attributions" : [], | |
"result" : { | |
"address_components" : [ | |
{ | |
"long_name" : "76", | |
"short_name" : "76", | |
"types" : [ "street_number" ] | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('myApp') | |
.controller('SomeCtrl', SomeCtrl); | |
SomeCtrl.$inject = ['$scope', '$http', ' alertService']; | |
function SomeCtrl($scope, $http, alertService) { | |
$http.put('http://some.url/user/44', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// assumed returned method of tokenService, a factory in my angular app. | |
function validate() { | |
var expires = new Date(sessionStore.get(XPERATION)), | |
now = new Date(), | |
deferred = $q.defer(); | |
try { | |
if (sessionStore.get(XPERATION)) { | |
if (Object.prototype.toString.call(expires) === '[object Date]' && !isNaN(expires.getTime())) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (global, factory) { | |
factory(global.MyFunc = {}); | |
}(this, function (myfunc) { | |
// private | |
var privVar = 'What\'s this pattern called?'; | |
function privFunc (some, text) { | |
return some + text; | |
} | |
// public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" <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>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} |