Skip to content

Instantly share code, notes, and snippets.

View digicase's full-sized avatar

Arthur Case digicase

  • Studio Automatique
View GitHub Profile
@digicase
digicase / main_menu.eb_events.html
Created June 9, 2020 06:56
HTML snippet for main menu (hamburger menu) lists of links, used in flat blocks. Copy and paste into the source code editor for the content field. Use the < > Source code button to open the source code editor.
<ul class="main-menu__list">
<li class="main_menu__list-item"><a class="main_menu__link" href="https://events.eco-business.com/#utm_source=eb&amp;utm_medium=nav&amp;utm_campaign=ebevents" target="_blank" rel="noopener">View all EB Events</a></li>
<li class="main_menu__list-item"><a class="main_menu__link" href="https://events.eco-business.com/events/decarbonisation-what-are-the-common-pitfalls" target="_blank" rel="noopener">Decarbonisation: What are the common pitfalls?</a></li>
<li class="main_menu__list-item"><a class="main_menu__link" href="https://events.eco-business.com/events/the-liveability-challenge-2020-grand-finale" target="_blank" rel="noopener">The Liveability Challenge Grand Finale 2020</a></li>
<li class="main_menu__list-item"><a class="main_menu__link" href="https://events.eco-business.com/events/unlocking-capital-for-sustainability-2020" target="_blank" rel="noopener">Unlocking Capital for Sustainability 2020</a></li>
</ul>
@digicase
digicase / tracked-external-link.html
Created March 17, 2015 03:21
Eco-Business Google Analytics tracking story external link
@digicase
digicase / fake-ul.html
Created November 17, 2014 07:48
Outlook fake unordered list for HTML email
&bull;&nbsp;&nbsp;List item one
&bull;&nbsp;&nbsp;List item two
&bull;&nbsp;&nbsp;List item three
@digicase
digicase / eco-business-edm-header.html
Created February 18, 2014 05:31
Required ‘webversion’ link and text (please include at top of EDM).
If you're having problems reading this email, <webversion>view the web version</webversion>
@digicase
digicase / eco-business-edm-footer.html
Last active August 29, 2015 13:56
Required ‘unsubscribe’ link and text (please include at bottom of EDM).
// http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/
%vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
{
"auto_complete:": true,
"auto_complete_commit_on_tab": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"draw_white_space": "all",
"find_selected_text": true,
"fold_buttons": false,
"folder_exclude_patterns":
[
@digicase
digicase / os_x_defaults.sh
Last active December 27, 2015 07:39
Sets my preferred OS X defaults.
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@digicase
digicase / CSS.plist
Created March 6, 2012 07:48
Textmate CSS language: add CSS3 and vendor prefixes to property names
<?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>comment</key>
<string></string>
<key>fileTypes</key>
<array>
<string>css</string>
<string>css.erb</string>
@digicase
digicase / gist:1862423
Created February 19, 2012 07:17 — forked from srobbin/gist:1713018
Use noscript, jQuery and server side scripting to generate various image sizes for responsive sites.
<noscript><img src="Koala.jpg" alt="A koala" /></noscript>
<script>
$('noscript').each(function(){
var $self = $(this)
, $img = $( $self.text() )
, src = $img.attr("src") + ( screen.width < 500 ? "?width=420" : "" );
$self.replaceWith( $img.attr("src", src) );
});