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
SELECTED_TAB=$(osascript -e "tell application \"Terminal\" to get selected tab of window 1") | |
ALL_ARGS="'$*'" | |
if [[ $ALL_ARGS =~ stg|staging ]]; | |
then | |
osascript -e "tell application \"Terminal\" to set background color of $SELECTED_TAB to {65280, 49408, 1792}"; | |
osascript -e "tell application \"Terminal\" to set normal text color of $SELECTED_TAB to {0, 0, 0}" | |
else | |
osascript -e "tell application \"Terminal\" to set background color of $SELECTED_TAB to {56320, 13568, 17664}"; | |
osascript -e "tell application \"Terminal\" to set normal text color of $SELECTED_TAB to {65280, 65280, 65280}" | |
fi |
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
SELECTED_TAB=$(osascript -e "tell application \"Terminal\" to get selected tab of window 1") | |
ALL_ARGS="'$*'" | |
if [[ $ALL_ARGS =~ stg|staging ]]; | |
then | |
echo "matches" | |
osascript -e "tell application \"Terminal\" to set background color of $SELECTED_TAB to {65280, 49408, 1792}"; | |
osascript -e "tell application \"Terminal\" to set normal text color of $SELECTED_TAB to {0, 0, 0}" | |
else | |
echo "doesn't match" | |
osascript -e "tell application \"Terminal\" to set background color of $SELECTED_TAB to {56320, 13568, 17664}"; |
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
window.navigator.__proto__.sendBacon = function(url, data){ | |
window.navigator.sendBeacon(url, data); | |
} |
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
ffmpeg -i file-in.mov -s 700x500 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=6 > file-out.gif |
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
<script src="https://assets.dockwa.com/white-label-form/v1/dockwa-form.js"></script> | |
<iframe src="https://dockwa.com/explore/destination/CHANGE-ME-TO-MARINA-SLUG/embed" id="dockwa-embed" frameborder="0" onload="resizeCrossDomainIframe('dockwa-embed', 'https://dockwa.com');fadeIn(this);" width="100%" height="1600px" style="opacity:0;"></iframe> |
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
// Responsive interpolation mixin, great for making resposive text, but can work on anything. | |
@mixin interpolate($elements, $min-size, $max-size, $precision: 10, $property: 'font-size', $unit: 'rem', $min-width: 360, $max-width: 960){ | |
$increment: ($max-size - $min-size)/$precision; | |
@for $i from $precision through 0{ | |
@if $i == $precision{ | |
#{$elements}{ | |
#{$property}: #{$max-size - $i * $increment}#{$unit}; | |
} | |
} @else { | |
@media only screen and (min-width: #{$max-width - $i * ($max-width - $min-width)/$precision}px) { |