This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> | |
Restart your PC, if you are on windows 7, 8, 8.1 | |
</title> | |
</head> | |
<body> | |
<a href='https://coderbuddy.wordpress.com/2017/05/26/mft-bug-in-windows-7-others/'>Click to read more about this</a> | |
<img src='C:\$MFT\Test.png' /> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int myArray = new int[10]; | |
for (int i = 0; i < myArray.Length; i++) | |
{ | |
myArray[i] = i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DataType[] Array_Name=new string[Array_Length]; | |
int[] myArray=new int[10]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int myArray = new int[0]; | |
for (int i = 0; i < 10; i++) | |
{ | |
Array.Resize(ref myArray, myArray.Length+1); | |
myArray[myArray.Length - 1] = i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace Coderbuddy | |
{ | |
public class ExtractEmail | |
{ | |
public List<string> ExtractEmails(string textToScrape) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace Coderbuddy | |
{ | |
public class FileNameFromURL | |
{ | |
public string ConvertToWindowsFileName(string urlText) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
namespace Coderbuddy | |
{ | |
public class CheckInternetConnection | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The following code is a straight copy from jamiedigi.com | |
HashTable jsonHash = (Hashtable)JSON.JsonDecode(jsonCode); | |
ArrayList jsonResults = (ArrayList)jsonHash["results"]; | |
foreach (object objResult in jsonResults) | |
{ | |
Hashtable jsonResult = (Hashtable)objResult; | |
System.Diagnostics.Debug.WriteLine("User ID: " | |
+ jsonResult["from_user_id"].ToString()); | |
System.Diagnostics.Debug.WriteLine("Tweet text: " | |
+ jsonResult["text"].ToString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Replace the term search_keyword with a term you want to search | |
//rpp=100 in the url means results per page is 100, and lang=en means | |
//Language is english | |
string result = oauth.oAuthWebRequest(oAuthTwitter.Method.GET, "http://search.twitter.com/search.json", "q=" + search_keyword + "&rpp=100&lang=en"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oAuthTwitter oauth = new oAuthTwitter(); | |
//Replace the vlues with the one's provided by twitter | |
oauth.ConsumerKey = "Your-twitter-oauth-consumerkey"; | |
oauth.ConsumerSecret = "Your-twitter-oauth-consumersecret"; | |
//Launches your default browser for requesting //authentication | |
System.Diagnostics.Process.Start(oauth.AuthorizationLinkGet()); | |
//Copy the pin provided after you authenticating and save to a string | |
//I am assuming you store it in a string twitterpin | |
//Now the real authentication takes place | |
//you will exchange the authtoken and pin for Access token |
NewerOlder