2013-07-01ãã1ã¶æéã®è¨äºä¸è¦§
RubyWarrior - Blocè±èªã ãã©ã¡ãã£ã¨è¦ãã°ä½ããããã¯ãããããã¨æããåã«é²ãã ããå¾ãã«æ»ã£ãããæµã«æ»æãããããã¡ã¼ã¸ããã£ããå復ããããããã°ã©ãã³ã°ãã¦ãããã¢ã®æµãåãã¦ãããå¼ç¢ã使ãæµããããããã¨ãã¨ã¯ã³ãã³ãã©ã¤ã³â¦
åéããã¦ãã®ã§ã¡ã¢ä»¥ä¸ã®ããã«getJSONã®ã¬ã¹ãã³ã¹ãåããããstatusè¦ã¦ãªãã¤ã¬ã¯ãããããã¨èãããã ãã©ããããã302ãè¿ããããcallbackãå¼ã°ããªãã£ãã $(function(){ $.getJSON('/path/to/api', function(data, textStatus, jqXHR){ if â¦
datetimeãLast-ModifiedãIf-Modified-Sinceã®æ¸å¼ã«å¤æ - brainstormdjangoã§ç¨æããã¦ãã >>> from datetime import datetime >>> from django.utils.http import parse_http_date, http_date >>> now = datetime.now() # datetimeãepochã¿ã¤ã ã«ããâ¦
ã¾ã éçºä¸ã¿ããã ãã©ãåºãã試ãã¦ã¿ãããå¹¾ããããã«ãªããã ããï¼Macaw | The code-savvy web design tool. åç» Sneak peek of Macaw - The code-savvy web design tool Macawã§åºåããHTML index
ãµã¤ãã¼ã»ãã¥ãªãã£èªæ¬ä½è : ä¸ç°å樹åºç社/ã¡ã¼ã«ã¼: åæ¸æ¿çºå£²æ¥: 2013/07/24ã¡ãã£ã¢: åè¡æ¬ãã®ååãå«ãããã° (4件) ãè¦ã ãã®æã®ç¥èãå ¨ç¶ãªãã¦ãããã«ã¦ã§ã¢ãªã«ããï¼ãã ã£ãããã¡ã¼ã«ã®æ·»ä»ãã¡ã¤ã«ãããéããããAndroidã§æªãâ¦
æè¿ç¥ã£ã¦ä¾¿å©ã ã£ãã®ã§ãgitã¨ãmercurialã§ç®¡çãã¦ããã½ã¼ã¹ã®ç·¨éä¸ã«ããNext ChangeããPrevious Changeãã§å¤æ´ç¹ã¸ç§»åã§ããã ã·ã§ã¼ãã«ãããè¨å®ãã¦ãªãå ´åã¯ããã»ããããã 移åããã¨ãå°ãããã¼ã«ãã¼ã¨ã¦ã£ã³ãã¦ã表示ãããã¦ã£â¦
jQuery Mobileã®Selectè¦ç´ <select name="color" id="color_select" data-native-menu="false"> <option value="">é¸æãã¦ãã ãã</option> <option value="red">赤</option> <option value="blue">é</option> <option value="white">ç½</option> <option value="black">é»</option> </select> é¸ã¶ã¨ããããç¶æ ã«ãªãã è¦ãç®ãã¹ãã¼ããã©ã³ã£ã½ãããããã«ãseleâ¦
Google Chromeã§ãéããã¿ããéãããããã¨ä½¿ãã®ã§ã¨ãã©ãPycharmã§éããã¨ãã£ã¿ã®ã¿ããéããã¨ãã¦åããã¼ãå©ãã¦ãã¾ã ãã¼ãå²ãå½ã¦ããã«ãããããªã¢ã¯ã·ã§ã³ãªãã ãã¨æã£ã¦èª¿ã¹ãããã£ãã ãReopen Closed Tabã åããã¼ã空ãã¦ãâ¦
webãã¼ã¸ã«ã«ã¬ã³ãã¼ã表示ãããã¨æã£ã¦èª¿ã¹ã¦ã¦ãpythonã«calendarã¢ã¸ã¥ã¼ã«ãç¨æããã¦ãã®ãç¥ã£ããããããã°ãæå®ããæã®æ¥æ°ãåå¾ããã®ã«calendar.monthrangeã使ã£ããã¨ããã£ããã©ãä»ã«ãããããæ©è½ãç¨æããã¦ããã ä¾ãã°å½æã®â¦
# coding=utf-8 def is_unique_chars(s): """æååä¸ã«éè¤ããæåããããã©ãããã§ãã¯ãã """ if isinstance(s, str): s = s.decode('utf-8') return len(set(list(s))) == len(s) # ascii assert is_unique_chars(u"abcdefg") assert not is_unique_â¦
Pycharmã§ã¯classãoverrideãã¦ããã¡ã½ãããããã¨ãè¡çªå·ã®å³å´ã«ããã示ãã¢ã¤ã³ã³ã表示ãããã¯ãªãã¯ããã¨ã親ã¯ã©ã¹ã§ã®å®è£ ã«ç§»åã§ããã®ã ãã©ãã·ã§ã¼ãã«ãããè¨å®ããã¦ãã®ã§ããã¼ãã¼ãã§ãã£ãã»ãã便å©ã ã£ããNavigate -> Super Mâ¦
ã¤ã³ã¹ãã¼ã« pip install django-admin2 è¨å® djadmin2ã¨ä¾åã©ã¤ãã©ãªãINSTALLED_APPSã«å«ããsettings.py INSTALLED_APPS += ( 'djadmin2', 'rest_framework', # for the browsable API templates 'floppyforms', # For HTML5 form fields 'crispy_formâ¦
ãåãã¦ã®Pythonãã§ç´¹ä»ããã¦ããã³ã¬ã¼ã¿ã§ãé©ç¨ããã¦é¢æ°ãå¼ã°ããåæ°ãåºåããã class Tracer(object): """é¢æ°ã®å¼ã³åºãåæ°ãä¿åãã¦åºåãããã³ã¬ã¼ã¿""" def __init__(self, func): self.calls = 0 self.func = func def __call__(self, â¦
resizeitã¨ããã®ã使ã£ã¦ã¿ããã©ãåããªãã£ãã®ã§ãpythonã§ãã£ã¤ãã¹ã¯ãªãããæ¸ãã # coding=utf-8 from PIL import Image import glob import os # 縮å°åã®ç»åãããdir FROM_DIR = "/path/to/from_dir" # 縮å°å¾ã®ç»åãç½®ãdir TO_DIR = "/patâ¦
ModelFormã使ãã°ãä½ãããªãã¦ãè¨å®ãããã¯ãã ãã©ãæ示çã«FormFieldãæå®ããªããã¦ããå ´åã¨ããforms.Formã使ã£ã¦ãå ´åã¨ãã¯ãmax_lengthã2ç®æã«æ¸ããã¨ã«ãªã£ã¦ãã¾ãã 解決æ¹æ³ã調ã¹ã¦ãããModelå´ã®max_lengthã®å¤ãåå¾ãã¦FormFiâ¦
pycharmã§htmlãç·¨éãã¦ãã¨å³ä¸ã«ãã©ã¦ã¶ã®ã¢ã¤ã³ã³ã表示ããã¦ãã¯ãªãã¯ããã¨ãã¡ã¤ã«ãéãã ä»ã¾ã§ãã¾ãæ°ã«ãã¦ãªãã£ããã©ãããããã°chromeããªã chromeã¢ã¤ã³ã³ã表示ãããã«ã¯settings -> Web Browserã§è¨å®ããå¿ è¦ãããããã 表示ãâ¦
jisx0208ã§ã¯ç¬¬1æ°´æºæ¼¢åã第2æ°´æºæ¼¢åãå®ãããã¦ããJISåºæ¬æ¼¢å - CyberLibrarian pythonã§æååã第ï¼æ°´æºæ¼¢åã®ã¿ã§æ§æããã¦ãããã©ãããå¤å®ããå ´åãã©ã®ããã«ããã°ããã ããã ãã®ãããªæ£è¦è¡¨ç¾ãè¦ããããããã¯ãã¾ãåããªãã # coâ¦
encode('unicode_escape')ã使ãã print u"è ".encode('unicode_escape') # => \u8155 éã«code pointããæåãå¾ãå ´åã¯unichrã使ã print unichr(33109) # => è åè : 7.8. codecs â Codec registry and base classes â Python v2.7.5 documentation
sorlã®å é¨ã§PILãã¨ã©ã¼ ç°å¢ã¯macosxæã£åãæ©ã対ççæ³ sudo pip uninstall PIL sudo pip install pillow ããã§åããåè : python - Need help with a PIL Error -- IOError: decoder zip not available - Stack Overflow
M-x flush-lines ãããããã¡ã§æ£è¦è¡¨ç¾ãèãããã®ã§ã^$ãã¨å ¥å
pycharmã§ã¯Emmet(Zen Coding)ã®Abbreviationsã使ããããã«ãªã£ã¦ããã使ç¨ãããã¼ã¯settings -> keymapã§ãªããsettings -> Emmet(Zen Coding)ã§è¨å®ããã ã¨ãããããã¼ãTabã ã¨ä¸æãåããªãã£ãã®ã§èª¿ã¹ã¦ã¿ããkeymapãEmacsãã¼ã¹ã ã¨TABãã¼â¦
æ¨æ¥ãFinderã§éãæ¹æ³ãã¿ã¤ããã®ã§ãiTermã§éãæ¹æ³ãæ¢ãã¦ã¿ããæ£ç¢ºã«ã¯ãiTermãéãã¦ç·¨éä¸ã®ãã¡ã¤ã«ããããã£ã¬ã¯ããªã«ç§»åãããæ¹æ³ãæ©è½ã¨ãã¦ç¨æã¯ããã¦ãªããããªã®ã§ãSettings -> External Toolsã«ä½æãã¦ã¿ãã é©å½ã«ååã¤ãã¦â¦
pycharmã«ç·¨éä¸ã®ãã¡ã¤ã«ãFinderã§è¦ãã³ãã³ãShow/Reveal in Exploler/Finder/Konqueror/Nautilus ã¿ã¼ããã«ã§éããã»ããå¬ããã¨æããã©ãç¨æã¯ããã¦ãªãã¿ããï¼ ææ¥èª¿ã¹ã¦ã¿ã
æè¿Mountain Lionã«ããã®ã§ãpythonããnotificationå©ãã¦ã¿ããã¨ãã£ã¦ãã¹ã¯ãªãããå ¬éããã¦ããã®ã§ããããã¤ãã£ãã ããhttps://github.com/maranas/pyNotificationCenter # coding=utf-8 import pyNotificationCenter pyNotificationCenter.noâ¦
pythonã®ç°å¢ãä½ããªããããã§ãããããmkvirtualenvãã¦pip installãã¦ãããpycryptoãå ¥ããªãã File "/Users/yuhei/.virtualenvs/work/build/pycrypto/setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf eâ¦
ãã¾ãã1700åæã£ã¦Mountain lionã«ããã®ã§ãpythonãå ¥ããªãããã brewã§pyhtonãå ¥ãã $ brew install python ~~çç¥~~ Python demo /usr/local/share/python/Extras Distribute and Pip have been installed. To update them pip install --upgradeâ¦
æ¨æ¥ãjQuery UIã®DraggableãiPhoneã®safariã ã¨åããªãã£ã¦è©±ãæ¸ããã®ã§ãã¤ãã§ã«ã©ããã¦ãdraggableã«ãããå ´åã¯ã©ããããã ããã¨æã£ã¦èª¿ã¹ãã ããã使ãã°ã§ããããªã®ã§è©¦ãã¦ã¿ãã furf/jquery-ui-touch-punch 使ãæ¹ã¯jQuery UIã®å¾ã§ã©â¦
Chromeã§Draggableã®è¦ç´ ãåãããªãã¦èª¿ã¹ã¦ã ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã®éãChrome 27.0.1453.116 jQuery 1.9.1 jQuery UI 1.10.3 ä½ãä»ã®è¦ç´ ãéªéãã¦ãã®ãã¨æã£ã¦ãåç´ãªãµã³ãã«ã§è©¦ãã¦ã¿ã¦ãåããªãã <style> .box { width: 100px; height: 100px; backgr</style>â¦
ãã¡ã¤ã«ããã¦ã³ãã¼ãããããªã³ã¯ãç¨æãã¦ã試ãã«è¸ãã§ã¿ãããundefinedãã¨ã ã表示ããããã¡ã¤ã«ããã¦ã³ãã¼ããããªããã¨ããåé¡ããã£ããdeveloper consoleã«ã¯ä»¥ä¸ã®ãããªã¨ã©ã¼ãã§ãã Resource interpreted as Document but transferrâ¦
PyCharm 3.0 EAPãDLå¯è½ã«ãªãã¾ãããJetBrains PyCharm Preview (EAP) - PyCharm - Confluence ãã¼ãããããè¦ãã¨web2pyã¨ãSQLAlchemyã®ãµãã¼ãã追å ããã¦ããããã§ãã PyCharm 3.0 Roadmap - PyCharm - Confluence ä»æ¥ã¯ç°¡åã«ãªãã¡ã¯ã¿ãªã³â¦