Skip to content

Instantly share code, notes, and snippets.

View pierreburel's full-sized avatar

Pierre Burel pierreburel

View GitHub Profile
@pierreburel
pierreburel / input.scss
Created February 17, 2023 03:28
Generated by SassMeister.com.
@use "sass:list";
@use "sass:map";
@use "sass:math";
@use "sass:string";
$mass: 1 !default;
$stiffness: 100 !default;
$damping: 15 !default;
@function spring($t, $mass: $mass, $stiffness: $stiffness, $damping: $damping) {
@pierreburel
pierreburel / input.scss
Created February 17, 2023 03:16
Generated by SassMeister.com.
@use "sass:list";
@use "sass:map";
@use "sass:math";
@use "sass:string";
$mass: 1 !default;
$stiffness: 100 !default;
$damping: 15 !default;
@function spring($t, $mass: $mass, $stiffness: $stiffness, $damping: $damping) {
@pierreburel
pierreburel / modifier.ordinal.php
Created March 18, 2022 18:04 — forked from kbanman/modifier.ordinal.php
Smarty ordinal modifier plugin
<?php
/**
* Gets the ordinal for a number
*
* @param integer $number
* @return string
*/
function smarty_modifier_ordinal($number)
{
@pierreburel
pierreburel / input.scss
Created April 19, 2021 18:21
Generated by SassMeister.com.
$spaces: (
'6xl' : 152px,
'5xl' : 136px,
'4xl' : 104px,
'3xl' : 88px,
'2xl' : 56px,
'xl' : 40px,
'l' : 32px,
'm' : 24px,
's' : 16px,
@pierreburel
pierreburel / post-merge
Created June 21, 2016 09:02 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed. In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed. Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@pierreburel
pierreburel / SassMeister-input.scss
Created February 8, 2016 15:12
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/// Map of breakpoints
/// @type Map
$breakpoints: (
'small': '(min-width: 860px)',
'medium': '(min-width: 1000px)',
@pierreburel
pierreburel / SassMeister-input-HTML.html
Created November 28, 2015 23:36
Generated by SassMeister.com.
<h1>Test</h1>
@pierreburel
pierreburel / SassMeister-input.scss
Last active August 29, 2015 14:23
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.7)
// ----
$resolution-default: 2 !default;
$resolution-presets: (
"ldpi" 75%,
"mdpi" 100%,
"hdpi" 150%,
@pierreburel
pierreburel / SassMeister-input.scss
Created June 23, 2015 13:23
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@each $p, $property in (b: border, p: padding, m: margin) {
@each $v, $value in (n: 0, s: 10px, m: 20px, l: 30px) {
@each $d, $direction in (t: top, b: bottom) {
.#{$p}#{$d}#{$v} {
#{$property}-#{$direction}: #{$value};
}
@pierreburel
pierreburel / SassMeister-input.scss
Last active August 29, 2015 14:20
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.7)
// ----
$resolution-default: 2 !default;
$resolution-presets: (
ldpi: 75%,
mdpi: 100%,
hdpi: 150%,