Skip to content

Instantly share code, notes, and snippets.

STD_OUTPUT_HANDLE EQU -11
NULL EQU 0
GLOBAL GobleyGook
EXTERN ExitProcess, GetLastError, GetStdHandle, WriteConsoleA, WriteConsoleOutputA, FormatMessageA
SECTION .data
msg DB "Hello World!", 13, 10, "M", 0
msg.len EQU $ - msg
@Chen-Michael
Chen-Michael / Food.java
Last active August 29, 2015 14:22
Interview questions-Microwave
public class Food {
private String name = "";
private boolean shell = false;
private boolean skin = false;
public Food(String name) {
super();
setName(name);
}
@Chen-Michael
Chen-Michael / client.php
Last active August 29, 2015 14:18
PHP Template Method
<?php
include_once("department_operating.php");
class DepartmentModel{
private $mId = "";
private $mName = "";
public function __construct($id, $name){
$this->$mId = $id;
$this->$mName = $name;
<?php
class DbAccountFactory{
/**
* __construct
* Ban New The Class
*
* @access Private
* @author Michael-Chen
* @version 1.0