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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.min.js"></script> | |
<script type="text/babel"> | |
// JSXをtext/babel内に書く | |
define('main', ['react', 'react_dom'], function(React, ReactDOM) { | |
var Main = function() {}; | |
Main.prototype.load = function() { |
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
cd deploy_salesforce_using_gulp_webpack-1.0 | |
sudo npm install gulp gulp-jsforce-deploy gulp-watch gulp-webpack gulp-webpack gulp-zip jquery --save-dev |
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
sudo npm i --save-dev postcss-loader sugarss precss autoprefixer |
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 | |
cache="false" | |
sidebar="false" | |
showHeader="false" | |
standardStylesheets="false" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
docType="html-5.0"> | |
<html> |
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
class Thread<Type_> { | |
fun run(Background_: ((Type_?) -> Any) -> Any, Main_: (Type_?, Throwable?) -> Unit) { | |
var result: Type_? = null | |
var err: Throwable? = null | |
Observable | |
.create<Type_> { subscriber_ -> | |
Background_ { value_ -> | |
subscriber_.onNext(value_) | |
subscriber_.onCompleted() | |
} |
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
class EditViewController: UIViewController { | |
var resultHandler: ((String) -> Void)? | |
// 何らかの処理をするメソッド | |
func hogeMethod() { | |
let data = "テスト" | |
// handlerに関数がセットされているか確認 | |
if let handler = self.resultHandler { | |
handler(data) |
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
drop.get("*") { request in | |
var path = request.uri.path.characters | |
path.removeFirst() | |
return try drop.view(String(path)) | |
} |
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
curl -X POST \ | |
-H 'Content-Type:application/json' \ | |
-H 'Authorization: Bearer 0Sw81tcX82eGuKkMPYRgbvDUeAIbgPC+wKR8T1aKaWy4+7dpUzR2t9XpVDQw1cKivU1AVBD6tE/DIWSz60QTW9UCyC7lJgE+u74XvEceuoMqmZkZdAxw/DMybh6hffSwUhDg74qcrlRZLPRIcahC/wdB04t89/1O/w1cDnyilFU=' \ | |
-d '{ | |
"to": "C23fcbe8d92b0e428298ae1e32585fb36", | |
"messages":[ | |
{ | |
"type":"text", | |
"text":"Hello, world1" | |
}, |
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
apply plugin: 'kotlin' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
ext.kotlin_version = '1.0.6' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |
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 | |
sidebar="false" | |
showHeader="false" | |
standardStylesheets="false" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
docType="html-5.0"> | |
<html> |
OlderNewer