Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcelo de Aguiar marcelodeaguiar

View GitHub Profile
@marcelodeaguiar
marcelodeaguiar / RxPaginatedDatasource.swift
Last active Oct 11, 2019
A paginated datasource to be using with RxSwift and ViewModels
View RxPaginatedDatasource.swift
//
// RxPaginatedDatasource.swift
//
// Created by Marcelo de Aguiar on 11/10/19.
//
import Foundation
import RxSwift
import RxCocoa
@marcelodeaguiar
marcelodeaguiar / Channel9Downloader
Created May 28, 2014
Download channel9 video/audio feeds (proxy supported)
View Channel9Downloader
Function Get-ProxyWebClient {
$webclient = New-Object System.Net.WebClient
$proxy = New-Object System.Net.WebProxy($global:ProxyUrl, $global:ProxyPort)
$proxy.Credentials = (Get-Credential).GetNetworkCredential()
$webclient.Proxy = $proxy
return $webclient
}
Function Channel9Downloader( [string]$feed, [string]$destination ) {
# $feed = "http://channel9.msdn.com/Shows/Azure-Friday/feed/mp4high"
View Topological Sort Extension Methods
Option Strict On
Option Explicit On
Imports System.Runtime.CompilerServices
Module Module1
<Extension()>
Public Function TopologicalSort(Of TKey, TNode)(this As IEnumerable(Of TNode),
keySelector As Func(Of TNode, TKey),