Skip to content

Instantly share code, notes, and snippets.

View jamosonic's full-sized avatar

JamOS jamosonic

  • Melbourne, Australia
View GitHub Profile
git config --global core.excludesFile '~/.gitignore'
@jamosonic
jamosonic / bash.sh
Created August 26, 2022 04:20
Automatically set upstream branch in Git > 2.37.0
# https://git-scm.com/docs/git-config/#Documentation/git-config.txt-pushdefault
git config --global --add --bool push.autoSetupRemote true
.invoice-table th {
text-align: left;
}
.invoice-table tfoot th,
.invoice-table tfoot td {
text-align: right;
}
@jamosonic
jamosonic / dabblet.css
Created July 8, 2013 22:54 — forked from anonymous/dabblet.css
Untitled
.invoice-table th {
text-align: left;
}
.invoice-table tfoot th,
.invoice-table tfoot td {
text-align: right;
}
@jamosonic
jamosonic / dabblet.css
Created February 19, 2013 11:00
Bottom margin/padding double ups
/**
* Bottom margin/padding double ups
*/
h2 {
margin: 0 0 15px 0;
}
p {
margin: 0 0 15px 0;
h1 {
color: $bluegrey;
font-family: "Proxima Nova Semibold";
}
.winner {
display: inline-block;
margin-bottom: 1rem;
margin-left: .5rem;
margin-right: .5rem;
<div class="winner">
<div class="image-wrap">
<a href="">
<img src="<%= Forgery(:winners).largecrops %>" width="270" height="200" />
</a>
</div>
<div class="info">
<a href="">
<img src="<%= Forgery(:winners).avatars %>" width="75" height="75"/>
<%= Forgery(:winners).designernames %></a>
@jamosonic
jamosonic / center list items (css)
Created July 26, 2010 04:03
Technique to center list items
#container,
#container ul,
#container li {
float: left;
position: relative;
}
#container {
width: 100%;
overflow: hidden;
jQuery(document).ready(function() {
var preloadImage = function(url) {
console.log('preload: %s', url);
document.createElement('img').src = url;
};
var getImageUrl = function(id, state) {
var matches;
if (matches = jQuery('head style').html().match( (new RegExp('#' + id + ':' + state + '\\s*{\\s*background-image:\\s*url\\((.*)\\)')) )) return matches[1];