Skip to content

Instantly share code, notes, and snippets.

Pascal Duez pascalduez

Block or report user

Report or block pascalduez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pascalduez
pascalduez / SassMeister-input.scss
Last active Apr 9, 2018
Caesar cipher in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// Caesar cipher
// https://en.wikipedia.org/wiki/Caesar_cipher
@pascalduez
pascalduez / SassMeister-input.scss
Last active Apr 9, 2018
Vigenère cipher in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// Vigenère cipher.
// https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
// Get char code from `$str` at `$index` in range [1-52][A-Za-z].
@pascalduez
pascalduez / SassMeister-input.scss
Created Jun 9, 2014
Vigenère square or Vigenère table, aka tabula recta.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// Vigenère square or Vigenère table, aka tabula recta.
// https://en.wikipedia.org/wiki/Tabula_recta
@function shift($list, $value: 1, $dir: right) {
@pascalduez
pascalduez / SassMeister-input.scss
Last active Aug 29, 2015
Gray code (reflected binary code) convertion in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// SassyBitwise (v1.1.1)
// ----
@import "SassyBitwise";
// Gray code (reflected binary code) convertion in Sass.
@pascalduez
pascalduez / SassMeister-input.scss
Last active Apr 9, 2018
ROT13 implementation in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.18)
// ----
// ROT13 implementation in Sass.
// https://en.wikipedia.org/wiki/ROT13
@function rot13($str) {
@pascalduez
pascalduez / SassMeister-input.scss
Last active Oct 19, 2018
JavaScript `toString` and `parseInt` implementation in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// JavaScript `toString` and `parseInt` implementation in Sass.
@function pow($num, $exp) {
$result: 1;
@pascalduez
pascalduez / SassMeister-input.scss
Last active Sep 10, 2019
Deep nested values in Sass maps
View SassMeister-input.scss
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
// Deep nested values in Sass maps.
// Fetch a deep value in a multi-level map.
// https://gist.github.com/HugoGiraudel/9933331
@pascalduez
pascalduez / SassMeister-input.scss
Last active Aug 29, 2015
Sass flexible prefixer mixin.
View SassMeister-input.scss
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
// A Sass flexible prefixer mixin.
// Returns a list containing all the entries from `$list`
@pascalduez
pascalduez / SassMeister-input.scss
Created May 9, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
// A Sass `map-fetch` function
@function head($list) {
@return nth($list, 1);
You can’t perform that action at this time.