Skip to content

Instantly share code, notes, and snippets.

ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'PASSWORD';

identifier 标识符ID | Unique

Identifier refers to name given to entities such as variables, functions, structures etc.

type qualifier 类型限制

In the C, C++, and D programming languages, a type qualifier is a keyword that is applied to a type, resulting in a qualified type.
For example, const int is a qualified type representing a constant integer, while int is the corresponding unqualified type, simply an integer.
In D these are known as type constructors, by analogy with constructors in object-oriented programming.

// It Depand on value
// 1. Value 0 | -1
#include <string.h>
memset(arr, -1, sizeof(arr));
// 2. any value
#include <algorithm>
using namespace std;
fill(arr, arr+len, VAL); // address
// C lang way
char str[MAXN];
sprintf(str, "%d", num);
// Cpp way c++11
std::string str = std::to_string(num);
int arr[] = {73, 68, 80, 85, 73, 74, 33, 49, 74, 90, 23, 22, 1, 0, 57, 11, 27, 35, 60, 45};
int len = sizeof(arr) / sizeof(arr[0]);
sort(arr, arr+len, compare);
// SET the purpose condition.
bool compare(int front, int end) {
return front > end; // DESC
return front < end; // ASC

Purpose

For transfering data.

When to use

As the name self says.

  • Only parameter to encode >encodeURI
/*!
* The MIT License (MIT)
*
* Copyright (c) 2014 Christian Hoffmeister
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
  1. Icon format support: install ICOFormat plugin
  2. Border setting: search Stroke => border section
  3. Layer Resize: Ctrl/Command + T (free)
  4. transform - shape => edit-transform
  5. 选择之后留下的白边用Brush tool清除(但是比较麻烦, 也许有替代?)

0404刷机救砖

fastboot POWER off

fastboot oem HALT;拔线后就会自动关机. 尝试进入recovery mode, 均失败.

  1. fastboot flash boot DRG-0-250A-00WW-boot.img