🏳️⚧️
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
Feature: bank account | |
A user's bank account must be able to withdraw and deposit cash | |
Scenario Outline: Deposit | |
Given I have a bank account with <start>$ | |
When I deposit <deposit>$ | |
Then it should have a balance of <end>$ | |
Examples: | |
| start | deposit | end | |
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
" Requirements : | |
" plug.vim | |
" pip3 install neovim | |
" npm install -g neovim | |
" Post-setup | |
" :PlugInstall | |
" :UpdateRemotePlugins | |
" :CocInstall coc-json coc-tsserver | |
" pyenv |
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
class BinaryNode: | |
def __init__(self, value): | |
self.value = value | |
self.left = None | |
self.right = None | |
class CompleteBinaryTree: | |
def __init__(self, start: BinaryNode) -> None: | |
self.start = start | |
self.counter = 0 |
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
def weak_goldbach(number): | |
if is_pair(number): | |
raise InvalidNumberError(number + "is pair") | |
if number <= 5: | |
raise InvalidNumberError(number + "is equal or less than 5") | |
primes = find_primes_before_number(number) | |
return three_primes_sum(number, primes) | |
def is_pair(number): | |
if number % 2 == 0: |
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 java.util.LinkedList; | |
import java.lang.Object; | |
public class HashTable { | |
private final int size = 100; | |
private final LinkedList<Object>[] keyValues; | |
public HashTable() { | |
keyValues = new LinkedList[size]; | |
} |
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
public class Pancake { | |
private int size; | |
public Pancake(int size) { | |
this.size = size; | |
} | |
public int size() { | |
return size; | |
} |
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
public class Counter { | |
private int count = 1; | |
private int max; | |
public Counter(int max) { | |
this.max = max; | |
} | |
public int getCount() { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int *initializeNumbers(int size) { | |
int *numbers = malloc(sizeof(int) * size); | |
for(int i = 0; i < size; i++) { | |
numbers[i] = i + 1; | |
} |
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 React from 'react'; | |
import Textfield from 'react-mdc-web/lib/Textfield/Textfield'; | |
export default function ComingSoon() { | |
return ( | |
<div> | |
<h1 style={{ textAlign: 'center' }}>{'Coming soon'}</h1> | |
<div className="mdc-layout-grid"> | |
<div className="mdc-layout-grid__inner"> | |
<div className="mdc-layout-grid__cell mdc-layout-grid__cell--span-3"> |