Skip to content

Instantly share code, notes, and snippets.

View yamafaktory's full-sized avatar
💭
🦀 ➕ ⌨️ ➡️ 🚀

Davy Duperron yamafaktory

💭
🦀 ➕ ⌨️ ➡️ 🚀
View GitHub Profile
" Vim-plug
call plug#begin()
Plug 'https://github.com/jelera/vim-javascript-syntax.git'
Plug 'https://github.com/itchyny/lightline.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug 'bling/vim-airline'
Plug 'scrooloose/syntastic'
Plug 'airblade/vim-gitgutter'
call plug#end()
" General
# general
set -g default-terminal "screen-256color"
setw -g mode-mouse off
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour130 #yellow
set-option -g status-attr default
@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
# top-most EditorConfig file
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
# Color output
zstyle ':prezto:*:*' color 'yes'
# Prezto modules
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
# Browser
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
fi
# Editors
export EDITOR='emacs'
export VISUAL='emacs'
export PAGER='less'
@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
@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')
<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>