Skip to content

Instantly share code, notes, and snippets.

@dtb49
dtb49 / WebBrowser.java
Created July 6, 2017 19:26
A very simple and crude web browser written in Java
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.IDN;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
@dtb49
dtb49 / ReadMe.Txt
Last active July 5, 2017 19:59
A simple Text Editor
A simple Text Editor in Java. The app will run as is. However, You will see in the code that there are icons in the code. In order to make these visible you will need to create a src folder. I called it Icons in my project. Once you do that the project will be fully functional.
@dtb49
dtb49 / Stock.cshtml
Created July 5, 2017 14:40
This is a simple stock program that makes calls from both the Yahoo and Google Finance APIs. Originally it was only using the Yahoo API but, since Verizon bought them out they have changed their API. I modified it so that it retrieves the chart from Google Finance.
<!--Beginning of the script-->
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script language="JavaScript">
function start(){
getData();
document.getElementById('link1').click();
}
function getData() {
var url = "http://query.yahooapis.com/v1/public/yql";
@dtb49
dtb49 / AudioManager.cs
Last active December 1, 2016 15:31
3D endless scroller game
using UnityEngine;
using System.Collections;
public class AudioManager : MonoBehaviour {
AudioSource randAudio;
public AudioSource[] audios;
public AudioSource dying;
//AudioSource errorAudio;
@dtb49
dtb49 / MainActivity.java
Last active December 1, 2016 15:31
Random Projects
package com.example.ungdoodle;
//doodler
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.*;
import android.content.Context;
import android.view.View.OnTouchListener;
import android.graphics.*;
@dtb49
dtb49 / MainActivity.java
Created November 29, 2016 16:25
Guessing Game
package com.guessinggamedtb;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
public class MainActivity extends Activity {
@Override
@dtb49
dtb49 / DotSmasherCanvas.java
Created November 29, 2016 16:23
DotSmasher
package com.dotsmasherdtb;
import java.util.Random;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.graphics.*;
@dtb49
dtb49 / edit_user1.php
Created November 29, 2016 16:21
Website-secure sign in, sign up, view users, edit users, logout
<?php
require ('../mysqli_connect.php');
$q1 = "SELECT last_name, first_name FROM users WHERE user_id=$id LIMIT 1";
$r1 = @mysqli_query ($dbc, $q1);
$row1 = mysqli_fetch_array ($r1, MYSQLI_NUM);
$page_title = "$row1[0], $row1[1]";
//include ('includes/header.html');