Skip to content

Instantly share code, notes, and snippets.

View neilcatalan's full-sized avatar

Neil Catalan neilcatalan

View GitHub Profile
@simplytunde
simplytunde / terraform_dynamodb.tf
Created February 6, 2018 08:54
Terraform DynamoDB Autoscaling
provider "aws" {
region = "us-west-1"
}
resource "aws_dynamodb_table" "test-database" {
name = "tenants"
read_capacity = 20
write_capacity = 20
hash_key = "roomNumber"
range_key = "name"
@mhevery
mhevery / microsyntax.md
Last active November 21, 2022 09:53
Angular microsyntax gramar

Microsyntax

Microsyntax in Angular allows you to write <div *ngFor="let item of items">{{item}}</div> instead of <ng-template ngFor [ngForOf]="items"><div>{{item}}</div></ng-template.

Constraints

The microsyntax must:

  • be know ahead of time so that IDEs can parse it without knowing what is the underlying semantics of the directive or what directives are present.
  • must translate to key-value attributes in the DOM.
@pcoady
pcoady / DynamoDB.json
Created August 28, 2015 10:41
BackSpace Academy Certified Developer Associate CloudFormation LAB
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "DynamoDB Lab Products Database",
"Parameters": {
"ReadCapacityUnits": {
"Description": "Provisioned read throughput",
"Type": "Number",
"Default": "1",
"MinValue": "1",
"MaxValue": "10000",
@pcoady
pcoady / app.css
Last active March 18, 2020 10:52
BackSpace Academy Certified Developer Associate IAM S3 Lab
body {
background: url('supermarket.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.glyphicon-refresh-animate {
-animation: spin .7s infinite linear;
@ishults
ishults / Grails_Groovy_Versions.txt
Last active May 22, 2025 14:31
List of Groovy versions for Grails
// Compiled by Igor Shults
// Last Updated: July 23, 2020
GRAILS GROOVY SOURCE
4.1.0 2.5.14 https://github.com/grails/grails-core/blob/v4.1.0/gradle.properties
4.0.4 2.5.6
4.0.3 2.5.6
4.0.2 2.5.6
4.0.1 2.5.6
4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle
@digitalpardoe
digitalpardoe / CalculateDuration.java
Created July 16, 2011 20:47
Calculating Work Days In Java
public static int calculateDuration(Date startDate, Date endDate)
{
Calendar startCal = Calendar.getInstance();
startCal.setTime(startDate);
Calendar endCal = Calendar.getInstance();
endCal.setTime(endDate);
int workDays = 0;