Adopted by ACM council 10/16/92.
1992년 10월 16일에 ACM 위원회에 의해 적용됨.
Preamble
# 0. Get official distribution. Substitue 'x' with desired version. | |
sudo apt-get install python3.x | |
# 1. Get all installed python3 distributions | |
ls -alh /usr/bin | grep python3 | |
# 2. Add installed python3 version to update-alternatives | |
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.x | |
# 3. Configure update-alternatives. |
let count = 0; | |
/** | |
* An implementation for Mergesort. Less efficient | |
* than Quicksort. Again, you'd just use Array.sort | |
* but if you found yourself unable to use that | |
* there's always this option. | |
* | |
* Tests with: | |
* | |
* var array = []; |
let count = 0; | |
function shuffle(array) { | |
var currentIndex = array.length, temporaryValue, randomIndex; | |
// While there remain elements to shuffle... | |
while (0 !== currentIndex) { | |
// Pick a remaining element... | |
randomIndex = Math.floor(Math.random() * currentIndex); |
#!/usr/bin/env node | |
// | |
// Count the number of comparisons required by quicksort using the following | |
// three pivot-selection strategies: | |
// | |
// 1. Always pick the first element. | |
// 2. Always pick the last element. | |
// 3. Pick the median of the first, last, and middle elements. If the list | |
// length is even, pick the element with the smaller index. | |
// |
git init
and add appropriate .gitignore
file.)lerna init
. If versions of each packages differ from each other, remove version
from lerna.json
.npm install
packages
folder.prepublishOnly
of package.json
of each file to npm run build
. (If needed, make "tsconfig.json" at "packages" folder for package references, "tsconfig.settings.json" for common settings to extended by each package's tsconfig.json.)references
of tsconfig.json
file.outDir
and rootDir
of tsconfig.json
of each package to appropriate values if needed.import java.lang.Math; // headers MUST be above the first class | |
import java.util.*; | |
// one class needs to have a main() method | |
public class Sort { | |
// arguments are passed using the text field below this editor | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("Please insert array size of 10:"); |
GET http://myrestfulblog.io/articles # Gets List of articles. | |
GET http://myrestfulblog.io/articles/10 # Gets article No. 10. | |
POST http://myrestfulblog.io/articles/create # Create new article. | |
DELETE http://myrestfulblog.io/articles/3 # Deletes article No. 3. | |
PATCH http://myrestfulblog.io/articles/5 # Update article No. 5. |
import {exec, spawn} from "child_process"; | |
import * as fs from "fs"; | |
import * as path from "path"; | |
const indivitualUsage = "ts-node function.ts <command> [--function <function>] [--args <args list...>]"; | |
const npmUsage = "npm run <command> -- [--function <function>] [--args <args list...>]"; | |
const commands = [ | |
"webpack", | |
"package", |
This gist describes multi-function-in-one-project case of serverless framework for AWS lambda.