This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (C) 2009 Johan Nilsson <http://markupartist.com> | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # whodunnit | |
| # Parses the result of svn blame and displays a report of how many rows and | |
| # percent each username has contributed with. | |
| # | |
| # created by johan.nilsson a bwin dot org and hans.nilsson a bwin dot org | |
| # | |
| if [ "$1" = "-h" ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Time time = new Time(); | |
| time.setToNow(); | |
| Uri routesUri = Uri.parse( | |
| String.format("journeyplanner://routes?start_point=%s&end_point=%s&time=%s", | |
| "Telefonplan", "TCE", time.format2445())); | |
| Intent routesIntent = new Intent(Intent.ACTION_VIEW, routesUri); | |
| startActivity(routesIntent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="iso-8859-1"?> | |
| <!-- Save it as a file named jms.sheet in .dia/sheets --> | |
| <sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns"> | |
| <name>Jms</name> | |
| <description>A collection of sample shapes.</description> | |
| <contents> | |
| <object name="Queue"> | |
| <description>The most minimal of shapes</description> | |
| </object> | |
| </contents> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.markupartist.sthlmtraveling.graphics; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.Point; | |
| import android.graphics.Paint.Style; | |
| import android.graphics.drawable.Drawable; | |
| import android.location.Location; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.utils.functional import curry | |
| import Image | |
| import os | |
| class ThumbnailMixIn(object): | |
| """ | |
| Example mixin for creating and removing thumbnails on a model. Also adds some methods for accessing an url for an image size. It might be a better idea to use a custom image field instead of this approach. | |
| Idea for getting the image url for different sizes from http://code.google.com/p/django-photologue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1='\[\e]0;\w\a\]\[\e[32m\]\u@\h:\[\e[33m\]\w\[\e[0m\]\$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name RemoveClickableBackgroundOnVoddler | |
| // @namespace voddler | |
| // @include http://www.voddler.*/* | |
| // ==/UserScript== | |
| (function () { | |
| var ad_background = document.getElementById("ad_background"); | |
| ad_background.setAttribute("id", "no_ad_background"); | |
| ad_background.style.cursor = ""; | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar); | |
| actionBar.setHomeAction(new IntentAction(this, HomeActivity.createIntent(this), R.drawable.ic_title_home_default)); | |
| actionBar.addAction(new IntentAction(this, createShareIntent(), R.drawable.ic_title_share_default)); | |
| actionBar.addAction(new ExportAction()); |