Skip to content

Instantly share code, notes, and snippets.

View sirkitree's full-sized avatar

Jerad Bitner sirkitree

View GitHub Profile
@sirkitree
sirkitree / Starter Drush Make
Created July 28, 2010 18:01 — forked from q0rban/Starter Drush Make
Starter Drush Make
core = 6.x
projects[pressflow][type] = "core"
projects[pressflow][download][type] = "get"
projects[pressflow][download][url] = "http://launchpad.net/pressflow/6.x/6.17.83/+download/pressflow-6.17.83.tar.gz"
; INSTALL PROFILES
projects[profiler] = 1.0
; DEVELOPMENT
@sirkitree
sirkitree / strings.php
Created July 28, 2011 02:11 — forked from toddota/strings.php
PHP Learning
<html>
<body>
<p> Jeff Buckley is playing on the radio, and I like it. </p>
<p> It's John's birthday. He's so old! </p>
<?php print "Jerad said, \"Awesome!\" in response to my last assignment."; ?>
@sirkitree
sirkitree / gist:3341061
Created August 13, 2012 14:06 — forked from deviantintegral/gist:3340625
Bookmarklet to show Yammer postings in chronological order
<a href="javascript:(function(){ul=jQuery('.yj-feed-messages');ul.children().each(function(i,li){ul.prepend(li)})})();">drag</a>

Continuous Integration with SASS and Jenkins

This document explains how we can use Jenkins to solve some SASS/Git headaches.

The Problem at Hand

One of the problems that we deal with when working with SASS and Git is that the CSS added to the remote repository changes based on who compiled it. That means every time someone commits to the remote repository before we can push our work up, HEAD will have changed and our push attempt will be rejected.

PhpStorm for Drupal

PhpStorm has an excellent debugger for developing Drupal modules or even Drupal themes. After numerous IDE and text editors, it has earned it's place to be my primary IDE for almost anything Drupal, for many good reasons. PhpStorm, by default, is as Drupal friendly as many other PHP IDEs. That means it gets the job done, but there might be some syntax in your code the Drupal Coding Standards and it's authors wouldn't be too happy about. Here are a few things to make PhpStorm play well with Drupal.

Keymap

Althought not related to Drupal, the Keymap is the first thing we will change. PhpStorm by default comes with very unaturally keyboard shortcuts for me. Under Preferences, scroll down to select Keymap on the left. Select the keymap that suits your needs. Mac OS X 10.5+ feels the most intuitive to me. You may also further customize the keyboard shortcuts to each of the actions. ![Keymap](https://www.evernote.com/shard/s25/sh/6d5914ad-51f0-4d

<?php
$options = array('http' => array('user_agent' => 'JanusVR random site (v0.1)'));
$context = stream_context_create($options);
/**
* Should be able to use a more typical cache pattern here.
*
* Something like:
function _cache_get($var) {
static $cache_objects;