This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Rescale all mp4 files in --source-folder to 320 lines while keeping the source aspect ratio | |
with ffmpeg and place rescaled videos in --destination-folder""" | |
import argparse | |
import subprocess | |
import logging | |
from datetime import datetime | |
from pathlib import Path |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code from https://twitter.com/S_Conradi/status/1595324702008000512/photo/1 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
# %config InlineBackend.figure_format = "retina" | |
def list2f(ifs): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
arr = [10, 386, 479, 627, 20, 523, 482, 483, 542, 699, 535, 617, 577, 471, 615, 583, 441, 562, 563, 527, 453, 530, 433, 541, 585, 704, 443, 569, 430, 637, 331, 511, 552, 496, 484, 566, 554, 472, 335, 440, 579, 341, 545, 615, 548, 604, 439, 556, 442, 461, 624, 611, 444, 578, 405, 487, 490, 496, 398, 512, 422, 455, 449, 432, 607, 679, 434, 597, 639, 565, 415, 486, 668, 414, 665, 763, 557, 304, 404, 454, 689, 610, 483, 441, 657, 590, 492, 476, 437, 483, 529, 363, 711, 543] | |
elements = numpy.array(arr) | |
mean = numpy.mean(elements, axis=0) | |
sd = numpy.std(elements, axis=0) | |
final_list = [x for x in final_list if (mean - 2 * sd < x < mean + 2 *sd)] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://github.com/ogrisel/parallel_ml_tutorial/blob/master/rendered_notebooks/05%20-%20Model%20Selection%20and%20Assessment.ipynb | |
from itertools import cycle | |
colors = ['b', 'g', 'r', 'c', 'm', 'y', 'k'] | |
markers = ['+', 'o', '^', 'v', '<', '>', 'D', 'h', 's'] | |
for i, c, m in zip(np.unique(y), cycle(colors), cycle(markers)): | |
plt.scatter(X_pca[y == i, 0], X_pca[y == i, 1], | |
c=c, marker=m, label=i, alpha=0.5) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" rel="stylesheet" type="text/css" /> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script> | |
<script src="https://cdn.firebase.com/js/client/1.1.1/firebase.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.37/Bacon.min.js"></script> | |
<meta charset="utf-8" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +cast42 is my openname (Bitcoin username). https://onename.io/cast42 |
NewerOlder