Skip to content

Instantly share code, notes, and snippets.

View jrgcubano's full-sized avatar

Jorge Rodríguez Galán jrgcubano

View GitHub Profile
alias open-my-project='cd "full/path/to/MySolutionFolder/" && start MySolution.sln /D .'
#example:
#alias open-mp='cd "C:/Users/max.nunes/Projects/myproject/" && start myproject.sln /D .'
@jrgcubano
jrgcubano / ryan.boxstarter
Created March 15, 2017 11:47 — forked from RyannosaurusRex/ryan.boxstarter
Ryan's Dev Boxstarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst fiddler4
cisnt nodejs.install
cinst git-credential-winstore
cinst console-devel
cinst filezilla
cinst poshgit
cinst skype
@jrgcubano
jrgcubano / build.cake
Created March 15, 2017 11:43 — forked from RyannosaurusRex/ build.cake
Cake build watcher task. It includes a Windows 10 toast notification when the build completes.
#addin "nuget:?package=Cake.Watch" // Put this at the top to pull in the Cake.Watch package for use.
// Add this task in your build file somewhere. You can update which target to run, the file pattern to watch, and even the toast notification.
Task("Watch")
.Does(() => {
var settings = new WatchSettings {
Recursive = true,
Path = "./",
Pattern = "*.*"
};
@jrgcubano
jrgcubano / build.cake.cs
Last active April 3, 2017 10:54 — forked from dcomartin/build.cake.cs
Octopus deploy with build.cake
#tool "nuget:?package=xunit.runner.console"
#tool "nuget:?package=OctopusTools"
var target = Argument("target", "Build");
Task("Default")
.IsDependentOn("xUnit")
.IsDependentOn("Pack")
.IsDependentOn("OctoPush")
.IsDependentOn("OctoRelease");
using System.Collections.Concurrent;
using System.Reflection;
using System.Threading;
using System.Xml.Linq;
public void RunSimultaneously(params Action[] actions)
{
if (actions.Length == 0) return;
@jrgcubano
jrgcubano / Get Files via FTP.ps1
Created February 21, 2017 10:29 — forked from darrenjrobinson/Get Files via FTP.ps1
Get Files via FTP and an Azure Function App
// Via https://blog.kloud.com.au/2017/02/13/an-azure-timer-function-app-to-retreive-files-via-ftp-and-remote-powershell/
# FTP Variables via Function Application Settings Variables
# Username and Password
$username = $env:FTPUsername
$pwd = $env:FTPPwd
$password = ConvertTo-SecureString $pwd -AsPlainText -Force
$credentials = new-object System.Management.Automation.PSCredential($username, $password)
# Output Directory
$target = $env:FTPTargetDirectory
@jrgcubano
jrgcubano / Example1.cs
Created February 20, 2017 14:32 — forked from davidfowl/Example1.cs
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
import * as _ from 'lodash';
import {TestScheduler, Observable, Notification} from 'rxjs/Rx.KitchenSink';
import {HotObservable} from 'rxjs/src/testing/HotObservable';
import {ColdObservable} from 'rxjs/src/testing/ColdObservable';
import {SubscriptionLog} from 'rxjs/src/testing/SubscriptionLog';
export type observableToBeFn = (marbles: string, values?: any, errorValue?: any) => void;
export type subscriptionLogsToBeFn = (marbles: string | string[]) => void;
export class ObservableTestsHelper {

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.
@jrgcubano
jrgcubano / PausableObservableTests
Created February 14, 2017 14:16 — forked from leeoades/PausableObservableTests
Unit Tests for Pausable Observable
namespace Stuff
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using Core.Extensions;
using Microsoft.Reactive.Testing;
using NUnit.Framework;