This file contains 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
import traceback | |
import time | |
import sys | |
import praw | |
from Login import Login | |
r = praw.Reddit('Respond to banned from in nerdcubed' | |
'by /u/echocage for /u/tokyorockz') | |
username = 'Example Username' |
This file contains 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
// Java code for thread creation by extending | |
// the Thread class | |
class MultithreadingDemo extends Thread | |
{ | |
public void run() | |
{ | |
try | |
{ | |
// Displaying the thread that is running | |
System.out.println ("Thread " + |
This file contains 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
import random | |
relationships = {'Spock': {'Scissors': 'smashes', 'Rock': 'vaporizes'}, | |
'Scissors': {'Paper': 'cuts', 'Lizard': 'decapitates'}, | |
'Lizard': {'Paper': 'eats', 'Spock': 'poisons'}, | |
'Rock': {'Lizard': 'crushes', 'Scissors': 'crushes'}, | |
'Paper': {'Spock': 'disapproves', 'Rock': 'covers'} | |
} | |
This file contains 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
from urllib.request import urlretrieve | |
from time import sleep | |
import requests | |
from bs4 import BeautifulSoup as bs | |
def get_files(): | |
""" Gets files of specified extension through user input | |
from a specified full URL path; downloads each file to |
This file contains 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
while Username_entered != Username_stored: | |
Username_entered = input() | |
if Username_entered == Username_stored: | |
break | |
print ("\nERROR! You have entered the incorrect username. Please enter the correct username.") | |
PasswordLogIn() |
This file contains 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
package com.vencillio.rs2.content.dialogue.impl; | |
import com.vencillio.core.util.Utility; | |
import com.vencillio.rs2.content.dialogue.DialogueManager; | |
import com.vencillio.rs2.content.dialogue.Emotion; | |
import com.vencillio.rs2.entity.item.Item; | |
import com.vencillio.rs2.entity.player.Player; | |
import com.vencillio.rs2.entity.player.net.out.impl.SendMessage; | |
/** |
This file contains 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
package com.vencillio.rs2.content.dialogue.impl; | |
import com.vencillio.core.util.Utility; | |
import com.vencillio.rs2.content.dialogue.DialogueManager; | |
import com.vencillio.rs2.content.dialogue.Emotion; | |
import com.vencillio.rs2.entity.item.Item; | |
import com.vencillio.rs2.entity.player.Player; | |
import com.vencillio.rs2.entity.player.net.out.impl.SendMessage; | |
/** |
This file contains 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
import urllib | |
import urllib2 | |
from prettytable import PrettyTable | |
import BeautifulSoup | |
def get_stats(url): | |
soup = BeautifulSoup.BeautifulSoup(urllib2.urlopen(url)) |
This file contains 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
$text = "this is test sentence to see if this works"; | |
$source = "auto"; | |
$target = "pl"; | |
$regex = '/"([^+,+$]+)"/'; | |
$textEncode = urlencode($text); | |
$response = file_get_contents("http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=$target&dt=t&q=$textEncode"); | |
$response = preg_replace('/,+/', ',', $response); |
This file contains 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
asfd |
NewerOlder