Skip to content

Instantly share code, notes, and snippets.

View README.md

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@shohagbhuiyan
shohagbhuiyan / CSS3 Media Queries Template
Created April 23, 2018 01:21
CSS3 Media Queries template
View CSS3 Media Queries Template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@shohagbhuiyan
shohagbhuiyan / australian-postcodes.csv
Last active September 6, 2019 19:47 — forked from randomecho/australian-postcodes.sql
Australian postcodes (with states and suburb names) geocoded with latitude and longitude. SQL, JSON, CSV format.
View australian-postcodes.csv
We can't make this file beautiful and searchable because it's too large.
Postcode, Suburb, State, Lat, Lan
200, Australian National University, ACT, -35.280, 149.120
221, Barton, ACT, -35.200, 149.100
800, Darwin, NT, -12.800, 130.960
801, Darwin, NT, -12.800, 130.960
804, Parap, NT, -12.430, 130.840
810, Alawa, NT, -12.380, 130.880
810, Brinkin, NT, -12.380, 130.880
810, Casuarina, NT, -12.380, 130.880
810, Coconut Grove, NT, -12.380, 130.880
@shohagbhuiyan
shohagbhuiyan / .gitignore
Created December 8, 2017 00:49 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@shohagbhuiyan
shohagbhuiyan / svg.js
Last active July 27, 2017 05:05 — forked from ASchmidt1024/svg.js
Replace all SVG images with inline SVG using jQuery
View svg.js
/*
* Replace all SVG images with inline SVG
*/
//if img has svg, change it!
jQuery('img').filter(function() {
return this.src.match(/.*\.svg$/);
}).each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');