Skip to content

Instantly share code, notes, and snippets.

View philippbosch's full-sized avatar

Philipp Bosch philippbosch

View GitHub Profile
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=default-width; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap Notifications</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="jqtouch/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="jqtouch/jqtouch.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js"></script>
//
// UIControls.m
// PhoneGap
//
// Created by Michael Nachbaur on 13/04/09.
// Copyright 2009 Decaf Ninja Software. All rights reserved.
//
#import "UIControls.h"
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: Helvetica;
}
#elem {
@-webkit-keyframes my-animation {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@philippbosch
philippbosch / test.css
Created July 13, 2010 13:51
Bugfix für Christopher
#go {
position:absolute;
top:160px;
left:150px;
-webkit-transform: scale(1);
}
#go.scale{
-webkit-transform: scale(0);
}
// GRAY
$gray: #4e4d49;
$gray-70: mix($gray, #FFF, 70%);
$gray-50: mix($gray, #FFF, 50%);
$gray-20: mix($gray, #FFF, 20%);
$gray-light: #a6a499;
$gray-light-70: mix($gray-light, #FFF, 70%);
$gray-light-50: mix($gray-light, #FFF, 50%);
$gray-light-20: mix($gray-light, #FFF, 20%);
#!/bin/bash
# Usage: ./backup.sh [project [project] ...]
#
# You need to create a config file ~/.pbbackup which needs to look like this:
# AWS_ACCESS_KEY_ID=your_amazon_webservice_access_key
# AWS_SECRET_ACCESS_KEY=your_amazon_webservice_secret_access_key
# PASSPHRASE=the_passphrase_that_should_be_used_for_gpg_encryption
# BUCKET_NAME=the_name_of_the_s3_bucket_to_be_used
from tastypie import fields
from tastypie.authentication import Authentication
from tastypie.authorization import Authorization
from tastypie.bundle import Bundle
from tastypie.exceptions import NotFound
from tastypie.resources import Resource
# a dummy class representing a row of data
class Row(object):
@philippbosch
philippbosch / mauer-innen.kml
Created May 23, 2011 11:44
Mauerverlauf (innen)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>
@philippbosch
philippbosch / mauer-aussen.kml
Created May 23, 2011 11:44
Mauerverlauf (außen)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>