Skip to content

Instantly share code, notes, and snippets.

View bastianh's full-sized avatar

Bastian Hoyer bastianh

  • Hamburg, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bastianh on github.
  • I am bhoyer (https://keybase.io/bhoyer) on keybase.
  • I have a public key whose fingerprint is E74D 5100 66C6 AECB 3058 D1F7 15A4 F5B7 D7B6 C073

To claim this, I am signing this object:

from celery import Celery
from celery.loaders.base import BaseLoader
from raven import Client
from raven.contrib.celery import register_signal
from webapp import settings
from webapp.app import create_app
class CeleryLoader(BaseLoader):
def __init__(self, app, **kwargs):
# slots
SELECT
"attributeName" AS name,
coalesce(attrib."valueFloat", attrib."valueInt") AS value
FROM evesde."dgmTypeAttributes" AS attrib
INNER JOIN evesde."invTypes" AS type
ON attrib."typeID" = type."typeID"
INNER JOIN evesde."dgmAttributeTypes" AS attribtypes
ON attrib."attributeID" = attribtypes."attributeID"
@bastianh
bastianh / keybase.md
Last active August 6, 2019 10:04
Keybase proof

Keybase proof

I hereby claim:

  • I am bastianh on github.
  • I am bastianh (https://keybase.io/bastianh) on keybase.
  • I have a public key whose fingerprint is 9F8D 7507 D9B6 4D34 EA51 8618 FAD3 81A3 E74D 80EE

To claim this, I am signing this object:

//
// ColorExtension.swift
//
// Created by Bastian Hoyer on 07.06.14.
// Copyright (c) 2014 Bastian Hoyer. All rights reserved.
//
import UIKit
func int2rgb(rgbValue: CUnsignedInt) -> (CGFloat, CGFloat, CGFloat) {
echo I am provisioning...
if [ -e "/etc/vagrant_provisioned_at" ]
then
echo Already provisioned!
exit 0
fi
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main >> /etc/apt/sources.list
[Megathron, incursion]
Damage Control II
1600mm Reinforced Steel Plates II
Energized Adaptive Nano Membrane II
Energized Adaptive Nano Membrane II
Magnetic Field Stabilizer II
Magnetic Field Stabilizer II
Magnetic Field Stabilizer II
True Sansha Energized Explosive Membrane
{"version":1000,"timestamp":1374053933,"languages":{"de-DE":{"language":"de-DE","name":"German – DE","native":"Deutsch","default":true}}}
@bastianh
bastianh / GoogleAnalytics-iOS-SDK.podspec
Last active December 14, 2015 01:19
fixed podspec google analytics after todays cocoapod update
Pod::Spec.new do |s|
s.name = "GoogleAnalytics-iOS-SDK"
s.version = "2.0beta4"
s.summary = "GoogleAnalytics for iOS SDK."
s.description = <<-DESC
The Google Analytics SDK for iOS makes it easy for native iOS developers to collect user engagement data form their applications. Developers can then use the Google Analytics reports to measure:
* The number of active users are using their applications.
* From where in the world the application is being used.
* Adoption and usage of specific features.
echo "Working on Ressources"
RESSOURCES="${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/Ressources"
find $RESSOURCES -name "_Assets" -exec rm -rf {} +
find $RESSOURCES -name "*.plist" -exec plutil -convert binary1 {} \;