This file contains 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
/* | |
@date Sun Apr 1 21:18:49 PHT 2012 | |
@author Ted Hagos | |
A simple sql statement that can be used to test out database routines. | |
NOTE: | |
1. The date is inserted using a function of MySQL STR_TO_DATE. It follows US Date format |
This file contains 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
/* | |
@Program name: FindGFC.java | |
Find the greatest common factor using Euclid's algorithm | |
*/ | |
class FindGCF { | |
public static void main(String[] args) { |
This file contains 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
import javax.swing.JFrame; | |
import javax.swing.JButton; | |
import java.awt.FlowLayout; | |
import javax.swing.*; | |
import java.awt.event.*; | |
class Gui1 extends JFrame implements ActionListener { | |
JLabel label = new JLabel("Your name: "); | |
JTextField tf = new JTextField(20); |
This file contains 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
var util = require('util') | |
var i = 1; | |
var j = 1; | |
for (i = 1 ; i < 10; i++) { | |
for (j =1 ; j < 10; j++) { | |
util.print(i * j + "\t"); |
This file contains 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
/* | |
Protocols behave like interfaces in Java. You don't inherit implementation | |
but its a way to ensure that certain classes/objects do implement the | |
enforced methods | |
*/ | |
#import <Foundation/Foundation.h> |
This file contains 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
/* | |
An exercise on how to create NSString objects from C style chars | |
*/ | |
#import <Foundation/Foundation.h> | |
#import <stdio.h> |
This file contains 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
/* | |
You do not need to write individual getter and setter methods for | |
members of the class. This can be accomplished using | |
@property and @synthesize. The @property directive is done on the | |
header source and synthesize on the implementation source | |
The method name convention is; |
This file contains 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
/* | |
Had trouble with [obj objname], it is not [obj getObjname], when | |
you are getting, simply call the instance member name, it is not | |
a string get/set pair with @property and @synthesize | |
Also, learn the following; | |
1. self | |
2. init |
This file contains 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
#import <Foundation/Foundation.h> | |
#import "Prop.h" | |
@implementation Prop | |
@synthesize one, two; | |
- (void) printem { | |
NSLog(@ "One is %i and Two is %i", one, two); | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="stylesheet.css" rel="stylesheet" type="text/css"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" | |
</script> | |
<script src="jquery.isotope.min.js"></script> | |
<script src="tlb.js"></script> | |
</head> | |
<body> |
OlderNewer