Skip to content

Instantly share code, notes, and snippets.

View graphicagenda's full-sized avatar
🥳
Just upgraded to GIt Pro

Shining Bright Diamond graphicagenda

🥳
Just upgraded to GIt Pro
View GitHub Profile
@graphicagenda
graphicagenda / future_core_login.php
Last active November 29, 2019 22:37 — forked from franz-josef-kaiser/future_core_login.php
[A WordPress plugin to build an environment to develop a single stylesheet for the login/reg/pass screen in WP 3.1] #LegacyGISTS
<?php
/**
* Plugin Name: Future Core Login
* Plugin URI: http://unserkaiser.com
* Description: Replacing the current stylesheets loaded on wp-login.php until this ticket goes into core: <a href="http://core.trac.wordpress.org/ticket/12506">#12506</a>
* Version: 0.1
* Author: Franz Josef Kaiser
* Author URI: http://unserkaiser.com
* License: GPL2
*
@graphicagenda
graphicagenda / post-receive
Last active November 29, 2019 22:38 — forked from mythmon/post-receive
[The post-receive hook that allows to selectively run git hooks.] #LegacyGISTS
#!/bin/bash
# wrapper script for post-recieve
enabled_hooks="$(git config hooks.enabled)"
hooks_path="/usr/local/share/git/hooks/"
if [ -n "${enabled_hooks}" ] ; then
# change separate to comma
OLDIFS="$IFS"
IFS=","
@graphicagenda
graphicagenda / dabblet.css
Last active November 29, 2019 22:38 — forked from LeaVerou/dabblet.css
[drop-shadow filter vs box-shadow] #LegacyGISTS
/**
* drop-shadow filter vs box-shadow
*/
html {
background: url('http://subtlepatterns.com/patterns/purty_wood.png')
}
.speech-bubble {
position: relative;
@graphicagenda
graphicagenda / jQuery HTML5 placeholder fix.js
Last active November 29, 2019 22:39 — forked from hagenburger/jQuery HTML5 placeholder fix.js
[jQuery HTML5 placeholder fix.js] #LegacyGISTS #jQuery
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
@graphicagenda
graphicagenda / imagesQueue.js
Last active November 29, 2019 22:39 — forked from kamui/imagesQueue.js
[imagesQueue.js] #LegacyGISTS
/*
imagesQueue.js FULL SOURCE
A simple, cross-browser, *parallel* images loader object.
Check http://labs.lieldulev.com/imagesQueue/ for more details.
*/
imagesQ={
onComplete: function(){} // Fires when all finished loading
,onLoaded: function(){} // Fires when an image finishes loading
,onErrored: function(){} // Fires when an image fails to load
,current: null // Last loaded image (Image Object)
@graphicagenda
graphicagenda / jQuery HTML5 placeholder fix.js
Last active November 29, 2019 22:40 — forked from hagenburger/jQuery HTML5 placeholder fix.js
[jQuery HTML5 placeholder fix] #LegacyGISTS
// @via https://gist.github.com/hagenburger/379601
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
@graphicagenda
graphicagenda / _html_entities.scss
Last active November 29, 2019 22:43 — forked from apisandipas/_html_entities.scss
[HTML Entities map] The pseudo-element 'content' property doesnt accept normal (&raquo;) style HTML entities. These variables below easy the pain of looking up the HEX codes... #LegacyGISTS #starred
/**
* The pseudo-element 'content' property doesnt accept normal (&raquo;) style
* HTML entities. These variables below easy the pain of looking up the HEX codes...
*
* Referenced from http://www.danshort.com/HTMLentities/
*
* TODO: Add all the other entities? Worth it? Some day? Maybe?
*/
// Punctuation
@graphicagenda
graphicagenda / humble_bundle_file_downloader.js
Last active November 29, 2019 22:44 — forked from tlc/humble_bundle_file_downloader.js
[Download HumbleBundle book bundles easier.] Puts 'curl' statements on the page for you to copy. #unlabeled
/* 11/27/2017 - Tweaked for a page redesign.
* 1/6/2018 - Handle videos in book bundle.
*/
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ)$/i;
var pattern2 = /(Download)$/;
var nodes = document.getElementsByTagName('a');
var downloadCmd = '';
for (i in nodes) {
var a = nodes[i];
if (a && a.text && pattern.test(a.text.trim())) {
@graphicagenda
graphicagenda / import_json_appsscript.js
Last active November 29, 2019 22:44 — forked from paulgambill/import_json_appsscript.js
[Import JSON Apps Script] #unlabeled
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@graphicagenda
graphicagenda / bootstrap-pagination.php
Last active November 29, 2019 22:53 — forked from ediamin/bootstrap-pagination.php
[Bootstrap Pagination for WordPress] #WordPress #Bootstrap #unlabeled
/*
* custom pagination with bootstrap .pagination class
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/
*/
function bootstrap_pagination( $echo = true ) {
global $wp_query;
$big = 999999999; // need an unlikely integer
$pages = paginate_links( array(