Skip to content

Instantly share code, notes, and snippets.

View victoraguilarc's full-sized avatar
🧭
Working

Victor Aguilar C. victoraguilarc

🧭
Working
View GitHub Profile
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
http_path = "/"
css_dir = "css"
sass_dir = "lib"
images_dir = "img"
javascripts_dir = "js"
output_style = :expanded #or :nested or :compact or :compressed
@victoraguilarc
victoraguilarc / Makefile
Last active December 21, 2015 02:59
Makefile para crear un proyecto Backbone HP5
# Autor: Victor Aguilar - @jvacx
#--------------------------------------------------------------------------------
#These targets are not files
.PHONY: requirements
requirements:
git clone https://github.com/h5bp/html5-boilerplate.git
mv -f html5-boilerplate/* .
mkdir -p js css font img lib js/vendor
@victoraguilarc
victoraguilarc / .gitconfig
Last active December 23, 2015 07:59
My git configuration file
[user]
email = jvacx.log@gmail.com
name = Victor Aguilar Cusicanqui
[core]
editor = nano
autocrlf = input
[alias]
ci = commit
# Make sure the system settings for input are used to
$include /etc/inputrc
# Autocomplete on the first hit of the tab key
set show-all-if-ambiguous on
# Do not alert when autocomplete
set bell-style none
# Readline will display completions with matches sorted horizontally in alphabetical order

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@victoraguilarc
victoraguilarc / PrependedIconText.py
Created November 16, 2013 08:24
A icon prepended Field widget for crispy_forms, use mode: self.helper.layout = Layout( PrependedIconText('field_name', placeholder="Username", icon_class="fa fa-user"), )
# -*- encoding: utf-8 -*-
from crispy_forms.layout import Field
from crispy_forms.utils import TEMPLATE_PACK
class PrependedIconText(Field):
template = "fields/prepend_text_with_icon.html"
icon_class = "fa fa-user"
def __init__(self, *args, **kwargs):
{
"ignored_packages":
[
"Vintage"
],
"rulers": [80],
"translate_tabs_to_spaces": true,
"word_wrap": true,
"highlight_line": true,
"save_on_focus_lost": true
@victoraguilarc
victoraguilarc / jvacx.com
Created February 20, 2014 23:35
Django + nginx Configuration
server {
listen 80;
server_name www.jvacx.com jvacx.com;
charset utf-8;
access_log /home/victor/Proyectos/jvacx.com/var/log/access.log;
error_log /home/victor/Proyectos/jvacx.com/var/log/error.log;
# pass root to django
location / {
include uwsgi_params;
@victoraguilarc
victoraguilarc / default.conf
Created March 3, 2014 08:45
Dinamic nginx vhost
server {
index index.php;
set $basepath "/var/www";
set $domain $host;
# check one name domain for simple application
if ($domain ~ "^(.[^.]*)\.dev$") {
set $domain $1;
set $rootpath "${domain}";