Skip to content

Instantly share code, notes, and snippets.

@kuangzhang
kuangzhang / Reddit API URL Authentication Example
Last active December 18, 2017 19:29
Reddit API URL Authentication Example
using System;
public class Program
{
public static void Main()
{
string _clientId = "ghXCFiKzs_SxWX"; //ID under you reddit app name, you get after reddit app creation
string _state = new Guid().ToString(); //Unique ID
string _redirectUri = "http://localhost:8080"; //Filed in when applying for Reddit App
string _user_agent = "- with my web scrapper"; //some dummie description of your app
@kuangzhang
kuangzhang / Open IE
Created December 15, 2017 20:07
This Code Snippet Open Internet Explore
using System;
using SHDocVw;
public static class Helper
{
private static void OpenIE()
{
object o = new object();
// Can point to a local file as well C:\My File Path\MyFile.txt
string _Url = "www.Yahoo.com";