Skip to content

Instantly share code, notes, and snippets.

View holgersindbaek's full-sized avatar

Holger Sindbaek holgersindbaek

View GitHub Profile
{
"products": [
{
"title": "SENNEPFARVEDE CHINOS, VAN GILS",
"brand": "VAN GILS",
"price": "799,00 DKK",
"description": "Cool Mustard Chinos fra Van Gils. En kombination med disse fløjls chinos kan gøre selv det mest hverdagsagtige Outfit spændende. Normal pasform. Wear it always with pride and a smile. Farve: Sennepfarvet Kvalitet: Yderstof: 97% Bomuld 3% Elastan Foer: 65% Polyester 35% Bomuld",
"pictures":[
"http://marthoni.dk/images/van-gils-bukser-og-leggings-sennepfarvede-chinos-van-gils-CLYFLAND.jpg",
"http://marthoni.dk/files/product_images/11264/van-gils-bukser-og-leggings-sennepfarvede-chinos-van-gils-CLYFLAND-1.jpg",
@holgersindbaek
holgersindbaek / Rakefile
Created May 21, 2014 15:29
Rakefile for failing Game Center application
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/osx'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
@holgersindbaek
holgersindbaek / console dump
Created May 21, 2014 16:15
Console dump of rake config
➜ 2048_Free git:(master) ✗ rake config
================================================================================
A new version of RubyMotion is available. Run `sudo motion update' to upgrade.
================================================================================
bubble-wrap/camera requires iOS to use.
bubble-wrap/ui requires iOS to use.
build_dir : "./build"
category : "utilities"
codesign_certificate : "Mac Developer: holger sindbæk (553BRGV25S)"
@holgersindbaek
holgersindbaek / head
Created May 31, 2014 12:23
weird head
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="IE=9" http-equiv="x-ua-compatible">
<meta content="695275890">
<meta content="http://www.hif.se/imgs/hif_emblem.png">
<title>HELSINGBORGS IF - www.hif.se</title><!--[if IE 8]>
<link href="css/ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="css/formatStylesheet.css" media="all" rel="stylesheet" type=
"text/css">
/* Start General Class */
body {
color: #909090;
}
body.boxed-layout .page {
background-color: #ffffff;
}
a {
color: #909090;
}
var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;</div>").click(function() {
var html = $(this).parent().html();
html = cleanSource(html);
$("#source-modal pre").text(html);
$("#source-modal").modal();
});
$('[data-toggle="popover"]').popover();
$('[data-toggle="tooltip"]').tooltip();
@holgersindbaek
holgersindbaek / detail_content_layout.rb
Created February 11, 2015 02:54
detail_content_layout.rb
class DetailContentLayout < MK::Layout
############################################################
# SETUP
############################################################
view :note_container
############################################################
# LAYOUT
############################################################
def layout
# JUST OPENED APP
2015-09-25 17:45:43.063 Slang[98266:4977467] encoded dictionary : {"ios_bundle_id":"slangthis.com.slang","app_version":"2.9.1","device_fingerprint_id":"173128319233998551","update":1,"os":"iOS","identity_id":"168772811500819926","sdk":"ios0.11.4","debug":1,"retryNumber":0,"branch_key":"key_live_cfbzWD2omMl7BPYCYjdTahmhqAjxAiHA","is_referrable":1,"os_version":"9.0","ad_tracking_enabled":1,"uri_scheme":"slang"}
2015-09-25 17:45:43.064 Slang[98266:4977467] [BNCServerInterface.m:180] using url = https://api.branch.io/v1/open
2015-09-25 17:45:43.064 Slang[98266:4977467] [BNCServerInterface.m:181] body = {
"ad_tracking_enabled" = 1;
"app_version" = "2.9.1";
"branch_key" = "key_live_cfbzWD2omMl7BPYCYjdTahmhqAjxAiHA";
debug = 1;
"device_fingerprint_id" = 173128319233998551;
2015-09-27 13:07:13.790 Slang[27163:5555099] [Branch Warning] You are using your test app's Branch Key. Remember to change it to live Branch Key for deployment.
2015-09-27 13:07:13.793 Slang[27163:5555099] encoded dictionary : {"model":"x86_64","ios_bundle_id":"slangthis.com.slang","app_version":"2.9.1","brand":"Apple","hardware_id":"62818EBD-469E-4DBC-8776-F6DDD250A398","update":2,"os":"iOS","sdk":"ios0.11.4","screen_height":1334,"debug":1,"is_hardware_id_real":1,"retryNumber":0,"branch_key":"key_test_dclCZB0klQo6CL8sZpdRdmmmEspBvgIn","is_referrable":1,"os_version":"9.0","ad_tracking_enabled":1,"screen_width":750,"uri_scheme":"slang"}
2015-09-27 13:07:13.793 Slang[27163:5555099] [BNCServerInterface.m:180] using url = https://api.branch.io/v1/install
2015-09-27 13:07:13.793 Slang[27163:5555099] [BNCServerInterface.m:181] body = {
"ad_tracking_enabled" = 1;
"app_version" = "2.9.1";
"branch_key" = "key_test_dclCZB0klQo6CL8sZpdRdmmmEspBvgIn";
brand = Apple;
debug = 1;
"hardware_id" = "628
2015-10-14 13:03:32.981 Slang[58990:3388123] -[__NSCFString absoluteString]: unrecognized selector sent to instance 0x11c501da0
2015-10-14 13:03:33.047 Slang[58990:3388123] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString absoluteString]: unrecognized selector sent to instance 0x11c501da0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107259f65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010210cdeb objc_exception_throw + 48
2 CoreFoundation 0x000000010726258d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001071aff7a ___forwarding___ + 970
4 CoreFoundation 0x00000001071afb28 _CF_forwarding_prep_0 + 120
5 Slang 0x000000010000800d -[AffirmItem toJSONDictionary] + 493