Skip to content

Instantly share code, notes, and snippets.

View jbsilva's full-sized avatar
:octocat:

Julio Batista Silva jbsilva

:octocat:
View GitHub Profile
@luizirber
luizirber / brace_expand.py
Created August 7, 2014 04:42
Basic bash brace expansion exercise
def brace_expand(expr):
expansions = []
for block in expr.split('{'):
if '}' in block:
expansion, remainder = block.split('}')
expanded = []
for piece in expansions:
for component in expansion.split(','):
expanded.append("".join((piece, component, remainder)))
expansions = expanded
@quchen
quchen / trolling_haskell
Last active February 24, 2024 01:30
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now