Skip to content

Instantly share code, notes, and snippets.

Heiko Behrens HBehrens

Block or report user

Report or block HBehrens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@HBehrens
HBehrens / tslint.json
Created Aug 30, 2017
tslint from Intrinsic Gravelty's editor frontend
View tslint.json
{
"extends": ["tslint-react"],
"rules": {
"align": [
true,
"parameters",
"arguments",
"statements"
],
"ban": false,
View TicToc.js
// book keeping so that we can easily animate the two hands for the watchface
// .scale/.angle are updated by tween/event handler (see below)
var renderState = {
minute: {style: 'white', scale: 0.80, angle: 0},
hour: {style: 'red', scale: 0.51, angle: 0}
};
// helper function for the draw function (see below)
// extracted as a standalone function to satisfy common believe in efficient JS code
// TODO: verify that this has actually any effect on byte code level
@HBehrens
HBehrens / gist:bb4a52b1d8d57ba4b661
Created Jun 5, 2014
Install pbw with UIDocumentInteractionController
View gist:bb4a52b1d8d57ba4b661
- (void)deployToPebbleControl:(UIView *)control delegate:(id<UIDocumentInteractionControllerDelegate>)delegate {
NSString *baseName = @"peebhole-1_x";
#if !TARGET_IPHONE_SIMULATOR
PBFirmwareVersion *version = PEBAppDelegate.instance.watch.versionInfo.runningFirmwareMetadata.version;
if(version.os >= 2) {
baseName = @"peebhole-2_x";
}
@HBehrens
HBehrens / PebbleKit.podspec
Last active Aug 29, 2015
PebbleKit-Tests
View PebbleKit.podspec
Pod::Spec.new do |s|
s.name = "PebbleKit"
s.version = "2.1.1"
s.summary = "Embed PebbleKit iOS into your app to communicate with Pebble"
s.homepage = "http://developer.getpebble.com"
s.license = {
:type => 'Commercial',
:text => <<-LICENSE
© 2014 Pebble Technology Corp. All rights reserved.
LICENSE
@HBehrens
HBehrens / plugins.txt
Created Feb 10, 2014
UISprech WordPress Plugins
View plugins.txt
add-meta-tags
akismet
flattr
podlove-podcasting
shareadraft
w3-total-cache
admin-in-english
archivist
custom-permalinks
google-sitemap-generator
@HBehrens
HBehrens / fw2_rc_timercrash.c
Created Jan 30, 2014
minimal example to demo PebbleCam's crash on Pebble Firmware 2.0.RC
View fw2_rc_timercrash.c
#include <pebble.h>
/*
This is a minimal example to demo PebbleCam's crash on Pebble Firmware 2.0.RC
Even though the logs state an issue with cancel_timer, it's really an issue
with window_raw_click_subscribe on BUTTON_ID_UP and menu_layer_set_click_config_onto_window
on the sub window. Change any of those and the crash is gone.
View jsbin.inAxajE.css
tr {
height: 42px;
}
td {
width: 40px;
font-size: 32px;
border: 1px solid black;
text-align: center;
vertical-align: middle;
View jsbin.inAxajE.coffee
angular.module 'App', []
TicTacToeCntl = ($scope) ->
init = ->
@reset = =>
@board = (['','',''] for [1..3])
@nextMove = 'X'
@winner = ''
@grade()
View FileMD5Hash.podspec
Pod::Spec.new do |s|
s.name = 'FileMD5Hash'
s.version = '0.0.1'
s.license = 'Apache'
s.summary = 'Library for computing MD5 hashes of files with small memory usage.'
s.homepage = 'http://www.joel.lopes-da-silva.com/2010/09/07/compute-md5-or-sha-hash-of-large-file-efficiently-on-ios-and-mac-os-x/'
s.author = { 'Joel Lopes Da Silva' => 'joel@lopes-da-silva.com' }
s.source = { :git => 'https://github.com/HBehrens/FileMD5Hash.git', :commit => '23167b4413ccc1b554f3a88182f077042eba76c0' }
s.prefix_header_file = 'Common/FileMD5Hash_Prefix.pch'
@HBehrens
HBehrens / CocoaAsyncSocket.podspec
Last active Dec 19, 2015
CocoaHTTPServer.podspec
View CocoaAsyncSocket.podspec
Pod::Spec.new do |s|
s.name = 'CocoaAsyncSocket'
s.version = '7.3.1'
s.license = 'public domain'
s.summary = 'Asynchronous socket networking library for Mac and iOS'
s.homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
s.authors = 'Dustin Voss', { 'Robbie Hanson' => 'robbiehanson@deusty.com' }
s.source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git', :commit => '5cf7bac4d0bc18d257e989ea922fd2c4ca9255c4' }
You can’t perform that action at this time.