Skip to content

Instantly share code, notes, and snippets.

View palimadra's full-sized avatar

Pali Madra palimadra

View GitHub Profile
@palimadra
palimadra / dabblet.css
Created February 24, 2014 16:53 — forked from maxhoffmann/dabblet.css
CSS3 Image Gallery
/**
* CSS3 Image Gallery
*/
body {
background: black url(http://subtlepatterns.com/patterns/dark_wood.png);
font: 14px "Helvetica Neue", Helvetica, sans-serif;
}
h2 {
color: white;

A Starting Point for CSS Styleguides

This is a CSS styleguide that you could fork to use for your project. Some of the rules give you multiple acceptable options. If you want to adopt this styleguide for your project, you should modify it for your project.

Here is an example styleguide made from this starting point

This styleguide follows my styleguide for styleguides. That means it follows the following rules:

  • Focus on readability.
  • Focus on consistency.
@palimadra
palimadra / gist:f4ae3b5a8ccf965b3b07
Last active August 29, 2015 14:03 — forked from CristinaSolana/gist:1885435
How to ensure that forks are updated whenever the master is updated.

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@palimadra
palimadra / .gitignore
Last active August 29, 2015 14:06 — forked from octocat/.gitignore
Some common gitmore instructions which should be added to a gitmore file in a github repository. A gitmore file has instructions on which files to exclude in a github sync therefore some common files need to be ignored if you have repository on which you are working locally.
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@palimadra
palimadra / currencies.liquid
Last active August 29, 2015 14:23 — forked from carolineschnapp/currencies.liquid
Code that needs to be added as a new snippet in the shopify theme to be used in conjunction with currency picker at https://gist.github.com/palimadra/842e597a01552a4d0c8f
{% if settings.show_multiple_currencies %}
{{ "//cdn.shopify.com/s/javascripts/currencies.js" | script_tag }}
{{ "jquery.currencies.min.js" | asset_url | script_tag }}
<script>
Currency.format = '{{ settings.currency_format | default: 'money_with_currency_format' }}';
var shopCurrency = '{{ shop.currency }}';
@palimadra
palimadra / gist:1250759
Created September 29, 2011 13:50 — forked from epicdaze/gist:1030943
#wordpress - remove wordpress version number #obfuscate #version
<!-- /* Remove version number from wordpress generated source and RSS feed.
http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/
*/ -->
<!-- /* remove this from header.php remove version from generated page source */ -->
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- /* or add this to functions.php to remove version from generated page source */ -->
<?php remove_action('wp_head', 'wp_generator'); ?>
@palimadra
palimadra / gist:2199731
Created March 25, 2012 21:02 — forked from kevinkatzke/gist:1989581
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@palimadra
palimadra / gist:2199752
Created March 25, 2012 21:05 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@palimadra
palimadra / EmptyWidget.php
Created March 25, 2012 21:04 — forked from jonathonbyrdziak/CustomWidgetFile.php
WordPress - Plugin code to create a single widget in wordpress.
<?php
/**
* @package RedRokk
* @version 1.0.0
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
@palimadra
palimadra / WordPress - CSS for creating date badge
Created March 25, 2012 21:13 — forked from rodi01/css
WP-Create Date Badge with Wordpress and CSS
body { font-size: 62.5%; }
.post {
position: relative;
margin-left: 4.8em;
}
.entryDate {
border: 1px solid #999;
font-family: Georgia,"Times New Roman", serif;
left: -4.8em;
line-height: 1;