Skip to content

Instantly share code, notes, and snippets.

444 for me!
We couldn’t find that file to show.
tell application "Google Chrome"
activate
set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl"
if (count every window) = 0 then
make new window
end if
set found to false
set theTabIndex to -1
var $ = require('NodObjC');
module.exports = function(props){
var NSUserNotificationCenterDelegate = $.NSObject.extend('NSUserNotificationCenterDelegate');
NSUserNotificationCenterDelegate.addMethod('init', { retval: '@', args: ['@', ':'] }, function(self) {
$.NSUserNotificationCenter('defaultUserNotificationCenter')('setDelegate', self);
return self;
});
@subtleGradient
subtleGradient / index.js
Created May 27, 2014 02:25
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
@subtleGradient
subtleGradient / Paste to Gist_GitHub Anonymously.tmCommand
Created July 28, 2008 19:13 — forked from pieter/gistie.rb
gistie.rb Paste code to gist.github.com from the shell!
<?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">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>bundleUUID</key>
<string>2E6B9F06-DDB6-4707-A2BB-8751CF1722A0</string>
<key>command</key>
<string>cat|gist -a "$TM_FILENAME"
@subtleGradient
subtleGradient / async-callstack-hack.js
Created August 30, 2014 03:49
Async callstacks for your own custom event system or RPC or whatever
/**
* Created by Thomas Aylott on 2014-08-29
* Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@subtleGradient
subtleGradient / dabblet.css
Last active August 29, 2015 14:08 — forked from anonymous/dabblet.css
SixteenColors Prototype
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@subtleGradient
subtleGradient / pandora minifier.user.js
Created July 29, 2008 14:43
Pandora Awesomizer! Hides the Ad Container and resizes to the minimum size for the player
// ==UserScript==
// @name Pandora Awesomizer!
// @description Hides the Ad Container and resizes to the minimum size for the player
// @namespace http://fluidapp.com
// @include http://pandora.com/*
// @author Thomas Aylott / subtleGradient
// ==/UserScript==
(function () {
window.addEventListener('load',function(){
@subtleGradient
subtleGradient / bashrc.sh
Created July 31, 2008 16:03
Create a new Git repo.<br /> Can be executed remotely via ssh.<br /> EG: <code>ssh myhost.com 'newgit "myrepo.git"'</code>
# ~/.bashrc: executed by bash(1) for non-login shells.
export PATH="$HOME/bin:$HOME/lib/bin:$PATH"
export LC_CTYPE=en_US.UTF-8
# Original "newgit" by CRAIG P JOLICOEUR
# Found at
# http://autopragmatic.com/2008/01/26/hosting-a-git-repository-on-dreamhost/
# http://craigjolicoeur.com/2008/04/hosting-git-repositories-on-dreamhost/
newgit()