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 / index.md
Last active Jan 1, 2019
Github page over HTTPS, setting up a custom domain at Gandi
View index.md

Github page over HTTPS, setting up a custom domain at Gandi

DNS configuration

With an apex domain

@ 10800 IN A 185.199.108.153
@ 10800 IN A 185.199.109.153
@ 10800 IN A 185.199.110.153
View Gulpfile.js
'use strict';
var gulp = require('gulp');
var postcss = require('gulp-postcss');
gulp.task('styles', function () {
var opts = {
basePath: 'input/',
maps: [ 'whatever.yml' ],
};
View SassDoc.md

SassDoc allows to document Sass items: functions, mixins, variables, placeholders.
No CSS selectors.
It uses a similar system as JSDoc, based on comments and annotations.

You can choose between two types of comments.

Inline comments (3 slashes):

///
///
@pascalduez
pascalduez / Gruntfile.js
Created Nov 23, 2014
Conditionnaly install npm deps
View Gruntfile.js
// Programmatically install npm packages.
function npmInstall(pkgs, cb) {
var npm = require('npm');
npm.load({}, function (err) {
if (err) {
throw err;
}
console.log(chalk.red(
@pascalduez
pascalduez / SassMeister-input.scss
Created Jul 30, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.12)
// Compass (v1.0.0.alpha.21)
// ----
// **
// A nice function
//
// @param {Map} $map (()) - Param desc
//
@pascalduez
pascalduez / SassMeister-input.scss
Last active Apr 12, 2019
Prime number in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
// Prime number
// https://en.wikipedia.org/wiki/Prime_number
// Returns whether `$n` is a prime number.
@pascalduez
pascalduez / SassMeister-input.scss
Created Jun 21, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
@function char-at(
$str,
$index: 1
) {
@pascalduez
pascalduez / SassMeister-input.scss
Created Jun 21, 2014
JS String.prototype.split() in Sass.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// String split
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
You can’t perform that action at this time.