Skip to content

Instantly share code, notes, and snippets.

View yamafaktory's full-sized avatar

Davy Duperron yamafaktory

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yamafaktory on github.
  • I am yamafaktory (https://keybase.io/yamafaktory) on keybase.
  • I have a public key ASAauTPFciFl-MKAPCehIBUOdtuLTE_q6Ep9o1VB34b3QAo

To claim this, I am signing this object:

@yamafaktory
yamafaktory / gist:f97f1a82fd9c7e8ecbdd95d5ad57ea4b
Created February 2, 2017 06:17
pattern-guard execution time test
const Guards = require('./')
const guards = new Guards()
const [
a,
b,
c,
d,
e,
f,
<div class="panel-body"
ng-if="resource.data.length > 7">
<div ng-include="helper.template('error')"></div>
<h2 class="category">{{topic.name[locale]}}</h2>
<div class="list-view">
<div class="card project"
ng-repeat="article in articles | orderBy:'l7dTitle'">
<a ng-href="{{helper.url('project/:topic/articles/:id', {topic: topic.key, id: article.id})}}"
ng-click="dialog()">
<h4>{{article.l7dTitle}}</h4>
@yamafaktory
yamafaktory / find-in-process.js
Created December 23, 2015 10:09
Small utility module to find if a given argument is part of the running Node process.
;(function () {
'use strict'
/*
Small utility module to find if a given argument is part of the running Node process.
*/
module.exports = arg => process.argv.indexOf(arg) !== -1
}())
@yamafaktory
yamafaktory / io.js
Last active December 24, 2015 16:10
Simple IO module.
;(function () {
'use strict'
/*
Simple IO module.
*/
module.exports = IO
const fs = require('fs')
@yamafaktory
yamafaktory / slack.js
Last active December 22, 2015 09:41
Slack message module using the incoming webhook API.
;(function () {
'use strict'
/*
Slack message module using the incoming webhook API.
https://api.slack.com/incoming-webhooks
https://api.slack.com/docs/formatting
*/
module.exports = Slack
# Browser
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
fi
# Editors
export EDITOR='emacs'
export VISUAL='emacs'
export PAGER='less'
# Color output
zstyle ':prezto:*:*' color 'yes'
# Prezto modules
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
# top-most EditorConfig file
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
@yamafaktory
yamafaktory / Xsession-correct-xrdb
Created December 13, 2014 12:54
/etc/gdm/Xsession
if [ -f "$userresources" ]; then
#xrdb -nocpp -merge "$userresources"
xrdb -merge "$userresources"
fi