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
#!/bin/bash | |
set -eo pipefail | |
echo "Deleting existing hosting releases" | |
SITE=$1 | |
echo "Site: $SITE" | |
HEADER_AUTH="Authorization: Bearer "$(gcloud auth application-default print-access-token)""; |
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
if exist "$(TargetPath).locked" del "$(TargetPath).locked" | |
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked" |
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
// https://scotch.io/bar-talk/bootstrap-3-tips-and-tricks-you-might-not-know#how-to-enable-bootstrap-3-hover-dropdowns | |
$('.dropdown-toggle').click(function() { | |
var location = $(this).attr('href'); | |
window.location.href = location; | |
return false; | |
}); |
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates | |
# User-specific files (MonoDevelop/Xamarin Studio) |
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
// source: https://github.com/ebidel/filer.js/blob/b7ab6f4cbb82a17565ff68227e5bc984a9934038/src/filer.js#L137-159 | |
var dataURLToBlob = function(dataURL) | |
{ | |
var BASE64_MARKER = ";base64,"; | |
if (dataURL.indexOf(BASE64_MARKER) == -1) | |
{ | |
var parts = dataURL.split(","); | |
var contentType = parts[0].split(":")[1]; | |
var raw = decodeURIComponent(parts[1]); |
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
$ratio-height: 3; | |
$ratio-width: 4; | |
$margin: 0.1; | |
div#selector { | |
width: (1 - $margin) * 100vw; | |
height: (1 - $margin) * $ratio-height / $ratio-width * 100vw; | |
max-height: (1 - $margin) * 100vh; | |
max-width: (1 - $margin) * $ratio-width / $ratio-height * 100vh; | |
} |