Forked from Nirmalya Ghosh's Pen Donut Chart using morris.js.
A Pen by Burak Arslan on CodePen.
Forked from Nirmalya Ghosh's Pen Donut Chart using morris.js.
A Pen by Burak Arslan on CodePen.
Simple effect where when you hover over the image, another image/bit of text/whatever is overlayed
A Pen by Marie Hogebrandt on CodePen.
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
// teb.events.js |
/*! | |
* @fileOverview Finance Excel Rate Formula Javascript Equivalent | |
* @version 1.0.0 | |
* | |
* @author Burak Arslan @kucukharf http://www.github.com/kucukharf | |
* @license | |
* Copyright (c) 2010-2018 Burak Arslan | |
* Licensed under Creative Commons (CC) license | |
* @usage RATE($periods, $payment, $present, $future, $type, $guess) | |
*/ |
(function (){ | |
var rep = /.*\?.*/, | |
links = document.getElementsByTagName('link'), | |
scripts = document.getElementsByTagName('script'), | |
process_scripts = false; | |
for (var i=0;i<links.length;i++){ | |
var link = links[i], | |
href = link.href, | |
operator = (rep.test(href)) ? '&' : '?'; | |
link.href = href + operator + Date.now(); |
#!/bin/sh | |
# check for where the latest version of IDEA is installed | |
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
wd=`pwd` | |
# were we given a directory? | |
if [ -d "$1" ]; then | |
# echo "checking for things in the working dir given" | |
wd=`ls -1d "$1" | head -n1` |
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { | |
return _.transform(object, function(result, value, key) { | |
if (!_.isEqual(value, base[key])) { |
<?php | |
// Based on <https://github.com/mecha-cms/extend.minify> | |
// Downgraded to PHP 5.3.29 to backward compatibility | |
define('MINIFY_STRING', '"(?:[^"\\\]|\\\.)*"|\'(?:[^\'\\\]|\\\.)*\''); | |
define('MINIFY_COMMENT_CSS', '/\*[\s\S]*?\*/'); | |
define('MINIFY_COMMENT_HTML', '<!\-{2}[\s\S]*?\-{2}>'); | |
define('MINIFY_COMMENT_JS', '//[^\n]*'); | |
define('MINIFY_PATTERN_JS', '/[^\n]+?/[gimuy]*'); | |
define('MINIFY_HTML', '<[!/]?[a-zA-Z\d:.-]+[\s\S]*?>'); | |
define('MINIFY_HTML_ENT', '&(?:[a-zA-Z\d]+|\#\d+|\#x[a-fA-F\d]+);'); |
{ | |
"name": "project-name", | |
"description": "Template for static sites", | |
"version": "1.0.0", | |
"homepage": "http://www.project-name.com", | |
"author": { | |
"name": "Adam Reis", | |
"url": "http://adam.reis.nz" | |
}, | |
"license": "UNLICENSED", |