pip install flask
FLASK_DEBUG=1 FLASK_APP=app.py flask run
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.
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.
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
adb shell 'pm list packages' | grep samsung | awk '{gsub(/package:/, ""); print}' | xargs -I $ echo 'pm uninstall -k --user 0 $' | adb shell |
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
(defvar gh-publish-base-dir "~/Documents/project/Gijs-Koot.github.io/" | |
"Base directory of publishing project") | |
(defun gh-publish-fix-image-links (fn) | |
(with-temp-file fn | |
(progn | |
(insert-file-contents fn) | |
(goto-char (point-min)) | |
(while (re-search-forward "src=\"\\(images/[a-z]+\.[a-z]+\\)\"" nil t) | |
(replace-match (concat "src=\"/assets/" (match-string 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 requests | |
import time | |
import datetime | |
import json | |
from hashlib import md5 | |
fn = "./ovfietsdata.json.lines" | |
while True: | |
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
class QueueChain(): | |
def __init__(self, arrival, service): | |
self.arrival = arrival | |
self.service = service | |
def sample_path(self, n): | |
path = [0] | |
for i in range(1, n): | |
path.append(path[i - 1]) |
NewerOlder