Skip to content

Instantly share code, notes, and snippets.

"""
This creates the following GIF, where the text appears to be "embedded"
in the video and "disappears" beind rapunzel.
http://i.imgur.com/gxEHfLX.gif
"""
from moviepy.editor import *
import numpy as np
import skimage.morphology as skm
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vispy: gallery 2
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
#
# Modified for animation with MoviePy by Zulko
# See result here: http://i.imgur.com/sSCBkFd.gif
#
@artiya4u
artiya4u / Leaf-install-ubuntu-16.04.md
Last active April 26, 2016 05:20
Installing Leaf - Open Machine Intelligence Framework GPU On Ubuntu 16.04

Installing Leaf Open Machine Intelligence Framework GPU On Ubuntu 16.04

sudo apt-get update
sudo apt-get install nvidia-361-dev
sudo apt-get install nvidia-cuda-toolkit
sudo apt-get install libblas-dev

Install cudnn-7.0

Keybase proof

I hereby claim:

  • I am artiya4u on github.
  • I am artiya4u (https://keybase.io/artiya4u) on keybase.
  • I have a public key whose fingerprint is 995A D9F6 5500 882F BAB6 F6B8 0C8C E704 11AD 565A

To claim this, I am signing this object:

@artiya4u
artiya4u / find_database_size.sql
Created January 25, 2017 07:34
Query to find database size.
SELECT sum(round(((data_length + index_length) / 1024 / 1024 / 1024), 2)) AS "Size in GB"
FROM information_schema.TABLES
WHERE table_schema = 'MY_DATABASE'
@artiya4u
artiya4u / ubuntu_install_jdk_ppa.sh
Created January 25, 2017 07:35
Ubuntu install JDK from PPA
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
@artiya4u
artiya4u / luigi-server.init
Last active August 19, 2017 03:30
Spotify Luigi for Debian init (Daemon)
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
pragma solidity ^0.4.18;
import "zeppelin-solidity/contracts/token/ERC20/MintableToken.sol";
contract BNK48Coin is MintableToken {
string public constant name = "BNK48 COIN"; // solium-disable-line uppercase
string public constant symbol = "BNK48"; // solium-disable-line uppercase
uint8 public constant decimals = 18; // solium-disable-line uppercase
pragma solidity ^0.4.18;
import "zeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol";
import "zeppelin-solidity/contracts/crowdsale/distribution/RefundableCrowdsale.sol";
import "zeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol";
contract BNK48CoinCrowdSale is CappedCrowdsale, RefundableCrowdsale, MintedCrowdsale {
function BNK48CoinCrowdSale(uint256 _openingTime, uint256 _closingTime, uint256 _rate,
address _wallet, uint256 _cap, MintableToken _token, uint256 _goal) public