Skip to content

Instantly share code, notes, and snippets.

View martylouis's full-sized avatar
🤓

Marty Thierry martylouis

🤓
View GitHub Profile
@martylouis
martylouis / ir.css
Created July 3, 2012 00:59
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@martylouis
martylouis / gist:3905934
Last active May 31, 2017 16:29
basic .gitignore
We couldn’t find that file to show.
@martylouis
martylouis / twitter-widget.js
Last active October 13, 2015 18:08
Custom twitter widget
// Custom Twitter Widget
$(document).ready(function() {
$.getScript('http://widgets.twimg.com/j/2/widget.js', function() {
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 3,
id: 'twitterWidget',
interval: 9999,
width: "auto",
@martylouis
martylouis / clearfix.css
Created April 26, 2013 18:40
CSS: Clearfix
.clearfix:before, .clearfix:after {content: ""; display: table;}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;}
@martylouis
martylouis / Preferences.sublime-settings
Last active December 21, 2015 21:59
Sublime Text 3 prefs
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"detect-slow-plugins": false,
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
@martylouis
martylouis / svg-css.txt
Last active December 30, 2015 01:59
CSS properties for SVG
## FILL ##
fill Sets fill color of the shape.
fill-opacity Sets fill opacity of the shape.
fill-rule Sets fill rule of the shape.
** example **
fill: #ccc;
fill: rgba(0,0,0,.5);
fill: red;
@martylouis
martylouis / placeholder.js
Last active August 29, 2015 13:57
Get placeholders to work on all browsers
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() === input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() === '' || input.val() === input.attr('placeholder')) {
input.addClass('placeholder');
@martylouis
martylouis / wp-tinyMCE4.php
Created April 23, 2014 22:29
A custom WordPress TinyMCE v4 configuration with styles (now called "Formats") drop down menu and submenus.
<?php
/**
* TinyMCE v4 Config
*
* A custom WordPress TinyMCE v4 configuration with styles (now called "Format") drop down menu with submenus.
*
* style_formats: http://www.tinymce.com/wiki.php/Configuration:style_formats
*
*/
@martylouis
martylouis / search-social-template.html
Created June 8, 2014 23:43
Search and Social Media Meta Tags Starter Template
<!doctype html>
<html>
<head>
<!-- SEO -->
<meta name="author" content="Nicholas Cerminara">
<meta name="description" content="Bootstrap 3 has a ton of features and helpers to speed up front-end development. Sometimes you need something and you end up writing your own custom CSS and JavaScript without even realizing that Bootstrap could have done it for you....">
<link rel="canonical" href="http://scotch.io/bar-talk/bootstrap-3-tips-and-tricks-you-might-not-know">
<!-- Social: Twitter -->
<!-- Heads up! You must visit the Twitter Validator and request approval after setting up your Meta tags. -->
@martylouis
martylouis / markdown-cheatsheet.md
Created August 7, 2014 19:46
Markdown Cheatsheet

Sample Markdown Cheat Sheet

This is a sample markdown file to help you write Markdown quickly :)

If you use the fabulous [Sublime Text 2/3 editor][ST] along with the [Markdown Preview plugin][MarkdownPreview], open your ST2 Palette with CMD+⇧+P then choose Markdown Preview in browser to see the result in your browser.

Text basics

this is italic and this is bold . another italic and another bold