Skip to content

Instantly share code, notes, and snippets.

View marcelodeaguiar's full-sized avatar
🔨

Marcelo de Aguiar marcelodeaguiar

🔨
View GitHub Profile
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),
@marcelodeaguiar
marcelodeaguiar / Channel9Downloader
Created May 28, 2014 12:32
Download channel9 video/audio feeds (proxy supported)
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"
@marcelodeaguiar
marcelodeaguiar / RxPaginatedDatasource.swift
Last active October 11, 2019 16:20
A paginated datasource to be using with RxSwift and ViewModels
//
// RxPaginatedDatasource.swift
//
// Created by Marcelo de Aguiar on 11/10/19.
//
import Foundation
import RxSwift
import RxCocoa