Tutorial by Examples: f

In some instances, you will want to send data from JS client to the R server. Here is a basic example using javascript's Shiny.onInputChange function: library(shiny) runApp( list( ui = fluidPage( # create password input HTML('<input type="password" id="passw...
This a python example function for sequence writing in fasta format. Parameters: filename(String) - A file name for writing sequence in fasta format. seq(String) - A DNA or RNA sequence. id(String) - The ID of the given sequence. desc(String) - A short description of the given sequence. im...
This example demonstrates usage of POSIX record locks (a.k.a. process-associated locks), provided by fcntl function (POSIX base standard). Notes: Exclusive and shared locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (control...
This example demonstrates usage of lockf function (POSIX XSI). Notes: Only exclusive locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (controlled by len argument and position set with lseek function). Locks are released on ...
Components and Props As React concerns itself only with an application's view, the bulk of development in React will be the creation of components. A component represents a portion of the view of your application. "Props" are simply the attributes used on a JSX node (e.g. <SomeComponen...
This example shows how to use fast enumeration in order to traverse through an NSArray. When you have an array, such as NSArray *collection = @[@"fast", @"enumeration", @"in objc"]; You can use the for ... in syntax to go through each item of the array, automatical...
https://godzillai5.wordpress.com/2016/08/20/db2-for-i-in-the-cloud-connecting-to-pub400-via-jdbc-in-netbeans/
https://godzillai5.wordpress.com/2016/08/21/jdbc-jt400-setting-to-get-crud-and-show-sql-features-added-in-netbeans-with-ibm-db2-for-i/
Creating a Project with the NetBeans IDE In the following, we walk you through the creation of a Vaadin project in NetBeans and show how to run it. Installation of NetBeans and the Vaadin plugin is covered in Installing the NetBeans IDE and Plugin. Without the plugin, you can most easily create a...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <dirent.h> #include <ctype.h> int main(int argc, char **argv) { const char *dname = (argc > 1 ? argv[1] : "."); DI...
#define _XOPEN_SOURCE 500 #include <stdlib.h> /* for exit() */ #include <stdio.h> /* for remove() */ #include <ftw.h> /* for nftw() */ int unlink_cb( const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { return remove(fpath); } in...
Open Android Studio Open Your Project Click on Gradle (From Right Side Panel, you will see Gradle Bar) Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project) Click on Your Project (Your Project Name form List (root)) Click on Tasks Click on andr...
menu.xml - (res -> menu) <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context=".HomeActivity"> <item...
TextViewPlus.java: public class TextViewPlus extends TextView { private static final String TAG = "TextView"; public TextViewPlus(Context context) { super(context); } public TextViewPlus(Context context, AttributeSet attrs) { super(context, attrs)...
There is a signal WINCH ( WINdowCHange), which is fired when one resizes a terminal window. declare -x rows cols update_size(){ rows=$(tput lines) # get actual lines of term cols=$(tput cols) # get actual columns of term echo DEBUG terminal window has no $rows lines and is $cols chara...
tf.exe get /all /recursive /force /overwrite $/ Gets all files and directories, and will replace any files that are not currently checked out in the workspace (including files that have been edited).
Upload a file to server is also a post. You can easily upload a file through WWW, like the below: Upload A Zip File To Server string mainUrl = "http://server/upload/"; string saveLocation; void Start() { saveLocation = "ftp:///home/xxx/x.zip"; // The file path. ...
6 const iterable = [0, 1, 2]; for (let i of iterable) { console.log(i); } Expected output: 0 1 2 The advantages from the for...of loop are: This is the most concise, direct syntax yet for looping through array elements It avoids all the pitfalls of for...in Unlike forEach(), ...
Warning for...in is intended for iterating over object keys, not array indexes. Using it to loop through an array is generally discouraged. It also includes properties from the prototype, so it may be necessary to check if the key is within the object using hasOwnProperty. If any attributes in th...
<svg width="400px" height="400px"> <defs> <rect id="defrect" fill="blue" fill-opacity=".5" x="50" y="50" width="100" height="100"/> </defs> <rect fill="red" x="...

Page 261 of 457