Skip to content

Instantly share code, notes, and snippets.

View NJannasch's full-sized avatar
👨‍💻
Coding

Ni Jannasch NJannasch

👨‍💻
Coding
  • Somewhere
View GitHub Profile
@NJannasch
NJannasch / Car Talky.md
Created January 31, 2026 15:42
Car Talky

Car Talky - Privacy Policy

Effective Date: January 31, 2026

Overview

Car Talky is a voice conversation app for Android Auto. This policy explains how the app handles your data.

Microphone Access

@NJannasch
NJannasch / main.py
Created January 25, 2024 20:47
This Script helps to automatically delete Webhooks in GitLab containing a certain keyword
""" Small helper script to delete webhooks with specific keyword """
import requests
# Replace 'your_access_token' with your actual GitLab access token
GITLAB_TOKEN = '<adjust>'
GITLAB_API_URL = 'https://gitlab.com/api/v4/'
KEYWORD = 'bridgecrew' # Keyword to be searched for in Webhook URL
# Headers for authentication
@NJannasch
NJannasch / colorizecalendar.js
Created January 23, 2024 07:46
Colorize calendar
// Global debug setting
const DEBUG = false;
// Configuration for keywords and their corresponding colors, keywords must be lowercase
const keywordColorMapping = {
'blockers': {
keywords: ['dnb', 'blocker'],
color: CalendarApp.EventColor.YELLOW
},
'travel': {
@NJannasch
NJannasch / prepostblocker.js
Last active January 17, 2024 11:09
This AppScript automatically creates pre/post blocker for external calls
// Global debug setting
const DEBUG = false;
function prepostBlocker() {
const pastDays = 1;
const futureDays = 5;
const now = new Date();
const startDate = new Date(now.setDate(now.getDate() - pastDays));
const endDate = new Date(now.setDate(now.getDate() + futureDays));
const myOrg = CalendarApp.getDefaultCalendar().getName().split("@")[1];
@NJannasch
NJannasch / gmail-stats.gs
Created January 3, 2024 14:27 — forked from leodevbro/gmail-stats.gs
In Gmail inbox, Find sender with most mail threads
// Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8
// v2.5
// Google Apps Script is a coding language based on JavaScript.
// This Apps Script code helps us to sort addresses by most threads.
// A thread is a group of messages, as a conversation.
const modes = {
inbox: "inbox", // to analyze threads in the "Inbox" folder
outbox: "outbox", // to analyze threads in the "Sent" folder
@NJannasch
NJannasch / App.js
Created November 19, 2021 21:06
waveportal-app.js
import React, { useEffect, useState } from "react";
import * as ethers from "ethers";
import './App.css';
import waveportal from './utils/WavePortal.json';
const App = () => {
/*
* State Property to store all waves
*/
@NJannasch
NJannasch / App.js
Created November 13, 2021 17:15 — forked from adilanchian/App.js
Section 5: Update UI + deploy to an Ethereum testnet so anyone on the internet can wave at you using their
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@NJannasch
NJannasch / main.py
Last active September 1, 2020 15:11
Bubble Map Germany
import pandas as pd
import plotly.graph_objects as go
data = [[6.96432, 50.93556, 'Cologne', 50]] # Deine Daten
columns = ['lat', 'long', 'text', 'size']
df = pd.DataFrame(data, columns=columns)
fig = go.Figure(
)
@NJannasch
NJannasch / cell_assignment.py
Created August 15, 2020 07:52
Snippet to get the cell assignment based on the max value per multiple matrices
import typing
import numpy as np
def get_cell_assignment(data: typing.List[np.array]) -> np.array:
"""
Get cell assignment based on max value per multiple matrices.
:param data: List of matrices (e.g. Received Power).
:return: Cell assignment.
"""
import numpy as np
def outline_to_mask(line, x, y):
"""Create mask from outline contour
Parameters
----------
line: array-like (N, 2)
x, y: 1-D grid coordinates (input for meshgrid)