This file contains hidden or 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
import {Student} from "./Student"; | |
function greeter(student: Student) { | |
return student.firstName + " " + student.lastName; | |
} | |
let user = new Student("Jane", "Doe"); | |
document.body.innerHTML = greeter(user); |
This file contains hidden or 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
gcc main.c utils.c -o runMe |
This file contains hidden or 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
declare module ElectronDL { | |
interface ElectronDLOptions { | |
/** | |
* Show a 'Save As...' dialog instead of downloading immediately. Note: Only use this option | |
* when strictly necessary. Downloading directly without a prompt is a much better user experience. | |
* | |
* Defaults to false | |
*/ | |
saveAs: boolean; |
This file contains hidden or 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
// Calculates the log base 'base' of 'value' e.g. logBase(2, 4) is log_2 (4) = 2 | |
function logBase(base, value) { | |
return log(value)/log(base); | |
} | |
/* | |
* Calculates the points earned after winning a match based on the following: | |
* Min and max points: The minimum and maximum amount of points to be applied | |
* Min and max delta: At what rank difference the min or max points should be applied (e.g. -500 and 500 ranking point difference) | |
* Delta: How much ranking point difference there is between the two players (winningPlayer - losingPlayer) |
This file contains hidden or 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
image: node:lts | |
before_script: | |
- eval $(ssh-agent -s) | |
- ssh-add <(echo "$VPS_KEY") | |
- mkdir -p ~/.ssh | |
cache: | |
paths: | |
- node_modules/ |
OlderNewer