Skip to content

Instantly share code, notes, and snippets.

enquire.register("screen and (min-width: 768px)", {
match : function() {
$('.flexslider').flexslider({
animation: "fade",
slideshow: false,
controlNav: false,
controlsContainer: ".flexslider-container"
});
},
@niallthompson
niallthompson / gist:9534709
Created March 13, 2014 19:04
Project Fit Mixture
{
"convertHtmlOutput": null,
"customRubyPath": null,
"debug": false,
"domain": null,
"followLeader": false,
"lintScripts": false,
"modelSource": null,
"optimiseImages": true,
"optimiseSVG": true,
.dc-all {
width: 100%;
float: left;
clear: left;
}
.dc1 {
width: 31.9865%;
float: left;
margin-right: -100%;
{exp:low_events:entries channel="broadcasts" unit="passed" show_active="no" limit="6" paginate="bottom" orderby="low_events:end" sort="desc"}
{if no_results}<h3>There are no broadcasts in the archives yet. Please check back later.</h3>{/if}
<figure class="{switch='tb2 db2|tb3 db3|tb4 db4'}">
<a href="{title_permalink='broadcasts/view'}">
{broadcast_image}
<img src="{image:url:medium}" alt="{image:title}" /></a>
{/broadcast_image}
<figcaption><a href="{title_permalink='broadcasts/view'}">{title}</a><br><a>{broadcast_date:start_date format="%j %F %Y"}</a></figcaption>
</figure>
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
{% if mixture.url == "index" %}
<script src="assets/js/main.min.js"></script>
<script type='text/javascript'>
$.fn.friend();
</script>
{% endif %}
{% if mixture.url == "directors" %}
<script src="assets/js/jquery.mixitup.min.js"></script>
<script src="assets/js/scripts.min.js"></script>
@niallthompson
niallthompson / gist:22870aa72641babc4b3f
Created September 5, 2014 22:17
Short Border After H1
h1:after {
border-bottom: 5px solid red;
content: " ";
display: block;
margin: 0 auto;
padding: .25em;
width: 75px;
}
@niallthompson
niallthompson / gist:15e453a30d6fdb1140ab
Created September 11, 2014 21:49
Hash Filtering // Friend
(function($){
var hash = (window.location.hash).replace('#', '.');
var filter = (hash) ? '.category-' + hash : '.liveaction';
$('.mixitup').mixItUp({
load: {
filter: filter
},
animation: {
duration: 400,
Used command: /usr/bin/ssh -v -N -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=20 -o NumberOfPasswordPrompts=3 -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 -p 22 s133375.gridserver.com@s133375.gridserver.com -L 62127/external-db.s133375.gridserver.com/3306
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/niallthompson/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to s133375.gridserver.com [205.186.175.175] port 22.
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/niallthompson/.ssh/id_rsa type 1
$(window).load(function(){
$('.flexslider').flexslider({
animation: "fade",
animationLoop: false,
directionNav: false,
controlNav: false,
slideshow: false,
itemWidth: 600,
itemMargin: 0,
pausePlay: false,