Skip to content

Instantly share code, notes, and snippets.

View hugoleodev's full-sized avatar
🎯
Focusing

Hugo Leonardo hugoleodev

🎯
Focusing
View GitHub Profile
#!/bin/bash
set -x
EMAIL=''
API_KEY=''
ZONE_ID=''
RECORD_ID=''
@john2x
john2x / 00_destructuring.md
Last active August 23, 2024 07:45
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

Sample PHP+Mongo app on Heroku

  1. Install any of the Mongo add-ons available at http://addons.heroku.com

  2. Vendor the Mongo driver with your application. You can download it here:

    https://github.com/wuputah/heroku-libraries/raw/master/php/mongo/mongo.so
    

    Add it to a folder like "ext".

@minimal
minimal / jsminify.py
Created January 5, 2011 17:02
minify js with closure compiler
#!/usr/bin/env python
# JS Minify
# Python script that can process all JavaScript files in a directory
# through the Closure compiler
# original: http://taylanpince.com/blog/posts/automated-javascript-minification-with-fabric/
import os
from optparse import OptionParser