Skip to content

Instantly share code, notes, and snippets.

@jindeveloper
jindeveloper / nodejs_installer.ps1
Created January 10, 2021 16:11 — forked from nweldev/nodejs_installer.ps1
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@jindeveloper
jindeveloper / planet.json
Created June 13, 2020 12:59 — forked from IDdesigner/planet.json
JSON of the planets
[
{
"planet": "Mercury",
"moons": 0,
"diameter": 4879,
"distanceFromSun": 57.9
},
{
"planet": "Venus",
"moons": 0,
@jindeveloper
jindeveloper / unittestconsole.cs
Created November 10, 2019 15:24 — forked from asierba/unittestconsole.cs
How to mock console in unit tests
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("What's your name?");
var name = Console.ReadLine();
Console.WriteLine(string.Format("Hello {0}!!", name));
}
[Test]
@jindeveloper
jindeveloper / SimpleHttpClient.cs
Created June 9, 2019 13:09 — forked from bryanbarnard/SimpleHttpClient.cs
Simple C# .NET 4.5 HTTPClient Request Using Basic Auth and Proxy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net;
namespace HTTP_Test