Skip to content

Instantly share code, notes, and snippets.

View juandav's full-sized avatar
🎯
Focusing

juandav juandav

🎯
Focusing
  • Mars
View GitHub Profile
@juandav
juandav / JSON with JS.md
Created May 7, 2017 23:16
Access local JSON data with Javascript

What

An updated guide/collection of guides on how to access JSON data with JavaScript

Original Question on Stack Exchange.


Example 1

For reading the external Local JSON file (data.json) using java script

@juandav
juandav / loginchaira.ps1
Created April 14, 2016 18:06 — forked from cdiaz/README.md
Automation script to login into Chairá Platform from PowerShell
Import-Module wasp # Windows Automation Snap-in for Powershell
$url = 'https://chaira.udla.edu.co/Chaira/Logon.aspx'
$username = $args[0]
$password = $args[1]
$ie = New-Object -COM InternetExplorer.Application -Property @{
Visible = $true
Navigate = $url
}
@juandav
juandav / server.cs
Created April 11, 2016 05:30
Simple tcp listener server using Rx
public class Server
{
readonly TcpListener _listener = new TcpListener(IPAddress.Any, 1234);
public void Start()
{
const string msg = "<h1>Hola, yo soy tu server</h1>";
byte[] responseMessage = Encoding.Default.GetBytes(msg.ToCharArray(), 0, msg.Length);
_listener.Start();
var observable = Observable.FromAsync<Socket>(async () => await _listener.AcceptSocketAsync())
.Repeat()
@juandav
juandav / introrx.md
Created November 18, 2015 03:24 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing