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
<script> | |
// By default, Ghost blogging platform opens external links in the existing tab. | |
// You may the change the behavior if it is not desired. | |
// The following code opens all external links in a new tab. | |
$(document).ready(function() { | |
// Create a regex with current location | |
var regex = '/' + window.location.host + '/'; | |
regex = regex.replace(/\./g,'\\\.'); | |
var exp = new RegExp(regex); | |
// Find all links |
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 | |
AZURE_RESOURCE_GROUP='YOUR_RESOURCE_GROUP_NAME' | |
if [ $1 == "start" ]; | |
then | |
VM_NAMES=$(az vm list -g $AZURE_RESOURCE_GROUP --show-details --query "[?powerState=='VM deallocated'].{ name: name }" -o tsv) | |
for NAME in $VM_NAMES | |
do | |
echo "Starting $NAME" |
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
console.log(module.filename); // /<folder path>/exports.js | |
console.log("Module Exports Filename = ", module.exports.filename); // undefined | |
console.log("Exports Filename = ", exports.filename); // undefined | |
console.log("Overwriting Exports"); | |
exports = { | |
filename:"boo" | |
} | |
console.log("Module Exports Filename = ", module.exports.filename); // undefined |
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
# Hello World | |
This is content converted from Markdown! | |
Here's a JSON sample: | |
```json | |
{ | |
"foo": "bar" | |
} |