Simple star rating with hover preview.
Using Font awesome and jQuery
A Pen by Koen Hendriks on CodePen.
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct |
<?php | |
/** | |
* Radio Scanner | |
* Created by: koen | |
* Date: 12/9/15 | |
* Time: 12:44 PM | |
*/ | |
require_once('simple_html_dom.php'); |
/** | |
* TaxPrice | |
* Created by: Koen | |
* Date: 6-7-15 | |
* Time: 10:50 | |
* | |
* @param price | |
* @param isTaxPrice | |
* @param taxRate | |
* @constructor |
<?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> |
<?php | |
/** | |
* TaxPrice.php | |
* Created by: koen | |
* Date: 18-4-15 | |
* Time: 12:41 | |
*/ | |
class TaxPrice { |
Simple star rating with hover preview.
Using Font awesome and jQuery
A Pen by Koen Hendriks on CodePen.
wget https://gist.githubusercontent.com/amlweems/6e78d03810548b4867d6/raw/69e2fb429dc6f020954405a9d55021db8db1d26e/gistfile1.c && mv gistfile1.c GHOST.c && gcc GHOST.c -o GHOST && clear && ./GHOST |
$.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; | |
} | |
}); |
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
# 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 |