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
| void pillar (float r, float h) { | |
| push(); | |
| rotateX(HALF_PI); | |
| circle(0, 0, r); | |
| pop(); | |
| push(); | |
| translate(0, h, 0); | |
| rotateX(HALF_PI); | |
| circle(0, 0, r); |
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
| const baseCode = 'code' | |
| const options = [ | |
| { | |
| label: 'カラー', | |
| code: 'c', | |
| items: [ | |
| {label: 'ブラック', code: 'black'}, | |
| {label: 'ホワイト', code: 'white'}, | |
| {label: 'ベージュ', code: 'beige'}, |
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
| function trick () { | |
| if(Math.random() > 0.8) { | |
| return | |
| } | |
| return Array.from({length:999}).map(function(){ return "💩"}).join("") | |
| } | |
| function treat () { | |
| 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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>world</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| position: absolute; |
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
| function 人(名前){ | |
| this.名前 = 名前 | |
| this.支払い義務 = null | |
| } | |
| function 支払い義務 (支払先, 額) { | |
| this.支払先 = 支払先 | |
| this.額 = 額 | |
| } |
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
| function sleep(ms) { | |
| return new Promise((resolve) => setTimeout(() => resolve(), ms)) | |
| } | |
| function getOldestMessageTimestamp() { | |
| var d = (document.querySelector('.im_message_date_split_text')||{}).innerText | |
| if (!d) { | |
| var date = new Date() | |
| d = date.getFullYear() + '/' + (date.getMonth()+1) + '/' + date.getDate() | |
| } |
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 token = $("form input[name=\"token\"]").val() // DOMからtokenを取得 | |
| var amount = 0.0044 // 任意の数量を入れる | |
| var priceBase = 890000 // 基準となる指値 | |
| var priceDef = 3330 // 指値の基準からの価格差 | |
| var limitBase = null // 逆指値の基準 | |
| var limitDef = 0 // 逆指値の基準からの価格差 | |
| var range = 10 // 指値の数 | |
| var currencyPair = "btc_jpy" // 銘柄 | |
| var action = "ask" // 取引内容: "bid" 買い / "ask" 売り |
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
| function moveIndex (index, x, y) { | |
| index += x | |
| index += y * 8 | |
| return index | |
| } | |
| function isTopSide (index) { | |
| return index < 8 | |
| } |
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
| const fs = require('fs'), | |
| Zaif = require('zaif'), | |
| moment = require('moment') | |
| const output = './trade.csv' | |
| const key = "****", | |
| secret = "****" | |
| const zaif = new Zaif(key, secret) |
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 fs = require('fs') | |
| const | |
| PATH_SELLS = __dirname + "/../files/coincehck/buys-2017-11-30.csv", | |
| PATH_BUYS = __dirname + "/../files/coincehck/sells-2017-11-30.csv" | |
| var sellsCsv = fs.readFileSync(PATH_SELLS, 'utf-8'), | |
| buysCsv = fs.readFileSync(PATH_BUYS, 'utf-8') | |
| var result = {} |
NewerOlder