2017-01-01ãã1å¹´éã®è¨äºä¸è¦§
ããã£ãé³æ¥½ ããã£ãæ¬ ããã£ãæ ç»ã»ãã©ã è²·ã£ã¦ããã£ããã® å¥åº· æè¡çãªãã¨ãªã© ãã®ä» ææ³ ã¾ã¨ã èªåã®SNSãªã©è¦ãªããéã«æ¯ãè¿ã£ã¦ã¿ã ããã£ãé³æ¥½ Suchmos/THE KIDS 1st ã® THE BAY ãè¯ã John Coltrane/ Love Supreme: The Complete â¦
(python2.7.13) response = requests.get(hoge) ã¨ãã㦠response ã« status_code ã¨ãç¡ãå ´åã« response.status_code ã¨ãããã¨ã¨ã©ã¼ã«ãªãã®ã§ç¢ºèª >>> hasattr(response, 'status_code') True
(python2.7.13) ã³ã¼ã å®è¡çµæ åå ã³ã¼ã def hoge(fuga): return { 'hoge': '{}'.format(fuga) }, print hoge('FUGA').items() å®è¡çµæ AttributeError: 'tuple' object has no attribute 'items' åå æ»ãå¤ã®ã¨ããæå¾ã«ééã£ã¦ã«ã³ãå ¥ã£ã¡ãã£â¦
(python2.7.13) 0x20-0x7e ã®ç¯å²ã表示ããã >>> [chr(x) for x in range(0x20, 0x7e + 0x01)] [' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=â¦
(python2.7.13) è¦ $ pip install requests # coding=utf8 import os import shutil import requests def download_file(url, file_dir): if not os.path.exists(file_dir): os.makedirs(file_dir) response = requests.get(url, stream=True) if response.sâ¦
(python2.7.13) è¦ $ pip install python-dateutil In [1]: from datetime import datetime In [4]: expires_sec = 604799 # second In [5]: expires_sec * 1.0 / 60 / 60 Out[5]: 167.99972222222223 # hour ï¼ç´7æ¥ï¼ In [6]: from math import floor In [â¦
(python2.7.13) In [1]: from datetime import datetime In [2]: now = datetime.now() In [3]: now Out[3]: datetime.datetime(2017, 12, 12, 15, 42, 57, 966893) In [4]: int(now.strftime('%s')) Out[4]: 1513060977 In [5]: datetime.fromtimestamp(151â¦
è¥å¤§å ãã¼ãã¼ããã¦ã¿ã ããã¯ã¢ãããæ¶ã MySQL ãã¼ã¿ãã¼ã¹ãã°ãã¡ã¤ã« - Amazon Relational Database Service è¥å¤§å mysql> select COUNT(*) from mysql.slow_log; +----------+ | COUNT(*) | +----------+ | 7890123 | +----------+ 1 row in seâ¦
æ¸ç± Pat Metheny Guitar Etudes: Warmup Exercises for Guitar ã¨ã»ããã¼åç»ã®ã¦ã©ã¼ã ã¢ããã¨ã¯ãµãµã¤ãº Etudes Exercises 1 ã»ããã¼åç» ã¹ã³ã¢ åèãªã³ã¯ Etudes Exercises 1 Pat Metheny ãå¼¾ãã¦ããé³æºã¯ç¡ãã®ã§ä¸è¬ã®äººãyoutubeã«ã¢ãããã¦â¦
Julian Lage Workshop (Japanese Subtitles) 8:22 ã¾ãã¯ãã¼ã¹ã¨ã¡ããã£ã¼ã ããå¼¾ã ããã¦ããã交äºã«å¼¾ã 10:08 ã²ã¨ã¤ã®ã¢ã¬ã³ã¸ãããã½ããç·´ç¿ããã®ã§ã¯ãªãã10åãããã®ã¢ã¬ã³ã¸ãå³èã§ç·´ç¿ãã¾ããã 12:35 åã®ä¸ä»£ã®ã®ã¿ãªã¹ã㯠åãå«ãâ¦
ããå¿ãããã§ã¡ã¢ <details> ```python def factorial(x): if x == 0: return 1 else: return x * factorial(x - 1) ``` </details> ã¯ãªãã¯ããã¨è¡¨ç¤º
ipinfo.io api code çµæ ãªã³ã¯ ipinfo.io api ipinfo.io ã® apiã¯1æ¥1000åã¾ã§ç¡æ Paid Plans - ipinfo.io code (python2.7.11) è¦ $ pip install requests # coding=utf8 import requests def get_country(ips): result = [] for ip in ips: response =â¦
$ date +%Y-%m-%d 2017-11-24
(macos10.12.6, ruby2.3.0) $ brew install rbenv ruby-build $ rbenv install 2.3.0 capybara-webkit ã§ã¨ã©ã¼ An error occurred while installing capybara-webkit (1.6.0), and Bundler cannot continue. Make sure that `gem install capybara-webkit -â¦
(python2.7.13, ipython5.1.0) ipython $ ipython In [1]: %store sum(range(10)) >> hoge.txt Writing 'sum(range(10))' (int) to file 'hoge.txt'. hoge.txt 45 åèãªã³ã¯ How to write the output of ipython command in python text file? - Stack Overâ¦
åç½®ã ææ å å·¥ çµã¿ç«ã¦ åºåã å®æ ã³ã¹ã ææ³ åèãªã³ã¯ åç½®ã Amazonã®å®ããã¤ããã¾ãè©å¤ãããªããã§ãããªã«ãå®ãããªãã®ã§èªä½ãã¦ã¿ãã ãªãã¨ãªãç°¡åã«ã§ããããªæ°ãããããw ææ ã¤ã¬ã¯ã¿ã¼ ãã¤ã 60cm x5 30cm x3 ã¤ã¬ã¯ã¿ã¼ ã¸â¦
åæºå æé ãªã³ã¯ åæºå (iOS11.0.3) Dropboxã¨netprinã¨ã¯ã¢ã«ã¦ã³ãä½æãã¦ãã iPhoneã«Dropboxã¢ããªãã¤ã³ã¹ãã¼ã«ï¼ãã°ã¤ã³ iPhoneã«netprintã¢ããªãã¤ã³ã¹ãã¼ã«ï¼ãã°ã¤ã³ æé iPhoneã§Dropboxã§pdfãéãã¦å³ä¸ã®ã人形+ã®ã¤ããã¢ã¤ã³ã³ãâ¦
ã³ãã³ãå¿ããã¡ãªã®ã§ã¡ã¢ $ python manage.py runserver 8000 ã¨ãã㦠Error: That port is already in use. ã¨ããªã£ãã $ kill `lsof -ti tcp:8000` ãã¦ã³ãã¹
é³åã©ã³ãã 表示 ã½ã¼ã¹ã³ã¼ã ææ¿ã®é³å åèãªã³ã¯ é³åã©ã³ãã 表示 C $(function(){ var tempo = 70; var delay = 60 / tempo * 1000; function random(arr) { return arr[Math.floor(Math.random() * arr.length)]; } function display_key() { var kâ¦
Django ã® reset_queries() ãå©ç¨ãã from django.db import reset_queries for hoge in Hoge.objects.all(): hoge.fuga() reset_queries() åèãªã³ã¯ FAQ: ãã¼ã¿ãã¼ã¹ã¨ã¢ãã« | Django documentation | Django
ï¼è¿½è¨2017-10-16ï¼ãã¾ãã¡ä½¿ãåæãæªãã®ã§ ãã£ã¨ã·ã³ãã«ãªã®æ¸ãã é³å ãã³ã ææ¿ ã½ã¼ã¹ã³ã¼ã é³å ãã³ã å ãã¿ã®åç» åèãªã³ã¯ é³å var keys = ['C', 'C#/Db', 'D', 'D#/Eb', 'E', 'F', 'F#/Gb', 'G', 'G#/Ab', 'A', 'A#/Bb', 'B']; functâ¦
ä¾ <form> {% csrf_token %} <p>åå{% if form.name.field.required %}<span class="required"> å¿ é </span>{% endif %}</p> {{ form.name }} </form> åè Tell if a Django Field is required from template - Stack Overflow
å¿ããã®ã§ã¡ã¢ ï¼ãã¶ããããªãã¨ããä¾ãåä½ç¢ºèªã¯ãã¦ãªããï¼ from django.db import models class Author(models.Model): name = models.CharField() book = models.ForeignKey(Book) class Book(models.Model): name = models.CharField() pubdate =â¦
$ zgrep "Sep/2017" hoge.log.gz åèãªã³ã¯ linux - find string inside a gzipped file in a folder - Stack Overflow
ååã20170808 Tern Link B7 ã«ã¹ã¿ãã¤ãºã®ã¡ã¢ ver1.0ãã®ç¶ã è³¼å ¥æéé:12.6kg -> ver1.0:11.2kg -> ä»å:10.9kgï¼ ååver.1.0ããç´-0.3kgã®è»½éå 10kgå°ã«ãªã£ãã®ã§ã¨ããããç®æ¨éæï¼ ããã« Amazon.co.jp: MKS(ä¸ã¶å³¶) ããã« XP ãã©ã㯠æâ¦
軽éã·ã¼ããã¹ãã«äº¤æãã¦ããèªè»¢è»ã«ä¹ã£ã¦ããã¨ããè½ã¡ãããã«ãªã£ãã ããªãå¼·ãã«ç· ãä»ãã¦åºå®ããã¨ããè½ã¡ãªããªããã©ãã·ã¼ããã¹ããå¤å½¢ããããªããããããç· ãä»ããªãã¨ãããªãã®ã§ä¸å®ã«ãªãã ã¨ãããã¨ã§ã°ã°ã£ã¦ã¿ãã ããã®â¦
å¤æ´æ¤è¨ 13-28Tã«å¤æ´ 11-28Tã«å¤æ´ ããã³ãã56T (or 58T)ã«å¤æ´ ã®ã¢æ¯ãè¨ç®ãã¦ã¿ã 追è¨: ã®ã¢æ¯ãè¨ç®ãã¦ã¿ãããã®ï¼ ãªã³ã¯ ããç¨åº¦ã«ã¹ã¿ãã¤ãºãããå¹³å°ã§ãããã®7éã®ã¿ã§ã©ã¯ã«èµ°ããããã«ãªã£ã¦è»½ãããæ°ãããã®ã§æ¤è¨ã å¤æ´æ¤è¨ æ¨â¦
> moment().format('YYYY-MM-DD'); // ä»æ¥ "2017-08-23" > moment().add(7, 'days').format('YYYY-MM-DD'); // 7æ¥å¾ "2017-08-30" > moment().add(-7, 'days').format('YYYY-MM-DD'); // 7æ¥å "2017-08-16" ãªã³ã¯ Moment.js | Docs #add
ããå¿ããã®ã§ã¡ã¢ 1è¡ã®ã¿ alert('foo'); // eslint-disable-line no-alert ãã¡ã¤ã«å ¨ä½ ã¡ãªã¿ã«ãã¡ã¤ã«å ã§ç¡è¦ããå ´åã¯æåã®è¡ã«æ¸ã /* eslint-disable no-alert, no-console */ ã°ãã¼ãã«ã¯ãã /*global hoge*/ åèãªã³ã¯ Configuring ESLintâ¦
brew install 㧠inline-pach ããã¦ã¦ã¤ã³ã¹ãã¼ã«ãã v25.1 ã v25.2 (or v25.2 ã v25.3) ã«ã¢ãã°ã¬ã $ brew update $ brew info emacs emacs: stable 25.2 (bottled), HEAD ... $ brew edit emacs formula æ¸ãæã 6è¡ç®ãããã«ä¸è¨è¿½å ãã sha256â¦