This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" -*- mode: vimrc -*- | |
"vim: ft=vim | |
" dotspaceneovim/auto-install {{{ | |
"Automatic installation of spaceneovim. | |
if has('nvim') | |
let s:config_dir = $HOME . '/.config/nvim' | |
else | |
let s:config_dir = $HOME . '/.vim' | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Field; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Class that will convert a given object (of any kind) and iterate over its fields, converting them to a | |
* Map<String, String>. | |
* | |
* It offers different working modes ({@link MODE}), that can be passed to the "toMap" method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.* | |
class Node { | |
def links = [] | |
def timeOff | |
def timeOn | |
def id | |
def period |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
lines = [] | |
def fix_first_line(line): | |
is_jekyll_regex = re.compile("^---", re.IGNORECASE) | |
is_jekyll = re.search(is_jekyll_regex, line) | |
if is_jekyll: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION_NAME=1.0.0 | |
VERSION_CODE=1000 | |
GROUP=com.github.dexafree | |
POM_DESCRIPTION=La descripcion de mi proyecto | |
POM_URL=https://github.com/dexafree/miproyecto | |
POM_SCM_URL=https://github.com/dexafree/miproyecto | |
POM_SCM_CONNECTION=scm:git@github.com:dexafree/miproyecto.git | |
POM_SCM_DEV_CONNECTION=scm:git@github.com:dexafree/miproyecto.git | |
POM_LICENCE_NAME=The Apache Software License, Version 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GHOST_PATH=/var/ghost | |
### Make backup | |
tar cvzf ghostbackup.tar.gz $GHOST_PATH | |
### Download last ghost version | |
wget http://ghost.org/zip/ghost-latest.zip | |
### Remove core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name www.TUDOMINIO.com TUDOMINIO.com; | |
if ($host = 'localhost' ) { | |
rewrite ^/(.*)$ http://www.TUDOMINIO.com/$1 permanent; | |
} | |
location ~ ^/(ghost/signup/) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import urllib2 | |
from bs4 import BeautifulSoup | |
# Array de todas las lineas de FGC | |
linies = ['l6', 'l7', 's1', 's2', 's5', 's55', 's8', 's33', 's4', 's8', 'r5', 'r50', 'r6', 'r60'] | |
# Creamos el opener y le añadimos los headers | |
opener = urllib2.build_opener() | |
opener.addheaders = [('User-agent', 'Mozilla/5.0')] |