Skip to content

Instantly share code, notes, and snippets.

@mike-casas
mike-casas / index.html
Last active September 1, 2017 19:13
JS Bin// source https://jsbin.com/zopiximebi sample vuejs
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.change-color {
color: red;
}
@mike-casas
mike-casas / appEntryPoint.js
Created November 17, 2017 06:09 — forked from markerikson/appEntryPoint.js
Webpack React/Redux Hot Module Reloading (HMR) example
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");
@mike-casas
mike-casas / gist:85f020f3c72790af4148ffa2aa0bbd5e
Created December 12, 2019 22:26
default node version with nvm
nvm alias default 8.1.0
const Sitemapper = require('sitemapper');
(async () => {
const sitemap = new Sitemapper();
const oldSiteMapXml = await sitemap.fetch(
'https://auth0.com/blog/sitemap.xml',
);
const newSiteMapXml = await sitemap.fetch(
'http://localhost:3000/blog/sitemap.xml',
@mike-casas
mike-casas / generate-suitable-string-for-secrets.txt
Last active May 20, 2022 15:34
Generate suitable string for secrets
node -e "console.log(crypto.randomBytes(32).toString('hex'))"