Skip to content

Instantly share code, notes, and snippets.

@walterrenner
walterrenner / sublime2_shortcuts_mac.md
Last active August 29, 2015 14:01 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts (Mac OS X)

h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

h2. General

| ⌘T | go to file | | ⌘⌃P | go to project | | ⌘R | go to methods | | ⌃G | go to line | | ⌘KB | toggle side bar | | ⌘⇧P | command prompt |

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@walterrenner
walterrenner / hack.sh
Created October 25, 2013 10:52 — forked from DAddYE/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@walterrenner
walterrenner / hack.sh
Created October 25, 2013 10:52 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@walterrenner
walterrenner / rest.php
Created June 20, 2013 18:58
php oxid rest
<?php
require_once dirname(__FILE__) . "/bootstrap.php";
//Shop starten
$url_requestPRODUCT = 'http://student.mi.hs-offenburg.de:8080/sqlrest/PRODUCT';
$responsePRODUCT = file_get_contents($url_requestPRODUCT);
$xmldatPRODUCT = simplexml_load_string($responsePRODUCT);
@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():