Instantly share code, notes, and snippets.

Cedx_ cedxix

  • France
View GitHub Profile
@cedxix
cedxix / affmar.yml
Created Sep 5, 2017
Tmuxinator config
View affmar.yml
# ~/.tmuxinator/affmar.yml
name: affmar
root: ~/projects/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
@cedxix
cedxix / parse_kml.py
Created Jun 8, 2017 — forked from kevin1024/parse_kml.py
kml to geojson
View parse_kml.py
from xml.etree import ElementTree
from shapely.geometry import Polygon, Point
import json
poly_table = []
data = open('/tmp/chicago.kml')
tree = ElementTree.parse(data)
namespace = tree.getroot().tag[1:].split("}")[0]
placemarks = tree.findall(".//{%s}Placemark" % namespace)
@cedxix
cedxix / tmux.conf
Created May 2, 2017 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@cedxix
cedxix / .gitconfig
Created May 2, 2017 — forked from pksunkara/.gitconfig
Sample of git config file (Example .gitconfig)
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@cedxix
cedxix / introrx.md
Created Apr 19, 2017 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@cedxix
cedxix / node-folder-structure-options.md
Created Jul 13, 2016 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?
View node-folder-structure-options.md

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@cedxix
cedxix / gist:89871d7995400532a311
Created Dec 31, 2015
Configurações para o Sublime como IDE para PHP / JS
View gist:89871d7995400532a311
Finalmente, agora eu tenho tudo quase perfeito com o Sublime, só me falta mesmo é um Outline para fechar de vez.
Template para projetos Symfony:
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": ["bundles", "assets", "cache"]