Skip to content

Instantly share code, notes, and snippets.

View rswilley's full-sized avatar
🏠
Working from home

Robert Swilley rswilley

🏠
Working from home
View GitHub Profile
@rswilley
rswilley / HttpGetRequestSync.cs
Created October 24, 2017 14:20 — forked from dantheman213/HttpGetRequestSync.cs
C# HTTP GET request synchronous example
using System.Net.Http;
using (var client = new HttpClient())
{
var url = "http://google.com/api-example";
var response = client.GetAsync(url).Result;
if (response.IsSuccessStatusCode)
{
// by calling .Result you are performing a synchronous call
@rswilley
rswilley / jobs.js
Created October 12, 2017 15:47 — forked from maximilianschmitt/jobs.js
Automated MySQL backups to S3 with node.js
'use strict';
var mysqlBackup = require('./mysql-backup');
var schedule = require('node-schedule');
schedule.scheduleJob({ hour: 22, minute: 0 }, mysqlBackup);
@rswilley
rswilley / Debug-Knockout-JS.html
Created September 29, 2017 13:43 — forked from maxcnunes/Debug-Knockout-JS.html
Simple way to debug viewmodel data bind with knockout
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre>