Skip to content

Instantly share code, notes, and snippets.

View mapchartSave__world__CDC_COVID_19_Travel_Recommendati.json
{
"groups": {
"#ff0000": {
"label": "Level 4: Very High",
"paths": [
"Afghanistan",
"Albania",
"Belize",
"Israel",
"Lithuania",
View gist:cbe61a9fac4a111e63223f3aaf103100
$GLOBALS['catalog_bugs'] = [
['Common butterfly', '160', 'Flying', '04-19', 'xxxxxx--xxxx', '--xxxxxxxxxx'],
['Yellow butterfly', '160', 'Flying', '04-19', '--xxxx--xx--', '--xx----xxxx'],
['Tiger butterfly', '240', 'Flying', '04-19', '--xxxxxxx---', 'xxx-----xxxx'],
['Peacock butterfly', '2500', 'Flying', '04-19', '--xxxx------', '--xxxx------'],
['Common bluebottle', '300', 'Flying', '04-19', '---xxxxx----', '---xxxxx----'],
['Paper kite butterfly', '1000', 'Flying', '08-19', 'xxxxxxxxxxxx', 'xxxxxxxxxxxx'],
['Great purple emperor', '?', 'Flying', '04-19', '----xxxx----', '----xxxx----'],
['Monarch butterfly', '140', 'Flying', '04-17', '--------xxx-', '--xxx-------'],
['Emperor butterfly', '4000', 'Flying', '17-08', 'xxx--xxxx--x', 'xxx--xxxx--x'],
@iamcal
iamcal / debug.js
Created Jan 8, 2019
xul runner helper script
View debug.js
function myDumpO(x, no_recurse){
myDump(parse_obj("", x, no_recurse));
}
function parse_obj(prefix, x, no_recurse){
//myDump('called with '+no_recurse+' and '+prefix.length);
View hyjal_status.php
<?
$lines = file('http://www.worldofwarcraft.com/realmstatus/status.xml');
foreach ($lines as $line){
if (preg_match('!Hyjal!', $line)){
preg_match_all('!([a-z]+)="([^"]*)"!', $line, $m, PREG_SET_ORDER);
$out = array();
View bookworm.pl
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
$|++;
my @hot = qw[
nun
@iamcal
iamcal / bounces.pl
Created Apr 20, 2018
Process bounces in an IAMP inbox
View bounces.pl
use Mail::IMAPClient;
use Data::Dumper;
my $imap = Mail::IMAPClient->new(
Server => 'mail.mxes.net',
User => 'ACCOUNT',
Password => 'PASSWORD',
Ssl => 0,
Uid => 1,
);
@iamcal
iamcal / unstuck.php
Created Apr 16, 2018
I'm pretty sure this a decoder for something in Homestuck
View unstuck.php
<html>
<head>
<title>Unstuck</title>
<style>
#main {
text-align: left;
margin: 30px auto;
width: 760px;
}
View css-slack-plaid.markdown
View gist:342d5de7483bed24931b
# npm publish
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursiv
View gist:8488f315e119eba706a7
{ "SERVERUSED" : "LIGHTHOUSE.5.MONGOLAYER.COM/54.70.204.247:10001" , "LASTOP" : { "$TS" : 0 , "$INC" : 0} , "CONNECTIONID" : 7940 , "ERR" : "MULTI UPDATE ONLY WORKS WITH $ OPERATORS" , "CODE" : 9 , "N" : 0 , "OK" : 1.0}