This file contains hidden or 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
SOURCES=portscan.cpp header.h other_cpp.cpp | |
OUTPUT=portscan | |
CC=g++ | |
CFLAGS=-g -Wall | |
$(OUTPUT): $(SOURCES) | |
$(CC) $(CFLAGS) $(SOURCES) -o $(OUTPUT) |
This file contains hidden or 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
<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) { |
This file contains hidden or 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
// 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]; |