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
| module publish; | |
| import std.algorithm; | |
| import std.file; | |
| import std.range; | |
| import std.stdio; | |
| import std.parallelism; | |
| import std.path; | |
| import std.process; | |
| import std.typecons; |
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 std.algorithm; | |
| import std.conv; | |
| import std.exception; | |
| import std.getopt; | |
| import std.net.curl; | |
| import std.path; | |
| import std.process; | |
| import std.range; | |
| import std.regex; | |
| import std.stdio; |
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
| module namedparam; | |
| import std.stdio; | |
| import std.traits; | |
| import std.typecons; | |
| template Arg(alias T, size_t N = 0) if (!is(typeof(ParameterDefaultValueTuple!T[N]))) { | |
| alias Arg = Arg!(T, N + 1); | |
| } | |
| template Arg(alias T, size_t N = 0) if (is(typeof(ParameterDefaultValueTuple!T[N]))) { |
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'; | |
| var gulp = require('gulp'); | |
| var react = require('gulp-react'); | |
| var browserify = require('browserify'); | |
| var source = require('vinyl-source-stream'); | |
| var browserfyConfig = { | |
| entries: ['./js/index.js'], | |
| standalone: 'app' |
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"> | |
| <title>Hello React</title> | |
| <script src="https://fb.me/react-0.13.3.js"></script> | |
| <script src="https://fb.me/JSXTransformer-0.13.3.js"></script> | |
| </head> | |
| <body> | |
| <div id="example"></div> |
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
| // source/app.d | |
| import derelict.freeimage.freeimage; | |
| import std.algorithm; | |
| import std.string; | |
| import std.range; | |
| import std.utf; | |
| import std.stdio; | |
| void main(string[] args) |
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'; | |
| var browserify = require('browserify'); | |
| var babelify = require('babelify'); | |
| var reactify = require('reactify'); | |
| var source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var jest = require('gulp-jest'); |
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 std.digest.digest; | |
| auto hmac(alias T, size_t BlockSize = 512 / 8)(in void[] data, in void[] key) if (isDigest!T) { | |
| import std.algorithm; | |
| import std.range; | |
| auto _key = cast(ubyte[])key; | |
| if (_key.length > BlockSize) { | |
| _key = cast(ubyte[])digest!T(_key); |
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
| DiceCommand: | |
| Expression '=' | |
| Expression '<' | |
| Expression '>' | |
| Expression '<=' | |
| Expression '>=' | |
| Expression: | |
| Term | |
| Expression '+' Term |
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
| public import derelict.freeimage.freeimage; | |
| import std.traits; | |
| static this() { | |
| DerelictFI.load(); | |
| } | |
| auto camelize(T)(T str) { | |
| import std.ascii : toUpper; | |
| return str[0].toUpper() ~ str[1 .. $]; |