Skip to content

Instantly share code, notes, and snippets.

View Alex-D's full-sized avatar

Alexandre Demode Alex-D

View GitHub Profile
@Alex-D
Alex-D / gist:a41f10603ad86be8f371
Created July 5, 2014 21:25
Comment contribuer : comprendre comment suivre le workflow

Salut à tou-te-s !

J'écris ce message pour expliquer brièvement comment procéder pour avoir une copie locale propre du projet sans utiliser des branches sur le dépôt principal.

Ca n'a pas tellement sa place dans le README car c'est limite un tuto git simplifié.

<?php
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use GuzzleHttp\Psr7\Request;
use Imbo\BehatApiExtension\Context\ApiContext;
use Symfony\Component\Process\Process;
/**
* Defines application features from the specific context.
@Alex-D
Alex-D / test-commit.sh
Last active April 4, 2022 02:23
Check commits sticks to Git Karma commit
# http://karma-runner.github.io/1.0/dev/git-commit-msg.html
bash -c "! git log -100 --pretty=format:%s | egrep --color=auto -v '^(((feat|fix|docs|style|refactor|test|chore)(\(\w+\))?:\s)|Merge).*'"
@Alex-D
Alex-D / keybase.md
Created March 25, 2019 22:46
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Alex-D
Alex-D / _scrollbar-mixin.scss
Last active January 18, 2021 15:31
Scrollbar SCSS mixin
@mixin scrollbars(
$size,
$foreground-color,
$background-color,
$border-width: 0,
$context-hover-background-color: lighten($foreground-color, 5%),
$hover-background-color: lighten($foreground-color, 10%),
) {
// Blink browsers (Chrome, Edge)
&::-webkit-scrollbar {
@Alex-D
Alex-D / gen-dts.ts
Created June 13, 2021 12:46
Over complicated way, replaced by rollup-plugin-dts
import {Extractor, ExtractorConfig} from '@microsoft/api-extractor'
import * as fs from 'fs'
import {replaceTscAliasPaths} from 'tsc-alias'
import * as ts from 'typescript'
import {CompilerOptions} from 'typescript'
import * as util from 'util'
function compile(fileNames: string[], options: ts.CompilerOptions): void {
const program = ts.createProgram(fileNames, options)
const emitResult = program.emit()
#!/usr/bin/env sh
url="example.com"
wget \
--mirror \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \