Skip to content

Instantly share code, notes, and snippets.

@foxbunny
foxbunny / jsx.d.ts
Last active September 14, 2017 13:00
JSX definition for Vue.js
// I'm not the original author of this code. Please let me
// know if you know/find the original author so I can fully
// attribute.
import Vue, { VNode } from "vue";
declare global {
namespace JSX {
interface Element extends VNode {}
interface ElementClass extends Vue {}
@simenbrekken
simenbrekken / MyComponent.js
Created July 6, 2016 12:01
Lazy loading React components with Webpack 2 and System.import
import React from 'react'
export default () => (
<div>
My Component
</div>
)
@christophercliff
christophercliff / description.md
Last active February 24, 2019 23:30
Stream email attachments to S3 with Mailgun, node.js.
@Gen2ly
Gen2ly / md2wp
Created July 9, 2012 23:34
Convert Markdown to Wordpress blogging format
#!/bin/bash
# Convert Markdown to Wordpress blogging format
# Required program(s)
req_progs=(ascii2uni pandoc)
for p in ${req_progs[@]}; do
hash "$p" 2>&- || \
{ echo >&2 " Required program \"$p\" not installed."; exit 1; }
done