Skip to content

Instantly share code, notes, and snippets.

View satour's full-sized avatar
💭
I may be slow to respond.

Satoru Ishikawa satour

💭
I may be slow to respond.
View GitHub Profile

#取引先と取引先責任者

##取引先と取引先責任者の使用開始

###取引先とその取引先に紐づく取引先責任者を作成しましょう 新規取引先を作成し、その次にその取引先に紐づく取引先責任者を作成しましょう。

  • 以下の取引先を作成してください。
    • 取引先名 = Smith Enterprises
  • 種別 = Prospect
command ref
heroku help COMMAND helpを表示する
heroku git:remote あるHerokuアプリのデプロイ用 gitリポジトリを git remote に追加する
heroku git:remote -a APP_NAME 同上(※リポジトリの候補が複数ある場合、アプリ名を指定する)
heroku git:remote --app APP_NAME 同上(※リポジトリの候補が複数ある場合、アプリ名を指定する)
heroku git:clone あるHerokuアプリのデプロイ用 gitリポジトリを local に clone する
heroku git:clone -a APP_NAME 同上(※リポジトリの候補が複数ある場合、アプリ名を指定する)
heroku git:clone --app APP_NAME 同上(※リポジトリの候補が複数ある場合、アプリ名を指定する)
heroku status Herokuの稼働状況を取得する
➜  ~ heroku
 ▸    Add apps to this dashboard by favoriting them with heroku apps:favorites:add

See all add-ons with heroku addons
See all apps in hoge with heroku apps --org hoge
See all apps with heroku apps --all

You have 6 unread notifications. Read them with heroku notifications
<!-- すげー雑なのでそのうち書き直すかも -->
<HTML lang="ja">
<header>
<meta charset="utf-8">
<script src="https://cdn.mlkcca.com/v0.6.0/milkcocoa.js"></script>
<script>
var milkcocoa = new MilkCocoa('your-app-id.mlkcca.com');
var dataset = milkcocoa.dataStore('your-datastore-name').history();
dataset.sort('desc');
module Salesforce
def method_missing(name, *args, &block)
return super if valid_attribute_name? name
if name.to_s[-1] == '='
send "#{ name.to_s.gsub '=', '__c=' }".to_sym, *args
elsif name.to_s.end_with? '_changed?'
send "#{name.to_s.gsub '_changed?', '__c_changed?'}".to_sym, *args
else
send "#{ name }__c".to_sym
end
//AWS Lambda function
//required environment variables:["tableName"]
'use strict';
console.log('Loading function');
const doc = require('dynamodb-doc');
const dynamo = new doc.DynamoDB();
@satour
satour / colored_jq_less.rb
Last active December 2, 2016 13:50
jq コマンドの出力結果を色つきでlessとして表示するやつ
if STDIN.tty?
file = ARGV[0]
filter = ARGV[1] || "."
system("cat " + file + "|jq " + filter + " -C |less")
else
filter = ARGV[0] || "."
system("jq " + filter + " -C |less")
end
@satour
satour / qj.rb
Created November 25, 2016 06:08
jq の引数の順番を入れ替えただけ(好みの問題)
case ARGV.size
when 1
file, filter, option = ARGV[0], ".", ""
when 2
if ARGV[1][0] == "-"
file, filter, option = ARGV[0], ".", ARGV[1]
else
file, filter, option = ARGV[0], ARGV[1], ""
end
else
@satour
satour / enebularAWSLambdaDeployRole.json
Last active December 1, 2016 13:30
enebular から AWS Lambda デプロイを実行するとき、 IAM Role に付与する IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:CreateFunction",
"lambda:GetFunction",
"iam:PassRole"
],
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction"
],
"Resource": "*"
}