Skip to content

Instantly share code, notes, and snippets.

View raghu-nanda's full-sized avatar
😀
Food, Code & Sleep; Nonfi books & Star Trek

Raghu Nanda raghu-nanda

😀
Food, Code & Sleep; Nonfi books & Star Trek
View GitHub Profile
@HenrikJoreteg
HenrikJoreteg / rollup-plugin-add-import.js
Created January 20, 2017 22:25
Simple rollup plugin to automatically add an import line
import { createFilter } from 'rollup-pluginutils'
function assign (target, source) {
Object.keys(source).forEach((key) => {
target[key] = source[key]
})
return target
}
const DEFAULT_HEADER = 'import React from \'react\';'
@sdorra
sdorra / cert.go
Created July 3, 2016 20:56
Certificate generation in Go
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"log"
"math/big"