Skip to content

Instantly share code, notes, and snippets.

View acmacalister's full-sized avatar

Austin Cherry acmacalister

View GitHub Profile
@acmacalister
acmacalister / vimrc
Last active June 29, 2016 18:43
My vimrc
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set nocompatible
set ignorecase
set smartcase
set incsearch
set wrapscan
set nu
@acmacalister
acmacalister / mailchimpv2-api.rb
Created August 23, 2013 04:03
mailchimp v2 api usage example.
# little ruby script to show the v2 mailchimp api with the new official mailchimp-api gem.
# I felt the docs did not give a real good example on how to use it.
# check out the api docs for all the methods and what they do.
# http://rubydoc.info/gems/mailchimp-api/2.0.1/frames
# classes should "map" off the api initialization
# so for example, the Lists class is called mailchimp.lists.method, as seen below.
require 'mailchimp'
mailchimp = Mailchimp::API.new("your-api-key")
mailchimp.lists.subscribe("list-id",{ email: "email@example.com" })
@acmacalister
acmacalister / elasticsearch.sh
Created August 15, 2013 17:18
ElasticSearch installation on Debian/Ubuntu machines
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb
sudo dpkg -i elasticsearch-0.90.0.deb
sudo service elasticsearch start
# A class-based template for jQuery plugins in Coffeescript
#
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
#
# Check out Alan Hogan's original jQuery plugin template:
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template
#
(($, window) ->
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Chat Simply Updates</title>
<link>https://gist.github.com/austiniam/5516026/raw/CSMacAppSparkle.xml</link>
<description>Chat Simply Updates</description>
<language>en</language>
<item>
<title>Version 1.3</title>
<sparkle:releaseNotesLink>https://raw.github.com/chatsimply/mac_app_release_notes/master/releasenotes</sparkle:releaseNotesLink>
@acmacalister
acmacalister / sparkleTest.xml
Last active December 16, 2015 22:20
Sparkle Test Update
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Chat Simply Updates</title>
<link>https://gist.github.com/austiniam/5506458/raw/sparkleTest.xml</link>
<description>Chat Simply Updates</description>
<language>en</language>
<item>
<title>Version 2.0</title>
<sparkle:releaseNotesLink>https://raw.github.com/chatsimply/mac_app_release_notes/master/releasenotes</sparkle:releaseNotesLink>