This file contains hidden or 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
1d7e0a32ee0affeb4d22acd73c2c6fb6bd58e266c8c2ce4fa0ffe3dd6a253ffb |
This file contains hidden or 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
$ sh docker/run-ametsuchi-dev.sh | |
... | |
I have no name!@39a278c945a5:/iroha$ cmake -H. -Bbuild; cmake --build build -- -j4; | |
-- The C compiler identification is GNU 5.4.0 | |
-- The CXX compiler identification is GNU 5.4.0 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features |
This file contains hidden or 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
Verifying that "cimadai.id" is my Blockstack ID. https://onename.com/cimadai |
This file contains hidden or 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 plain = "I have a pen. I have an apple. Apple-pen!"; | |
var encoded = "I oari a fib. I oari ab affwi. Affwi-fib!"; | |
var cpA = "a".codePointAt(); // 97 | |
var cpZ = "z".codePointAt(); // 122 | |
var deltaOfAandZ = cpZ - cpA; // 25 | |
function encode(str) { | |
var ret = []; | |
for (var i = 0, l = str.length; i < l; ++i) { |
This file contains hidden or 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
extends layout | |
block content | |
div(class="container-fluid") | |
div(class="row") | |
div(class="col-xs-12") | |
form | |
div(class="form-group") | |
label(for="input_text" class="step-message") Step1. 言語を選択 | |
div(style="text-align:center;") |
This file contains hidden or 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 express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var routes = require('./routes/index'); | |
var app = express(); |
This file contains hidden or 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 org.opencv.core.{Core, MatOfRect, Point, Scalar} | |
import org.opencv.imgcodecs.Imgcodecs | |
import org.opencv.imgproc.Imgproc | |
import org.opencv.objdetect.CascadeClassifier | |
object DetectFaceDemo extends App { | |
System.loadLibrary(Core.NATIVE_LIBRARY_NAME) | |
// Create a face detector from the cascade file in the resources | |
// directory. |
This file contains hidden or 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
val apiKey = "YOUR API KEY FOR CHATWORK" | |
val cli = new ChatworkClient(apiKey) | |
cli.me() | |
cli.postRoomMessage("SOME CHATROOM ID", "A MESSAGE") |
This file contains hidden or 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
package sample | |
func Sum(xs ...int) (s int) { | |
for _, x := range xs { | |
s += x | |
} | |
return | |
} |
This file contains hidden or 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
# sinatra でのリダイレクト設定 | |
# http://.../hoge のような '/' なしを '/' ありへリダイレクト | |
# ただし、 http://example.com の場合は末尾 '/' が付く | |
get %r{^(.+[^/])$} do |c| | |
redirect c + "/", 303 | |
end |