python
åçãææ¸ãç¹æç»ãµãã«å¤æããããã°ã©ã ã§ãããçµæ§è¯ãã§ãããï¼ pic.twitter.com/ePHkDr4dEEâ daiiz (@daizplus) 2020å¹´11æ19æ¥ é©å½ãªåçãç¨æãã¦ãã°ã¬ã¼ã¹ã±ã¼ã«åãã 風æ¯åçããããã 人ç©ã¯è¦æ ä¸çã®é·ãã1000pxç¨åº¦ã«ãªãããæ¡ç¸®â¦
Google App Engineï¼Pythonï¼ã®ãã¼ã«ã«éçºç°å¢ã§ï¼Base64ã¨ã³ã³ã¼ããããJPEGãã¡ã¤ã«ãPILï¼Python Image Libraryï¼ã«ãã¼ããããã¨ãã¦ããï¼ IOError: cannot identify image file ã¨ããã¨ã©ã¼ãåºã¦é²ããªãï¼ããã£ããcStringIOãããã¯BytesIOãâ¦
Pythonã§ç»åå¦çããã©ã¤ãã©ãª PIL (Pillow) ãå ¥ãã¦ï¼ãã¼ã«ã«ã§åãããã¨ãã¦ããã¨ããï¼Macã§ãã¼ã«ã«ãµã¼ããç«ã¡ä¸ããã¨ãã表é¡ã®ã¨ã©ã¼ãã§ãï¼ from PIL import Image ã®ç®æã§ããã¦ãï¼ Pillow ã¯ä»¥ä¸ã®ããã«ã¤ã³ã¹ãã¼ã«æ¸ã¿ $ pip instalâ¦
ååã®è¨äºã®ç¶ãã®å¢ãã§ã¡ã¢ï¼ URL ã»ã¼ããã¼ãç¨ããå ´å Screenshotã¨ãããã¼ã¿ã¢ãã«ãå®ç¾©ããã¦ããã¨ããï¼é¢æ°getã使ãï¼ e_key = 'ahFkZXZ-c3Znc2NyZWVuc2hvdHIXCxIKU2NyZWVuc2hvdBiAgICAgMCvCQw' entities = Screenshot.get(keys=[e_key]) # =â¦
Google App Engine ã®ãã¼ã¿ã¹ãã¢ï¼Cloud Datastoreï¼ã«ä¿åãããã¢ã¤ãã ï¼ã¨ã³ãã£ãã£ï¼ã«ã¯ï¼ãã¨ã³ãã£ãã£ã®ç¨®é¡ãã¨ãidããä¸ãããã¦ããï¼ ä¾ãã°ï¼ã¦ã¼ã¶ã¼æ å ±ã管çãããã¼ã¿ã¢ãã«ã from google.appengine.ext import db class User (db.Mâ¦
Google App Engine / Python 㨠Google Cloud Storage ã使ã£ã¦ï¼HTTP/GETã§ãªã¯ã¨ã¹ããããã£ãã¨ãã«ï¼ç¹å®ã®ã¦ã¼ã¶ã¼ã ãã«ã³ã³ãã³ããè¿å´ããä»æããä½ãï¼ ãç¹å®ã®ã¦ã¼ã¶ã¼ãã§ãããã©ããã¯Googleã¢ã«ã¦ã³ãã§ãã°ã¤ã³ä¸ã®ã¦ã¼ã¶ã¼ã®Gmailã¢ãã¬â¦
Pythonã«æ¨æºã§åãããã¦ããargparseã¨ãããã®ã使ãã¨ï¼ãªãã·ã§ã³ãä¸ãã¦Pythonããã°ã©ã ãå®è¡ãããã¨ãã§ãã¦ä¾¿å©ï¼ååã®éãargï¼å¼æ°ï¼ãparseï¼è§£æï¼ãã¦ãããï¼ argparseèªä½ã«ãããããã¨ç´°ããæ©è½ãããã¨æããï¼ã·ã³ãã«ã«ä½¿ãã ããªâ¦
ç®æ¬¡ ããããã£ãã㨠ã¤ãã£ããã® å®è¡ä¾ 9æ27æ¥ã®ããã°è¨äº Before After TeXã®ããªã¢ã³ãã« Before After çµµæåå ¥ãæç« Before After ä»å¾ããããã㨠ã注æ ããããã£ãã㨠Google ãã©ã ã«ããã¹ããã¡ã¤ã«ãç½®ããã!!!! ç»å: Google+ããâ¦
大å¦ã®è¬ç¾©ã§ããªãæ¬æ ¼çãªããã°ã©ãã³ã°ã¨ã¢ã«ã´ãªãºã ã®è©±é¡ãåºå§ããã®ã§æ¥½ãããªã£ã¦ãã¾ãããããã§é¢é£æ¸ã¨ãã¦ãåããèªããèªããã¨æã£ã¦ããæ¬ãåãã¦ãã¾ããã
ã³ãã³ãä¸çºã§.htmlã.cssã.jsãªã©ã®éå½¢ãä¸æã«ç¨æãã¦ãããã¹ã¯ãªãããæ¸ãã¾ãããã¾ããããã»ã©GitHubã«å ¬éãã¾ãããæ¯éãå©ç¨ãã ããã æºåç·¨ ~/tools/ å ãªã©ã®ãèªä½ã®ã³ãã³ããç½®ããããã«ãã¹ãéã£ã¦ããå ´æã§ã以ä¸ã®ã³ãã³ããå®â¦
Python 2.6 ããæè¼ããã¦ããformaté¢æ°ã®æãåºæ¬çãªãã¼ã¸ã§ã³ãJavaScriptã§å®è£ ãã¦ã¿ã¾ããã formaté¢æ°ã¨ã¯ ãã³ãã¬ã¼ãæååã¨ããã¤ãã®æåãã¼ã¿ãåãåãããã³ãã¬ã¼ãå ã®ãã£ã¼ã«ãã«å±éãã¦æåãåãè¾¼ãã§ãæååãå®æããã¦è¿ãâ¦
ä»åæ¸ããPythonçã®ã¹ã¯ãªããã¯ãååã®ãã®ãããChrome Dev Editorã®ãRefactor for CSPãæ©è½ããã£ããã¨åç¾ã§ãã¦ããã¨æãã¾ãã
ã ãã¶éã空ãã¦ãã¾ãã¾ããããpythonå¦ç¿æ¥è¨ 2æ¥ç®ãã§ãã
ã¡ã¢å½¢å¼ã§å¤±ç¤¼ãã¾ãã Cygwin ã¨ã¯ Cygwinï¼ã·ã°ã¦ã£ã³ï¼ã¯ãWindowsãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ä¸ã§åä½ããUNIXã©ã¤ã¯ãªç°å¢ã®ä¸ã¤ã§ããã ããªã¼ã½ããã¦ã§ã¢ã§ãããï¼Wikipediaããï¼ ãããWindows PCã«ã¤ã³ã¹ãã¼ã«ãã¦ããã¨ãMac OSãªã©ã«ä»ãã¦ãâ¦
ãããããªã½ã¼ãã¢ã«ã´ãªãºã ãPythonã§æ¸ãã¦ã¿ã¾ããã
pythonã®åå¼·ãéå§ãã¾ããï¼ã¨ããããä»æ¥ã¯è¶ ç°¡åãªããã°ã©ã ã好ãåæã«æ¸ãã¦ã¿ã¾ãããã¾ãã¯ãç´æã®Hello worldãã...
æ¥é 趣å³ã§ä½ã£ã¦ããã¢ããªãã©ã¤ãã©ãªã§ä½¿ç¨ãã¦ããJavaScriptã大å¦ã®è¬ç¾©ã§åå¼·ãã¦ããCè¨èªã¨å¹³è¡ãã¦ãèªåã®ãã¼ã¹ã§å¦ã¶ãã¨ãã§ããã¦ã§ãåéã«å¼·ãè¨èªã¯ãªããã®ã ãããã¨æãããæ£æä¼ã¿ã®ç©ºãæéãå©ç¨ãã¦æ¢ããã¨ã«ãã¾ããã