Skip to content

Instantly share code, notes, and snippets.

View jakebresnehan's full-sized avatar
👋

Jake Bresnehan jakebresnehan

👋
View GitHub Profile
@jakebresnehan
jakebresnehan / readme
Created May 27, 2012 23:47 — forked from jcobb/readme
Boilerplate Wordpress Widget
How to Use
Step 1.
Copy the custom_widget.php file and place it in your WordPress theme folder. Assuming WordPress is installed in the root of your server the file will be place in /wp-content/themes/yourtheme/
Step 2.
Open up functions.php and include the following piece of code somewhere in the file. include TEMPLATEPATH . '/custom_widget.php';
Step 3.
Edit the custom_widget.php file to suit your needs.
@jakebresnehan
jakebresnehan / dabblet.css
Created June 1, 2012 07:58 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
h1 span{
color:Red /* I only target <span> tags nested within a h1 */
}
h1 ~ span{
color:blue /* I dont taget <span> tags nest within a h1, but any <span> tag that follows a h1 on the same nested level */
@jakebresnehan
jakebresnehan / RWD Screen Width Indicator
Created August 17, 2012 12:08 — forked from jordanmoore/RWD Screen Width Indicator
Current screen width indicator (useful for knowing when to add breakpoints when resizing browser window)
<script>
$(window).resize(function() {
var windowWidth = $(window).width();
$('.screen-width').text(windowWidth + 'px');
});
</script>
<div id="debug" style="position:fixed;padding:0.3em 0.6em;background:#f1f1f1;font-size:0.6em;bottom:0;left:50%;">
<span class="screen-width">0</span>
</div>
@jakebresnehan
jakebresnehan / gist:3409430
Last active October 9, 2015 00:08
Sublime Text Settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"draw_minimap_border": true,
"draw_white_space": "all",
"font_face": "SourceCodePro-Regular",
"font_size": 14.0,
"file_exclude_patterns":
[
@jakebresnehan
jakebresnehan / _settings.sass
Created August 29, 2012 13:05 — forked from nickawalsh/_settings.sass
Style Debugging
%debug
background-color: pink !important
@jakebresnehan
jakebresnehan / rgbaa.scss
Created September 19, 2012 09:19 — forked from KuraFire/rgbaa.scss
More dynamic, oldIE-compatible SCSS function for rgba
@function rgbaa($args...) {
// rgbaa(#FFF, .5)
@if length($args) == 2 {
$hex: nth($args, 1);
$alpha: nth($args, 2);
@if $oldIE == 1 {
@return rgb(red($hex), green($hex), blue($hex));
} @else {
@return rgba(red($hex), green($hex), blue($hex), $alpha);
@jakebresnehan
jakebresnehan / Monokai.terminal
Created December 4, 2012 23:09
Monokai Theme for Terminal.app
<?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>ANSIBrightBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
TxAnMC40NTg4MjM1NjE3IDAuNDQzMTM3Mjg4MSAwLjM2ODYyNzQ1ODgA0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
hub pull-request -i <issue-id-number> -h <gh-account>:<branch-name>
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
@jakebresnehan
jakebresnehan / find-cm-api-keys.md
Created July 14, 2013 01:37
How to find API Keys in your Campaign Monitor account

Where do I find my API Key?

  1. Log into your Campaign Monitor account
  2. Click on "Account Settings" in the top menu (4th item)
  3. Your API key will be visible once you click the "Show API Key" link.

Where do I find my List ID?

  1. Log into your Campaign Monitor account
  2. Click on "Clients" in the top menu (1st item)