Skip to content

Instantly share code, notes, and snippets.

View vickoman's full-sized avatar
🏠
Working from home

Victor Manuel vickoman

🏠
Working from home
View GitHub Profile
@vickoman
vickoman / css.less
Created November 20, 2014 18:57
Legend Of Zelda CSS3 Animation
@green:#339a00;
@brown:#cd6600;
@peach:#ffcd66;
@dimension:15px;
.link{
-webkit-animation: swing 0.6s linear infinite;
-moz-animation: swing 0.6s linear infinite;
animation: swing 0.6s linear infinite;
@vickoman
vickoman / index.html
Created November 19, 2014 20:47
Marios and luigi CSS3
<div class="mario">
<div class="hat-head"></div>
<div class="hat-logo"></div>
<div class="hat-brim"></div>
<div class="ear left"></div>
<div class="ear right"></div>
<div class="head">
<div class="eyebrow left"></div>
@vickoman
vickoman / estilo.css
Created November 19, 2014 20:47
Marios and luigi CSS3
%center{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
body{
height: 100%;
width: 100%;
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login Sistema</title>
</head>
<body>
<h1>Formulario de Login</h1>
<form action="." method="POST">
{% csrf_token %}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home que requiere Login</title>
</head>
<body>
<h1>Hola {% if user.is_authenticated %}{{ user.username }} <a href="{% url 'url_logout'%}">Salir</a>{% endif %}</h1>
</body>
</html>
from django.conf.urls import patterns, include, url
from tutorial1.apps.main import views
urlpatterns = patterns('tutorial1.apps.main.views',
url(r'^$', 'app_home', name="url_home"),
url(r'^usuario/login/$', 'app_login', name="url_login"),
url(r'^usuario/logout/$', 'app_logout', name="url_logout"),
)
@vickoman
vickoman / 0_reuse_code.js
Created April 14, 2014 01:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{% load staticfiles %}
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>{% block title %}Mi App con Django 1.6{% endblock title %}</title>
</head>
<body>
{% block body %}
from django.conf.urls import patterns, include, url
#Importamos los settings
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('misitio.apps.main.urls')),