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 inFolder = Folder.selectDialog("Please select folder to process"); | |
if(inFolder !== null) { | |
var fileList = inFolder.getFiles(/\.(jpg|tif|psd|)$/i); | |
var outfolderName = prompt('Folder name', 'zoom'); | |
var outfolder = new Folder(decodeURI(inFolder) + "/" + outfolderName); | |
if (!outfolder.exists) outfolder.create(); | |
for(var a = 0; a < fileList.length; a++) { |
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
mapkey('J', '#3Go one tab left', 'RUNTIME("previousTab")'); | |
mapkey('K', '#3Go one tab right', 'RUNTIME("nextTab")'); |
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
Change the apache2 configuration to enable override all | |
sudo vi /etc/apache2/apache2.conf | |
Change on <Directory /var/www/> | |
AllowOverride none | |
to |
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
shopt -s nullglob | |
date="$(date "+%Y-%m-%d")" | |
folderTime="$(date "+%H%M%S")" | |
dest="/Users/$USER/Documents/Desktop/$date" | |
src=(/Users/$USER/Desktop/*) | |
files="/Users/$USER/Desktop/*" | |
if [ ${#src[@]} -gt 0 ]; then |
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
// http://packery.metafizzy.co/packery.pkgd.js added as external resource | |
docReady( function() { | |
var container = document.querySelector('.packery'); | |
var pckry = new Packery( container, { | |
itemSelector: '.item', | |
columnWidth: 150, | |
gutter: 20, | |
// disable resize | |
isResizeBound: false |
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 margin = 15; | |
S.cfga({ | |
"defaultToCurrentScreen" : true, | |
"secondsBetweenRepeat" : 0.1, | |
"checkDefaultsOnLoad" : true, | |
"focusCheckWidthMax" : 3000 | |
}); | |
// Create Operations |
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
// Custom media Query | |
// Use: If you want to a media query to apply to anything less-than or greater-than a specific width. | |
// Example: | |
// @include apply-to(less-than, 1200px) {} | |
// Will apply to anything smaller than 1200px | |
@mixin apply-to($maxmin, $size) { | |
$extrema: null; | |
@if $maxmin == less-than { | |
$extrema: max; | |
} @if $maxmin == greater-than { |
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
/** | |
* Paper Stack | |
*/ | |
* { box-sizing: border-box; } | |
a { text-decoration: none; color: #AC190C; } | |
body { | |
font-family: Helvetica Neue, Helvetica, Arial, sans-serif; | |
background: url("http://subtlepatterns.com/patterns/wood_pattern.png"); | |
background-color: #fff; |
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
/** | |
* Corner Ribbon - http://jsfiddle.net/chriscoyier/H6rQ6/1/ | |
*/ | |
.wrapper { | |
margin: 50px auto; | |
width: 280px; | |
height: 370px; | |
background: white; |
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
/** | |
* Tumblr-ish | |
*/ | |
* { box-sizing: border-box; } | |
html { | |
font-family: Helvetica Neue, Helvetica, Arial, sans-serif; | |
font-size: 14px; |
NewerOlder