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
#!/usr/bin/env python | |
import logging | |
import os | |
import cvat_sdk | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim |
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
#!/usr/bin/env python3 | |
""" | |
This script will find, for a given YouTube channel, videos on that channel | |
that are not in any playlists on that channel. | |
It requires the google-api-python-client package. | |
""" | |
import apiclient.discovery |
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
#!/usr/bin/env python3 | |
import collections | |
import sys | |
def rindex(l, e): | |
return len(l) - 1 - l[::-1].index(e) | |
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
#!/usr/bin/python3 | |
import argparse | |
import chunk | |
import contextlib | |
import struct | |
info_chunks = set(( | |
b'IARL', b'IART', b'ICMS', b'ICMT', b'ICOP', b'ICRD', b'ICRP', | |
b'IDIM', b'IDPI', b'IENG', b'IGNR', b'IKEY', b'ILGT', b'IMED', b'INAM', |
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
#!/usr/bin/python3 | |
import glob | |
import os.path | |
import struct | |
import sys | |
def main(): | |
dir_name = sys.argv[1] |
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 java.math.BigInteger; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.InputStreamReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.ListIterator; | |
public class BrainFuck { |
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 collections | |
import csv | |
_csv_params = { | |
'strict': True, | |
'quoting': csv.QUOTE_NONE, | |
'escapechar': '\\', | |
} | |
def _parse_song_num(s): |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <linux/input.h> | |
int main(int argc, char * argv[]) { |
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
module Main where | |
import Control.Exception | |
import Control.Monad | |
import Data.Int | |
import Data.IORef | |
import Foreign.C | |
import Foreign.Marshal | |
import Foreign.Ptr | |
import Foreign.Storable |
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
#!/usr/bin/env python3 | |
import collections | |
import datetime | |
import getpass | |
import itertools | |
import os | |
import sys | |
import dateutil.parser |
NewerOlder