Skip to content

Instantly share code, notes, and snippets.

@as-com
as-com / wp-config.php
Created March 10, 2015 23:55
Salty wp-config
<?php
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
This file has been truncated, but you can view the full file.
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
// case, where this code here is minified but Module was defined
// elsewhere (e.g. case 4 above). We also need to check if Module
!function(){function updateFlag(){this.nextSibling.style.color=this.value?"#898E79":"#A03333"}var base2={name:"base2",version:"1.0.1(pre)",exports:"Base, Package, Abstract, Module, Enumerable, Map, Collection, RegGrp, assert, assertArity, assertType, assignID, copy, counter, detect, extend, forEach, format, instanceOf, match, rescape, slice, trim, I, K, Undefined, Null, True, False, bind, delegate, flip, not, partial, unbind",global:this,namespace:"var global=base2.global;function base(o,a){return o.base.apply(o,a)};",detect:new function(_){var global=_,jscript;if(_.navigator){var element=document.createElement("span"),userAgent=navigator.platform+" "+navigator.userAgent;jscript||(userAgent=userAgent.replace(/MSIE\s[\d.]+/,"")),userAgent=userAgent.replace(/([a-z])[\s\/](\d)/gi,"$1$2")}return function(a){var r=!1,b="!"==a.charAt(0);if(b&&(a=a.slice(1)),"("==a.charAt(0))try{eval("r=!!"+a)}catch(error){}else r=RegExp("("+a+")","i").test(userAgent);return!!(b^r)}}(this)};!new function(_){function _12(e,t){for(var
!function(n,e){"use strict";function t(n){for(var e=Object.create(null),t=0;t<n.length;++t)e[n[t]]=!0;return e}function r(n){return n.split("")}function i(n,e){for(var t=e.length;--t>=0;)if(e[t]==n)return!0;return!1}function o(n,e){for(var t=0,r=e.length;r>t;++t)if(n(e[t]))return e[t]}function a(n,e){if(0>=e)return"";if(1==e)return n;var t=a(n,e>>1);return t+=t,1&e&&(t+=n),t}function u(n,e){Error.call(this,n),this.msg=n,this.defs=e}function s(n,e,t){n===!0&&(n={});var r=n||{};if(t)for(var i in r)r.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&u.croak("`"+i+"` is not a supported option",e);for(var i in e)e.hasOwnProperty(i)&&(r[i]=n&&n.hasOwnProperty(i)?n[i]:e[i]);return r}function c(n,e){var t=0;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],t++);return t}function f(){}function l(n,e){n.indexOf(e)<0&&n.push(e)}function p(n,e){return n.replace(/\{(.+?)\}/g,function(n,t){return e[t]})}function d(n,e){for(var t=n.length;--t>=0;)n[t]===e&&n.splice(t,1)}function h(n,e){function t(n,t){for(var r=[],i=0,o=0,a=0;i<n.lengt
// https://github.com/beatgammit/base64-js/blob/master/lib/b64.js
!function(r){"use strict";function t(r){var t=f[r.charCodeAt(0)];return void 0!==t?t:-1}function n(r){function n(r){i[f++]=r}var e,a,h,o,c,i;if(r.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=r.length;c="="===r.charAt(u-2)?2:"="===r.charAt(u-1)?1:0,i=new A(3*r.length/4-c),h=c>0?r.length-4:r.length;var f=0;for(e=0,a=0;h>e;e+=4,a+=3)o=t(r.charAt(e))<<18|t(r.charAt(e+1))<<12|t(r.charAt(e+2))<<6|t(r.charAt(e+3)),n((16711680&o)>>16),n((65280&o)>>8),n(255&o);return 2===c?(o=t(r.charAt(e))<<2|t(r.charAt(e+1))>>4,n(255&o)):1===c&&(o=t(r.charAt(e))<<10|t(r.charAt(e+1))<<4|t(r.charAt(e+2))>>2,n(o>>8&255),n(255&o)),i}function e(r){return u[r]}function a(r){return e(r>>18&63)+e(r>>12&63)+e(r>>6&63)+e(63&r)}function h(r,t,n){for(var e,h=[],o=t;n>o;o+=3)e=(r[o]<<16)+(r[o+1]<<8)+r[o+2],h.push(a(e));return h.join("")}function o(r){var t,n,a,o=r.length%3,c="",i=[],u=16383;for(t=0,a=r.length-o;a>t;t+=u)i.push(h(r,t,t+u>a?a:t+

Keybase proof

I hereby claim:

  • I am as-com on github.
  • I am ascom (https://keybase.io/ascom) on keybase.
  • I have a public key whose fingerprint is 2325 45AB 4D20 5018 6CCB C14B CC43 98B4 5AF5 5252

To claim this, I am signing this object:

@as-com
as-com / highlight.pack.js
Created March 27, 2016 01:09
highlightjs with all languages
/*! highlight.js v9.2.0 | BSD3 License | git.io/hljslicense */
!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function i(e){var n,t,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=/\blang(?:uage)?-([\w-]+)\b/i.exec(i))return w(t[1])?t[1]:"no-highlight";for(i=i.split(/\s+/),n=0,r=i.length;r>n;n++)if(w(i[n])||a(i[n]))return i[n]}function o(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",o
[][(!1+[])[+[]]+([!1]+[][[]])[1+[+[]]]+(!1+[])[2]+(!1+[])[2]][([]+[][(!1+[])[+[]]+([!1]+[][[]])[1+[+[]]]+(!1+[])[2]+(!1+[])[2]])[3]+(!0+[][(!1+[])[+[]]+([!1]+[][[]])[1+[+[]]]+(!1+[])[2]+(!1+[])[2]])[1+[+[]]]+([][[]]+[])[1]+(!1+[])[3]+(!0+[])[+[]]+(!0+[])[1]+([][[]]+[])[+[]]+([]+[][(!1+[])[+[]]+([!1]+[][[]])[1+[+[]]]+(!1+[])[2]+(!1+[])[2]])[3]+(!0+[])[+[]]+(!0+[][(!1+[])[+[]]+([!1]+[][[]])[1+[+[]]]+(!1+[])[2]+(!1+[])[2]])[1+[+[]]]+(!0+[])[1]]((+[]+[!0]+[][[]]+!1+ +[]+!1+ +[]+[][[]]+!1+ +[]+ +[]+[][[]]+!1+!0+1+!1+([][[]]+[])[+[]]+!1+!0+!0+[][[]]+!1+!0+1+!1+ +[]+[][[]]+!1+(!0+[])[1]+!1+1+ +[]+!1+ +[]+ +[]+!1+[][[]]+!0+[][[]]+!1+1+[][[]]+!1+ +[]+[][[]]+!1+ +[]+!0+ +[]+!1+!0+!0+!0+!1+[][[]]+ +[]+!0+!1+ +[]+ +[!1]+!1+ +[]+!1+ +[]+[][[]]+!1+[][[]]+ +[]+!0+!1+ +[]+!0+ +[]+!1+ +[!1]+[][[]]+!1+!0+[][[]]+!1+ +[]+!0+1+!1+(+[!1]+[])[+[]]+!1+([][[]]+[])[+[]]+!1+!0+ +[!1]+!0+!1+ +[]+1+!0+!1+!0+ +[]+1+!1+ +[]+(!1+[])[+[]]+!1+1+[][[]]+!1+(+[!1]+[])[+[]]+!1+1+ +[]+!1+!0+ +[!1]+!1+!0+1+!1+(!0+[])[1]+!1+ +[]+!0+ +[]+!1+1+ +[]+!1
@as-com
as-com / results.txt
Created April 19, 2016 12:04
fast.js benchmarks, node 5.10.1
> fast.js@0.1.1 bench /Users/andrew/Documents/fast.js
> node ./bench/index.js
Running 55 benchmarks, please wait...
Native .fill() vs fast.fill() (3 items)
✓ Array.prototype.fill() x 9,988,493 ops/sec ±1.55% (87 runs sampled)
✓ fast.fill() x 39,712,880 ops/sec ±1.70% (88 runs sampled)
@as-com
as-com / hello.c
Created August 5, 2016 13:50
llvm-cbe output for a C++ hello world. (You may need to remove the include for APInt-C.h to compile)
/* Provide Declarations */
#include <stdarg.h>
#include <setjmp.h>
#include <limits.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <APInt-C.h>
#ifndef __cplusplus
typedef unsigned char bool;