Skip to content

Instantly share code, notes, and snippets.

View koenhendriks's full-sized avatar
🏠
Working from home

Koen Hendriks koenhendriks

🏠
Working from home
View GitHub Profile
@koenhendriks
koenhendriks / designer.html
Created December 17, 2014 14:33
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@koenhendriks
koenhendriks / Extract Linux
Created October 6, 2014 07:02
Extract Function Linux Bash
# Extract archives - use: extract <file>
# Based on http://dotfiles.org/~pseup/.bashrc
function extract() {
if [ -f "$1" ] ; then
local filename=$(basename "$1")
local foldername="${filename%%.*}"
local fullpath=`perl -e 'use Cwd "abs_path";print abs_path(shift)' "$1"`
local didfolderexist=false
if [ -d "$foldername" ]; then
didfolderexist=true
@koenhendriks
koenhendriks / IRC quotes
Last active March 30, 2018 09:40
IRC quotes (irc.freenode.net #deltion)
IRC #deltion Quotes
24 September 2013
10:05 <@Chameleon> morge
10:06 <@Chameleon> happy bday corne :D
10:06 < corne> ty
10:07 <@Chameleon> dus heb je al een highchart voor me gemaakt met goede x en y assen ?
10:07 < corne> en hey
10:07 < corne> euhm
/**
* I love this hack <3
*
* @param $var
* @return string
*/
function dump($var){
echo '<pre>';
var_dump($var);
echo '</pre>';
checkForgotFields(){
var check = false;
var email = $('#email').val();
var securityq = $('#securityq').val();
var securitya = $('#securitya').val();
if(email != '' && securitya != '' && securityq !=''){
check = true;
}
return check;