If a remote branch has been deleted, your local repository has to be told to prune the reference to it.
To prune deleted branches from a specific remote:
git fetch [remote-name] --prune
To prune deleted branches from all remotes:
git fetch --all --prune
A wide variety of standard library functions have among their effects copying byte sequences from one memory region to another. Most of these functions have undefined behavior when the source and destination regions overlap.
For example, this ...
#include <string.h> /* for memcpy() */
ch...
Requirements: OS X 10.8 “Mountain Lion” or newer required to run Docker.
While the docker binary can run natively on Mac OS X, to build and host containers you need to run a Linux virtual machine on the box.
1.12.0
Since version 1.12 you don't need to have a separate VM to be installed, as Docker...
Binaries
Lua binaries are provided by most GNU/Linux distributions as a package.
For example, on Debian, Ubuntu, and their derivatives it can be acquired by executing this:
sudo apt-get install lua50
sudo apt-get install lua51
sudo apt-get install lua52
There are some semi-of...
To uninstall one or more locally installed packages, use:
npm uninstall <package name>
The uninstall command for npm has five aliases that can also be used:
npm remove <package name>
npm rm <package name>
npm r <package name>
npm unlink <package name>
npm un ...
Since Groups are "numbered" some engines also support matching what a group has previously matched again.
Assuming you wanted to match something where two equals strings of length three are divided by a $ you'd use:
(.{3})\$\1
This would match any of the following strings:
"abc$...
Deleting the last element:
std::vector<int> v{ 1, 2, 3 };
v.pop_back(); // v becomes {1, 2}
Deleting all elements:
std::vector<int> v{ 1, 2, 3 };
v.clear(); // v becomes an empty vector
Deleting element by index:
std::vect...
This example uses the Car Table from the Example Databases.
SELECT *
FROM Cars
WHERE TotalCost IN (100, 200, 300)
This query will return Car #2 which costs 200 and Car #3 which costs 100. Note that this is equivalent to using multiple clauses with OR, e.g.:
SELECT *
FROM Cars
WHERE TotalCos...
See full documentation on LIKE operator.
This example uses the Employees Table from the Example Databases.
SELECT *
FROM Employees
WHERE FName LIKE 'John'
This query will only return Employee #1 whose first name matches 'John' exactly.
SELECT *
FROM Employees
WHERE FName like 'John%'
Ad...
In standard pattern matching, the identifier used will shadow any identifier in the enclosing scope. Sometimes it is necessary to match on the enclosing scope's variable.
The following example function takes a character and a list of tuples and returns a new list of tuples. If the character existed...
Inheritance works just like it does in other object-oriented languages: methods defined on the superclass are accessible in the extending subclass.
If the subclass declares its own constructor then it must invoke the parents constructor via super() before it can access this.
class SuperClass {
...
The lambda keyword creates an inline function that contains a single expression. The value of this expression is what the function returns when invoked.
Consider the function:
def greeting():
return "Hello"
which, when called as:
print(greeting())
prints:
Hello
This can ...
This example shows the usage of the ILGenerator by generating code that makes use of already existing and new created members as well as basic Exception handling. The following code emits a DynamicAssembly that contains an equivalent to this c# code:
public static class UnixTimeHelper
{
priva...
Branching in Subversion is very simple. In the simplest form, creating a new branch requires you to run the command against the remote repository's URLs. For example, let's create a new branch out of the mainline trunk:
svn copy https://svn.example.com/svn/MyRepo/MyProject/trunk https://svn.example...
When you interact with the remote central repository using your private local workspace -- the working copy -- you can use repository-relative URL instead of direct URL to URL copy to create a new branch:
svn copy "^/MyProject/trunk" "^/MyProject/branches/MyNewBranch" -m "C...
The working copy (WC) is your local and private workspace that you use to interact with the central Subversion repository. You use the working copy to modify the contents of your project and fetch changes committed by others.
The working copy contains your project's data and looks and acts like a r...
Before publishing a package you have to version it. npm supports semantic versioning, this means there are patch, minor and major releases.
For example, if your package is at version 1.2.3 to change version you have to:
patch release: npm version patch => 1.2.4
minor release: npm version min...
Delete a file asynchronously:
var fs = require('fs');
fs.unlink('/path/to/file.txt', function(err) {
if (err) throw err;
console.log('file deleted');
});
You can also delete it synchronously*:
var fs = require('fs');
fs.unlinkSync('/path/to/file.txt');
console.log('file deleted'...
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
int main(void)
{
5.1
/* Start by creating a new VM state */
lua_State *L = luaL_newstate();
/* Load standard Lua libraries: */
luaL_openlibs(L);
5.1
/* For older version of Lua use lua_open ins...