Skip to content

Instantly share code, notes, and snippets.

@Ollo
Ollo / plus.css
Created September 18, 2012 23:10
inline css for plus button
float:left;height:24px;width:75px;border-right: 1px dotted #CCCCCC;
@Ollo
Ollo / social.css
Created September 18, 2012 23:12
social share styles for yahoo store
/* modified social share css from ollomedia.com */
#some {display:inline block;border-top: 1px solid #CFCECE;clear: both;margin-bottom: 5px;margin-top: 5px;padding-top: 6px;padding-left: 6px;}
#ys_social_media {height:26px;display:inline-block;vertical-align:middle;margin-left:10px; }
#ys_social_fblike {float:left;}
#ys_social_tweet {float:left;}
#ys_social_v_separator {margin-left:10px;margin-right:10px;float:left;}
#ys_social_bottom_hr {border-top:1px solid #CFCECE; margin-top:5px;}
@Ollo
Ollo / plus.js
Created September 18, 2012 23:14
googleplus.js
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
@Ollo
Ollo / pinterest.html
Created September 19, 2012 05:09
pinterest for Yahoo Stores
<script type="text/javascript">
$(document).ready(function(){
// get button vars
var site = encodeURI(window.location.href);
var img = $('#itemarea img').attr(encodeURI('src'));
var details = $('#caption #itemarea p').text();
// create pin button
var string1 = "<a class='pin-it-button' count-layout='horizontal' href='http://pinterest.com/pin/create/button/?url=";
@Ollo
Ollo / bash_profile
Last active October 11, 2015 02:48
bash_profile
#Prompt and prompt colors
# 30m - Black
# 31m - Red
# 32m - Green
# 33m - Yellow
# 34m - Blue
# 35m - Purple
# 36m - Cyan
# 37m - White
# 0 - Normal
@Ollo
Ollo / style.less
Created October 16, 2012 04:29
base bootstrap less setup
/* my new bootstrap site */
@import "../bootstrap/bootstrap.less";
@import "../bootstrap/responsive.less";
// import your unique less files as you build
@import "layout.less";
@import "theme.less";
@import "typography.less";
@Ollo
Ollo / .gitconfig
Created December 17, 2012 20:31
git config to use xcode file compare for mergetool
[merge]
tool = opendiff
[core]
quotepath = false
excludesfile = /Users/jray/.gitignore
whitespace=nowarn
[credential]
helper = osxkeychain
[difftool "sourcetree"]
@Ollo
Ollo / dabblet.css
Created December 31, 2012 23:34 — forked from anonymous/dabblet.css
hipster nonsense
/**
* hipster nonsense
*/
body {
font-family: Helvetica;
background:#efefef;
}
#main {
width:960px;
@Ollo
Ollo / keyboard-nav
Created January 23, 2013 22:45
cycle 2 keyboard navigation
//gallery keyboard evetns
$(document.documentElement).keyup(function (event) {
if (event.keyCode == 37) {
$('.slider').cycle('prev');
} else if (event.keyCode == 39) {
$('.slider').cycle('next')
}
});
@Ollo
Ollo / latest_dl.php
Last active December 15, 2015 17:09
get latest download that isn't a release candidate
// echo latest download version for buttons
function get_latest_dl_ver() {
$args = array(
'post_type' => 'downloads',
'posts_per_page' => '1',
//'order' => 'DESC',
'orderby' => 'meta_value',
'meta_query' => array(
array(
'key' => 'rc',