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
public void LoadData(Uri uri) | |
{ | |
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri); | |
request.BeginGetResponse(new AsyncCallback(ReadWebRequestCallback), request); | |
} | |
private void ReadWebRequestCallback(IAsyncResult callbackResult) | |
{ | |
try | |
{ |
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
// logoUpload is the name of the .net upload control. | |
string sSavePath = "/images/"; | |
if (logoUpload.PostedFile != null) | |
{ | |
HttpPostedFile myLogo = logoUpload.PostedFile; | |
//Check Length. | |
int nFileLen = myLogo.ContentLength; |
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
for num in range(1, 101): | |
if num % 3 == 0 and num % 5 == 0: | |
print('FizzBuzz'); | |
elif num % 3 == 0: | |
print('Fizz'); | |
elif num % 5 == 0: | |
print('Buzz'); | |
else: | |
print(num); |
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
reme = 'em esrever' | |
print(reme) | |
mere = '' | |
L = list(reme) | |
num = len(reme) - 1 | |
while num >= 0: | |
#print(reme[num]) | |
mere+=reme[num] | |
num-=1 | |
#print(reme[num]) |
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
''' | |
9GAG Viewer | |
Created by Taylor Brazelton | |
All Rights are Reserved to their respected owners. | |
I do not own any of the images viewed by this program and therefore take no responsibility. | |
''' | |
''' | |
Funny Picture Viewer / 9GAG Viewer |
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
var gameMaster = "Ryanb58"; | |
var listOfPlayers = ['Taylor','Ryanb58','Jack','John','Kyle']; | |
var playerNumber; | |
for(i=0; i<25; i++) | |
{ | |
//console.log("Current GM: " + gameMaster); | |
playerNumber = listOfPlayers.indexOf(gameMaster); | |
while(gameMaster == listOfPlayers[playerNumber]) |
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
private void getSearchQueryFromQueryString() | |
{ | |
try | |
{ | |
//String for row query. | |
StringBuilder sb = new StringBuilder(); | |
//Get all the information in the query strings. | |
NameValueCollection querystrings = Request.QueryString; | |
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
#To view the connected file system drives: | |
gdr -PSProvider 'FileSystem' |
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
#include <iostream> | |
#include <istream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
int main() { | |
string input; |
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
params_dict = { | |
'name':'New Rule', | |
'type': 'user', | |
}; | |
// URL Builder from DICT. | |
params = ""; | |
index = 0; | |
for (var key in params_dict) { | |
if (index == 0) { |
OlderNewer