Skip to content

Instantly share code, notes, and snippets.

View JoshuaJones's full-sized avatar
:shipit:

Joshua Jones JoshuaJones

:shipit:
View GitHub Profile
@JoshuaJones
JoshuaJones / AbortionResources.md
Last active June 24, 2022 17:12
Abortion Resources

What is this?

A collection of resources related to abortion, options and organizations to donate to promoting abortion access.

Are these resources safe/verified? Any other actions to take?

With everything, do your own research but these resources are well known.

As an extra precaution and for your security, you can access these resources over a VPN or using the TOR network to hide your traffic from your ISP.

@JoshuaJones
JoshuaJones / rename.json
Created February 21, 2015 00:15
Example Grunt-Init Conditional Copy
{
"app/js/main-empty.js": "{% if (empty) { %}app/js/main.js{% } %}",
"app/js/main-skeleton.js": "{% if (!empty) { %}app/js/main.js{% } %}"
}
<div class="progress_bar_container">
<div class="progress_bar"></div>
</div>
@JoshuaJones
JoshuaJones / selectorsCount.js
Created September 3, 2013 23:43
Log out the number of rules and selectors in stylesheets loaded
var selectorsCount = function () {
var styleSheets = document.styleSheets,
totalStyleSheets = styleSheets.length;
console.group('Stylesheet Rules/Selector Debug Info');
console.log('----------------------------------');
try {
for (var j = 0; j < totalStyleSheets; j++) {
var styleSheet = styleSheets[j],
@JoshuaJones
JoshuaJones / gist:6224518
Created August 13, 2013 19:02
Javascript Switch Statement to provide a countries area code based off of Zend_Locale's output
var = countryCode = $('html').attr('lang'),
countryNum;
switch(countryCode) {
// Mexico
case 'es_MX':
countryNum = '52';
break;
$(function(){
$('.block-grid').each(function(index){
var $this = $(this),
blocks = $.makeArray($this.find('.block')).sort(sortByHeight)[0];
$this.find('.block').height($(blocks).height());
});
});
function sortByHeight(a,b) {
return ($(b).height() - $(a).height());
}
@JoshuaJones
JoshuaJones / layout.scss
Created April 24, 2013 22:36
SCSS Template Base
// Normalize & Layout
article, aside, details, figcaption, figure, footer,
header, hgroup, nav, section, summary { display: block; }
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1;
}
audio:not([controls]) { display: none; }
[hidden] { display: none; }
@mixin retina-image($filename, $image-width, $image-height, $extension: ".png") {
background-image: url($filename + $extension);
height: $image-height;
width: $image-width;
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {
@JoshuaJones
JoshuaJones / gist:4156020
Created November 27, 2012 18:20
Acronym <abbr> List
<abbr title="Customer Relationship Management">CRM</abbr>
<abbr title="Content Management System">CMS</abbr>
<abbr title="Structured Query Language">SQL</abbr>
<abbr title="International Organization for Standards">ISO</abbr>
<abbr title="PHP: Hypertext Preprocessor">PHP</abbr>
<abbr title="HyperText Markup Language">HTML</abbr>
<abbr title="eXtensible HyperText Markup Language">XHTML</abbr>
<abbr title="Cascading Style Sheets">CSS</abbr>
<abbr title="JavaScript">JS</abbr>
<abbr title="European Computer Manufacturers Association Script">ECMAScript</abbr>
@JoshuaJones
JoshuaJones / form_reset.sass
Created November 26, 2012 21:35 — forked from nathansmith/1_form-reset.scss
Form "Reset"
// Note: This file is dependent on Sass and Compass.
// Sass = http://sass-lang.com
// Compass = http://compass-style.org
@import "compass/css3"
// `Form Element Reset.
//----------------------------------------------------------------------------------------------------
input[type="search"]::-webkit-search-decoration