Skip to content

Instantly share code, notes, and snippets.

emeraldjava / supabase-html-client.html
Created May 1, 2021
Running supabase js within a vanilla html page.
View supabase-html-client.html
<script src=""></script>
const { createClient } = supabase
supabase = createClient('', 'api-key')
emeraldjava /
Created Dec 3, 2019 — forked from larsks/
Convert Blogger posts to Markdown for use with
import os
import sys
import argparse
import iso8601
import re
import subprocess
import logging
import json

I have this travis build

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 for details.
emeraldjava / gist:6175555
Created Aug 7, 2013
WP-Form Decorator Gist
View gist:6175555
$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 / README.markdown
Created Mar 24, 2012 — forked from Yavari/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things
View README.markdown

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
    # source can be a function
    source: (typeahead, query) ->
      # this function receives the typeahead object and the query string