Skip to content

Instantly share code, notes, and snippets.

@triple-j
triple-j / download.py
Last active October 26, 2019 03:44 — forked from wy193777/download.py
Download file through HTTP using requests.py and tqdm
import os.path
from urllib.request import urlopen
import requests
from tqdm import tqdm
def download_from_url(url, dst):
"""
@param: url to download file
@param: dst place to put the file
@triple-j
triple-j / tint-mixin.scss
Created July 23, 2015 20:27 — forked from stefthoen/tint-mixin.scss
Sass tint mixin
// Add percentage of white to a color
@function tint($color, $percent) {
@return mix(white, $color, $percent * 1%);
}
// Add percentage of black to a color
@function shade($color, $percent) {
@return mix(black, $color, $percent * 1%);
}
if (Element && !Element.prototype.matches) {
Element.prototype.matches = Element.prototype.matchesSelector ||
Element.prototype.mozMatchesSelector ||
Element.prototype.msMatchesSelector ||
Element.prototype.oMatchesSelector ||
Element.prototype.webkitMatchesSelector;
}
@triple-j
triple-j / Readme.md
Last active August 29, 2015 14:10 — forked from endolith/Readme.txt
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt
# A nano configuration file to enable syntax highlighting of some Git specific
# files with the GNU nano text editor (http://www.nano-editor.org)
#
# Save this file to a directory of your choice and add it to your nanorc using
# include ${PATH_TO_THE_FILE}/git.nanorc