Skip to content

Instantly share code, notes, and snippets.

@pampels
pampels / SassMeister-input-HTML.html
Created March 28, 2015 15:00
Generated by SassMeister.com.
<div class="scores-container">
<div class="score-container">
<div class="score">
<span>0</span>
</div>
<div class="spring-divider">
</div>
</div>
</div>
@pampels
pampels / ir.css
Last active December 26, 2015 04:59
css: image replacement
.ir {
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background: url(test.png);
width: 300px;
height: 75px;
}
@pampels
pampels / boxsizing.css
Created November 17, 2013 04:27
css: box-sizing
/* apply a natural box layout model to all elements */
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@pampels
pampels / country_coordinates
Created December 4, 2014 03:45
world country codes and coordinates
var countryCoords = {
'AD': [42.5000,1.5000],
'AE': [24.0000,54.0000],
'AF': [33.0000,65.0000],
'AG': [17.0500,-61.8000],
'AI': [18.2500,-63.1667],
'AL': [41.0000,20.0000],
'AM': [40.0000,45.0000],
'AN': [12.2500,-68.7500],
'AO': [-12.5000,18.5000],
@pampels
pampels / visuallyHidden.css
Last active September 6, 2021 07:28
visually hidden
.visuallyHidden {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
@pampels
pampels / country_coords.js
Last active October 4, 2024 12:52
jVectorMap Country Codes and Coordinates
var jvmCountries = {
"AF": {"name": "Afghanistan", "coords": [33, 65]},
"AL": {"name": "Albania", "coords": [41, 20]},
"DZ": {"name": "Algeria", "coords": [28, 3]},
"AO": {"name": "Angola", "coords": [-12.5, 18.5]},
"AR": {"name": "Argentina", "coords": [-34, -64]},
"AM": {"name": "Armenia", "coords": [40, 45]},
"AU": {"name": "Australia", "coords": [-27, 133]},
"AT": {"name": "Austria", "coords": [47.3333, 13.3333]},
"AZ": {"name": "Azerbaijan", "coords": [40.5, 47.5]},