Skip to content

Instantly share code, notes, and snippets.

View sebastianpatten's full-sized avatar

Sebastian Patten sebastianpatten

View GitHub Profile
@sebastianpatten
sebastianpatten / metadata.json
Created April 24, 2021 17:16
Rev Smart Contract
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]}
@sebastianpatten
sebastianpatten / array-utils.js
Last active November 26, 2019 01:33
Flatten an array!
// Go here to see the tests running! https://codesandbox.io/s/array-squashing-ser8t?fontsize=14&module=%2Ftest%2Farray-utils.spec.js&previewwindow=tests&theme=dark
export const flattenArray = array =>
array.reduce(
(accumulator, currentValue) =>
accumulator.concat(
Array.isArray(currentValue) ? flattenArray(currentValue) : currentValue
),
[]
);
@sebastianpatten
sebastianpatten / Dockerfile
Last active September 5, 2019 19:10
Docker - Run Alpine Linux
FROM node:alpine
VOLUME /Users/seb/Projects/property-management-code:/code
WORKDIR /code
RUN npm install -g nodemon
EXPOSE 8080
CMD [ "nodemon", "app.js" ]