Skip to content

Instantly share code, notes, and snippets.

View lemiorhan's full-sized avatar
💻
praying for people affected by earthquakes

Lemi Orhan Ergin lemiorhan

💻
praying for people affected by earthquakes
View GitHub Profile
@vratiu
vratiu / .bash_aliases
Last active April 13, 2024 19:39
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@bryanchug
bryanchug / http-builder-with-proxy.groovy
Created November 29, 2012 23:20
HTTPBuilder with Proxy
@Grapes(
@Grab(group='org.codehaus.groovy', module='http-builder', version='0.4.1')
)
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import org.apache.http.auth.*
def http = new HTTPBuilder( 'http://www.ipchicken.com' )
@timyates
timyates / tree.md
Created April 24, 2012 09:33
A two-line tree in Groovy

Two line Tree in Groovy


Update!

Wow... Kiyotaka Oku's fork of this shows how to do it in one line :-)


The other day, I saw Harold Cooper's One-line tree in Python via autovivication, and wondered if the same thing was possible in Groovy.