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
library(dplyr) | |
## use a vector for the files and the dataframes, where we leave a column in some of them | |
fn <- c("test_1.csv", "test_2.csv", "test_3.csv") | |
dl <- c( | |
mtcars %>% select(-gear), | |
mtcars %>% select(-disp), | |
mtcars %>% select(-wt) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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]) |
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 | |
import datetime | |
import json | |
from hashlib import md5 | |
fn = "./ovfietsdata.json.lines" | |
while True: | |
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
(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 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
adb shell 'pm list packages' | grep samsung | awk '{gsub(/package:/, ""); print}' | xargs -I $ echo 'pm uninstall -k --user 0 $' | adb shell |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.