This file contains 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
function sync() { | |
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from | |
var today=new Date(); | |
var enddate=new Date(); | |
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time | |
var secondaryCal=CalendarApp.getCalendarById(id); | |
var secondaryEvents=secondaryCal.getEvents(today,enddate); |
This file contains 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
schema: "1" | |
id: myFirstBareBones | |
protect: true | |
metadata: | |
name: Bare Bone Pippeline Template | |
description: A generic application bake & tag pipeline. | |
owner: example@example.com | |
scopes: [global] | |
variables: |
This file contains 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 | |
# git functions | |
__git_branch_info() { | |
git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \ | |
while read local remote | |
do | |
[ -z "$remote" ] && continue | |
git rev-list --left-right ${local}...${remote} -- 2>/dev/null >/tmp/git_upstream_status_delta || continue | |
LEFT_AHEAD=$(grep -c '^<' /tmp/git_upstream_status_delta) |
This file contains 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/local/bin/make-completion-wrapper: | |
#!/bin/sh | |
# Author.: Ole J | |
# Date...: 23.03.2008 | |
# License: Whatever | |
# Wraps a completion function | |
# make-completion-wrapper <actual completion function> <name of new func.> <alias> | |
# <command name> <list supplied arguments> | |
# eg. |
This file contains 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 | |
""" | |
ignore_moves.py v0.2 | |
Filter relocated lines from a unified diff format stream. | |
Offered under the terms of the MIT License at github.com | |
Taken from http://stackoverflow.com/questions/1380333/ | |
""" | |
import sys | |
from optparse import OptionParser |