Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Art2B's full-sized avatar

Arthur Battut Art2B

View GitHub Profile
@Art2B
Art2B / dat.js
Last active June 7, 2019 12:40
Helpers for webgl projects
import * as dat from 'dat.gui';
import config from './../config.json';
export class Configuration {
constructor(color) {
this.color = color;
}
}
@Art2B
Art2B / today
Created March 6, 2019 16:50
List commit made in current git directory. Use today YYYY-MM-DD
#!/bin/bash
git reflog --date=iso | grep $1 | grep commit
@Art2B
Art2B / Explanations.md
Last active October 24, 2018 08:56
Sweet icons stuff with sass

Sass needed

// Icon font name
$font-family-icon: 'icomoon';

// Icons declaration
$icons-list: (
  "instagram": "\e913",
  "twitter": "\e912",
@Art2B
Art2B / .stylelintrc
Last active November 27, 2018 14:19
Npm build scripts
{
"ignoreFiles": ["**_variables.scss"],
"plugins": [
"stylelint-order"
],
"rules": {
"order/order": [
[
"dollar-variables",
{
@Art2B
Art2B / .stylelintrc
Last active August 31, 2018 12:45
Personnal favorite .stylelintrc for style formatting
{
"plugins": [
"stylelint-order"
],
"rules": {
"order/order": [
[
"dollar-variables",
{
"type": "at-rule",
@Art2B
Art2B / List of packages
Last active March 6, 2019 16:43
User settings for Sublime Text
DocBlockr
Emmet
Git Conflict Resolver
Git
Markdown Preview
Package Control
SublimeLinter
Super Calculator
Babel
Pretty JSON
@Art2B
Art2B / .vimrc
Created April 18, 2018 15:10
My vim config
execute pathogen#infect()
syntax on
filetype plugin indent on
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
@Art2B
Art2B / .gitconfig
Last active March 6, 2019 16:38
My gitconfig
# README
# Make sure you replace the user infos and gitmessage path infos before using this gist.
# git branch -d $(git branch --merged=origin/develop | tr "\n" " " | sed 's/* //g' | sed 's/develop //g')
[user]
name = Arthur battut
email = a.battut@catchdigital.com
[color]
ui = auto
var SerialPort = require("serialport").SerialPort;
var serialPort = new SerialPort("/dev/ttyACM0", {
baudrate: 9600,
});
var buffer;
serialPort.on("open", function () {
console.log('open');
serialPort.on('data', function(data) {
@Art2B
Art2B / .explications_wp.md
Last active February 5, 2016 19:28
Easy Wordpress with Apache2 on Ubuntu

#Easy Wordpress with Apache on Ubuntu

For the following instructions, I've use apache2 with ubuntu 14.04. The objective here is to setup quickly a wordpress site with a local domain name.

Create your Virtual host

Personnaly I follow this tutorial (french only). For your conf file, Copy the conf file I've uploaded.

##Setup Apache2 mod You need to enable mod_rewrite on apache to allow you to choose whatever url style you want. To do this run a2enmod rewrite then restart apache.