prototypeã¨ã¯ãªããªãã ï¼ ä»ã¾ã§åãªãç¶æ¿ç¨ã®ä½ããã¤ãªãã¦ããããã®ãã®ã ã¨æã£ã¦ããã jQueryã®ã³ã¼ãã«ãã©ãã©prototypeããããã£ããã¡ã½ãããç´æ¥ä½¿ãè¨è¿°ããã£ãã®ã§æ°ã«ãªã£ã ããã«newã¾ã§prototypeã®ä¸ã®ã¡ã½ããã使ã£ã¦ãã»ã»ã»ãªãã ããããããã â²Â â¼ ä»ã®èªèã¨ä½¿ãæ¹ ã¾ãprototypeã¨ãããã®ã¯é¢æ°ãªãã¸ã§ã¯ãã«å¿ ããã£ã¦ãããããä½ããããªãã¸ã§ã¯ãã¯prototypeããããã£ãç¶æ¿ããã¨ããã㨠ã¤ã¾ãprototypeããããã£ã«ã¡ã³ãã追å ããã°newãã対象ã«å ¨é¨ã¡ã½ããã追å ã§ãã var Hoge = function(){}; Hoge.prototype.piyo = function(){alert('aaa');}; var aaa = new Hoge(); aaa.piyo(); ãããããã¨
Pythonã§ã¯ãããã¯ã©ã¹ãããã¯ãã¯ã©ã¹ã¤ã³ã¹ã¿ã³ã¹ã«åçã«ã¡ã½ãããä»ããããã¨ãããã¾ããPythonã³ã¼ãã§ã¯ãä¸è¬çã«èããã¨ãããã風ã«æ¸ãã£ã¦æããã¡ã ãã©ã class MyObj(object): def __init__(self, val): self.val = val def new_method(self, value): return self.val + value obj = MyObj(3) obj.method = new_method
ããã§ããã¦ç³ãããã®ã¯ãçµå±ã®æåã ã®æè¦ã®ç¸éã¯ããã©ãã¤ã³ã¿ã¼ãããçéã®æ¹ã ã¯è£ã§ã¿ããªç¹ãã£ã¦ãã¨ããäºã§ããã¾ããããããã³ãã¨ã¾ã§ã¯è¨ãã¾ããããè¦ããã«ä¸è¨ã§è¨ãã¨ãåãåã¨(ryãã§ãããç²ä¿¡ããã®ãæ å ±ã®ä¸é¢ã ããè¦ã¦æ¹å¤ããã®ãå±éºã ã£ã¦äºãè¨ããã訳ã§ãã
19.2. json â JSON ã¨ã³ã³ã¼ãããã³ãã³ã¼ã¶ ãã¼ã¸ã§ã³ 2.6 ã§è¿½å . JSON (JavaScript Object Notation) <http://json.org> 㯠JavaScript ææ³ (ECMA-262 3rd edition) ã®ãµãã»ããã§è»½éã®ãã¼ã¿äº¤æå½¢å¼ã¨ãã¦ä½¿ããã¦ãã¾ãã json ã® API ã¯æ¨æºã©ã¤ãã©ãªã® marshal ã pickle ã®ã¦ã¼ã¶ã«é¦´æã¿æ·±ããã®ã§ãã åºæ¬ç㪠Python ãªãã¸ã§ã¯ãé層ã®ã¨ã³ã³ã¼ãã£ã³ã°: >>> import json >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) '["foo", {"bar": ["baz", null, 1.0, 2]}]' >>> print json.dumps("\"foo\bar")
注æï¼è¿½è¨:2013.03.22ï¼ ãããã®æ å ±ã¯å¤ãã®ã§ããã¾ã¯HTTPç³»ã®å¦çã¯requestsã使ã£ãã»ããããã§ãã Requests: HTTP for Humans â Requests 1.1.0 documentation åæ© Web API使ã£ã¦ãã¨ã§ã¦ãã使ãåããã¡ã¢ã æ¹æ³ ã¾ãã¯ãªã¼ã½ããã¯ã¹ã« GET import urllib url = 'http://d.hatena.ne.jp/ymotongpoo' params = urllib.urlencode({'hoge':1, 'fuga':2}) f = urllib.urlopen(url + '?' + params) # paramsã¯hoge=1&fuga=2ã®å½¢ã«ãªã£ã¦ãã print f.read() POST import urllib url = 'http://d.hatena.ne.
ãåã«ãç®ã«ãããã¾ãã ã²ããã¨ã³ã¸ãã¢takei-hã§ããã´ãã´ãã ãã¦ãamo-kå 輩ããã®èª²é¡ã«ãã£ã¨æãä»ãã¾ããï¼ ãã£ããæ¬é¡ã§ãï¼ 1ï¼telnetãç¨ãã¦HTTPãªã¯ã¨ã¹ããçºè¡ããï¼ telnetãç¨ãã¦ãåãã®å³æ¹ãYahoo!ç¥æµè¢ãã®ããããã¼ã¸ã«å¯¾ãã¦HTTPãªã¯ã¨ã¹ã(GETã¡ã½ãã)ãçºè¡ãã¦ã¿ã¾ãããã ï¼ãªã¯ã¨ã¹ãã¡ã½ããã«ã¯GETã®ã»ãã«POSTãªã©ãããã¾ãããä»åã¯GETã®ã¿ãåãä¸ãã¾ãï¼ telnet chiebukuro.yahoo.co.jp 80[ã¨ã³ã¿ã¼] GET / HTTP/1.0[ã¨ã³ã¿ã¼][ã¨ã³ã¿ã¼] ä¸è¨ã®ã³ãã³ããã³ã³ã½ã¼ã«ã§å®è¡ããã¨ãwebãµã¼ãããã®ã¬ã¹ãã³ã¹ã¨ãã¦ã以ä¸ã«ç¤ºããã¦ãããããã¼ã¨ã¡ãã»ã¼ã¸ããã£ï¼Yahoo!ç¥æµè¢ã®HTMLææ¸ï¼ãè¿ã£ã¦ãã¾ãã HTTP/1.1 200 OK Date: W
12æ9 Pythonã®ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ã®Flaskãããæã ã«ãã´ãª:My PythonMy Programming Mashup Award6ã§å°é£¼å¼¾ããã® 404 API Not Foundè³ãæè³ãã¾ãã - iDeaList::Writingããããªã¼ã¨æããªããèªãã§ãPythonãã¬ã¼ã ã¯ã¼ã¯ã§ãFlaskãã¨ããã®ãããã®ãç¥ãã¾ããã ãA Python Microframeworkãã¨ããéããå°ããªãã¬ã¼ã ã¯ã¼ã¯ã§ããå ¬å¼ãµã¤ãè¦ãã°ä¸ç®çç¶ã§ãããç´æçã«ãããããã¨ãããã«æ¸ããã¨ãããããã§ãã Pythonãã¬ã¼ã ã¯ã¼ã¯ã ã¨Djangoãæåã§ãããDjangoã¯å ããã¥ã¼ã¹ãµã¤ãç¨ã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ä½ããã¦ãããã¨ããã£ã¦å¤§è¦æ¨¡åãã§ãããã«ã¹ã¿ãã¯ãªã®ã¯ããããã®ã ãã©ãæ°è»½ã«ä½ãä½ããã¨ããã¨ãã«ã¯åãã®ä¸æ©ããªããªãè¸ã¿åºããªãã¦ã¤ã©ã¤ã©ã
Welcome to Flask¶ Welcome to Flaskâs documentation. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs describe each component of Flask in detail, with a full reference in the API
ã¤ã©ã³æçè¨#5ãã«ãããã®ããã¦ãÙÙÛج Ù¾ÙÙ ãã°ãã¡ããã«æãã£ãã«ãããããã¦ãã¨è¨ãã¤ã¤ãã°ãã¡ãããä½ã£ã¦ãããã®ã¯ä¸åº¦ã ãã§ãå ã¯ãã°ãã¡ããã®å§ªã£åããã®å¾ææçã§ããããã°ãã¡ããã¨ãã®å§ã姪ã£åã®ã¨ããã«ããããã¨å¤§å¦ã®åæã3人ã§ãã¼ã ã¹ãã¤ãã¦ãã¦ãããããã®å®¶ã«éã³ã«è¡ããâ¦
Python + Flaskã§MVCçãªãµã³ãã«ãã¤ãã£ãã¡ã¢ã MVCçãªè¨äºã¾ã¨ã ã²ã¨ã¾ãMVCã«ã¤ãã¦è¨åããã¦ããè¨äºãã¾ã¨ãã MVCã¯Wikipediaã詳ããã 以ä¸ã¯èª¿ã¹ãä¸ã§ãããã¨å人çã«ãã£ããããè¨äºãã¡ã Web Applicationã綺éºã«è¨è¨ããããã®MVACã¨ããèãæ¹ - Dive into the Tech World! Re: @kazuho: handlersocket plugin ã mycached ã使ãã° memcached ã¯ä¸è¦ããããã¨ã使ãã¹ãã±ã¼ã¹ãããããèå¯ãã [10ç¹] - blog.nomadscafe.jp Life is beautiful: Ruby on Railsã®ãããMVCãã®å¼å®³ the { buckblogs :here }: Skinny Controller, Fat Model å ±éãã¦è¨ãã
Flask åºç¤ãåå¼·ä¸ã ç°å¢æ§ç¯ OSï¼CentOS 5.4 Python-2.6.6 ã¤ã³ã¹ãã¼ã«ã $ pythonbrew install 2.6.6 $ pythonbrew switch 2.6.6 Flask ã¤ã³ã¹ãã¼ã«ã $ pip install Flask Hello Flask $ vi main.py from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello Flask.' if __name__ == '__main__': app.run() $ python main.py * Running on http://127.0.0.1:5000/ ã«ã¼ãã£ã³ã°ï¼å¤æ°ã«ã¼ã« from flask import Flask app = Flas
AirãAirã£ã¦â¦â¦ æ°åMacBookAirãã±ã¼ãå ¥åç¨ã«è²·ããã¨ãã¦ããã©ãéããªãã¿ãªããããã«ã¡ã¯ã å°ãåã¾ã§å¨ããããããAirãéããAirã軽ãã¨æµ®ããã¾ããã§ããåã«ããã¨ç¸å½å¿«é©ã ã¨ãã社å ã§ã2人ãè³¼å ¥ãã¦ãã¾ãããªãã ããããªã«ã½ãªããã¹ãã¼ããããã®ããããããªã«è»½ãã®ãããã®ãããã§ãè²·ãæããã«ããªãã¦ããããã¨é¨ã人ã ã横ç®ã§è¦ãæ¯æ¥ã§ãããããã¼ã MacBookAirã«å¯¾æãããï¼ ãã®ã¾ã¾ææ ¢ãã¦ã¢ããµãªMacBookPro ã使ã£ã¦ããã®ãè ¹ç«ããããAirã®ãµã¯ãµã¯ãã ãã§ãæã«å ¥ãããï¼ã¨ãããã¨ã§ãç®ã®åã®MacBookProã®HDDãSSDã«è¼ãæ¿ãã¦ã¿ããã¨ã«ãã¾ãããã 注æäºé å½æ¹ã§ã¯ä½æ¥çµæã«è²¬ä»»ãè² ãã¾ããï¼ ãã®è¨äºãèªãã§å®è¡ããçµæçºçãããããªãçµæã«å¯¾ãã¦ãå¼ç¤¾ã¯è²¬ä»»ãè² ãã¾ããããèªåã®è²¬ä»»ã®ä¸ã§ä½æ¥ãè¡ã£ã¦ãã ã
è¼åº¦ : 230cd/m2 (æ大æ) è¦éè§ : 15/30/40/40 (ä¸ä¸å·¦å³) 対å¿æ©ç¨® : ã¢ããã°RGB(D-sub15pin)åºåã¨USBãã¼ããæè¼ããPCãâ»USBãã¼ãã¯é»åä¾çµ¦ã®ã¿ã«ä½¿ç¨ãã¾ãã 製åå 容 : æ¬ä½ãå°ç¨ä¿è·ã«ãã¼(åºè·æã«åä»æ¸)ãå°ç¨ãã«ãã¹ã¿ã³ã(åºè·æã«åä»æ¸)ãå°ç¨USBé»æºã±ã¼ãã«(ç´1m)ãå°ç¨USBé»æºè£å©ã±ã¼ãã«(ç´1m)ãå°ç¨VGAã±ã¼ãã«(ç´1.8m)ãåæ±èª¬ææ¸/ä¿è¨¼æ¸
Skip to: Content | Navigation | Footer Location: Hg's / Markdown ã®è¨æ³ Language: ja Hg's Now Loading... http://daringfireball.net/projects/markdown/syntax ãè±èªã§ããã©ãããã unmovabletype.org ã« Markdown è¨æ³ã®æ¥æ¬èªã§ã®è§£èª¬ããã£ãããããã ããæ®å¿µãªããä»ã¯ééããã¦ãããã¾ãã£ããã ã¨ããããã§ããã®ã¨ã³ããªã¯ãã²ã¬ç¨ Markdown è¨æ³ã¡ã¢ãã£ã¤ã¼ãä¸ã®ãªã³ã¯å ã®ç¨ä¾ãã³ããããã ãã¨ããåãã 追è¨:05/06/07 ç®æ¬¡ã追å ããã¨ããã§ãã¯ç¨ã«Dingusã¸ã®ãªã³ã¯ã追å ãã¨ããã Block Element Paragraph Header Blockquote List Code B
ã¡ãã£ã¨å¤ããã©ã ãããµãä¼å ´ã§ãéè«ãã¦ããã¨ãPythonã¯DISããªããã§ãããã¨æ´ç°ããããããªããèªèçãããªãï¼ ã¨ã¯è¨ããã®ã®ãPythonã¯åºæ¬çã«è¯ãè¨èªã§ã ä¸æºãªç¹ã¯ããªãå¾®å¦ã ãä¸è¬äººã«ã¯ã©ã¼ã§ããããããªç¹ã ã¨æãã ä¸å¿ãªã¹ããã å¼ã¨æã®åºå¥ãæ確ã ã¤ã³ãã³ããã¼ã¹ã ã¨eRubyã®ãããªãã³ãã¬ã¼ããé£ãã ãããã¯ãå«ãå¼ãæã¦ãªããHaskellã¿ããã«ãã¬ã¼ã¹ã使ãã°å¼ã«ã§ããã¨ããã®ã« reduceããªããªã generatoré£ãããyieldãæ¸ãã¨æ»ãå¤ãå¤åããã£ã¦ã®ã¯ã©ãã list comprehensionãé£ãããè±èªäººã«ã¯äººæ°ã¿ããã ãã© Matzæ¥è¨ï¼PythonãDisãã ãPython ã¯åºæ¬çã«ããè¨èªãã«ã¯åæãRubyist ã§ãã使ã£ã¦ããªãã®ã« Python ã DIS ã人ãããã®ã¯æ®å¿µãã¤ã³ãã³ããã¼ã¹ãå«ã
[This post is by Ibrahim Elbouchikhi, Product Manager on the Google Play team. âDirk Dougherty] We launched In-app Billing on Google Play a year ago to give developers more ways to sell and engage users over the lifetime of their apps. Since the launch, In-app Billing has been extremely successful in helping developers monetize their apps through try-and-buy, virtual goods, upgrades, and other pop
ãããHaskellãã®ããå¦ã¼ã! ä½è : Miran LipovaÄa,ç°ä¸è±è¡,æ主å´è¡åºç社/ã¡ã¼ã«ã¼: ãªã¼ã 社çºå£²æ¥: 2012/05/23ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 19人 ã¯ãªãã¯: 552åãã®ååãå«ãããã° (36件) ãè¦ã ä»è©±é¡ã®ãããã Haskell ãã®ããå¦ã¼ãï¼ãèªãã ã®ã§ãããã¡ãã£ã¨æã£ããã¨ãããã®ã§æ¸è©ã¨åããã¦æ¸ãã¦ããã¾ãã æã£ãã㨠é¢æ°åè¨èªãããã»ã©è©±é¡ã«ãªãã®ã¯ã¨ã¦ãå¬ãããã¨ã§ãã ããããä¸æ¹ã§æ¸å¿µç¹ãããã¾ãã ããªã§ãããããã¨ã ãè¨ã人ãã¡ããã ãã®äººãã¡ã«ä¹ããã㦠(èªåã«ã¯åããªãã®ã«) è²·ã£ã¦ãã¾ã£ã¦ãæ«æãã¦ãã¾ã人ãåºã¦ããã ãã®æ¬ã¯ãããæ¬ã§ãã 翻訳ã®è³ªãç´ æ´ããããèªãã§ãã¦ãèªã¿ã«ãããªãã¨æã£ãé¨åã¯ããã¾ããã ããã«å ãã訳注㨠Appendix ãç´ æ´ãããã ãããã誰ã«ã§
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}