Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Bild MikeBild

View GitHub Profile
View .travis.yml
---
language: objective-c
before_script:
- ./scripts/travis/add-key.sh
after_script:
- ./scripts/travis/remove-key.sh
after_success:
- ./scripts/travis/testflight.sh
env:
global:
@MikeBild
MikeBild / mob_res
Last active Aug 29, 2015
Mobile Resolutions
View mob_res
Icons
Android
small (ldpi): 36 x 36
medium (mdpi): 48 x 48
large (hdpi): 72 x 72
xlarge (xhdpi): 96 x 96
xxlarge (xhdpi): 144 x 144
App-Store: 512 x 512
iOS
View gist:b980811301e1fe326f7d
eventsource
.fromStreams(['os'], 'statistics')
.run({
$init: function(state){
state.count = 0;
return state;
},
$completed: function(state){
return state;
},
@MikeBild
MikeBild / tryGetWithPromise.js
Last active Aug 29, 2015
AngularJS tryGet(url)
View tryGetWithPromise.js
<!doctype html>
<html data-ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Try Get</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0-beta.13/angular.min.js"></script>
</head>
<body data-ng-controller="demoCtrl">
<script>
@MikeBild
MikeBild / gist:031e88dd5af0d5c9f9b2
Created Jan 8, 2015
Mocha integration tests example
View gist:031e88dd5af0d5c9f9b2
'use strict';
var assert = require('assert'),
restify = require('restify');
var client = restify.createJsonClient({
version: '*',
rejectUnauthorized: false,
url: 'https://127.0.0.1:8080',
headers: {'x-auth-token':'66LOHAiB8Zeod1bAeLYW'}
View jquery.couch.longpoll.js
/*
# jquery.couch.longpoll.js #
A handler that can be used to listen to changes from a CouchDB database,
using long-polling.
This seemed to be a bit simpler than using continuous polling, which I
was unable to get working with jQuery.
View DisplayNameByResourceKeyAttribute.cs
public class DisplayNameByResourceKeyAttribute : DisplayNameAttribute
{
public DisplayNameByResourceKeyAttribute(string resourceKey)
{
DisplayNameValue = DisplayNameByResourceKey(resourceKey) ?? resourceKey;
}
private static string DisplayNameByResourceKey(string value)
{
return null;
View Rx_Observer_Observables.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program2
{
View Rx_FizzBuzz.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
View CodeKataPickAkin.cs
/*
http://ilker.de/code-kata-pickakin
akinList = [A1,B2,A2,A3,B3,A4,D1,D2,B1]
ceoList = [C1,E1,E2]
controlList = [F1]
*/
var ceoListOriginal = new List<string>() {"A1", "B1", "A2", "A3", "C1", "D1", "E1", "E2"};
You can’t perform that action at this time.