DATA TYPE | SPEC | DATA TYPE | SPEC |
---|---|---|---|
CHAR | String (0 - 255) | INT | Integer (-2147483648 to 214748-3647) |
VARCHAR | String (0 - 255) | BIGINT | Integer (-9223372036854775808to 9223372036854775807) |
TINYTEXT | String (0 - 255) | FLOAT | Decimal (precise to 23 digits) |
TEXT | String (0 - 65535) | DOUBLE | Decimal (24 to 53 digits) |
BLOB | String (0 - 65535) | DECIMAL | "DOUBLE" stored as string |
MEDIUMTEXT | String (0 - 16777215) | DATE | YYYY-MM-DD |
MEDIUMBLOB | String (0 - 16777215) | DATETIME | YYYY-MM-DD HH:MM:SS |
LONGTEXT | String (0 - 4294967295) | TIMESTAMP | YYYYMMDDHHMMSS |
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
// Hello world! Cplayground is an online sandbox that makes it easy to try out | |
// code. | |
#include <stdio.h> | |
#include <stdlib.h> | |
void swap(int tree[],int i, int j){ | |
int tmp = tree[i]; | |
tree[i] = tree[j]; |
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
mysqldump -u root -p RUNOOB > database_dump.txt |
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
public class ImageCompressUtil { | |
/** | |
* 强制压缩/放大图片到固定的大小 | |
* | |
* @param fileName 压缩文件("c:\\1.png") | |
* @param targetHeight | |
* @param targetWidth | |
* @return |
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
find: (\w*)_(\w*)_(\w*) | |
replace: \l\1\u\2\u\3 |
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
UPDATE t_product | |
JOIN r_product_class on t_product.id = r_product_class.product_id | |
JOIN t_class on t_class.id = r_product_class.class_id | |
SET t_product.school_id = t_class.school_company_id; | |
UPDATE t_product_template | |
JOIN r_product_class on t_product_template.product_id = r_product_class.product_id | |
JOIN t_class on t_class.id = r_product_class.class_id | |
SET t_product_template.school_id = t_class.school_company_id; |
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
var xhr = new XMLHttpRequest(); | |
var token = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjJkNGE1YTliLTUxNzUtNDBlNS1iZTEwLTEzMTQ3OTg1OGFmYyJ9.nY6LTeWDcPdceB6pnMFb16VIKEkYjl52IpVIzDvhVnRPCRRSXmq48wYxTL5znUpJdHP0nUNFJ4vrxHHnOajbEA'; | |
xhr.open('GET', 'http://localhost/yxt/getInfo'); | |
xhr.setRequestHeader("Authorization",'Bearer '+token); | |
xhr.send(null); | |
xhr.onload = function(e) { | |
var xhr = e.target; | |
console.log(xhr.responseText); | |
} |
-
use 1511 version ed2k://|file|cn_windows_10_multiple_editions_version_1511_updated_feb_2016_x64_dvd_8380088.iso|4622118912|3824041FCDFCA670F4BCDAD827C4B63C|/
-
command : bcdedit /set {default} safeboot minimal
-
disable bootcamp os switcher and bootcamp
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 pmset -a hibernatemode 0 | |
sudo pmset -a standby 0 |
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
mysqldump -u root -p --all-databases --add-drop-database --add-drop-table > all.sql |