Skip to content

Instantly share code, notes, and snippets.

View bbirec's full-sized avatar

Heehong Moon(문희홍) bbirec

View GitHub Profile
// Channels-driven concurrency with Go
// Code examples from Rob Pike's talk on Google I/O 2012:
// http://www.youtube.com/watch?v=f6kdp27TYZs&feature=youtu.be
//
// Concurrency is the key to designing high performance network services.
// Go's concurrency primitives (goroutines and channels) provide a simple and efficient means
// of expressing concurrent execution. In this talk we see how tricky concurrency
// problems can be solved gracefully with simple Go code.
// (7) Fake Google search
// Channels-driven concurrency with Go
// Code examples from Rob Pike's talk on Google I/O 2012:
// http://www.youtube.com/watch?v=f6kdp27TYZs&feature=youtu.be
//
// Concurrency is the key to designing high performance network services.
// Go's concurrency primitives (goroutines and channels) provide a simple and efficient means
// of expressing concurrent execution. In this talk we see how tricky concurrency
// problems can be solved gracefully with simple Go code.
// (7) Fake Google search
@bbirec
bbirec / label.json
Created February 22, 2021 08:05
바코드 라벨지 템플릿
{
"type": "Container",
"flex": {
"size": {
"width": "100%",
"height": "100%"
},
"padding": {
"top": "8",
@bbirec
bbirec / index.js
Created September 8, 2021 06:01
SES -> SNS -> DynamoDB
var aws = require("aws-sdk");
var DynamoDB = new aws.DynamoDB.DocumentClient();
exports.handler = function (event, context, callback) {
var SnsPublishTime = event.Records[0].Sns.Timestamp;
var SESMessage = event.Records[0].Sns.Message;
SESMessage = JSON.parse(SESMessage);
var SESEventType = SESMessage.eventType;