🏳️⚧️
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
" 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
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
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"os" |
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
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"os" | |
"github.com/gdamore/encoding" | |
) |
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
{ | |
"pikachu": { | |
"type": "electric", | |
"abilities": ["static", "lightning rod"] | |
}, | |
"eevee": { | |
"type": "normal", | |
"abilities": ["run away", "adaptability", "anticipation"] | |
}, | |
"grimer": { |
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
github.AuthenticatedUser | |
github.Authorization | |
github.AuthorizationApplication | |
github.Branch | |
github.BranchProtection | |
github.Clones | |
github.Commit | |
github.CommitCombinedStatus | |
github.CommitComment | |
github.CommitStats |
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 asyncio | |
from ipaddress import ip_address | |
from tartiflette import Resolver, create_engine | |
from aiohttp import web | |
from tartiflette_aiohttp import register_graphql_handlers | |
@Resolver("Query.ipAddress") | |
async def resolve_ip_address(parent, args, ctx, info): |
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 param_accessor(instruction, position): | |
try: | |
if instruction[-2 - position] == "1": | |
return lambda pointer, opcodes: opcodes[pointer+position] | |
except IndexError: | |
pass | |
return lambda pointer, opcodes: opcodes[opcodes[pointer+position]] | |
def op_sum(pointer, opcodes, first_param, second_param): |
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 Node: | |
def __init__(self, value): | |
self.value = value | |
self.adjacent = [] | |
def is_santa(self): | |
return self.value == "SAN" | |
def is_you(self): | |
return self.value == "YOU" |