Skip to content

Instantly share code, notes, and snippets.

# Makefile tutorial, through examples
# This is not a makefile! I just called it as such to have vim coloring work well.
########
# This makefile will always run. The default target is some_binary, because it is first.
########
some_binary:
echo "nothing"
########
@chaselambda
chaselambda / designer.html
Created September 29, 2014 18:36
designer
<link rel="import" href="../code-mirror/code-mirror.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="my-element">
<template>
<style>
@chaselambda
chaselambda / gist:8535877
Created January 21, 2014 07:47
Hide Old Rows for Google Docs using Apps Script
/**
* Looks for rows with old dates, and hides them if so.
* It finds the date column my checking the first column for the word 'Date'.
*/
function hideOldRows(colNum) {
var sheet = SpreadsheetApp.getActiveSheet();
var header = sheet.getRange(1, 1, 1, sheet.getLastColumn());
var colNum = header.getValues()[0].indexOf('Date') + 1;
if (colNum === 0) {
Logger.log(header.getValues());
@chaselambda
chaselambda / gist:6573314
Last active December 23, 2015 03:28
Resizable line with handles | SVG, d3.js, Javascript
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
float: left;
}
line {
shape-rendering: crispEdges;
stroke-width: 1px;
@chaselambda
chaselambda / new_bashrc.sh
Created August 11, 2012 16:54 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc