Skip to content

Instantly share code, notes, and snippets.

@knatten
knatten / gist:8964604
Created February 12, 2014 21:12
Classic Trance Mix - Tracklist
0:00:00 Three Drives - Greece 2000
0:07:11 Energy 52 - Café del Mar
0:11:56 The Quest - C Sharp
0:17:22 Miss Thunderpussy - The Ride
0:21:21 Apoptygma Berzerk - Kathy's Song (Ferry Corsten Remix)
0:27:06 Binary Finary - 1998 Gouryella Remix
0:31:47 The Morrighan - Remember (To The Millennium) (Lange remix)
0:38:36 Kamaya Painters - Cryptomnesia (Original Mix)
0:43:58 Kamaya Painters - Endless Wave
0:47:28 Chakra - Love Shines Through
using System;
using System.Diagnostics;
using System.Threading;
namespace ConsoleApplication18
{
class Program
{
static void Main(string[] args)
{
StopWatch : 0,2 DateTime : 1,0 Diff : 0,81
StopWatch : 10000,5 DateTime : 10002,6 Diff : 2,04
StopWatch : 20000,5 DateTime : 20003,1 Diff : 2,61
StopWatch : 30000,5 DateTime : 30003,7 Diff : 3,18
StopWatch : 40000,4 DateTime : 40004,3 Diff : 3,91
StopWatch : 50000,3 DateTime : 50004,9 Diff : 4,52
StopWatch : 60000,4 DateTime : 60005,4 Diff : 5,00
StopWatch : 70000,2 DateTime : 70006,0 Diff : 5,78
StopWatch : 80000,2 DateTime : 80006,6 Diff : 6,36
StopWatch : 90000,2 DateTime : 90007,1 Diff : 6,98
#include <stdio.h>
void foo(signed int v)
{
printf("signed int: %x\n", v);
}
void foo(unsigned int v)
{
printf("unsigned int: %x\n", v);
@knatten
knatten / pushb
Created September 18, 2014 13:23
alias pushb="GIT_BRANCH_STACK=\"\$(git rev-parse --abbrev-ref HEAD);\"\$GIT_BRANCH_STACK && git checkout"
alias popb="git checkout \$(echo \$GIT_BRANCH_STACK | tr \";\" \"\n\" | head -1);GIT_BRANCH_STACK=\$(echo \$GIT_BRANCH_STACK|sed 's/[^;]*;//')"
@knatten
knatten / gist:9cb7264e2471e55c2372
Last active August 29, 2015 14:09
Tech talks 19 November
@knatten
knatten / gist:628b5d8e2773c0deb336
Last active August 29, 2015 14:25
Fuse (beta) release #0.5.3166

This release contains several new features and fixes to the libraries, as well as fixes to the tool:

Fuse Libraries

Features

Navigation Changes

  • ITitleNode, TitleChanged, and related title events have been removed. Instead the resource system should be used with a CurrentPageBinding:
@knatten
knatten / ideas-for-testing.md
Last active November 10, 2015 19:57
Ideas for testing

Integration

  • Automatically put fuselibs on a Fuse branch and run tests. These must be allowed to be red probably. Might need to take a concious choice about which branch to base the auto-branch on, or just take develop

Fuse

ckarmy [3:19 PM]
@bondehagen: @knatten: Push notifications work great now! But on IOS I receive all the time `2015-12-23 11:20:32.955 deem[755:264867] Received memory warning.`(edited)
​[3:19]
and the app crash sometimes
​[3:20]
In a Iphone 6 and Ipad 3!
@knatten
knatten / android-19.md
Last active January 20, 2016 13:06
Installing android-19 support in Fuse

If you're getting the message Unable to resolve project target 'android-19', you have to install android-19 manually. This currently affects all new installations of Fuse, and will be fixed shortly. (If you've previously installed Fuse and built for Android, you are not affected by this bug.)

To manually install android-19, first, find the location of the android command on your computer. To do this, please run fuse install -s android, and look for the folder called AndroidSDK/tools.

![Screenshot](http://az664292.vo.msecnd.net/files/gettLhUskHuR2uEe-Pasted image at 2016_01_20 13_58.png)

Then cd to that directory and run the following command:

android update sdk -s -u -a -t platform-tools,build-tools-23.0.2,android-19,android-21