This file contains 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
/** | |
Matches Bootstrap 3 | |
*/ | |
$bp-xs : max-width 767px; // Mobile | |
$bp-sm : 768px 991px; // Tablet - Portrait | |
$bp-md : 992px 1199px; // Tablet - Landscape | |
$bp-lg : min-width 1200px; // Desktop | |
/** | |
By Device Name/BS3 |
This file contains 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
@mixin set-columns($numCols, $margin:0, $padding-sides:0) { | |
$afterPadding: 100% - (($numCols - 1) * $margin); | |
float: left; | |
width: $afterPadding/$numCols; | |
margin-right: $margin; | |
padding-left: $padding-sides/2; | |
padding-right: $padding-sides/2; | |
&:nth-of-type(#{$numCols}n + #{$numCols}) { |
This file contains 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
<?php | |
/** | |
* Takes a base64 encoded file string and returns usable information, including the re-encoded file. | |
* Very useful for absorbing files over JSON. | |
* @param $str | |
* @return array | |
* @throws Exception | |
*/ | |
function base64FileDecode($str) |
This file contains 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
var express = require('express') | |
, router = express.Router() | |
, passport = require('passport'); | |
var loginUrl = '/#/auth/login' | |
, redirectUrl = '/auth/redirect/' | |
, loggedInUrl = '/#/account' | |
, logoutRedirect = '/'; | |
// Logout |
This file contains 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
var moment = require('moment'); // http://momentjs.com/docs/ | |
var _ = require('lodash'); // https://lodash.com/docs | |
function(collectionsWithDateValues){ | |
var slots = []; | |
var hours = { | |
start: 7, // 7am | |
end: 21, // 9pm | |
window: 2 // How long each item should be slotted for. | |
}; |
This file contains 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
# Alias Vagrant | |
alias v='vagrant' | |
# Quick outward IP | |
alias myip='curl ip.appspot.com' | |
# DNS Flush | |
alias flushDNS='sudo discoveryutil udnsflushcaches' # 10.10 | |
# alias flushDNS='dscacheutil -flushcache; sudo killall -HUP mDNSResponder' # 10.9 | |
# alias flushDNS='sudo killall -HUP mDNSResponder' # 10.7 – 10.8 |
This file contains 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
// Source: https://gist.github.com/pixelbacon/7754cba64125b0240504 | |
// Inspired by: | |
// https://github.com/jonahvsweb/Photoshop-Automated-Resize-to-Web.jsx | |
// http://blog.wp.weightpoint.se/2012/02/02/batch-export-photoshop-psd-files-to-png-the-right-way/ | |
// To use open Script via Photoshop OR File > Scripts > Browse | |
#target "photoshop" |
This file contains 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
// Source: https://gist.github.com/pixelbacon/7754cba64125b0240504 | |
// Inspired by: | |
// https://github.com/jonahvsweb/Photoshop-Automated-Resize-to-Web.jsx | |
// http://blog.wp.weightpoint.se/2012/02/02/batch-export-photoshop-psd-files-to-png-the-right-way/ | |
` | |
// To use open Script via Photoshop OR File > Scripts > Browse | |
#target "photoshop" |
This file contains 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
/** | |
Squarespace essentially doesn't really document their breakpoints. | |
This can be quite annoying to not have when doing custom CSS. | |
Most themes use essentially one breakpoint. Mobile and not mobile; anything 750 and below is considered mobile. | |
You can use these to write your own CSS and simply use the "Style Editor" to inject your compiled CSS in the event | |
you are not using "Developer Mode" in your site. | |
Enjoy! |
This file contains 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
# When using Divshot.io as a compliment to things like SS for holding your CSS and JS, | |
# you want to push something you already tested locally and publish without typing in | |
# multiple commands. | |
# | |
# At least I do. So I wrote this alias and put it in my `~/.bash_profile`. | |
# I'm not really going to document it's use because if you see it and don't know what | |
# it does, then there is a good chance you shouldn't be using it. | |
# | |
# Misuse can very easily put you in a bad spot. | |
alias dpush="divshot push; divshot promote development staging; divshot promote staging production;" |
OlderNewer