This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set nocompatible | |
set ignorecase | |
set smartcase | |
set incsearch | |
set wrapscan | |
set nu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
NewerOlder