So, how do i...
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
<style> | |
body { | |
background: white; | |
text-align: center; |
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
# Converts a JSONL file generated with telegram-history-dump (1) to CSV | |
# Usage: python telegram-csv.py <path to json file> <path to output csv file> | |
# Example: python telegram-csv.py Bob.json Bob.csv | |
# 1: https://github.com/tvdstaaij/telegram-history-dump | |
from datetime import datetime | |
import unicodecsv as csv | |
import json, sys | |
def get_isodate(msg): | |
date = msg.get("date", None) |
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/python | |
# -*- coding: utf-8 -*- | |
# -cat:Images_from_Wiki_Loves_Monuments | |
import sys, os | |
# Set your path to pywikipedia here | |
sys.path.append("/Users/hay/htdocs/checkouts/pywikipedia/") | |
import wikipedia, config, pagegenerators | |
import urllib2, codecs | |
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 | |
from bs4 import BeautifulSoup | |
from dataknead import Knead | |
from pathlib import Path | |
import requests | |
import sys | |
import urllib.request | |
API_KEY = "your-api-key-here" |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
title | |
"Rooms Katholieke Kerk" | |
"Gereformeerde Kerken in Nederland" | |
"Ned. Hervormde Kerk" | |
"PKN Gereformeerde Kerk" | |
"Islamitisch" | |
"Christelijke Gereformeerde Kerk" | |
"Evangelie Gemeente" | |
"Rooms-Katholieke Kerk" | |
"PKN Ned. Hervormd" |
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
Sean,706883 | |
Adam,90500 | |
Grace,407103 | |
Sean,836266 | |
Kelly,28335 |
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
Welcome to the fake people database! | |
No people database yet | |
Make a choice: | |
1) Remove a person | |
2) Add a person | |
3) Quit the program | |
Make your choice: [1/2/3]: 2 | |
Added Jane with phone number 52334 | |
Saved the database with 1 people | |
There are 1 people in the database: |
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
Hey, welcome to Number Guessr | |
Please state your name Hay | |
Welcome Hay! You'll have 5 tries to guess a number | |
The number will be between 1 and 100 | |
You have 5 guesses remaining | |
What's your guess? 50 | |
50 is not correct, the number is lower | |
You have 4 guesses remaining | |
What's your guess? 25 |
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 | |
from tqdm import tqdm | |
from sys import argv, exit | |
from os.path import getsize | |
def fix_token(token): | |
if token == ",": | |
return "''," | |
elif token == "(,": | |
return "(''," |
NewerOlder