This file contains hidden or 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
| $ sudo apt-get install imagemagick |
This file contains hidden or 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
| jpg会失真,想要好看点就保存为png | |
| pillow save()函数有一个可选参数quality = 95 | |
| 可参考下下这篇文章: http://saepy.sinaapp.com/topic/66/%E5%9C%A8sae-python%E4%B8%8A%E4%BD%BF%E7%94%A8pil-image-%E8%8E%B7%E5%8F%96%E8%BE%83%E9%AB%98%E8%B4%A8%E9%87%8F%E5%9B%BE%E7%89%87%E7%9A%84%E6%96%B9%E6%B3%95 |
This file contains hidden or 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
| TIME_ZONE = 'Asia/Hong_Kong' |
This file contains hidden or 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
| 不然在android studio引用时,会报运行时错误:返回值不是0,而是1. | |
| eclipse 要删掉没有用到的包,不然在android studio也会出现同样的问题. |
This file contains hidden or 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
| edit ~/.npmrc | |
| add "http_proxy=http://127.0.0.1:9527" |
This file contains hidden or 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
| import { Component } from '@angular/core'; | |
| import { NavController } from 'ionic-angular'; | |
| @Component({ | |
| selector: 'page-component', | |
| templateUrl: ` | |
| <ion-header> | |
| <ion-navbar> | |
| <ion-title text-center> |
This file contains hidden or 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
| ## How CSS works | |
| - **HTML**, document's content. | |
| - **CSS** (Cascading Style Sheets), document's style. | |
| - **DOM** (Document Object Model), tree-like structure, formed from DOM node, combines the document's content with its style in memory. | |
| - *Markup language*: HTML, SVG, XML. | |
| - **CSS Rule** formed from: properties & selector. | |
| - CSS use: external stylesheet (```<link>```), internal stylesheet (```<style>```), inline styles. | |
|  |
This file contains hidden or 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
| -256 ~ 256 |
This file contains hidden or 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
| { | |
| "湖南省": [ | |
| "湘潭大学", | |
| "吉首大学", | |
| "湖南大学", | |
| "中南大学", | |
| "湖南科技大学", | |
| "长沙理工大学", | |
| "湖南农业大学", | |
| "中南林业科技大学", |
This file contains hidden or 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
| docker run --name mysql -e MYSQL_ROOT_PASSWORD=dg123321 -e MYSQL_DATABASE=blog -v /data/blog:/var/lib/mysql -v /config/mysql:/etc/mysql/conf.d -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_general_ci |
OlderNewer