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 SkipAd | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.1 | |
// @description Skips ads as soon as possible and closes popup ads. | |
// @author Fabian Damken | |
// @match https://www.youtube.com/* | |
// @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
% #1 := Optional TikZ style arguments. | |
% #2 := Number of input neurons. | |
% #3 := Number of hidden neurons. | |
% #4 := Number of output neurons. | |
% #5 := Number of hidden layers plus one. | |
\newcommand{\tikzNeuralNetwork}[5][]{ | |
\begin{scope}[ | |
input neuron/.style = { draw, circle, minimum width = 0.2cm, minimum height = 0.2cm, fill = TUDa-4a }, | |
neuron/.style = { draw, circle, minimum width = 0.2cm, minimum height = 0.2cm, fill = TUDa-1a }, | |
output neuron/.style = { draw, circle, minimum width = 0.2cm, minimum height = 0.2cm, fill = TUDa-6a }, |
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 bash | |
format="$1" | |
base_url="$2" | |
set -o errexit | |
set -o nounset | |
if [[ "$format" == "" ]]; then |
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
server { | |
# Nginx for Future! | |
# Can be replaced with other domains, e.g. https://fridaysforfuture.org or similar. | |
location / { | |
rewrite_by_lua ' | |
local current_date = os.date("*t") | |
if current_date.wday == 6 then | |
local current_time = os.time() | |
local start_time = os.time({ year = current_date.year, month = current_date.month, day = current_date.day, hour = 10, min = 0, sec = 0 }) | |
local end_time = os.time({ year = current_date.year, month = current_date.month, day = current_date.day, hour = 16, min = 0, sec = 0 }) |
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
var lodash= require('lodash'); | |
module.exports = function(obj) { | |
let result = ''; | |
for (var key in obj) { | |
let value = obj[key]; | |
let attributes = ''; | |
for (let attributeKey in (value.attributes || { })) { | |
attributes += ` ${attributeKey}="${lodash.escape(value.attributes[attributeKey])}"`; |
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
#!/bin/bash | |
for file in $(find . -type f -name '*.js' -print -exec head -n 1 {} \; | awk \ | |
'BEGIN { | |
prev = ""; | |
} | |
{ | |
if (prev == "") { | |
prev = $0; | |
} else { |