Init array of view controllers which will be managed by UIPageViewController. Add a base view controller class which has property identifier which will be used to identify view controllers when working with UIPageViewController data source methods. Let the view controllers to inherit from that bas...
The special symbol T represents the value true in Common Lisp, while the special symbol NIL represents false:
CL-USER> (= 3 3)
T
CL-USER> (= 3 4)
NIL
They are called “Constant Variables” (sic!) in the standard, since they are variables whose value cannot be modified. As a consequence, y...
Actually any value different from NIL is considered a true value in Common Lisp. For instance:
CL-USER> (let ((a (+ 2 2)))
(if a
a
"Oh my! 2 + 2 is equal to NIL!"))
4
This fact can be combined with the boolean operators to make programs m...
This quickstart is written for Mac OSX Mavericks, and is a bit more verbose than other installation instructions. It should hopefully cover a few edge cases, such as setting your path, and configuring NPM, which can cause an installation to go awry.
# install node
# as of OSX Mavericks, we...
This quickstart is written for Mac OSX Mavericks, and is a bit more verbose than other installation instructions. It should hopefully cover a few edge cases, such as setting your path, and configuring NPM, which can cause an installation to go awry.
# install meteor
curl https://install.meteor...
Meteor doesn't exist in isolation, and it's common to install a number of extra tools for development, such as Mongo, Robomongo, Atom, Linters, etc.
# make sure mongo is in your local path
nano ~/.profile
export PATH=$PATH:/usr/local/mongodb/bin
# or install it to the global path
nano /etc/...
I have the following list:
1. Alon Cohen
2. Elad Yaron
3. Yaron Amrani
4. Yogev Yaron
I want to select the first name of the guys with the Yaron surname.
Since I don't care about what number it is I'll just put it as whatever digit it is and a matching dot and space after it from the beginni...
One could easily center a child element using table display property.
HTML
<div class="wrapper">
<div class="parent">
<div class="child"></div>
</div>
</div>
CSS
.wrapper {
display: table;
vertica...
Cache-Control: private, max-age=60
private specifies that the response can be cached only for user who requested the resource, and can't be reused when other users request the same resource. This is appropriate for responses that depend on cookies.
Cache-control: no-store
Instructs clients no to cache the response in any way, and to forget it at soon as possible.
This directive was originally designed for sensitive data (today HTTPS should be used instead), but can be used to avoid polluting caches with responses that can't be reused.
It...
As parameters (8, 16, 32 bits)
8, 16, 32 bits integers are always passed, on the stack, as full width 32 bits values1.
No extension, signed or zeroed, is needed.
The callee will just use the lower part of
the full width values.
//C prototype of the callee
void __attribute__((cdecl)) foo(char ...
As parameters (float, double)
Floats are 32 bits in size, they are passed naturally on the stack.
Doubles are 64 bits in size, they are passed, on the stack, respecting the Little Endian convention1,
pushing first the upper 32 bits and than the lower ones.
//C prototype of callee
double foo(dou...
This is a very common workflow when using Ansible for provisioning an AWS EC2 instance. This post assumes a basic understand of Ansible and most importantly, assumes you've properly configured it to connect to AWS.
As Ansible official documentation insists, we are going to use four roles:
1- ami_f...
If you are using multiple namespaces that may have same-name classes(such as System.Random and UnityEngine.Random), you can use an alias to specify that Random comes from one or the other without having to use the entire namespace in the call.
For instance:
using UnityEngine;
using System;
Ran...
To install an APK file, use the following command:
adb install path/to/apk/file.apk
or if the app is existing and we want to reinstall
adb install -r path/to/apk/file.apk
To uninstall an application, we have to specify its package
adb uninstall application.package.name
Use the following...
Query
SELECT * FROM stack;
Result
+------+----------+----------+
| id | username | password |
+------+----------+----------+
| 1 | admin | admin |
| 2 | stack | stack |
+------+----------+----------+
2 rows in set (0.00 sec)
You can select all columns from one table...
SQL aliases are used to temporarily rename a table or a column. They are generally used to improve readability.
Query
SELECT username AS val FROM stack;
SELECT username val FROM stack;
(Note: AS is syntactically optional.)
Result
+-------+
| val |
+-------+
| admin |
| stack |
+----...
With the ~ selector, you can easily implement a global accessible boolean without using JavaScript.
Add boolean as a checkbox
To the very beginning of your document, add as much booleans as you want with a unique id and the hidden attribute set:
<input type="checkbox" id="sideba...
First, Install gulp and gulp-concat plugin to your project localy
npm install --save-dev gulp gulp-concat
and add gulp-concat task to your gulpfile.js
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('default', function() {
});
gulp.task('css', function() {
...