Skip to content

Instantly share code, notes, and snippets.

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'
// 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 " +
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'}
}
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
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()
@Echocage
Echocage / test.java
Last active February 22, 2018 20:54
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;
/**
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;
/**
@Echocage
Echocage / Indeed.py
Last active December 4, 2016 15:01
Indeed Data Scraping
import urllib
import urllib2
from prettytable import PrettyTable
import BeautifulSoup
def get_stats(url):
soup = BeautifulSoup.BeautifulSoup(urllib2.urlopen(url))
$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);