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
/** | |
* Created by azu on 2014/02/25. | |
* LICENSE : MIT | |
*/ | |
"use strict"; | |
function getAllScores() { | |
return [1, 2, 3]; | |
} | |
function average() { |
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
#!/bin/sh | |
asciidoctor -a source-highlighter=pygments --backend html5 --base-dir "`dirname $MARKED_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
いつも弊社の書籍をご愛顧いただきありがとうございます。 | |
技術評論社WEB+DB PRESS編集部池田と申します。本書の編集を担当いた | |
しました。 | |
お問い合わせありがとうございます。申し訳ありませんが、電子化を検 | |
討はしているのですが、現時点では『コーディングを支える技術』の電 | |
子版の販売は具体的には決定していない状態です。 | |
このたびはお問い合わせありがとうございました。今後とも弊誌刊行物 | |
をなにとぞよろしくお願いいたします。 |
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
/** | |
* Created by azu on 2014/03/06. | |
* LICENSE : MIT | |
*/ | |
"use strict"; | |
var esprima = require('esprima'); | |
var estraverse = require('estraverse'); | |
var escodegen = require('escodegen'); | |
var esquery = require("esquery"); | |
var clone = require("clone"); |
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
/** | |
* Created by azu on 2014/03/08. | |
* LICENSE : MIT | |
*/ | |
"use strict"; | |
var bu = require('browserify'); | |
var through = require('through'); | |
bu({pack: function (value) { | |
var parser = through(); | |
var stream = through( |
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
[BILib injectToClassWithNameRegex:BIRegex(@"^[^(UI)].*?Controller$") methodNameRegex:BIRegex(@"^viewWillAppear") preprocess:^{ | |
NSLog(@"%@", [BILib prettyFunction]); | |
}]; |
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
/* | |
Copyright 2012 Christopher Hoobin. All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
1. Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. |
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
/* | |
* espowerify - Browserify transform for power-assert. | |
* | |
* https://github.com/twada/espowerify | |
* | |
* Copyright (c) 2014 Takuto Wada | |
* Licensed under the MIT license. | |
* https://raw.github.com/twada/espowerify/master/MIT-LICENSE.txt | |
*/ | |
var through = require('through'), |
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
"use strict"; | |
function notifyMessage(message) { | |
return new Promise(function (resolve, reject) { | |
if (Notification.permission === "granted") { | |
var notification = new Notification(message); | |
return resolve(notification); | |
} else if (Notification) { | |
Notification.requestPermission(function (status) { | |
if (Notification.permission !== status) { | |
Notification.permission = status; |
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
"use strict"; | |
function notifyMessage(message, options, callback) { | |
if (Notification.permission === "granted") { | |
var notification = new Notification(message, options); | |
callback(null, notification); | |
} else if (Notification) { | |
Notification.requestPermission(function (status) { | |
if (Notification.permission !== status) { | |
Notification.permission = status; | |
} |