Skip to content

Instantly share code, notes, and snippets.

View idcmardelplata's full-sized avatar

Martin Algañaraz idcmardelplata

View GitHub Profile
@idcmardelplata
idcmardelplata / base.html.twig
Created March 12, 2013 05:35
Estructura basica de una plantilla twig
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}<p>Contenido del archivo </p>{% endblock %}
@idcmardelplata
idcmardelplata / form_div_layout.html.twig
Created March 12, 2013 05:49 — forked from itavero/form_div_layout.html.twig
Twig: Capa paraun formulario.
{% extends 'Form/form_div_layout.html.twig' %}
{#
Extends from Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
Overrides the form_errors block so it no longer uses transchoice (which
was causing a problem).
#}
{% block form_errors %}
{% spaceless %}
@idcmardelplata
idcmardelplata / Django:apps:urls.py
Created March 27, 2013 05:01
Django: Archivo urls.py a nivel de aplicacion de django
from django.conf.urls import patterns, url
urlpatterns = patterns('{{PROJECT_NAME}}.apps.{{APP_NAME}}.views',
url(r'^$', "{{FUNCTION_NAME}}", name="{{TEMPLATE_NAME}}"),
)
@idcmardelplata
idcmardelplata / .tmux.conf
Created September 20, 2013 16:03
Mi configuracion de tmux.
#demas de Ctrl+B, agregamos un atajo de teclado tipo screen (Ctrl+A)
# Para tmux < 1.6:
#set-option -g prefix C-a,C-b
# Para tmux >= 1.6:
#set-option -g prefix C-a
#set-option -g prefix2 C-b
# Si quisieramos reemplazarlo totalmente:
# set-option -g prefix C-a
@idcmardelplata
idcmardelplata / .vimrc
Created September 20, 2013 18:07
Mi configuracion personal de VIM.
"vi-compatible (elimina la compatibilidad con el editor VI en el cual se basa,
"esto es necesario para que VIM soporte todos lo plugins y las mejoras propias
"del editor).
set nocompatible
" Setting up Vundle - the vim plugin bundler (Vundle es el sistema que utilizo
" para gestionar los plugins.)
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
@idcmardelplata
idcmardelplata / bourbon-installer.sh
Last active November 28, 2018 04:41
Este sencillo script crea una estructura de carpetas para trabajar con bourbon, neat y bitters.
#!/usr/bin/env bash
BASE_DIR=scss #Cambia el valor de $BASE_DIR para asignar otro directorio de salida.
MAIN_FILE=style.css.scss #Cambia el valor de $MAIN_FILE para renombrar el archivo scss principal.
mkdir $BASE_DIR
touch $BASE_DIR/$MAIN_FILE
cd $BASE_DIR
bitters install
snippet doc "html5 doctype" !b
doctype html
html(lang="es")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width")
title ${1:Titulo de la web.}
body
header
h1 $1
@idcmardelplata
idcmardelplata / gulpfile.js
Last active August 21, 2023 02:45
Una confguracion minima para trabajar con sass y jade y algunas extensiones de postcss usando gulp
/*
Gulpfile.js file for the tutorial:
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev
Steps:
1. Install gulp globally:
npm install --global gulp
2. Type the following after navigating in your project folder:
npm install gulp gulp-util gulp-sass gulp-uglify gulp-rename gulp-minify-css gulp-notify gulp-concat gulp-plumber browser-sync --save-dev
3. Move this file in your project folder
@idcmardelplata
idcmardelplata / Rutas.js
Created September 30, 2017 04:09
Un ejemplo de algunas rutas en hapi.js
server.route({
method: 'GET',
path: '/mi_path',
handler: function(request, reply) {
return reply("Hello World");
}
})
server.route({
method: 'POST',

Keybase proof

I hereby claim:

  • I am idcmardelplata on github.
  • I am idcmardelplata (https://keybase.io/idcmardelplata) on keybase.
  • I have a public key ASA5QoXqFlJ3ccCgPB3rhXUwiTGzbpwJDwpBSP0qg95e0Ao

To claim this, I am signing this object: