Skip to content

Instantly share code, notes, and snippets.

@Scarygami
Scarygami / autoawesome-tour.py
Last active December 28, 2015 04:09
Turn your Google+ albums into interactive tours. See [https://googledrive.com/host/0B1pwzJXH7GP8U0M1Ny1mRm5TT0E/] for a live result
#!/usr/bin/python
#
# Copyright 2013 Gerwin Sturm, FoldedSoft e.U.
# www.foldedsoft.at / google.com/+GerwinSturm
#
# 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
@falkorichter
falkorichter / mvnProfileHockeyAppAndroidPrune
Last active December 15, 2015 17:09
Prune old builds from your HockeyApp profile
<profile>
<id>hockeyPrune</id>
<properties>
<project.property.hockey.mode>true</project.property.hockey.mode>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
@falkorichter
falkorichter / mvnProfileHockeyAppAndroidUpload
Created April 2, 2013 17:54
upload your apk directly from your pom
<profile>
<id>hockeyAppUpload</id>
<properties>
<project.property.hockey.mode>true</project.property.hockey.mode>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
DENSITIES= {
'-mdpi' => 1.0,
'-ldpi' => 0.75,
'-hdpi' => 1.5,
'-xhdpi' => 2.0,
}
def run_cmd(cmd)
puts cmd
system cmd
@romannurik
romannurik / CheatSheet.java
Last active May 16, 2023 13:42
Android helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is already default platform behavior for icon-only action bar items and tabs. This class provides this behavior for any other such UI element.
/*
* Copyright 2012 Google Inc.
*
* 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
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@DAddYE
DAddYE / hack.sh
Created March 19, 2012 11:31
OSX For Hackers
#!/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: