Skip to content

Instantly share code, notes, and snippets.

@tizmagik
tizmagik / README.md
Last active September 10, 2024 17:22
syncPersonalToWorkCalendar() Google Apps Script

syncPersonalToWorkCalendar()

Use this to block off time in your Work calendar for events in your Personal Calendar

Installation

  1. Go to Google Apps Script and create a new project
  2. Paste in this code
  3. Update the personalCalendarId and workCalendarId emails
  4. Select setupTrigger() and hit Run in the Apps Script editor. This will setup a time-based recurring trigger.
This file has been truncated, but you can view the full file.
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"@babel/code-frame": {
"version": "7.0.0-beta.44",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz",
"integrity": "sha512-cuAuTTIQ9RqcFRJ/Y8PvTh+paepNcaGxwQwjIDRWPXmzzyAeCO4KqS9ikMvq0MCbRk6GlYKwfzStrcP3/jSL8g==",
"dev": true,
"requires": {
@tizmagik
tizmagik / magik_aol8.bas
Created July 20, 2017 17:42
My very first open source project 😆
Attribute VB_Name = "magik_aol8"
'*****************************************************************************
'Programmer: magik
'
'WWW: http://magikweb.cjb.net
'
'E-Mail: [email protected]
'
'Date: [Origional] 6/28/02
' [Current v1.3] 8/15/02
@tizmagik
tizmagik / getLastInMap.js
Created August 13, 2016 03:22
ES6 Last Item in Map()
// Since ES6 Map()'s' retain their order of insertion, it can sometimes be useful to get the last item or value inserted:
export const getLastItemInMap = map => Array.from(map)[map.size-1]
export const getLastKeyInMap = map => Array.from(map)[map.size-1][0]
export const getLastValueInMap = map => Array.from(map)[map.size-1][1]
// Obviously getLastKey and getLastValue can reuse getLastItem, but for maximum portability I opted for verbosity.
@tizmagik
tizmagik / .eslintrc.js
Last active May 6, 2021 14:12 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
@tizmagik
tizmagik / autovpn
Last active May 7, 2020 11:55
Bash script to automatically reconnect VPN (as long as the parent connection is active)
#!/bin/bash
### BEGIN INIT INFO
# Provides: autovpn
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: autovpn
# Description: Automatically reconnects VPN if disconnected
### END INIT INFO
@tizmagik
tizmagik / backbone.collection.update.js
Last active October 10, 2016 00:50
Backbone Collection Updater
Backbone.Collection.prototype.update = function(col_in){
var self = this,
new_models = [];
_(col_in).each(function(mod_in) {
var new_model = self._prepareModel(mod_in),
mod = self.get(new_model.id);
if (mod) {
new_models.push(mod.set(mod_in, {silent:true}));
} else {
<!-- JESUS CHRIST ASCII ART - YouVersion.com
Stored by Christnology.com -->
<div style='background-color:black'><font size="-3">
<font color="#15140d">1</font><font color="#14130c">1</font><font color="#15150e">0</font><font color="#14140e">1</font><font color="#15140e">0</font><font color="#14130e">0</font><font color="#14140e">0</font><font color="#15150d">11</font><font color="#14140c">0000000</font><font color="#12140b">0</font><font color="#12130a">100</font><font color="#12130c">0</font><font color="#111308">1</font><font color="#111306">01</font><font color="#121407">1</font><font color="#111306">10</font><font color="#13150b">0</font><font color="#14150d">0</font><font color="#13150d">0</font><font color="#12130b">0</font><font color="#12130c">1</font><font color="#12130d">0</font><font color="#12120d">0</font><font color="#12110c">11</font><font color="#13120d">01</font><font color="#14130e">1</font><font color="#161510">00111</font><font color="#181712">1</font><font color="#191813">1</font><f