Skip to content

Instantly share code, notes, and snippets.

View nico3333fr's full-sized avatar

Nicolas Hoffmann nico3333fr

View GitHub Profile
@nico3333fr
nico3333fr / hama-grid-generator.php
Last active April 5, 2022 15:48
Pixel Art helper script for Hama beads
<?php
// supposed to be a BMP image, as sprites are really small :)
if ( @$_GET['directfile']!='' ){
$img_name = $_GET['directfile'];
}
$resource = imagecreatefrombmp($img_name);
$width = imagesx($resource);
@nico3333fr
nico3333fr / working-dev.md
Last active May 16, 2022 10:57
Install a development environment on Window Subsystem Linux
@nico3333fr
nico3333fr / styles_progress.scss
Created March 26, 2019 13:53
Styles for progressbar in HTML5 (IE11+)
/*
* Progress bar
*/
.progressBar-container {
padding: 1rem 2rem;
}
.progressBar {
/* Reset the default appearance */
@nico3333fr
nico3333fr / gist:2043855fe5f854edee6a
Last active October 12, 2021 18:44
Jquery tabs using ARIA
I've set up a very light jquery tab system for a website:
starting from this HTML code:
<ul class="pates-tabs__list">
<li class="pates-tabs__item">
<a href="#presentation" id="label_presentation" class="pates-tabs__link">Présentation</a>
</li>
<li class="pates-tabs__item">
@nico3333fr
nico3333fr / Sass helper generator
Last active January 2, 2016 11:59
Function in Sass ?
Hi,
I've made this function in Sass :
$list-margin: mt, mr, mb, ml, m;
$list-margin-values: 0, 1, 2;
@each $margin-type in $list-margin {
@each $margin in $list-margin-values {