Skip to content

Instantly share code, notes, and snippets.

@pascalduez
pascalduez / links.md
Last active February 24, 2024 08:49
Should I outline
@pascalduez
pascalduez / index.md
Last active January 1, 2019 11:52
Github page over HTTPS, setting up a custom domain at Gandi

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
@pascalduez
pascalduez / Gulpfile.js
Created December 9, 2015 22:16
PostCSS Gulp
'use strict';
var gulp = require('gulp');
var postcss = require('gulp-postcss');
gulp.task('styles', function () {
var opts = {
basePath: 'input/',
maps: [ 'whatever.yml' ],
};
@pascalduez
pascalduez / SassDoc.md
Last active August 29, 2015 14:13
SassDoc

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 November 23, 2014 18:59
Conditionnaly install npm deps
// 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
Last active April 12, 2019 08:35
Prime number in Sass.
// ----
// 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.