In functional programming you often want to apply a function partly. A simple example is a function add
.
It would be nice if we could use add
like:
var res2 = add(1, 3); // => 4
var add10To = add(10);
var res = add10To(5); // => 15
import os | |
import sys | |
import shutil | |
import noise | |
import moviepy | |
from PIL import Image | |
from moviepy.editor import ImageClip, ImageSequenceClip, CompositeVideoClip | |
width = 500 |
#!/usr/bin/env python3 | |
""" | |
A script that go through your followings and unfollows dead accounts. | |
It notices empty accounts, accounts that were deleted locally and remotely, | |
and also cleans up dead instances if allowed to. | |
It has a cache so you can run it once without --unfollow to preview its | |
actions, and a second time that will skip all verified active profiles. | |
With colors and a nice progress bar with item count, %, and ETA. |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
wget --continue --no-check-certificate -O jdk-8-linux-x64.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz |
I am no Virgil, but having stumbled my way through Python packaging a few times already, I'm documenting the things I learn as I go here.
To help me learn, I took a survey of the top 15 Python packages on Github along with 12 other commonly referenced packages. I thought... if there are any best