This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
<?php | |
require 'path-to-Stripe.php'; | |
if ($_POST) { | |
Stripe::setApiKey("YOUR-API-KEY"); | |
$error = ''; | |
$success = ''; | |
try { | |
if (!isset($_POST['stripeToken'])) | |
throw new Exception("The Stripe Token was not generated correctly"); |
/** | |
* Implementation of hook_flush_caches(). | |
*/ | |
function calarts_domain_specific_customizations_flush_caches() { | |
if (!module_exists('domain')) { | |
return array(); | |
} | |
global $db_url; | |
$connect_url = $db_url; |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
/** | |
* author Remy Sharp | |
* url http://remysharp.com/tag/marquee | |
*/ | |
(function ($) { | |
$.fn.marquee = function (klass) { | |
var newMarquee = [], | |
last = this.length; |
# | |
# Bulk Unwatch | |
# JIRA doesn't support unwatch from the bulk change action | |
# This script fills the gap | |
# Known to work with JIRA 5 via the REST API | |
# | |
# 1. Using JIRA, Issue Navigator, write a query to get all | |
# the issues you want to unwatch. Something like | |
# "issue in watchedIssues() AND status != Closed" | |
# works well as a starting point. |
<?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>KeepAlive</key> | |
<dict> | |
<key>SuccessfulExit</key> | |
<false/> | |
</dict> | |
<key>Label</key> |
Note: This is an old guide and may not work for newer versions of macOS. Please see comments below for additional steps.
brew install memcached
/Applications/MAMP/bin/php/[php version folder]/include/php
./Applications/MAMP/bin/php/[php version folder]/include/php/configure
/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache
.# Clone Fire.app | |
git clone git://github.com/handlino/FireApp.git | |
# (IMPORTANT) Update git submodules | |
cd FireApp | |
git submodule init | |
git submodule update | |
# Switch to JRuby (I'm using 1.6.7.2.) | |
rvm use jruby |
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement | |
// for using the mouse displacement for calculating the amount of camera movement and panning code. | |
using UnityEngine; | |
using System.Collections; | |
public class MoveCamera : MonoBehaviour | |
{ | |
// | |
// VARIABLES |