Skip to content

Instantly share code, notes, and snippets.

View stefanhoth's full-sized avatar
:shipit:
Shipping it

Stefan Hoth stefanhoth

:shipit:
Shipping it
View GitHub Profile
@stefanhoth
stefanhoth / server.js
Created December 22, 2011 15:51 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
var express = require('express');
var sys = require('sys');
var oauth = require('oauth');
var app = express.createServer();
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY";
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET";
function consumer() {
@stefanhoth
stefanhoth / gist:2029345
Created March 13, 2012 15:11
Dos & Don'ts for the perfect developer event

Dos & Don'ts for the perfect developer event

A crowdsourced list compiled by Stefan Hoth and the fine folks at the Droidcon Berlin Barcamp.

How would you describe yourself? (just tags)

  • (Android) developer
  • entrepreneur
  • event-dude/-girly
  • networker
@stefanhoth
stefanhoth / Log.js
Created June 20, 2012 08:13
A simple logging wrapper for your javascript
/**
* handler for grouping all custom in-app events into one funtion
*/
var Log = {
LEVEL_DEBUG: 100,
LEVEL_INFO: 90,
LEVEL_NORMAL: 50,
LEVEL_ERROR: 20,
LEVEL_OFF: 0,
@stefanhoth
stefanhoth / gist:3749213
Created September 19, 2012 11:38 — forked from gnunicorn/gist:3748738
Git for Beginners: Call for Coaches

The OpenTechSchool has set up and hosted a few tech workshops and meetups here in Berlin now. Aside from the monthly Beginners Meetup and hosting the Udacity Global Meetup we hosted workshops for program beginners in Python and Javascript on our own and on the premise of CampusParty.

One thing that was extraordinary popular on CampusParty was the Workshop on Git for beginners. And we decided to do it again, this time with a closer focus on version control as a major benefit in code sharing (by using git and github) for beginners - free of charge.

So if you are interested in

@stefanhoth
stefanhoth / gist:3749214
Created September 19, 2012 11:38 — forked from gnunicorn/gist:3748738
Git for Beginners: Call for Coaches

The OpenTechSchool has set up and hosted a few tech workshops and meetups here in Berlin now. Aside from the monthly Beginners Meetup and hosting the Udacity Global Meetup we hosted workshops for program beginners in Python and Javascript on our own and on the premise of CampusParty.

One thing that was extraordinary popular on CampusParty was the Workshop on Git for beginners. And we decided to do it again, this time with a closer focus on version control as a major benefit in code sharing (by using git and github) for beginners - free of charge.

So if you are interested in

@stefanhoth
stefanhoth / build.gradle
Created December 3, 2012 18:24
A buildfile for the Gradle build system for Android
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.2'
}
}
/*
* Mass Emailer Google Spreadsheet and Forms Script.
*
* Changelog:
*
* 30. Apr. 2013
* - add support for Form submit auto-replies
* 27. Apr. 2013
* - trial checkbox allows easier debugging
* 16. Feb. 2012
@stefanhoth
stefanhoth / Gruntfile.js
Created November 6, 2013 19:55
Grunt buildfile with angular: livereload, cssmin, jsmin all in one
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
js: {
src: [
'app/bower_components/angular/angular.js',
@stefanhoth
stefanhoth / check_http_echo_body.sh
Last active December 29, 2015 13:29
nagios check for parsing the body of the http response for a detailed message
#!/bin/bash
#check input parameters
if [ -z $1 ]; then
echo "Usage: $0 <url>"
exit 3
fi
#url to check
checkurl=$1
@stefanhoth
stefanhoth / android-libs.md
Last active April 18, 2020 05:02
GDG Android in Berlin brainstorming session Collection of libraries that should be included as of today in a modern Android app-

#GDG Android in Berlin brainstorming session


On November 27, 2013 I was asking the brilliant Android developers at GDG Android in Berlin for their favorite libraries that make their lives easier and should be included in every newly developed app.

This is the list of libraries we collected during this 10 minute session.

Architecture