Simple star rating with hover preview.
Using Font awesome and jQuery
A Pen by Koen Hendriks on CodePen.
checkForgotFields(){ | |
var check = false; | |
var email = $('#email').val(); | |
var securityq = $('#securityq').val(); | |
var securitya = $('#securitya').val(); | |
if(email != '' && securitya != '' && securityq !=''){ | |
check = true; | |
} | |
return check; |
/** | |
* I love this hack <3 | |
* | |
* @param $var | |
* @return string | |
*/ | |
function dump($var){ | |
echo '<pre>'; | |
var_dump($var); | |
echo '</pre>'; |
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 |
# 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 |
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
$.fn.extend({ | |
center: function() { | |
this.css("position", "absolute"); | |
this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + | |
$(window).scrollTop()) + "px"); | |
this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) + | |
$(window).scrollLeft()) + "px"); | |
return this; | |
} | |
}); |
wget https://gist.githubusercontent.com/amlweems/6e78d03810548b4867d6/raw/69e2fb429dc6f020954405a9d55021db8db1d26e/gistfile1.c && mv gistfile1.c GHOST.c && gcc GHOST.c -o GHOST && clear && ./GHOST |
Simple star rating with hover preview.
Using Font awesome and jQuery
A Pen by Koen Hendriks on CodePen.
<?php | |
/** | |
* TaxPrice.php | |
* Created by: koen | |
* Date: 18-4-15 | |
* Time: 12:41 | |
*/ | |
class TaxPrice { |
<?php | |
/** | |
* Small little function to read out The Pirate Bay. | |
* This will look make a search on The Pirate Bay | |
* and return the first result it gets from the HD - Movies category | |
* | |
* Example: | |
* $magnetUrl = getMagnet('Fight Club', 'YIFY'); | |
* | |
* @author Koen Hendriks <info@koenhendriks.com> |