Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
{
"result": {
"code": 100,
"message": "Command Successful"
},
"domains": {
"testdomainl.com": {
"avail": true,
"tld": "com",
"price": "9.99",
@ghuntley
ghuntley / bloody-hell.cs
Last active August 29, 2015 14:13
JSON response - L7, L14, L23 aka domain names are heterogeneous resulting in difficulty parsing the resulting json from strongly typed languages.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Name
{
namespace Topshelf
[<AutoOpen>]
module Topshelf =
open System
open Topshelf.HostConfigurators
open Topshelf.Runtime
let configureTopShelf f =
namespace Topshelf
[<AutoOpen>]
module Topshelf =
open System
open Topshelf.HostConfigurators
open Topshelf.Runtime
let configureTopShelf f =
@ghuntley
ghuntley / # pkg info
Last active August 29, 2015 14:17
:%s/#\/usr\/local\/bin\/bash/#\/bin\/sh/g or bust. (CoreCLR on BSD!)
# pkg info
ImageMagick-6.9.0.10,1 Image processing tools
ORBit2-2.14.19_1 High-performance CORBA ORB with support for the C language
atk-2.14.0 GNOME accessibility toolkit (ATK)
bash-4.3.33 The GNU Project's Bourne Again SHell
bash-completion-2.1_5,1 Programmable completion library for Bash
ca_root_nss-3.17.4_1 Root certificate bundle from the Mozilla Project
cairo-1.12.18_1,2 Vector graphics library with cross-device output support
cmake-3.1.3 Cross-platform Makefile generator
cmake-modules-3.1.3 Modules and Templates for CMake
System.NotSupportedException: Unsupported expression type: 'AndAlso'
at at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00047>
at at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow (System.Exception) <IL 0x00006, 0x0003f>
at at System.Reactive.ExceptionHelpers.Throw (System.Exception) <IL 0x0000b, 0x00047>
at at System.Reactive.Stubs.<.cctor>b__1 (System.Exception) <IL 0x00001, 0x00027>
at at System.Reactive.AnonymousSafeObserver`1<object>.OnError (System.Exception) <0x0006d>
at at System.Reactive.Linq.ObservableImpl.Catch`2/_/Impl<object, System.Exception>.OnError (System.Exception) <0x00050>
at at System.Reactive.Linq.ObservableImpl.Defer`1/_<object>.Run () <0x000a0>
at at System.Reactive.Linq.ObservableImpl.Defer`1<object>.Run (System.IObserver`1<object>,System.IDisposable,System.Action`1<System.IDisposable>) <0x000a7>
at at System.Reactive.Producer`1<object>.SubscribeRaw (System.IObserver`1<object>,bool) <0x004d7>
  1. General Background and Overview
Basically, UIPasteBoard allows us to share data to other application. Below is an example of UIpasteBoard usage.
COPY
UIPasteboard *appPasteBoard = [UIPasteboard generalPasteboard];
appPasteBoard.persistent = YES;
[appPasteBoard setString:@"STRING TO COPY"];
PASTE
@ghuntley
ghuntley / introrx.md
Last active August 29, 2015 14:21 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert