Skip to content

Instantly share code, notes, and snippets.

@evandavis
evandavis / Code.gs
Created April 1, 2020 16:03
Calendar Blocking GScript
function sync() {
// gcal IDs: email address if using default calendar
const SOURCE_ID = "XXXXXX";
const DEST_ID = "YYYYYY";
// SETTINGS
// how many days out to clone events
const ADVANCE_DAYS = 5; // integer
// title of cloned events
const TITLE = "Busy 📵";
@evandavis
evandavis / Gruntfile.js
Created May 15, 2013 19:31
a basic gruntfile with compass, jshint, and jasmine
/*global module: false */
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'css'
}
@evandavis
evandavis / Week 3.js
Last active December 10, 2015 06:08
Regex Tuesday Challenge solutions
var re = /^(20(0[0-9]|1[0-2])|1[0-9]{3})\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|30)\s([0-1][0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/;
@evandavis
evandavis / css_rule_order.css
Last active May 17, 2018 18:36
Evan's Preferred CSS rule order
selector
{
list-style: …; /* if applicable */
/* Box model/layout */
box-*: …;
margin: …;
padding: …;
width: …;
min-width: …;
@evandavis
evandavis / dabblet.css
Created September 19, 2012 14:41
box-shadow :0 -3px 1px -2px rgba(0,0,0,0.3)inset,
.btn-back {
display : block;
position:absolute;
z-index : 0;
left:50px;
top:50px;
height:30px;
width:auto;
padding: 0 10px 0 6px;
background-size : 30px 30px;
@evandavis
evandavis / CoffeeScript.plist
Created July 31, 2012 19:40 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.