Skip to content

Instantly share code, notes, and snippets.

@evandavis
evandavis / Code.gs
Created Apr 1, 2020
Calendar Blocking GScript
View Code.gs
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
a basic gruntfile with compass, jshint, and jasmine
View Gruntfile.js
/*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 Dec 10, 2015
Regex Tuesday Challenge solutions
View Week 3.js
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
Evan's Preferred CSS rule order
View css_rule_order.css
selector
{
list-style: …; /* if applicable */
/* Box model/layout */
box-*: …;
margin: …;
padding: …;
width: …;
min-width: …;
@evandavis
evandavis / dabblet.css
Created Sep 19, 2012
box-shadow :0 -3px 1px -2px rgba(0,0,0,0.3)inset,
View dabblet.css
.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 Jul 31, 2012 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
View CoffeeScript.plist
<?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.
You can’t perform that action at this time.