Skip to content

Instantly share code, notes, and snippets.

View patsma's full-sized avatar
💭
Perfection is not attainable, but if we chase perfection we can catch excellence

Patryk Smakosz patsma

💭
Perfection is not attainable, but if we chase perfection we can catch excellence
View GitHub Profile
@lilpolymath
lilpolymath / grid-gen.scss
Created January 15, 2021 21:47
Dynamic Grid generator
// Chnage these as per your requirement
$columns: 1, 2, 3;
// these are just placeholders for reference, change the actual values in mixin: grid-gen
// $breakpoints: "sm", "md", "lg", "xl";
// $breakpoint-sizes: 576px, 768px, 992px, 1200px;
// creates CSS grid template columns with $columns
@mixin mk-columns($breakpoint) {
@each $column in $columns {
@denim2x
denim2x / masonry.css
Last active September 8, 2023 21:31
Pure-CSS Masonry (grid layout)
/**
@author denim2x <denim2x@cyberdude.com>
@license MIT
Pure-CSS Masonry layout, implemented via grid (http://mdn.io/grid);
all items are being nicely stacked vertically - thanks to
`grid-auto-rows` and `grid-row: span ...`.
SUIT CSS compliant implementation.
*/
@DavidWells
DavidWells / netlify.toml
Last active February 7, 2024 08:50
All Netlify.toml & yml values
[Settings]
ID = "Your_Site_ID"
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts.
[build]
# This is the directory to change to before starting a build.
base = "project/"
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root.
# This is the directory that you are publishing from (relative to root of your repo)
Some may find this confusing, but I like to tack .reverse() onto the end and toggle an animation like this...
var tl = new TimelineMax()
.to("#box", 0.25, { opacity: 0.5, scale: 0.75 })
.reverse();
$("#box").click(function() {
tl.reversed(!tl.reversed());
});
http://codepen.io/osublake/pen/9d46535fe6e5b5c8f577308a5ae1ea72
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/