Skip to content

Instantly share code, notes, and snippets.


Frank Batista nybatista

View GitHub Profile
nybatista / states_hash.json
Created Jul 23, 2020 — forked from mshafrir/states_hash.json
US states in JSON form
View states_hash.json
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
nybatista / build-lunrjs-index.js
Created Jan 26, 2020 — forked from HugoDF/
Integrate lunrjs with a Hugo ( site.
View build-lunrjs-index.js
const fs = require('fs').promises;
const {promisify} = require('util');
const frontMatterParser = require('parser-front-matter');
const parse = promisify(frontMatterParser.parse.bind(frontMatterParser));
async function loadPostsWithFrontMatter(postsDirectoryPath) {
const postNames = await fs.readdir(postsDirectoryPath);
const posts = await Promise.all( fileName => {
nybatista /
Created Aug 29, 2018 — forked from pgilad/
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
nybatista / host.js
Created Jan 4, 2018 — forked from tuan/host.js
RxJs and window's postMessage for intercommunication
View host.js
import * as Rx from "rxjs/Rx";
import * as uuid from "uuid";
import {IRequest} from "./common";
let button = document.querySelector("button");
let iframe = document.createElement("iframe");
iframe.src = "/proxy.html";
nybatista / dabblet.css
Created Mar 10, 2012
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
background: #cccccc;
background: (background-color: #cccccc);
ubu (color: *ff0000);
You can’t perform that action at this time.