[ Launch: test ] 5472464 by cx20
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
var c, gl; | |
var v = "attribute vec3 position; void main() { gl_Position = vec4(position, 1.0); }"; | |
var f = "precision mediump float; void main() { gl_FragColor = vec4(0.0, 0.0, 1.0, 1.0); }"; | |
function initWebGL() { | |
c = document.getElementById("c"); | |
gl = c.getContext("experimental-webgl"); | |
} | |
function initShaders() { |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
class Record | |
{ | |
public string Message; | |
public Record(string message) | |
{ | |
this.Message = message; |
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
import java.sql.*; | |
import oracle.sqlj.runtime.Oracle; | |
#sql iterator MessageIter ( String MESSAGE ); | |
class Hello { | |
public static void main( String[] args ) throws Exception { | |
Oracle.connect("jdbc:oracle:oci:@", "scott", "tiger"); | |
MessageIter iter; | |
#sql iter = { SELECT 'Hello, SQLJ World!' AS Message FROM DUAL }; |
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
import java.sql.*; | |
class Hello { | |
public static void main( String[] args ) throws Exception { | |
Class.forName ("oracle.jdbc.driver.OracleDriver"); | |
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl", "scott", "tiger"); | |
Statement stmt = conn.createStatement(); | |
ResultSet rs = stmt.executeQuery("SELECT 'Hello, JDBC Type4 World!' AS Message FROM DUAL"); | |
while ( rs.next() ) { | |
System.out.println( rs.getString(1) ); |
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
import java.sql.*; | |
class Hello { | |
public static void main( String[] args ) throws Exception { | |
Class.forName("oracle.jdbc.driver.OracleDriver"); | |
Connection conn = DriverManager.getConnection("jdbc:oracle:oci:@orcl", "scott", "tiger"); | |
Statement stmt = conn.createStatement(); | |
ResultSet rs = stmt.executeQuery("SELECT 'Hello, JDBC Type2 World!' AS Message FROM DUAL"); | |
while ( rs.next() ) { | |
System.out.println( rs.getString(1) ); |
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
import java.sql.*; | |
import sun.jdbc.odbc.*; | |
class Hello | |
{ | |
public static void main( String[] args ) throws Exception { | |
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); | |
Connection conn = DriverManager.getConnection("jdbc:odbc:HELLODSN", "scott", "tiger"); | |
Statement stmt = conn.createStatement(); | |
ResultSet rs = stmt.executeQuery("SELECT 'Hello, JDBC Type1 World!' AS Message FROM DUAL"); |
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
using System; | |
using Oracle.DataAccess.Client; | |
class Hello | |
{ | |
static void Main( String[] args ) | |
{ | |
string conStr = "Data Source=;" | |
+ "User Id=scott;" | |
+ "Password=tiger"; |
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
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim ses | |
Dim db | |
Dim rs | |
Set ses = CreateObject("OracleInProcServer.XOraSession") | |
Set db = ses.OpenDatabase( "", "scott/tiger", 0 ) |
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
#include <stdio.h> | |
EXEC SQL INCLUDE SQLCA; | |
int main( int argc, char* argv[] ) | |
{ | |
EXEC SQL BEGIN DECLARE SECTION; | |
char username[] = "scott"; | |
char password[] = "tiger"; | |
char message[32]; |
NewerOlder