Skip to content

Instantly share code, notes, and snippets.

@exside
exside / csv.pegjs
Created September 14, 2018 21:01 — forked from trevordixon/csv.pegjs
Javascript CSV Parser generated by PEG.js
{
var separator = ',';
}
start
= comma
comma
= & { return separator = ','; } sv:sv { return sv; }
Verifying that "exside.id" is my Blockstack ID. https://onename.com/exside
@exside
exside / feedly_export_saved_for_later
Created July 13, 2016 20:36 — forked from bradcrawford/feedly_export_saved_for_later
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@exside
exside / disabletooltips.plugin.php
Created December 15, 2015 15:17 — forked from Mark-H/disabletooltips.plugin.php
Plugin to disable tooltips in MODX globally.
<?php
// Disables tooltips globally.
//
// Create a new plugin and add the following system event: OnManagerPageInit
//
// © 2010 Mark Hamstra <business@markhamstra.nl>
// Buy me a beer? Paypal hamstra.mark at gmail.com.
//
// Licensed under GPL v2 (or later)
<?php
//Make sure to tick 'OnDockFormSave'
$migxtv_templates = '2';
$config = '[
{"tvname":"tabbed_content_items","template":"2","target_tv":"search_migx_data","fields":[
{"field":"title"},
{"field":"intro"},
{"field":"cta_link_text"}
]}
if (!$this->modx->lexicon) {
$this->modx->getService('lexicon', 'modLexicon');
}
$this->modx->lexicon->load("namespace:topic");
<?php
define('MODX_API_MODE', true);
define('MODX_CONFIG_KEY', 'config');
require_once('../core/model/modx/modx.class.php');
$modx = new modX();
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@exside
exside / checkbox.css
Last active August 29, 2015 14:06 — forked from Fordi/checkbox.css
/**
Usage (the label is required)
<input id="uid" type="checkbox" ... /><label for="uid">Label</label>
Produces styled checkboxes in IE9+, current Firefox and Chrome
Demo here: http://jsfiddle.net/7Fggq/
@author Bryan Elliott <ook@codemonkeybryan.com>
*/
<?php
/*
* OpenExpedio ("xPDO") is an ultra-light, PHP 5.2+ compatible ORB (Object-
* Relational Bridge) library based around PDO (http://php.net/pdo/).
*
*
* This plugin is part of xPDO.
*
* xPDO is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software