`Python の setup.py を書いてみる | CUBE SUGAR STORAGE`_ | entry_points の書き方 |
`fabricとbuildoutで環境構築 第3章 (1) buildoutでレシピを書く - 今川館`_ | buildout |
`tarek / flake8 / source / setup.py — Bitbucket`_ | entry_points には辞書が使える。 |
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
python -c "with getattr(__import__('zipfile', globals(), locals(), [], -1), 'ZipFile')('hoge.zip', 'r') as zfp: print(not bool(zfp.testzip()))" |
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(seq) { | |
var hoge = function(seq) { | |
// timeout の秒数 (ms) | |
var timeout = 1 * 1000; | |
// 与えられた配列の length が 0 なら終わり | |
if (seq.length == 0) return; |
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
if exists("current_compiler") | |
finish | |
endif | |
let current_compiler = "gjslint" | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal | |
endif | |
CompilerSet makeprg=gjslint\ % |
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() { | |
var proto = Hoge.prototype; | |
function Hoge() { | |
// some implements ... | |
} | |
// some implements ... | |
})(); |
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'; | |
var Hoge = Object.create(null); | |
var h = Object.create(Hoge); | |
console.log(Hoge == Object.getPrototypeOf(h)); | |
// => true |
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 | |
class Hoge(object): | |
x = 100 | |
hoge = Hoge() | |
print(hoge.x) | |
# => 100 |
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'; | |
var Hoge = Object.create(null); | |
Hoge.x = 10; | |
var h = Object.create(Hoge); | |
var f = Object.create(Hoge); | |
console.log(h.x); | |
// => 10 | |
console.log(f.x); | |
// => 10 |
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'; | |
var Hoge = Object.create(null); | |
Hoge.x = 10; | |
var h = Object.create(Hoge); | |
console.log(h.x); | |
// => 10 | |
Hoge.x = 20; | |
console.log(h.x); | |
// => 20 |
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
class Hoge(object): | |
def __init__(self, *args, **kwargs): | |
super(type(self), self).__init__() |