Skip to content

Instantly share code, notes, and snippets.

@coneybeare
coneybeare / New Tweetbot Tweet
Created October 25, 2012 14:13
Global service to create a new Tweetbot tweet
on run {input, parameters}
tell application "Tweetbot"
activate
tell application "System Events" to keystroke "n" using command down
end tell
return input
end run
@coneybeare
coneybeare / filter.rb
Created October 2, 2012 15:14
A script for Transmission that runs after a completed download. It scans for downloaded television shows then attempts to place them in the correct organizational directory on the local machine, removing the torrent as well.
#!/usr/bin/env ruby
require 'fileutils'
# SETUP
# Details about the local transmission service
transmission_remote_location = "/usr/sbin/transmission-remote"
transmission_server_port = "mini.local:9091"
# The place where downloaded but unsorted tv show torrents land
downloads_television_directory = "/Volumes/Drobo/Downloads/Television/"
@coneybeare
coneybeare / giantuser.html
Last active October 7, 2015 14:27
Sample Signature
<style type="text/css">
a.link{margin:0;padding:0;border:none;text-decoration:none;}
</style>
<br />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="format-detection" content="telephone=no">
<table width='320' id="sig" cellspacing='0' cellpadding='0' border-spacing='0' style="width:320px;margin:0;padding:0;">
<tr>
@coneybeare
coneybeare / BriefInfoFace.mxml
Created July 16, 2012 01:37
Imports in BriefInfoFace.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" resize="onResize()" clipContent="true" backgroundColor="#f4f4f4" maxHeight="500" xmlns:ns1="*" initialize="init()" verticalScrollPolicy="off" horizontalScrollPolicy="off" xmlns:Faces="Faces.*" xmlns:ui="ui.*"
showInAutomationHierarchy="true" xmlns:[REDACTED]="com.[REDACTED].*" xmlns:ui1="com.[REDACTED].ui.*">
<mx:Style source="skins/main.css" />
<mx:Script>
<![CDATA[
import mx.core.FlexGlobals;
import com.[REDACTED].InfoUpdater;
import com.[REDACTED].PlaylistItemType;
import com.[REDACTED].generator.ListImageGenerator;
@coneybeare
coneybeare / dir_stucture.txt
Created July 14, 2012 20:12
output of: $ find src
Results of running: $ find src
--------------------------------
src
src/.actionScriptProperties
src/.DS_Store
src/.flexProperties
src/.fxpProperties
src/.project
src/.settings
src/.settings/com.adobe.flexbuilder.project.prefs
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=9" />
<meta charset="utf-8">
<link href="http://cloudfront.giantuser.com/assets/application-fdb826aa1314de46086c7d455b772800.css" media="all" rel="stylesheet" type="text/css" />
</head>
@coneybeare
coneybeare / gist:2652790
Created May 10, 2012 12:37
With premailer applied
<!DOCTYPE html>
<html lang="en" style="font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; color: #cccccc;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=9" />
<meta charset="utf-8">
</head>
source 'http://rubygems.org'
##############################
# Rails and DB
##############################
# gem 'rack', '1.2.1'
gem 'rails', '3.2.0'
group :assets do
gem 'sass-rails', " ~> 3.2.3"
@coneybeare
coneybeare / gist:1467428
Created December 12, 2011 14:22
Old AudioQueue Sample Code
/*
File: AudioPlayer.m
Version: 1.0
*/
#include <AudioToolbox/AudioToolbox.h>
#import "AudioQueueObject.h"
@coneybeare
coneybeare / gist:1235436
Created September 22, 2011 17:41
disqus code
<!-- Disqus Begin -->
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'ambiance';
var disqus_identifier = 'ambiance_sound_<%= @sound.public_key %>';
var disqus_url = "<%= public_url %>";
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;