Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
'''Build up a set of URLs using the common crawl index. See
http://commoncrawl.org/2015/04/announcing-the-common-crawl-index/ for more info.
'''
from __future__ import print_function
import gzip
import logging
import os
import random
@mikoim
mikoim / README.md
Last active April 27, 2024 00:22
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@victor-shepardson
victor-shepardson / pytorch-glumpy.md
Last active September 10, 2022 16:09
using pycuda and glumpy to draw pytorch GPU tensors to the screen without copying to host memory
int[][] result;
float t, c;
public float ease(float p) {
return 3*p*p - 2*p*p*p;
}
public float ease(float p, float g) {
if (p < 0.5f)
return 0.5f * pow(2*p, g);
@ardenasasvc
ardenasasvc / infrafloss.json
Last active November 29, 2022 14:26
infrafloss
# Infrafloss, a fairyfloss for the infra among us
# Intended for use with nopjmp's fairyfloss VS Code extention
# VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=nopjmp.fairyfloss
# Copy this file into your settings.json
"workbench.colorTheme": "fairyfloss",
"editor.tokenColorCustomizations":
{
"textMateRules":
[