There seems to be a synchronization issue on some Android devices. Any calendar app renders recurring events a couple hundred times. Pretty annoying, cause it gets slow as hell and my smartwatch constantly chokes on all the notifications. This little Python script transforms all recurring events within a two-year timespan to single event instances. Thus, it's hacky but it solves the issue.
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
<?php | |
namespace Mautic\EmailBundle\MonitoredEmail\Processor\Bounce; | |
use Mautic\EmailBundle\MonitoredEmail\Exception\BounceNotFound; | |
use Mautic\EmailBundle\MonitoredEmail\Message; | |
use Mautic\EmailBundle\MonitoredEmail\Processor\Bounce\Definition\Category; | |
use Mautic\EmailBundle\MonitoredEmail\Processor\Bounce\Definition\Type; | |
use Mautic\EmailBundle\MonitoredEmail\Processor\Bounce\Mapper\CategoryMapper; |
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
VSCODE_BIN=`which code` | |
code_with_profile() { | |
while true; do | |
case "$1" in | |
-p|--profile) | |
PROFILE_NAME="$2" | |
shift 2 | |
;; | |
--) |
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
load_miniconda() { | |
unalias conda | |
__conda_setup="$('/opt/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/opt/miniconda3/etc/profile.d/conda.sh" ]; then | |
. "/opt/miniconda3/etc/profile.d/conda.sh" |
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/python | |
"""Import CSV Files from Toggl to a Hamster DB.""" | |
import argparse | |
import codecs | |
import csv | |
import sys | |
from datetime import datetime |
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
select (case i.checked when 1 then 'x ' else '' end) || i.content | |
|| (case i.note when '' then '' else '\n' || replace(i.note, ' | |
', '\n') end) || ' +' || replace(p.name, ' ', '') | |
|| (case when i.due_date != '' then ' due:' || substr(i.due_date, 0, 11) else '' end) | |
from Items as i | |
join Projects as p on i.project_id = p.id; |
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
.reveal section img { | |
border: none; | |
} |
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
'use latest'; | |
import rp from 'request-promise'; | |
import express from 'express'; | |
import bodyParser from 'body-parser'; | |
import { fromExpress } from 'webtask-tools'; | |
const app = express(); | |
app.use(bodyParser.json()); |
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 python | |
""" | |
Include contents from other files, even recursively. | |
Examples: | |
- Include first chaper from markdown file | |
[](chapter1.md){.include .markdown} |
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 | |
FORMAT=$1 | |
DOCUMENT=$2 | |
livereload "$DOCUMENT.html" -d -w 200 & | |
LIVERELOAD=$! | |
http-server . & | |
HTTP_SERVER=$! |
NewerOlder