This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Singleton Trait. | |
* | |
* Example: | |
* | |
* class MyClass | |
* { | |
* use SingletonTrait; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sieve of Eratosthenes example. | |
* | |
* In mathematics, the sieve of Eratosthenes, one of a number of prime number | |
* sieves, is a simple, ancient algorithm for finding all prime numbers up to | |
* any given limit. | |
* | |
* @see https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes | |
*/ | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Memory Clutter | |
[push] | |
default = simple | |
[alias] | |
a = add | |
aa = add . | |
b = branch | |
bd = branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(qsort). | |
-export([qsort/1]). | |
% Implementation of quick sorting on erlang | |
qsort([]) -> []; | |
qsort([Pivot|T]) -> | |
qsort([X || X <- T, X < Pivot]) ++ [Pivot] ++ qsort([X || X <- T, X >= Pivot]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(myfilter). | |
-export([filter/2]). | |
% Implementation of the filter function | |
filter(P, [H|T]) -> | |
case P(H) of | |
true -> [H|filter(P, T)]; | |
false -> filter(P, T) | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE attributes_array_smallint; | |
DROP TABLE attributes_array_int; | |
DROP TABLE attributes_array_bigint; | |
DROP TABLE attributes_timestamp; | |
DROP TABLE attributes_inet; | |
DROP TABLE attributes_boolean; | |
DROP TABLE attributes_varchar_2; | |
DROP TABLE attributes_varchar_4; | |
DROP TABLE attributes_varchar_8; | |
DROP TABLE attributes_varchar_16; |