Skip to content

Instantly share code, notes, and snippets.

🐱
I love cats

momo mom0tomo

🐱
I love cats
Block or report user

Report or block mom0tomo

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 jojo-calendar.gs
function sendToSlack(message) {
Logger.log('sendToSlack() debug start');
var url = 'webhook url';
var channel = '#calender';
var username = 'jojo-bot';
var icon_emoji = ':hand:';
var payload = {
'channel' : channel,
View Google Formからイベント参加申込->Slack通知
function sendToSlack(message) {
Logger.log('sendToSlack() debug start');
var url = 'hogehoge';
var channel = '#hogehoge';
var username = 'event-invite-bot';
var icon_emoji = ':rainbow-flag:';
var payload = {
'channel' : channel,
View リポジトリを作るときにやるやつ
mkdir some-repo; cd some-repo
git init
git commit --allow-empty -m 'initial commit'
git ignore macos,vim,go > .gitignore
git lisence -u mom0tomo mit > LICENSE
git add .gitignore
git commit -m 'add .gitignore for macos,vim,go'
git add LICENSE
git commit -m 'add LICENSE'
git create
View MySQL 文字コードをutf8にする
## 文字コードをutf8にするための設定ファイルをつくる
※ 以下のコマンドは2回以上実行するとDBの設定がおかしくなり、起動に失敗するようになるので注意。
### /etc/my.cnfをつくる
```
sed -e "/^\[mysqld_safe\]$/i character-set-server=utf8\n\n[client]\ndefault-character-set=utf8" /etc/my.cnf |sudo tee /etc/my.cnf
```
下記ファイルができる。
@mom0tomo
mom0tomo / 0_reuse_code.js
Created Nov 24, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.