Skip to content

Instantly share code, notes, and snippets.

@philippslang
philippslang / launch.json
Created July 6, 2018 10:28
VS Code pytest debugging settings
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: loadbalancer test",
"type": "python",
"request": "launch",
"module": "pytest",
"args": [
"--no-cov"
@Deliaz
Deliaz / arrayBufferToBase64.js
Created December 16, 2016 06:12
Convert array buffer to base64 string
View arrayBufferToBase64.js
function arrayBufferToBase64(buffer) {
let binary = '';
let bytes = new Uint8Array(buffer);
let len = bytes.byteLength;
for (let i = 0; i < len; i++) {
binary += String.fromCharCode(bytes[i]);
}
return window.btoa(binary);
}
@remarkablemark
remarkablemark / Dockerfile
Last active September 17, 2023 17:30
Install node and npm with nvm using Docker.
View Dockerfile
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
@markerikson
markerikson / appEntryPoint.js
Last active August 1, 2022 07:41
Webpack React/Redux Hot Module Reloading (HMR) example
View appEntryPoint.js
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");
@btroncone
btroncone / ngrxintro.md
Last active September 20, 2023 10:28
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md
@forest
forest / git-workflow.md
Created February 22, 2016 18:15
Git Feature Branch Workflow
View git-workflow.md