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
# resize / convert to png / send it somewhere | |
# | |
# function file size quality whereTo | |
# resizepng \*\.\* 300 82 img-full/ | |
# | |
resizepng() { | |
mogrify -format png -path $4 -filter Triangle -define filter:support=2 -thumbnail $2 -dither None -quality $3 -unsharp 0.25x0.08+8.3+0.045 -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB $1 | |
} | |
# resize / convert to png / fill transparency with a color / send it somewhere |
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
#!/bin/bash | |
#---------------------------------------------# | |
# | |
# VARIABLES | |
# | |
BGCOLOR="#f6f6f6" #Background color to use when flattening transparent areas of png | |
thumbnail='185' #Thumbnail image width | |
medium='650' #Medium image width | |
large='1000' #Large image width |
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
# In sublime text must turn on regex and case sensativity. | |
#Grabs all attributes that start with sketch until last second qoute. | |
\ssketch.[^"]*(["'])(?:(?=(\\?))\2.)*?\1 | |
#Grabs all attributes that start with font-weight until last second qoute. | |
\sfont-w.[^"]*(["'])(?:(?=(\\?))\2.)*?\1 | |
#Grabs def,desc,title,svg tags and comments | |
(?=(<def)|(<desc)|(<title)|(<\!)|(<svg)|(<\/svg)|(<\?)).+ |
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
//Inline Divides | |
//------------------------ | |
.is-inline { | |
font-size: 0; | |
} | |
.is-inline > * { | |
display: inline-block; | |
position: relative; | |
} |
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
#----------------------------------------------------- | |
# Sublime Text 3 - Syncing User Prefrences | |
#----------------------------------------------------- | |
#Put these snippets inside your .bash_profile | |
#Call this snippet on your first computer | |
sublimeOrigin() { | |
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ | |
mkdir ~/Dropbox/Sublime |
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
#Original Script found here @puppybits https://gist.github.com/puppybits/1565441 | |
# Example | |
# bas64 file.png creates the string with the needed data:image/png;base64, appended to the front of the string and copies it to your clipboard | |
# bas64 file.png -img does the same as above but adds an image tag around the string so all you need to do is paste into your html file | |
bas64(){ | |
filename=$(basename $1) | |
ext=${filename##*.} | |
if [ $ext == gif ]; then | |
append="data:image/gif;base64,"; | |
elif [ $ext == jpeg ] || [ $ext == jpg ]; 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
//------------------------------- | |
// Meeting formatting for Harvest | |
//------------------------------- | |
bld` | |
@cursor__JRIA TICKET/STORY NAME__ [bld]: __Development task as apart of your sprint__ | |
int` | |
@cursor__JRIA TICKET/STORY NAME__ [int]: __Development task required to support the backend team__ |
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
"BS3 Media Query Snippet": { | |
"prefix": "bs-media", | |
"body": [ | |
"@media ($minMax-width: \\$screen-$xsSmMdLg-$minMax) {\n\t$0\n}" | |
], | |
"description": "BS3 MediaQuery" | |
}, | |
"BS3 Media Query Self Only Snippet ": { | |
"prefix": "bs-media-only", | |
"body": [ |
OlderNewer