View kintone-improvement.puml
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
@startuml | |
会社 "1" o-- "many" 商談進捗 | |
商談進捗 "1" o-- "many" アプリ | |
アプリ "1" o-- "many" 受注管理 | |
アプリ "1" o-- "1" グロース | |
アプリ "1" o-- "many" repro | |
@enduml |
View 0722.puml
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
@startuml | |
アプリ "1" o-- "1" 商談進捗 | |
アプリ "1" o-- "many" 受注管理 | |
アプリ "1" o-- "1" グロース | |
アプリ "1" o-- "many" repro | |
@enduml |
View gist:f23152624e89f495438e
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
NSData *jsonData = [@"{}" dataUsingEncoding:NSUTF8StringEncoding]; // --> {}; | |
NSDictionary *result = [NSJSONSerialization JSONObjectWithData:jsonData | |
options:NSJSONReadingAllowFragments | |
error:nil]; | |
jsonData = [@"{\"a\":{}}" dataUsingEncoding:NSUTF8StringEncoding]; // --> { a = {}; } | |
result = [NSJSONSerialization JSONObjectWithData:jsonData | |
options:NSJSONReadingAllowFragments | |
error:nil]; |
View issues.js
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
var GitHubApi = require("github").GitHubApi | |
, user = 'joyent' | |
, repo = 'node' | |
, status = 'open' | |
; | |
var github = new GitHubApi(true); | |
github.getIssueApi().getList(user, repo, status, function(err, issues) { | |
console.log(issues.length + ' issues'); | |
issues.sort(function(a, b) { |
View gist:812191
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
var assert = require('assert'); | |
var should = require('should'); | |
var a = 1; | |
var times = 1000000; | |
console.time('if '); | |
while(times--) { | |
if (a === 1) ; | |
} |
View modify_constructor.js
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
> A = function(){} | |
function (){} | |
// prototype.constructor にはコンストラクタ自身が入っている | |
> A.prototype.constructor === A | |
true | |
// けど、 A.prototype.constructor を書き換えても、、 | |
> A.prototype.constructor = function(){console.log(1)} | |
function (){console.log(1)} | |
// A には影響がない | |
> A.prototype.constructor === A |
View app.js
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// Configuration |
View app.js
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// Configuration |
View app.js
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// Configuration |
View app.test.js
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
// Run $ expresso | |
/** | |
* Module dependencies. | |
*/ | |
var assert = require('assert'); | |
var app = require('app'); | |
NewerOlder