Skip to content

Instantly share code, notes, and snippets.

{
"meta": { "version": "2022.06.18", "lastModified": "2022-06-08T10:29:37.844Z" },
"basics": {
"label": "Lead Software Development Engineer",
"characterClass": "Programmer",
"quote": "Can we automate it?.",
"phone": "",
"email": "emeraldx@xmail.com",
"other": [],
"website": "",
@emeraldjava
emeraldjava / supabase-html-client.html
Created May 1, 2021 14:57
Running supabase js within a vanilla html page.
<html>
<header>
<title>Supabase</title>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
</header>
<body>
<h2>supabase</h2>
<script>
const { createClient } = supabase
supabase = createClient('https://dxxxxxz.supabase.co', 'api-key')
@emeraldjava
emeraldjava / blogger2scriptogram.py
Created December 3, 2019 20:23 — forked from larsks/blogger2scriptogram.py
Convert Blogger posts to Markdown for use with Scriptogr.am
#!/usr/bin/python
import os
import sys
import argparse
import iso8601
import re
import subprocess
import logging
import json
@emeraldjava
emeraldjava / travis-build-error-Jan-12-2017.md
Created January 13, 2017 17:03
travis-build-error-Jan-12-2017

I have this travis build

https://travis-ci.org/emeraldjava/spring-social-yammer/builds/191685784

which started failing with this error today

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
@emeraldjava
emeraldjava / gist:6175555
Created August 7, 2013 16:14
WP-Form Decorator Gist
$firstname = WP_Form_Element::create('text')->set_name('first-name')->set_label('First Name');
$firstname->set_view(new WP_Form_View_Input());
$firstname->add_decorator('WP_Form_Decorator_Label', array());
$firstname->add_decorator('WP_Form_Decorator_Description', array());
$firstname->add_decorator('WP_Form_Decorator_HtmlTag', array('tag' => 'div', 'attributes' => array( 'class' => 'control-group' )));
$lastname = WP_Form_Element::create('text')->set_name('last-name')->set_label('Last Name');
$lastname->set_view(new WP_Form_View_Input());
$lastname->add_decorator('WP_Form_Decorator_Label', array('position' => WP_Form_Decorator::POSITION_BEFORE));
$lastname->add_decorator('WP_Form_Decorator_Description', array());
@emeraldjava
emeraldjava / README.markdown
Created March 24, 2012 09:31 — forked from Yavari/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string