Skip to content

Instantly share code, notes, and snippets.

View GedMullen's full-sized avatar

Ged Mullen GedMullen

View GitHub Profile
<?php
$surname="Bamford";
$servername = "104.154.228.66";
$username = "student";
$password = "";
$dbname = "employees";
// Create connection
$conn = new mysqli( $servername, $username, $password, $dbname );
package crunchify.com.tutorial;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* @author Crunchify.com
*/
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
}
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
);
package warmup;
import java.io.Console;
import java.util.Arrays;
import java.io.IOException;
public class Password {
public static String [] passwords = {"monday", "tuesday", "wednesday"};
"""
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
# # +------------------+ # | | # | sick bay | # | | # +---------+--------+
# +------------------+
# | |
# | sick bay |
# | |
# +---------+--------+
# |
# |
# |
# +--------------+ +----------+-----------+ +----------+
# | | | | | |
# +------------------+
# | |
# | sick bay |
# | |
# +---------+--------+
# |
# |
# |
# +--------------+ +----------+-----------+ +----------+
# | | | | | |
"""
Room
Rooms are simple containers that has no location of their own.
"""
import random
from evennia import DefaultRoom, TICKER_HANDLER