slackを運用してわかったこと - ロードバランスすだちくん
私はこうやってslackを社内で流行らせました | AWS~セキュリティまで データホテルのテックブログ
| 'use strict'; | |
| const isFunction = (any) => { | |
| const str = Object.prototype.toString.call(any); | |
| return /^\[object (Generator)?Function\]$/.test(str); | |
| } | |
| const listupGetter = (obj) => { | |
| const proto = Object.getPrototypeOf(obj); | |
| return Object.getOwnPropertyNames(proto).filter((v) => { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| 'use strict' | |
| const AWS = require('aws-sdk'); | |
| // SQS の QueueName | |
| const SQS_QUEUE_NAME = 'testQueue' | |
| // 最大で取りたいメッセージ数 | |
| const SQS_RECEIVE_LIMIT = 100; | |
| // receiveMessage メソッドの params.MaxNumberOfMessages に渡す数(1 〜 10) | |
| const SQS_RECEIVE_MESSAGE_MAX = 10; | |
| exports.handler = (event, context) => { |
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| $white: #fff; | |
| .box { | |
| background-color: $white; | |
| } |
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| $black: #000000; | |
| .borderBlack { | |
| border: solid 1px $black; | |
| } |