This file contains hidden or 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
| <script> | |
| const count = 500; | |
| function timeFunction(fun, arg) { | |
| var start = new Date().getTime(); | |
| fun(arg); | |
| var end = new Date().getTime(); | |
| return (end - start); | |
| } | |
This file contains hidden or 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
| version: '3' | |
| services: | |
| minio: | |
| image: 'bahorn/minio:latest' | |
| command: minio server /data | |
| restart: always | |
| ports: | |
| - '9000:9000' | |
| volumes: |
This file contains hidden or 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 encoder.params_model import model_embedding_size as speaker_embedding_size | |
| from utils.argutils import print_args | |
| from synthesizer.inference import Synthesizer | |
| from encoder import inference as encoder | |
| from vocoder import inference as vocoder | |
| from pathlib import Path | |
| import numpy as np | |
| import librosa | |
| import argparse | |
| import torch |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 12 columns, instead of 10 in line 5.
This file contains hidden or 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
| name site location attendance start_date end_date vague_date U18 archived archived_url submissions submissions_site | |
| HackNotts 2020 hacknotts.com University of Nottingham 200 2020-11-28 09:00:00 2020-11-29 17:00:00 TRUE http://web.archive.org/web/20190120025802/https://hacknotts.com/ | |
| DurHack 2020 durhack.com Durham University 425 2020-11-14 09:00:00 2020-11-15 17:00:00 TRUE http://web.archive.org/web/20191121083501/https://durhack.com/ | |
| Hatch 2020 hatchlondon.io/hatch-2020 University College London 100 2020-11-01 00:00:00 2020-11-30 00:00:00 TRUE TRUE https://web.archive.org/web/20191206214152/https://www.hatchlondon.io/hatch-2020 | |
| HackTheMidlands 5.0 hackthemidlands.com Millennium Point, Curzon St, Birmingham B4 7XG 2020-09-22 09:00:00 2020-12-21 17:00:00 TRUE TRUE http://web.archive.org/web/20161027181535/http://hackthemidlands.com:80/ | |
| DurHack:NextGen durhack.com/nextgen Durham University 100 2020-04-18 09:00:00 2020-04-19 17:00:00 TRUE TRUE https://web.archive.org/web/20191206184704/https://du |
This file contains hidden or 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 sys | |
| # returns the next instruction to run | |
| def oisc(ip, m): | |
| m[m[ip+1]] = (m.get(m[ip+1], 0) - m.get(m[ip+0], 0)) & 0xFFFFFFFF | |
| if m[m[ip+1]] > 0x7FFFFFFF or m[m[ip+1]] == 0: | |
| return m[ip+2] | |
| else: |
This file contains hidden or 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
| { | |
| "build": { | |
| "core": "esp32", | |
| "extra_flags": "-DARDUINO_TTGO_LoRa32_V2", | |
| "f_cpu": "240000000L", | |
| "f_flash": "40000000L", | |
| "flash_mode": "dio", | |
| "ldscript": "esp32_out.ld", | |
| "mcu": "esp32", | |
| "variant": "ttgo-lora32-v2" |
This file contains hidden or 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 argparse | |
| import cv2 | |
| import emojipic | |
| import sys | |
| import time | |
| from PIL import * | |
| def clearscreen(n): |
This file contains hidden or 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 sys | |
| import urllib2 | |
| url = sys.argv[1] | |
| res = urllib2.unquote(url.split('?url=')[1].split('&data')[0]) | |
| print(res) |
This file contains hidden or 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 requests | |
| import time | |
| url = 'https://us-central1-hackathonideas-6e61d.cloudfunctions.net/addIdea' | |
| def addIdea(author, idea): | |
| r = requests.post(url, data={'author': author, 'idea': idea}) | |
| return r.status_code | |
| with open('ideas.txt') as ideas: |