Skip to content

Instantly share code, notes, and snippets.

@GaZ3ll3
GaZ3ll3 / jing_fm_tunes.py
Last active October 7, 2015 10:18
show music tunes addresses from jing.fm in .m4a file.
"""
Created on June 19th, 2013. via. Sublime Text 2
@author: lurker
"""
#!/usr/bin/env python
# -*- coding: utf8 -*-
import urllib2,httplib
@cloudRoutine
cloudRoutine / fs-coreclr-build.md
Last active October 18, 2015 20:59
Build the Visual F# Compiler and Tools for .Net CoreCLR ( On Windows )

Make things easy for yourself and start by running posh as admin

If you already have dnvm installed remember to run update-self if you haven't recently

Clone and checkout the coreclr branch of Kevin Ransom's Fork of the Visual F# Compiler and Tools

Installing DNVM

You need DNVM as a starting point. DNVM enables you to acquire a (or multiple) .NET Execution Environment (DNX).

@binux
binux / img_share.py
Last active December 14, 2015 10:58
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<17175297.hk@gmail.com>
# http://binux.me
# Created on 2012-12-15 16:11:13
import re
import json
import os.path
@ohmyCaptain
ohmyCaptain / tumblrtag.py
Last active February 18, 2016 16:49
通过tag抓取tumblr
#! /bin/env python
# -*- coding: utf-8 -*-
#
#todo:
# 使用python3
# 计算md5,不用文件名来避免重复,储存
# 存储信息:json? pickle? txt?数据库? 要包括 点赞数 记录当前状态下一次继续(可行?)
# 改善递归: 循环套递归?
# py2exe pyinstall?
# beautiful soup
@johan
johan / manifest.json
Last active May 30, 2016 09:24
This userscript click-to-expands all thumbnails on Tumblr, so you don't have to.
{ "name": "Tumblr full size images"
, "version": "1.0"
, "description": "Never show image thumbnails on tumblr"
, "homepage_url": "https://gist.github.com/johan/6336414"
, "manifest_version": 2
, "content_scripts":
[ { "js":
[ "tumblr-full-size-images.user.js"
]
, "matches":
@tjweir
tjweir / Functor.scala
Created August 11, 2011 19:06 — forked from gclaramunt/Functor.scala
Functor, Applicative Functor, Monad typeclasses in Haskell and their (simplistic) Scala translation
trait Functor[T[_]]{
def fmap[A,B](f:A=>B)(ta:T[A]):T[B]
}
trait Applicative[T[_]] extends Functor[T]{
def pure[A](a:A):T[A]
def <*>[A,B](tf:T[A=>B])(ta:T[A]):T[B]
}
trait Monad[M[_]] extends Applicative[M]{
@darcyparker
darcyparker / vim64Bit_CompiledWithMSVC.md
Created May 14, 2013 21:49
Compiling 64 bit Vim using free MS Visual Studio 2012 Express

#Compiling 64 bit Vim using free MS Visual Studio 2012 Express

I needed vim with Python support on Win7. The following are my notes.

##Background on why At first this sounds simple... but challenges included:

@kolodny
kolodny / bookmarklet.js
Last active February 23, 2019 17:43
Save any form to autofill for development, supports dynamic content with {{ Math.random() }} syntax
http://kolodny.github.io/bookmarklet.html
document.body.addEventListener('click', go);
alert('click on a form element to get a bookmarklet of the saved form');
function go(event) {
var form = event.target;
while (form && form.tagName !== 'FORM') {
form = form.parentNode;
}
@jeremyckahn
jeremyckahn / init_rootfs.sh
Created July 28, 2012 23:52
Setting up Raspbian rootfs on Ubuntu
#!/bin/bash
# For Ubuntu. Probably works elsewhere too.
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf
# It also chroots you into the directory, so you can act as a Raspbian user.
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/
mkdir -p ~/rpi
cd ~/rpi
@lilydjwg
lilydjwg / lolcat.py
Last active February 4, 2020 12:24
lolcat.py: make rainbows over text
#!/usr/bin/env python3
# inspired by https://github.com/busyloop/lolcat
import sys
import re
import os
from math import ceil
from colorsys import hsv_to_rgb
from unicodedata import east_asian_width