var gr = new GlideRecord('incident'); // use the incident table
gr.query(); // fetch data from the database
while (gr.next()) { // advance
gs.info(gr.short_description);
}
Discover gists
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
//将以下内容放置在vscode-用户代码片段-javascript.json文件中即可使用快捷设置 | |
// ---------------OpenLayer--------------------------- | |
{ | |
"openlayersMap":{ | |
"prefix": "olM", | |
"body": [ | |
"new ol.Map({", | |
" title: ${1:title},", // 可选标题 | |
" target: ${2:target},", // 地图的目标元素 | |
" view: ${3:view},", // 地图视图 |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
$ sudo apt-get install libx11-dev | |
$ sudo apt-get install cimg-dev cimg-doc cimg-examples | |
$ cat >lena.cpp <<EOL | |
#include "CImg.h" | |
using namespace cimg_library; | |
int main() { | |
CImg<unsigned char> image("lena.jpg"), visu(500,400,1,3,0); | |
const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; | |
image.blur(2.5); |