Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Break stuff ..... Make Stuff ...

Nwani Victory vickywane

🎯
Break stuff ..... Make Stuff ...
View GitHub Profile
@vickywane
vickywane / Trie.js
Last active Mar 3, 2021 — forked from tpae/Trie.js
Trie.js - super simple JavaScript implementation
View Trie.js
// Trie.js - JS implementation
// https://en.wikipedia.org/wiki/Trie
// Inspired by Tpae's implementation
// we start with the TrieNode
function TrieNode(key) {
// the "key" value will be the character in sequence
this.key = key;
@vickywane
vickywane / codility_solutions.txt
Created Aug 5, 2020 — forked from lalkmim/codility_solutions.txt
Codility Solutions in JavaScript
View codility_solutions.txt
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
View docker-compose.yml
version: '3'
services:
app:
container_name: oasis_container
build: .
ports:
- 4040:4040
restart: on-failure
volumes:
- api:/usr/src/app/
View Dockerfile
# small image to reduce resources
FROM golang:alpine as Image
ENV DIR = $GOPATH/src/github.com/vickywane/event-server/
WORKDIR $DIR
# Git is required for fetching the dependencies.
RUN apk update && apk add --no-cache git
COPY go.mod go.sum ./
@vickywane
vickywane / app.js
Created May 13, 2020
Testing github gists for embeding on my blog. Would delete later
View app.js
import { hot } from 'react-hot-loader/root';
import React from 'react';
import { Home } from './pages/';
const App = () => {
return (
<div>
<Home />
</div>