Skip to content

Instantly share code, notes, and snippets.

@walterrenner
walterrenner / gist:f8e8d6b06a1f0c79bea6
Created December 17, 2015 10:30 — forked from abrookins/gist:1933635
A Sublime Text 2 Django project file with a test runner build system
{
"folders":
[
{
"path": "django_project_dir"
},
{
"path": "lib/python2.7"
}
],
@walterrenner
walterrenner / rotation.html
Created February 8, 2013 15:46
Rotation Example
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<style type="text/css">
::selection {
background-color: #000;
color: #fff;
@walterrenner
walterrenner / animation.html
Created February 8, 2013 15:45
CSS3 Animation example
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Animation</title>
<style type="text/css">
.background {
width: 100%;
height: 350px;
position: absolute;
@walterrenner
walterrenner / html5structure.html
Created February 1, 2013 13:44
Basic HTML5 Page Structure
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
<header>
<nav>
<ul>
@walterrenner
walterrenner / pygui.py
Created February 1, 2013 10:14
Basic Python GUI
#!/usr/bin/env python
from Tkinter import *
import tkMessageBox
from datetime import datetime
pressed = 0
def helloCallBack():
@walterrenner
walterrenner / shake.html
Created January 29, 2013 14:32 — forked from sergejmueller/shake.html
CSS Animation using Keyframes
<!DOCTYPE html>
<html>
<head>
<style>
#box {
width: 400px;
height: 200px;
background: gray;
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@walterrenner
walterrenner / hide-url-bar.html
Last active December 10, 2015 08:18
Hide URL-Bar in mobile Safari
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Hide URL-Bar in mobile Safari</title>
</head>
<body>
<div id="wrapper" style="font-size:3em;">
foo:bar
@walterrenner
walterrenner / readme.md
Created October 14, 2015 12:55
Use project related mirgation modules

Keep your custom Migrations in your project

A proof of concept.

If you cant't/won't use the apps Migration files this workaround can be helpful for you.

We assume you have a clean Database without any Migrations applied and a Project named my_project that you are working on. Add the below snippet in your settings.py right after INSTALLED_APPS.

This tells django to use migration files from the module in my_project.migrations.<appname>.migrations.

@walterrenner
walterrenner / nested-kbd.html
Created December 7, 2012 08:38
Stylish kbd Element
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Stylish kbd Element</title>
<!-- CSS for nested kbd Elemnts -->
<style type="text/css">