- Use version control (e.g., Git) for all Terraform configurations
- Create a new branch for proposed changes
- Ensure you're working with the latest version of the main branch
- Update Terraform and provider versions to the latest stable releases
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
function notify( event ) { | |
$.post('https://requestb.in/1g52ujz1', | |
{ "button_name": $(this).attr('name'), | |
"position": $(this).attr('data-position') }); | |
} | |
$(function(){ | |
$( "button" ).on( "click", notify ); | |
}); |
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 | |
version="$1" | |
major=0 | |
minor=0 | |
build=0 | |
# break down the version number into it's components | |
regex="([0-9]+).([0-9]+).([0-9]+)" | |
if [[ $version =~ $regex ]]; 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
var CONFIG = (function() { | |
var private = { | |
'LANG': 'en_sg', | |
'HOPOFF_WAIT': '5' | |
}; | |
return { | |
get: function(name) { return private[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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$( document ).ready( function () { | |
console.log("ready"); | |
// check to see if an object with class .date has lost focussed. if so check | |
// the value of the input for the date type dd/mm/yyyy (only 1900-2099) |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use File::Copy qw(move); | |
my $directory = '.'; | |
opendir (DIR, $directory) or die $!; | |
while (my $file = readdir(DIR)) { |