This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim ws As Worksheet | |
Set ws = Worksheets("CreateField") | |
Dim createFieldsBody As String | |
createFieldsBody = sfc.CREATE_BASE | |
createFieldsBody = Replace(createFieldsBody, "{{sessionId}}", sessionId) | |
Dim createFields As String | |
createFields = "" | |
For rowNum = 4 To 7 | |
Dim createField As String | |
createField = sfc.CREATE_TEXTFIELD_BASE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
import hmac | |
import hashlib | |
import Crypto | |
from Crypto.Signature import PKCS1_v1_5 | |
from Crypto.Hash import SHA256 | |
from Crypto.PublicKey import RSA | |
import datetime | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page showHeader="false" | |
standardStyleSheets="false" | |
docType="html-5.0"> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"/> | |
<script type="text/javascript"> | |
(function() { | |
if (typeof window.janrain !== 'object') window.janrain = {}; | |
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class CallTwilio { | |
public static void sendSMS(String sms_message) { | |
TwilioRestClient client = TwilioAPI.getDefaultClient(); | |
TwilioMessage message = client.getAccount().getMessages().create(new Map<String, String>{ | |
'To' => '+*********', | |
'From' => '+*********', | |
'Body' => sms_message | |
}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestResource(urlMapping='/MyRestContextExample/*') | |
global with sharing class AnonymousHandler { | |
@HttpGet | |
global static Account doGet() { | |
RestRequest req = RestContext.request; | |
RestResponse res = RestContext.response; | |
res.addHeader('Access-Control-Allow-Origin', '*'); | |
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1); | |
Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = :accountId]; | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<types> | |
<members>*</members> | |
<name>ApexPage</name> | |
</types> | |
<types> | |
<members>*</members> | |
<name>ApexTrigger</name> | |
</types> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Test_Proc() | |
Set ws = ThisWorkbook.ActiveSheet | |
Dim driver As New SeleniumWrapper.WebDriver | |
Dim By As New By, Assert As New Assert, Verify As New Verify, Waiter As New Waiter | |
driver.Start "firefox", "https://********" | |
driver.setImplicitWait 5000 | |
driver.get "/" | |
driver.findElementByName("domain").Clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var webserver = require('gulp-webserver'); | |
var source = require('vinyl-source-stream'); | |
var browserify = require('browserify'); | |
var plugins = require('gulp-load-plugins')(); | |
//web server立ち上げ | |
gulp.task('webserver', function() { | |
gulp.src('./') | |
.pipe(webserver({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ET_Client = require('fuelsdk-node'); | |
var FuelSoap = require( 'fuel-soap' ); | |
function modifySoapOptions(options) { | |
//add a special header here indicating call is from this sdk. | |
var args = Array.prototype.slice.call(arguments); | |
if (args[2] === null) args.splice(2,1); | |
if (args.length < 4) args.splice(2, 0,{reqOptions:{headers:{}}}); | |
if (!args[2].reqOptions) args[2].reqOptions = {}; | |
if (!args[2].reqOptions.headers) args[2].reqOptions.headers = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
nodaemon=false | |
pidfile=/var/run/supervisord.pid | |
logfile=/var/log/supervisord.log | |
[inet_http_server] | |
port=127.0.0.1:9001 | |
[program:elasticsearch] | |
command=/home/hoge/elasticsearch/bin/elasticsearch |