Skip to content

Instantly share code, notes, and snippets.

View steadweb's full-sized avatar

Luke Steadman steadweb

View GitHub Profile
@steadweb
steadweb / PostgreSQL-EXTENSIONs.md
Created June 15, 2024 20:43 — forked from joelonsql/PostgreSQL-EXTENSIONs.md
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

Keybase proof

I hereby claim:

  • I am steadweb on github.
  • I am steadweb (https://keybase.io/steadweb) on keybase.
  • I have a public key whose fingerprint is F63F 2BF4 AFD9 90D2 D480 3B50 A92A B83C 82F1 122E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am steadweb on github.
  • I am steadweb (https://keybase.io/steadweb) on keybase.
  • I have a public key whose fingerprint is 1796 D06B D544 8EF2 91C9 62FC 0DEF 5532 0441 DFD7

To claim this, I am signing this object:

What do you know about Sinatra?

(1) Implement code that satisifes the following request / response pattern.

# request: GET '/matt'
# response: "Hello matt.  Do you mind if I call you ttam?"

# your code here

(1) Create a hash with the following key value pairs

key value
red green
yellow purple
blue orange

What do you know about Iteration / Enumeration?

#####(1) Given the following array, use each to enumerate over it, using puts to print this sentence to the console for each element: [THE_NAME] is Mario Batali's fancy [THE_CUISINE] joint.

arr = [
  {name: 'Babbo', cuisine: 'high-priced italian'},
  {name: 'Del Posto', cuisine: 'higher-priced italian'},
  {name: 'Eataly', cuisine: 'disney world of an italian market'},

What do you know about Comparators and Booleans?

#####(1) Given the following array of integers, for each number, print the numbers less than the number in question. For example, given this array:

nums = [1,2,3]

We should see this output:

What do you know about hashes?

#####(1) Instantiate a hash in two ways.

# your code here

#####(2)

@steadweb
steadweb / gist:3cae261ec7648164d618
Created September 30, 2014 13:17
Basic L4 .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|bmp|mov|mp4|mp3)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
@steadweb
steadweb / myproduct.php
Created May 14, 2014 08:27
Custom indexer which combines fields into one (example)
<?php
// put into fuel/app/classes/elasticsearch
namespace Elasticsearch;
class Index_MyProduct extends Index_Product
{
protected static function _get_products_full_fields() {
$fields = parent::_get_products_full_fields();