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
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 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
// 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 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
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 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
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 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
$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 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
asfd |
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
function timeLookup($name) | |
{ | |
global $file; | |
$ptfile = fopen($file, 'r'); | |
while ($line = fgets($ptfile)) { | |
$line = trim($line); | |
$arr = str_getcsv($line); | |
if ($arr[0] == $name) { | |
echo $arr[1]; | |
return; |
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
function recordStart($name) | |
{ | |
global $startTimes; | |
$startTimes[$name] = time(); | |
} | |
function recordStop($name) | |
{ | |
global $startTimes, $file; | |
$stopTime = time(); |
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
$regex = "/\"([^.+,.+$]+)\"/"; | |
$textEncode = urlencode("Hello world"); | |
$file = file_get_contents("https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=es&dt=t&q=$textEncode"); | |
echo " $file\n"; | |
$file = preg_match($regex, $file, $matches); | |
echo "matches: $matches[0]"; |
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
abc |
NewerOlder