Skip to content

Instantly share code, notes, and snippets.

luk exside

Block or report user

Report or block exside

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am exside on github.
  • I am exside (https://keybase.io/exside) on keybase.
  • I have a public key ASBxjU-2cz23ySIS-nBzrfJJI4p9Wf6zjdcbP0A6ZaagBAo

To claim this, I am signing this object:

View get_youtube_id_regex.js
/(youtu(?:\.be|be\.com)\/(?:.*v(?:\/|=)|(?:.*\/)?)([\w'-]+))/i
Tested examples:
http://www.youtube.com/user/Scobleizer#p/u/1/1p3vcRhsYGo
http://www.youtube.com/watch?v=cKZDdG9FTKY&feature=channel
http://www.youtube.com/watch?v=yZ-K7nCVnBI&playnext_from=TL&videos=osPknwzXEas&feature=sub
http://www.youtube.com/ytscreeningroom?v=NRHVzbJVx8I
http://www.youtube.com/user/SilkRoadTheatre#p/a/u/2/6dwqZw0j_jY
http://youtu.be/6dwqZw0j_jY
http://www.youtube.com/watch?v=6dwqZw0j_jY&feature=youtu.be
@exside
exside / eventThrottler.js
Last active Oct 9, 2018 — forked from cferdinandi/eventThrottler.js
A technique for throttling listener events (like resize or scroll) for better performance. https://developer.mozilla.org/en-US/docs/Web/Reference/Events/resize
View eventThrottler.js
var eventTimeout; // Set timeout variable
/**
* The function that runs the event actions
*/
var actualEventHandler = function () {
// handle the event...
};
/**
View safari-reaper.html
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body {
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA
@exside
exside / csv.pegjs
Created Sep 14, 2018 — forked from trevordixon/csv.pegjs
Javascript CSV Parser generated by PEG.js
View csv.pegjs
{
var separator = ',';
}
start
= comma
comma
= & { return separator = ','; } sv:sv { return sv; }
View gist:ea438668012477443533be9af53b7847
Verifying that "exside.id" is my Blockstack ID. https://onename.com/exside
@exside
exside / feedly_export_saved_for_later
Created Jul 13, 2016 — 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
View feedly_export_saved_for_later
// 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 Dec 15, 2015 — forked from Mark-H/disabletooltips.plugin.php
Plugin to disable tooltips in MODX globally.
View disabletooltips.plugin.php
<?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)
View MIGX Content for SimpleSearch
<?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"}
]}
View modx_loadlex.php
if (!$this->modx->lexicon) {
$this->modx->getService('lexicon', 'modLexicon');
}
$this->modx->lexicon->load("namespace:topic");
You can’t perform that action at this time.