Improved .visually-hidden
Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
# install devtools | |
install.packages('devtools') | |
# install dependency of scales package | |
install.packages(c("RColorBrewer", "stringr", "dichromat", "munsell", "plyr", "colorspace")) | |
# load devtools | |
library(devtools) | |
# move to development mode |
<?php | |
/* | |
* Plugin Name: Root-based Category URLs | |
* Description: Enables root-based Category URLs, i.e. Makes /category/my-category/ URLs route as /my-category/ | |
* Author: Mike Schinkel | |
* Author URI: http://about.me/mikeschinkel | |
* Plugin URI: https://gist.github.com/1421235 | |
* Version: 0.1.1 | |
* License: GPL 2+ | |
*/ |
<!DOCTYPE html> | |
<!-- http://eli.fox-epste.in/rule110-full.html --> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Rule 110</title> | |
<style type="text/css" media="screen"> | |
body { | |
-webkit-animation: bugfix infinite 1s; | |
font-family: "Courier New"; |
// Sample demo of how to gain access to "private" variables in JavaScript, | |
// even if they'd normally be inaccessible due to the closure. | |
var Table = function () { | |
var _array = ["super", "secret", "message"]; | |
return { | |
get: function (i) { return _array[i]; }, | |
store: function (i,v) { _array[i] = v; }, | |
append: function (v) { _array.push(v); } | |
}; | |
}; |
function tableToJson(table) { | |
var data = []; | |
// first row needs to be headers | |
var headers = []; | |
for (var i=0; i<table.rows[0].cells.length; i++) { | |
headers[i] = table.rows[0].cells[i].innerHTML.toLowerCase().replace(/ /gi,''); | |
} | |
// go through cells |
@echo off | |
setlocal enableDelayedExpansion | |
::::: | |
:: Advanced user input in batch [using xcopy] | |
:: Fetch result using for /f from main | |
::::: | |
set "prompt=" | |
:: the input prompt | |
set "symbol=" | |
:: the symbol that displays instead |
<?php | |
/* | |
JWT TOKEN LOGIN -- Automatically logs a user in a WordPress site with JWT | |
This script allows you to log a user into a WordPress site automatically | |
based on his/her JSON Web Token (JWT). This assumes that you use the | |
following plugin and set it up properly on your WordPress site to enable | |
JWT authentication via REST API. | |
JWT Authentication for WP REST API |