Skip to content

Instantly share code, notes, and snippets.

View stephCoue's full-sized avatar

Stephane Coué stephCoue

View GitHub Profile
@stephCoue
stephCoue / machine.js
Last active July 15, 2021 09:43
Generated by XState Viz: https://xstate.js.org/viz
const loadContracts = {
initial: "loading",
states: {
loading: {
on: {
LOADED_CONTRACTS: {
target: "loaded",
actions: ["setContracts"],
},
FAILED_LOAD_CONTRACTS: {
# Jekyll error
# invalid byte sequence in US-ASCII
# Error reading file /PATH/TO/FILE : invalid byte sequence in US-ASCII
# Liquid Exception: invalid byte sequence in US-ASCII in index.html
# Add This variables that change your local settings
# In your prompt
LC_CTYPE="en_US.UTF-8"
@stephCoue
stephCoue / GruntFile.js
Created April 9, 2013 20:11
A Basic GruntFile.js… $ npm install && grunt
'use strict';
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect.static(path.resolve(point));
};
module.exports = function (grunt) {
// Project configuration.