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
<?php | |
$surname="Bamford"; | |
$servername = "104.154.228.66"; | |
$username = "student"; | |
$password = ""; | |
$dbname = "employees"; | |
// Create connection | |
$conn = new mysqli( $servername, $username, $password, $dbname ); |
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 crunchify.com.tutorial; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
/** | |
* @author Crunchify.com | |
*/ | |
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
Coffee coffee = new Coffee(); | |
if(coffee.isEmpty()){ //use lower camel case and accessor method to access attribute | |
coffee.refill(); //lower camel case for method name | |
}else{ //else is more often written with the braces next to it | |
coffee.drink(); //lower camel case for the method | |
} |
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
DROP DATABASE IF EXISTS ged; | |
CREATE DATABASE ged; | |
USE ged; | |
CREATE TABLE customers ( | |
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , | |
name VARCHAR(100) NOT NULL , | |
email VARCHAR(100) NOT NULL , | |
mobile VARCHAR(100) NOT NULL | |
); |
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 warmup; | |
import java.io.Console; | |
import java.util.Arrays; | |
import java.io.IOException; | |
public class Password { | |
public static String [] passwords = {"monday", "tuesday", "wednesday"}; | |
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
""" | |
Room | |
Rooms are simple containers that has no location of their own. | |
""" | |
import random | |
from evennia import DefaultRoom, TICKER_HANDLER | |
from evennia import utils | |
from characters import Character |
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
# # +------------------+ # | | # | sick bay | # | | # +---------+--------+ |
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
# +------------------+ | |
# | | | |
# | sick bay | | |
# | | | |
# +---------+--------+ | |
# | | |
# | | |
# | | |
# +--------------+ +----------+-----------+ +----------+ | |
# | | | | | | |
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
# +------------------+ | |
# | | | |
# | sick bay | | |
# | | | |
# +---------+--------+ | |
# | | |
# | | |
# | | |
# +--------------+ +----------+-----------+ +----------+ | |
# | | | | | | |
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
""" | |
Room | |
Rooms are simple containers that has no location of their own. | |
""" | |
import random | |
from evennia import DefaultRoom, TICKER_HANDLER |
NewerOlder