Skip to content

Instantly share code, notes, and snippets.


gcchaan gcchaan

Block or report user

Report or block gcchaan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cognito-idp-google.ts
import cdk = require('@aws-cdk/core');
import * as cognito from '@aws-cdk/aws-cognito'
import { SignInType, UserPoolAttribute } from '@aws-cdk/aws-cognito';
export class SailingdayStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const userPool = new cognito.UserPool(this, id + 'Pool', {
signInType: SignInType.EMAIL,
gcchaan / cfn-athena-template.yml
Created Sep 2, 2019
Cloudformation template of Athena
View cfn-athena-template.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: Athena Stack
Type: AWS::Glue::Database
CatalogId: !Ref 'AWS::AccountId'
Description: for athena
Name: gcchaan_database
gcchaan / karabiner.json
Created Aug 27, 2019
REALFORCE .config/karabiner/karabiner.json
View karabiner.json
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
"profiles": [
"complex_modifications": {
"parameters": {
gcchaan / data.ts
Last active Mar 12, 2018
Amazon Cognito PreSignUp DomainValidation
View data.ts
export function event(triggerSource = '', userAttributes = null) {
return {
triggerSource: triggerSource,
request: {
userAttributes: userAttributes,
validationData: null
response: {
autoConfirmUser: false,
autoVerifyEmail: false,
gcchaan /
Last active May 19, 2017
troposphere runner
set -ef -o pipefail
function message(){
echo 🍣 "$1"
function help(){
gcchaan /
Created Sep 11, 2014
function setHoliday() {
var startTime = momentjs.moment().add('months', 2).date(1);
var endTime;
var end = momentjs.moment();
var daysInMonth = end.daysInMonth();
endTime = end.add('months', 2).date(daysInMonth);
var holidayCalendar = CalendarApp.getCalendarById(
var mstHoliday = holidayCalendar.getEvents(new Date(startTime), new Date(endTime));
gcchaan / koukasokutei.html
Created Apr 19, 2014
measure of effect for website
View koukasokutei.html
<!DOCTYPE html>
<html lang="ja">
<meta charset="utf-8" />
<script src="../jquery-2.0.3.min.js"></script>
function getRound(num,m){
num *= Math.pow(10,m);
gcchaan / svg_path_previewer.html
Created Dec 14, 2013
when you input a path of SVG ,'Online SVG path Viewer' rend the vector the path code quickly!
View svg_path_previewer.html
<!DOCTYPE html>
<html lang="ja">
<meta charset="utf-8" />
<script src="jquery-2.0.3.min.js"></script>
$('textarea').bind('keypress blur change',function(){
gcchaan / stopwatch.html
Created Aug 6, 2013
Stop Watch written in Javascript.
View stopwatch.html
<!DOCTYPE html>
<html lang="ja">
<meta charset="utf-8">
<div id="hour"></div>
<div id="minute"></div>
<div id="second">0.00</div>
You can’t perform that action at this time.