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
(setq twittering-retweet-format " RT @%s: %t") | |
(defadvice twittering-organic-retweet | |
(after edit-from-bol activate) | |
(beginning-of-line)) |
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
;;; js.el --- Major mode for editing JavaScript | |
;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. | |
;; Author: Karl Landstrom <karl.landstrom@brgeight.se> | |
;; Daniel Colascione <dan.colascione@gmail.com> | |
;; Maintainer: Daniel Colascione <dan.colascione@gmail.com> | |
;; Version: 9 | |
;; Date: 2009-07-25 | |
;; Keywords: languages, oop, javascript |
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 sub = function(i) { | |
return function(cb) { | |
// do something | |
cb && cb(i); | |
}; | |
}; | |
for (var i = 0, len = array.length; i < len; i++) { | |
sub(i)(function(j) { | |
// do something |
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
;; -*- coding: utf-8 -*- | |
;;; org-html5presentation.el --- HTML5 Presentation export for Org-mode | |
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 | |
;; Free Software Foundation, Inc. | |
;; Author: Carsten Dominik <carsten at orgmode dot org> | |
;; Keywords: outlines, hypermedia, calendar, wp | |
;; Homepage: http://orgmode.org | |
;; Version: 7.01trans |
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'); // 追加:assert を require | |
var app = require('app'); // パスを修正 | |
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'); | |
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 |
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 |
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 |
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 |
OlderNewer