- Get all of these files into the target folder
- Run the following commands:
chmod +x *.sh
./nginx-start.sh
chmod +x *.sh
./nginx-start.sh
language | filename | contributors |
---|---|---|
D |
learnd.d |
/*TODO:
* static variables and CTFE (also TLS)
* delegates, function/delegate literals
/** | |
* D Holbrook | |
* | |
* Code Club: PO1 | |
* | |
* (*) Define a binary tree data structure and related fundamental operations. | |
* | |
* Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported: | |
* | |
* Constructors |
// Tarantool quick test | |
// Copyright, Dennis Anikin 2016 | |
// | |
// Quick disclaimer: | |
// | |
// This test shows 500K-1000K transactions per second on one CPU core | |
// and 600K-1600K queries per second on one CPU core. | |
// | |
// Based on the $6.57 per-month-price for the AWS t2.micro instance we can afford the tremendous number of 630bln queries for just $1 | |
// |
// Trie.js - super simple JS implementation | |
// https://en.wikipedia.org/wiki/Trie | |
// ----------------------------------------- | |
// we start with the TrieNode | |
function TrieNode(key) { | |
// the "key" value will be the character in sequence | |
this.key = key; | |
-- Installs "file_fdw" extension and creates foreign table to work with data from CSV file. | |
-- See also the comment below which helps to automate the process for Google Spreadsheets | |
-- Another option would be using Multicorn for Google Spreadsheets, but it requires additional steps | |
-- (see https://wiki.postgresql.org/wiki/Foreign_data_wrappers). | |
CREATE EXTENSION file_fdw; | |
CREATE SERVER import FOREIGN DATA WRAPPER file_fdw; | |
CREATE FOREIGN TABLE table1_import ( | |
col1 text, | |
col2 text, |
1 | CTAAGGTAA | |
---|---|---|
2 | TAAGGAGAA | |
3 | AAGAGGATT | |
4 | TACCAAGAT | |
5 | CAGAAGGAA | |
6 | CTGCAAGTT | |
7 | TTCGTGATT | |
8 | TTCCGATAA | |
9 | TGAGCGGAA | |
10 | CTGACCGAA |
struct Point { | |
x: i32, | |
y: i32, | |
} | |
fn takes_point(Point {x, y}: Point) { | |
println!("({}, {})", x, y); | |
} | |
fn main() { |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
% Let's build a binary tree!
Let's build a binary tree of strings in Rust. To recap, each node in a binary tree:
So we can describe a single node like this: