-
Pull and checkout
master
-
Create a feature branch from
master
- If branch represents an Issue or Work Item,
the branch should be named the key of the issue / work item,
e.g.
origin/CROW123
- If branch is for an out-of-bands change, be sure the name of the branch accurately describes
- If branch represents an Issue or Work Item,
the branch should be named the key of the issue / work item,
e.g.
This document outlines Key Words borrowed from the IETF RFC #2119, with some minor contextual additions to make them specifically applicable to Pull Requests.
The intent of this document is to provide a common vocabulary for describing the requirement level / "severity" of a Pull Request comment or suggestion.
- Create a user for the application at
https://{env}.id-map.strongmind.com/admin/auth/user/add/
- The password should be very difficult to guess, and not be saved anywhere.
- After creating the user, you should be taken to a view to edit the user
- (
https://{env}.id-map.strongmind.com/admin/auth/user/{usr_id}/change/
)
- (
- Set the user's email address so that it can be easily identified in dropdowns later
- Grant the user the permissions necessary for your Application's API Token
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
type Coin = | |
| Penny | |
| Nickel | |
| Dime | |
| Quarter | |
let getValue c = | |
match c with | |
| Penny -> 0.01 | |
| Nickel -> 0.05 |
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
enum Coin { | |
Penny, | |
Nickel, | |
Dime, | |
Quarter, | |
} | |
impl Coin { | |
pub fn get_value(&self) -> f16 { | |
use Coin::*; |
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
abstract class Coin | |
{ | |
public float GetValue() | |
{ | |
return this switch | |
{ | |
Penny => 0.01, | |
Nickel => 0.05, | |
Dime => 0.10, | |
Quarter => 0.25, |
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
type Coin = | |
| 'penny' | |
| 'nickel' | |
| 'dime' | |
| 'quarter'; | |
function getValue(coin: Coin): number { | |
switch(coin) { | |
case 'penny': return 0.01; | |
case 'nickel': return 0.05; |
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
import {strike, match, otherwise} from '@matchbook/ts'; | |
type Coin = | |
| 'penny' | |
| 'nickel' | |
| 'dime' | |
| 'quarter'; | |
const getValue = (c: Coin): number => strike( | |
c, |
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
type Circle = { diameter: number }; | |
type Rectangle = { length: number, height: number }; | |
type Triangle = { base: number, height: number }; | |
type Shape = | |
| Circle | |
| Triangle | |
| Rectangle; | |
const suitcase = { |
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
struct Number(i32); | |
const SUITCASE_LEN: Number = Number(55); | |
const SUITCASE_HGT: Number = Number(40); | |
enum Shape { | |
Circle { diameter: Number }, | |
Rect { length: Number, height: Number }, | |
Triangle { base: Number, height: Number }, | |
} |
OlderNewer