Skip to content

Instantly share code, notes, and snippets.

View publicJorn's full-sized avatar

Jorn Luiten publicJorn

  • frontrain
  • Netherlands
View GitHub Profile
@publicJorn
publicJorn / reactES6.jsx
Last active January 14, 2016 14:57
React component in ES6 class syntax
import React, {Component} from 'react';
export class MyComponent extends Component {
constructor (props) {
super(props);
}
render () {
return (
<p>
@publicJorn
publicJorn / jquery-plugin-template.js
Last active November 19, 2021 08:47
jQuery plugin template
/**
* jQuery plugin template by https://github.com/publicJorn
* Features:
* - dynamic plugin name (only supply once) so it's easy to change later
* - plugin factory to make it work in the browser, or with AMD / COMMONJS modules
* - Plugin instance is saved on the selector element
* - Default options are saved to the instance in case you need to figure out a difference between passed options
*/
(function(global, factory) {
'use strict';
@publicJorn
publicJorn / .gitconfig
Created May 21, 2014 07:06
default git config, copied from @dandydev
[alias]
# Korte log van de laatste 20 commits met enkel SHA's en omschrijving.
l = log --pretty=oneline -n 20 --graph
# Gecondenseerde versie van status. Handig als snel overzicht.
s = status -s
# Status shorthand
st = status
# Laat diff zien tussen laatste commit en huidige staat van working copy
d = !"git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
# `git di $number` laat diff zien tussen huidige staat en $number revisions geleden
@publicJorn
publicJorn / html5.html
Last active August 29, 2015 13:58
minimalistic html5 template for quick tests
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<title></title>