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
# Author: Jacob Rust | |
# Modified: Jesper Dramsch | |
# Date: 7/8/2013 | |
# Description:This script organizes downloaded files into separate folders depending | |
# on the file type. This was made for windows systems. | |
# Download directory should be the first command line argument | |
# New file types can be added to the dictionary in the main method | |
# Usage: python organize.py | |
import hashlib |
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 pathlib import Path | |
## replace these | |
user = "jesperdramsch" | |
folder = "notebooks" | |
repo = "euroscipy-2022-ml-for-science-reproducibility-tutorial" | |
## Add a Binder link once | |
print(f"https://mybinder.org/v2/gh/{user}/{repo}/HEAD", "\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
/* @theme dramsch */ | |
@import 'uncover'; | |
:root { | |
--color-background: #eee; | |
--color-background-code: #ddd; | |
--color-background-header: #222; | |
--color-background-paginate: rgba(128, 128, 128, 0.05); | |
--color-foreground: #111; |
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
function Intialize() { | |
return; | |
} | |
function Install() { | |
ScriptApp.newTrigger("updateFilter") | |
.timeBased().everyMinutes(10).create(); | |
} |
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
// ==UserScript== | |
// @name News Feed Eradicator for LinkedIn | |
// @namespace http://miglen.com/ | |
// @version 0.5 | |
// @description News Feed Eradicator for LinkedIn | |
// @author Miglen Evlogiev ([email protected]) | |
// @match https://www.linkedin.com/feed/ | |
// @grant none | |
// @downloadURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js | |
// @updateURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js |
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
// ==UserScript== | |
// @name Make Medium Readable Userscript | |
// @namespace http://make.medium.readable.again | |
// @version 0.1 | |
// @description https://github.com/thebaer/MMRA | |
// @author luke3butler (Credits to Matt Baer) | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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
{ | |
"datasets": [ | |
{ | |
"version": "v1", | |
"data": { | |
"id": "vvzpce4kr", | |
"label": "Top Expat Destinations.csv", | |
"color": [ | |
143, | |
47, |
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 telegram_send | |
telegram_send.configure('~/.telegram/.conf') | |
class TelegramCallback(keras.callbacks.Callback): | |
def on_train_begin(self, logs={}): | |
telegram_send.send(["Starting Training"]) | |
def on_train_end(self, logs={}): | |
telegram_send.send(["Training Finished"]) | |
def on_batch_end(self, batch, logs={}): | |
telegram_send.send(["Loss: {:.8f} | Metrics: {:.5f}".format(logs.get('loss'),logs.get('acc'))]) |
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
# MODIFIED FROM PERISHABLE PRESS ULTIMATE REFERRER BLACKLIST | |
# https://perishablepress.com/4g-ultimate-referrer-blacklist/ | |
# This is a modified referrer blacklist from http://brassblogs.com/blog/htaccess-and-spam by JesperDramsch | |
# This blacklist is ready to use in your site's root htaccess file | |
# Edit the first two lines with your specific domain information | |
# Check http://brassblogs.com/blog/htaccess-and-spam for updates and include my additions | |
# Analytics Spam Blocker - Start | |
<IfModule mod_rewrite.c> |
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
=ImportXML("http://api.openweathermap.org/data/2.5/forecast/daily?q=Hamburg,de&mode=xml&units=metric&cnt=2";"//time[last()]/temperature/@day") |
NewerOlder