Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Bastian Hoyer bastianh

🏠
Working from home
View GitHub Profile
View keybase.md

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:

View tasks.py
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):
View evesde.sql
# 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 Aug 6, 2019
Keybase proof
View keybase.md

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:

View ColorExtension.swift
//
// 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) {
View bootstrap
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
View gist:6264253
[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
View gist:6019180
{"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 Dec 14, 2015
fixed podspec google analytics after todays cocoapod update
View GoogleAnalytics-iOS-SDK.podspec
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.
View ressources cleanup
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 {} \;