Tutorial by Examples: st

package main import ( "fmt" "k8s.io/client-go/1.5/kubernetes" "k8s.io/client-go/1.5/pkg/api/v1" "k8s.io/client-go/1.5/tools/clientcmd" ) func main() { config, err := clientcmd.BuildConfigFromFlags("", <kube-config-path&g...
url = 'http://httpbin.org/post' files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')} r = requests.post(url, files=files) r.text
Attribute Image capitalizes all characters of enumeration literals. The function Case_Rule_For_Names applies upper case for the first character and makes the rest lower case. with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Maps.Constants; use Ada.Strings.Maps.Constants; with Ada.Strings.Fixed...
You can set the desired UI widget's stylesheet using any valid CSS. The example below will set a QLabel's text color a border around it. #include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Mai...
Xcode by itself has quite a few good tools built in, but sometimes you just want to change a specific behavior or create a convenience shortcut. That's why there's Alcatraz. Installation curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh Throw this ...
The concept of timing is related more to the physics of flip flops than VHDL, but is an important concept that any designer using VHDL to create hardware should know. When designing digital hardware, we are typically creating synchronous logic. This means our data travels from flip-flop to flip-flo...
The JWT RFC stablish three classes of claims: Registered claims like sub, iss, exp or nbf Public claims with public names or names registered by IANA which contain values that should be unique like email, address or phone_number. See full list Private claims to use in your own context...
Break regular string literals with the \ character let a = "foobar"; let b = "foo\ bar"; // `a` and `b` are equal. assert_eq!(a,b); Break raw-string literals to separate strings, and join them with the concat! macro let c = r"foo\bar"; let d = conca...
Writing and executing a simple TestNG program is mainly 3 step process. Code - write business logic of your test and annotate it with TestNG annotations Configure - add information of your test in testng.xml or in build.xml Run TestNG - it can be invoked from command line, ANT, IDE like Eclipse...
Let's say you've got a table of loans, and another related table of parcels, where each loan can have one or more parcels associated with it. If you want a query to show each loan and a list of all its associated parcels, but you only want each loan to show up once, then you could use something lik...
You might have realized that $emit is scoped to the component that is emitting the event. That's a problem when you want to communicate between components far from one another in the component tree. Note: In Vue1 you coud use $dispatch or $broadcast, but not in Vue2. The reason being that it doesn'...
<?php // hook into the init action and call create_book_taxonomies when it fires add_action( 'init', 'create_book_taxonomies', 0 ); // create taxonomy genres for the post type "book" function create_book_taxonomies() { // Add new taxonomy, make it hierarchical (like categorie...
UWP applications can easily store simple settings in a key/value store locally or even in the cloud so your application or a game can share settings between different user's devices. Following data types can be used for settings: UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double...
A processing instruction is used to directly pass on some information or instruction to the application via the parser. <?my-application some instructions ?> The token after the initial question mark (here my-application) is called the target and identifies the application at which the ins...
You can install the whole bundle by downloading the dmg package from here. The bundle contains a CoqIDE that can be used for writing your proofs or you can use coqtop command to run the interpreter on your terminal Installation of Coq on MacOS is easy using homebrew as well brew install coq or i...
Example : To achieve this purpose , you should add a custom Live Template: Open Settings [Ctrl + Alt + S ] Type "Live Templates" in the Top-Left search bar. Click the + to add a "Template Group" and type a group name(eg: MyTemplate) to continue Choose your cus...
A test case or test script is a more or less formal description of the actions needed to prove that a requirement is met. It has a descriptive title, may start off with some preparation and ends with an expected result. Usually the test cases for a system under test are organised into test suites. ...
Some of the most common commands include: Fractions and Square Roots: For fractions, use \frac {numerator}{denominator}. For square roots, use \sqrt[root]{number}. Greek letters: use the commands given in the table below: Operators: \leq gives the less than or equal to symbol, \geq gives ...
//Check if a value exists in settings already if (IsolatedStorageSettings.ApplicationSettings.Contains("Key")) { //perform logic }
ls shows files and directories in present working directory. (if no arguments are passed.) (It doesn't show hidden files which starts with . by default.) user@ubuntu14:/usr$ ls bin games include lib lib32 local sbin share src To see all files (hidden files/folders also). Use ls -a OR l...

Page 227 of 369