Skip to content

Instantly share code, notes, and snippets.

Avatar

Frank Batista nybatista

View GitHub Profile
@nybatista
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
nybatista / build-lunrjs-index.js
Created Jan 26, 2020 — forked from HugoDF/LICENSE.md
Integrate lunrjs with a Hugo (gohugo.io) 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(
postNames.map(async fileName => {
@nybatista
nybatista / Instructions.md
Created Aug 29, 2018 — forked from pgilad/Instructions.md
Generate SSL Certificate for use with Webpack Dev Server (OSX)
View Instructions.md

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@nybatista
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";
document.body.appendChild(iframe);
@nybatista
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);
min-height:100%;
ubu (color: *ff0000);
You can’t perform that action at this time.