これは過去テキストの焼き直しです かつてはC#で書かれていましたが、C++に修正しています
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
| // 最新のchromeなどで実行できる | |
| var board = [ | |
| [0,0,3,7,0,1,6,0,0], | |
| [0,0,0,6,0,9,0,0,0], | |
| [9,0,0,0,0,0,0,0,7], | |
| [0,0,1,2,9,4,8,0,0], | |
| [0,2,4,0,0,0,9,6,0], | |
| [0,9,0,0,6,0,0,2,0], | |
| [0,1,2,9,0,8,3,4,0], |
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() { | |
| var br = s => s.replace(/\n/g, '&br()'), | |
| wN = y => x => x.name === y | |
| _r = createRequestJSONData(), | |
| _rb = _r.base, | |
| _rbb = _rb.bloods, | |
| _rA = _r.baseAbility, | |
| _rB = _r.battleAbility, | |
| s = `* ${document.title} | |
| [[BBTキャラクターシート>>${location.href}]] |
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
| "use strict"; | |
| class SKNode{ | |
| constructor(val){ | |
| this.left = null; | |
| this.right = null; | |
| this.value = val; | |
| } | |
| } |
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 ebml = require('ebml'); // npm i ebml | |
| var fs = require('fs'); | |
| var decoder = new ebml.Decoder(); | |
| function isAsciiString(bytes){ | |
| for(var i=0,l=bytes.length; i<l; ++i){ | |
| if(!(0x20 <= bytes[i] && bytes[i] <= 0x7e)){ | |
| return false; | |
| } |
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
| require 'sinatra' | |
| require 'json' | |
| class MainApp < Sinatra::Base | |
| get "/*" do | |
| puts "get: #{params.inspect}" | |
| end | |
| post "/*" do | |
| body = request.body.read |
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
| #include <bits/stdc++.h> | |
| using namespace std; | |
| typedef tuple<bool, vector<string>, int> ParseResult; | |
| typedef function<ParseResult(const string, const int)> Parser; | |
| bool isSucceed(const ParseResult &pr) | |
| { | |
| return get<0>(pr); |
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
| compile = (args)-> | |
| result = {} | |
| promises = [] | |
| args.forEach (x) -> | |
| name = x.substr(0, x.lastIndexOf(".")) | |
| exp = x.substr(x.lastIndexOf("."), x.length-1).toLowerCase() | |
| switch true | |
| when exp == ".json" | |
| result[name] = JSON.stringify JSON.parse fs.readFileSync x | |
| when /\.jpe?g/.test exp |
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
| fs = require 'fs' | |
| path = require 'path' | |
| getPaths = (startPath) -> | |
| dirs = [startPath] # push/shift | |
| files = [] | |
| bfs = (target) -> | |
| ls = fs.readdirSync target | |
| ls = ls.filter((x)->x.indexOf(".")!=0).map((x)->path.join(target, x)) | |
| dirs = dirs.concat ls.filter (x)->fs.lstatSync(x).isDirectory() |
環境を作るのにそこそこ時間が掛かるので、事前に用意をしておいてください。
- Windowsの人
- Visual Studio Community 2013 をインストールしておいてください
- Visual Studio Community 2013