Skip to content

Instantly share code, notes, and snippets.

View nbuss848's full-sized avatar
🎯
Focusing

Neil nbuss848

🎯
Focusing
View GitHub Profile
@nbuss848
nbuss848 / ImageScrape.cs
Created April 30, 2019 03:33
This C# snippet demonstrates how you can potentially scrape images and then save them locally
public static string Path = @"C:\Users\USERNAME\Pictures\Wallpapers\";
public static string Download()
{
string randomImageLink = String.Empty;
string url = "https://alpha.wallhaven.cc/search?q=nature&categories=111&purity=100&resolutions=1920x1080&sorting=random&order=desc";
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
request.CookieContainer = new CookieContainer();
@nbuss848
nbuss848 / ChatApp.cs
Last active May 19, 2018 21:43
SignalR Simple Chat
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
namespace SignalR
{
[HubName("chatApp")]
public void ParseReportName(string reportName)
{
string Result = String.Empty;
// Example: '$My Report Name : week ending $d-1'
// $d-1 = get todays date and subtract one and format it into MM/dd/yyyy
if(reportName.Contains("$"))
{
string formula = String.Empty;
string type = String.Empty; // d = date is the only supported type atm

Keybase proof

I hereby claim:

  • I am nbuss848 on github.
  • I am nbusse (https://keybase.io/nbusse) on keybase.
  • I have a public key whose fingerprint is 4EAA D7C2 4BDE F074 F373 B201 C316 0AFD 07B8 DCBD

To claim this, I am signing this object: