Skip to content

Instantly share code, notes, and snippets.

Rect = {area = 0, length = 0, breadth = 0}
function Rect:new (o,length,breadth)
o = o or {}
setmetatable(o, self)
self.__index = self
self.length = length or 0
self.breadth = breadth or 0
self.area = length*breadth;
return o
my second line
my first line
my third line
01111111.00000000.00000000.00000001
CREATE TABLE STATION
(ID INTEGER PRIMARY KEY,
CITY CHAR(20),
STATE CHAR(2),
LAT_N REAL,
LONG_W REAL);
INSERT INTO STATION VALUES (13, 'Phoenix', 'AZ', 33, 112);
INSERT INTO STATION VALUES (44, 'Denver', 'CO', 40, 105);
INSERT INTO STATION VALUES (66, 'Caribou', 'ME', 47, 68);
Hello
class SampleComponent extends React.Component
{
render(){
return <h1>Welcome Text!</h1>;
}
}
"\"It is better to fail in originality \n than to succeed in imitation.\" \n — Herman Melville"
var dropdown =<Dropdown> A dropdown list <Menu> <MenuItem>DoSomething</MenuItem> <MenuItem>Do Something Fun!</MenuItem> <MenuItem>Do Something Else </MenuItem> </Menu></Dropdown>;render(dropdown);
<!DOCTYPE html>
<html>
<body>
<h1>Largest Companies by Market Cap</h1>
<ul>
<li>Apple: $2.81 Trillion</li>
<li>Microsoft: $2.28 Trillion</li>
<li>Saudi Aramco: $1.954 Trillion</li>
<li>Alphabet: $1.845 Trillion</li>
<li>Amazon: $1.635 Trillion</li>
<?xml version="1.0" encoding="UTF-8"?>
<description
xmlns="http://www.w3.org/ns/wsdl"
xmlns:tns="http://www.tmsws.com/wsdl20sample"
xmlns:whttp="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsoap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.tmsws.com/wsdl20sample">
<service name = "Hello_Service">
<documentation>WSDL File for Hello Word</documentation>
<port binding = "tns:Hello_Binding" name = "Hello_Port">
<soap:address