Skip to content

Instantly share code, notes, and snippets.

View abackstrom's full-sized avatar

Annika Backstrom abackstrom

View GitHub Profile
/* pinboard.in style to hide private bookmarks, except on hover */
.bookmark.private {
opacity: 0;
}
.bookmark.private:hover {
opacity: 1;
}
<?php
//
// The following code exists in the public domain. No warranty is expressed or implied.
//
/**
* Return the priority of the currently-running filter.
*/
function current_filter_priority() {
@abackstrom
abackstrom / git-url.php
Created November 7, 2012 21:47
git-url: display github urls on the command line
#!/bin/env php
<?php
//
// Save to your path as git-url.
//
// Display GitHub URLs for your current branch and last commit:
//
// git url
//
while true ; do
clear
phpunit Atlas/Meteor/WebExportTest.php
inotifywait -e modify --exclude '\.swp$' -r ../..
done
@abackstrom
abackstrom / github-modified.css
Created October 10, 2012 16:17
Importing Stylesheets in Marked.app
/*
Title: GitHub Modified
Author: Adam Backstrom
Description: Additional styles for Marked's GitHub style.
*/
@import url("/Applications/Marked.app/Contents/Resources/github.css");
body {
font-family: Open Sans;

j k l m n q t u v w x
lqqqqqqk
x x
mqqqqqqj

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>issue</title>
</head>
<body>
<div id="a"></div>
Index: v_ug_app.sql
===================================================================
--- v_ug_app.sql (revision 11548)
+++ v_ug_app.sql (working copy)
@@ -17,12 +17,14 @@
FROM sarappd s2
WHERE s2.sarappd_pidm = s1.sarappd_pidm
AND s2.sarappd_term_code_entry = s1.sarappd_term_code_entry
- AND s2.sarappd_apdc_date =
- (SELECT MAX(s3.sarappd_apdc_date)
@abackstrom
abackstrom / index.phtml
Created April 25, 2012 14:18
Rendering partials within a layout
<h2>index.phtml</h2>
@abackstrom
abackstrom / gist:2406388
Created April 17, 2012 14:37
mounted-tmp.conf from Ubuntu
#!/bin/bash
#
# modified for use as a callable script
#
# USAGE
#
# cleanup.sh [path] [days]
#
# path is required. days defaults to 14.