View the.css
1 2 3 4 5 6 7 8
/* 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;
}
View places.json
1 2 3 4 5 6 7 8 9 10
{
"html_attributions" : [],
"result" : {
"address_components" : [
{
"long_name" : "76",
"short_name" : "76",
"types" : [ "street_number" ]
},
{
View SomeCtrl.js
1 2 3 4 5 6 7 8 9 10
(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', {
View recursive-promise.js
1 2 3 4 5 6 7 8 9 10
// 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())) {
View unknownpattern.js
1 2 3 4 5 6 7 8 9 10
(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
View let g:ctrlp_custom_ignore
1 2 3 4 5 6 7 8 9 10
" 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
View tab-mappings.vim
1 2 3 4 5 6 7 8 9 10
" <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>"
View bootstrap_ms.css.scss
1 2 3 4 5 6 7 8 9 10
// 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.
View breakpoints.css
1 2 3 4 5 6 7 8 9 10
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
 
/*========== Mobile First Method ==========*/
 
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
Something went wrong with that request. Please try again.