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
Option Explicit | |
'Main Function | |
Function SpellNumber(ByVal MyNumber) | |
Dim Dollars, Cents, Temp | |
Dim DecimalPlace, Count | |
ReDim Place(9) As String | |
Place(2) = " Thousand " | |
Place(3) = " Million " | |
Place(4) = " Billion " | |
Place(5) = " Trillion " |
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
package com.manulife.ap.config; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import lombok.extern.slf4j.Slf4j; |
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/sh | |
# | |
# Run the following command in the root of your project to install this pre-push hook: | |
# cp git-hooks/pre-push .git/hooks/pre-push; chmod 700 .git/hooks/pre-push | |
# @author : Mak Sophea | |
# @version : 1.0 | |
# | |
# get the path to this script file | |
DIR=$(dirname "$0") |
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/sh | |
# This script will config git hook path into specific folder in your project. This script will invoked by maven build. | |
# @author : Mak Sophea | |
# @version : 1.0# | |
# | |
echo "config git hooksPath to .githooks folder for commit-msg and pre-push" | |
git config core.hooksPath .githooks |
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/env bash | |
# | |
# @author : Mak Sophea | |
# @version : 1.0# | |
# Create a regex for a conventional commit. | |
commit_types="(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|wip)" | |
convetional_commit_regex="^${commit_types}(\([a-z \-]+\))?!?: .+$" | |
# Get the commit message (the parameter we're given is just the path to the | |
# temporary file which holds the message). |
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
import urllib3 | |
import json | |
import logging | |
import os | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
http = urllib3.PoolManager() |
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
package com.amazonaws.cdk.examples; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import software.amazon.awscdk.core.Construct; | |
import software.amazon.awscdk.core.Stack; | |
import software.amazon.awscdk.core.StackProps; | |
import software.amazon.awscdk.services.ec2.*; | |
import software.amazon.awscdk.services.ecr.IRepository; | |
import software.amazon.awscdk.services.ecr.Repository; |
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
import json | |
import logging | |
import os | |
from urllib.request import Request, urlopen | |
from urllib.error import URLError, HTTPError | |
HOOK_URL = os.environ['HookUrl'] | |
logger = logging.getLogger() |
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
import sys | |
import botocore | |
import boto3 | |
import json | |
import logging | |
from botocore.exceptions import ClientError | |
rds = boto3.client('rds') | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) |
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
package com.sma.rabbitmq.service; | |
import com.sma.rabbitmq.model.Category; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.amqp.core.AmqpTemplate; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; | |
/** |
NewerOlder