Tutorial by Examples: a

public override void DidEnterBackground(UIApplication application) { //to add the background image in place of 'active' image var backgroundImage = new UIImageView(); backgroundImage.Tag = 1234; backgroundImage.Image = UIImage.FromBundle("Background"); background...
The following example is an example of a basic server: # Imports the Flask class from flask import Flask # Creates an app and checks if its the main or imported app = Flask(__name__) # Specifies what URL triggers hello_world() @app.route('/') # The function run on the index route def hello...
Instead of typing our HTML markup into the return statements, we can use the render_template() function: from flask import Flask from flask import render_template app = Flask(__name__) @app.route("/about") def about(): return render_template("about-us.html") if __n...
Similar to Meteor.js, Flask integrates well with front end templating services. Flask uses by default Jinja Templating. Templates allow small snippets of code to be used in the HTML file such as conditionals or loops. When we render a template, any parameters beyond the template file name are pass...
The simplest and perhaps best-known method for computing the FFT is the Radix-2 Decimation in Time algorithm. The Radix-2 FFT works by decomposing an N point time domain signal into N time domain signals each composed of a single point. Signal decomposition, or ‘decimation in time’ is achieved by b...
Atom is a hackable text editor created by GitHub and developed on top of the Electron desktop application platform. This means it can be used as a text editor for basic programming up to a full-sized IDE. It is also extremely customisable, it provides thousands of community-made packages (syntax hi...
The traditional GLSL compilation model involves compiling code for a shader stage into a shader object, then linking multiple shader objects (covering all of the stages you want to use) into a single program object. Since 4.2, program objects can be created that have only one shader stage. This met...
Using the official installer Download the installer from the official website. It will automatically add atom and apm (Atom Package Manager) to your %PATH% variable. Building from source Requirements: Node.js 4.4.x or later Python 2.7.x 7zip Visual Studio (One of the versions below) Visu...
Installing from a zip Download the atom-mac.zip zip file from the Atom GitHub repository here Unzip the file by double clicking on it in Finder Drag the Atom application into your "Applications" folder Run the Atom application. Building from Source Requirements: macOS 10.8 or ...
Installing from a package Debian, Ubuntu, etc. $ sudo dpkg -i atom-amd64.deb $ sudo apt-get -f install RedHat Enterprise, CentOS, Oracle Linux, Scientific Linux, etc. $ sudo yum install -y atom.x86_64.rpm Fedora (DNF package manager) $ sudo dnf install -y atom.x86_64.rpm SUSE (Zypp pac...
To view your installed packages or themes, open settings with Ctrl+, and select either the "Packages" or "Themes" tab in the left-hand navigation bar. Note, the packages or themes you installed from other publishers will show up under the "Community Themes" section and ...
One of the main features in Material Design is the addition of a Snackbar, which in theory replaces the previous Toast. As per the Android documentation: Snackbars contain a single line of text directly related to the operation performed. They may contain a text action, but no icons. Toasts are...
Yellowdog Updater, Modified, one of the last remaining vestiges of Yellow Dog Linux, is the package manager used by Red Hat, Fedora, and CentOS systems and their derivatives. It can handle the installation and removal of software packaged as rpms for these Linux distributions. Below are some simple...
Due to the strong duality of the Fourier Transform, adjusting the output of a forward transform can produce the inverse FFT. Data in the frequency domain can be converted to the time domain by the following method: Find the complex conjugate of the frequency domain data by inverting the imaginary...
map() is a built-in function, which means that it is available everywhere without the need to use an 'import' statement. It is available everywhere just like print() If you look at Example 5 you will see that I had to use an import statement before I could use pretty print (import pprint). Thus ppr...
If Errorlevel 1 ( Echo Errorlevel is 1 or higher REM The phrase "1 or higher" is used because If Errorlevel 1 statement means: REM If %Errorlevel% GEQ 1 REM Not If %Errorlevel% EQU 1 ) ...
If Defined Foo ( Echo Foo is defined ) This would check if a variable is defined or not. Again, the Not operator can be used.
Pushd "D:\Foo" Dir Popd Pushd will change the directory to the directory following (in this case D:\Foo. Popd returns back to the original directory.
Depth First Traversal (or Search) for a graph is similar to Depth First Traversal of a tree. The only catch here is, unlike trees, graphs may contain cycles, so we may come to the same node again. To avoid processing a node more than once, we use a boolean visited array. Below algorithm presents th...
You can get your working folder by calling the method getFilesDir() on your Activity (Activity is the central class in your application that inherits from Context. See here). Reading is not different. Only your application will have access to this folder. Your activity could contain the following c...

Page 893 of 1099