Skip to content

Instantly share code, notes, and snippets.

View hallaji's full-sized avatar
Camping

Vahid Hallaji hallaji

Camping
View GitHub Profile
@hallaji
hallaji / MappingTemplate.txt
Last active January 10, 2019 01:45
AWS API Gateway Mapping Template
#set($allParams = $input.params())
{
"context": {
"httpMethod": "$context.httpMethod",
"path": "$context.path"
},
"params" : {
#foreach($type in $allParams.keySet())
#set($params = $allParams.get($type))
"$type": {
@hallaji
hallaji / README.markdown
Last active August 9, 2017 02:49
Iranian National Identifier Validator

Iranian National Identifier Validator

A validator for Iranian (Persian) national identifier or social number

Languages

c#, java, javascript, php

Types

parameter: string (It doesn't support arabic or persian numbers)
return: boolean