Skip to content

Instantly share code, notes, and snippets.

@fbanados
fbanados / gist:d6e0134ff226abe71984a2221bbc7234
Created May 23, 2017 01:18
F#'s pipe operator for racket.
(define pipe
; Inspired on F#'s Forward pipe operator (|>)
(lambda args
(let ((v (car args))
(functions (cdr args)))
(foldl (λ (f v) (f v)) v functions))))
(test (pipe 1
add1
@aldur
aldur / README.md
Created December 19, 2016 14:21
Emoji to JSON

Emoji to JSON

A simple Python script to extract unicode emojis from this page and store their details in a JSON file. Additionally, it also extract the emoji images as PNG files.

Usage

Store the page:

@jfmengels
jfmengels / lodash-fp-documentation.md
Last active July 25, 2024 05:02
Generated docs for Lodash/fp. Help make them better at https://github.com/jfmengels/lodash-fp-docs
@Chandler
Chandler / slack_history.py
Last active July 18, 2024 04:21
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages
@tcz
tcz / hypem.php
Last active July 26, 2016 02:14
Copy Hypem favorites to Spotify
<?php
if ($argc !== 2)
{
die("Usage: php {$argv[0]} hypem_user_name\n\n");
}
$user = $argv[1];
$page = 1;
$all_songs = array();
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@jpantuso
jpantuso / osx_lion_rail_setup.md
Created July 27, 2011 19:51
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL