Skip to content

Instantly share code, notes, and snippets.

@emeraldjava
emeraldjava / supabase-html-client.html
Created May 1, 2021
Running supabase js within a vanilla html page.
View supabase-html-client.html
<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 Dec 3, 2019 — forked from larsks/blogger2scriptogram.py
Convert Blogger posts to Markdown for use with Scriptogr.am
View blogger2scriptogram.py
#!/usr/bin/python
import os
import sys
import argparse
import iso8601
import re
import subprocess
import logging
import json
View travis-build-error-Jan-12-2017.md

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