Skip to content

Instantly share code, notes, and snippets.

SOURCES=portscan.cpp header.h other_cpp.cpp
OUTPUT=portscan
CC=g++
CFLAGS=-g -Wall
$(OUTPUT): $(SOURCES)
$(CC) $(CFLAGS) $(SOURCES) -o $(OUTPUT)
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
console.log("pahse1");
$(document).ready(function(){
console.log("pahse2");
$("button").click(function(){
console.log("pahse3");
$.getJSON("test.json", function(data) {
// Set up the CPTableView correctly
self.table = [[CPTableView alloc] initWithFrame: CGRectMake(0, 0, 800, 200)];
[self.table setDataSource:self.model];
[self.table setDelegate:self];
aTableColumn = [[CPTableColumn alloc] initWithIdentifier: @"hostname"];
var dataView = [[CPTextField alloc] initWithFrame:CGRectMake(0, 0, 80, 20)];
var headerView = [[CPTextField alloc] initWithFrame:CGRectMake(0, 0, 80, 20)];
[aTableColumn setHeaderView:headerView];
[aTableColumn setDataView:dataView];