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 msg = "Values: "; | |
var rd = 0;//values you want to change | |
var grn = 0; | |
var blu = 0; | |
var col = 1;//represents red, green or blue 1,2,3 | |
var dir = 5; | |
var colArr = []; | |
var colObj = {r:255,g:255,b:255}; | |
var gridSize = 16; | |
var x = 10; |
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 java.util.*; | |
public class Cryptogram | |
{ | |
public static void main (String[] args) | |
{ | |
char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray(); | |
String[] al=new String[26];//you can use this array for finding the location of character in the alphabet | |
for(int i=0; i < alphabet.length; i++){// this sets each letter of alphabet into string array al[] |
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
<html> | |
<head> | |
<title>Count Down</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" | |
integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> | |
</head> | |
<body> | |
<!-- Table for displaying countdown info --> |
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
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" | |
integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> |
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
<table class="table table-bordered table-responsive-sm" id="calendar"> | |
<thead> | |
<tr> | |
<th>Sun</th> | |
<th>Mon</th> | |
<th>Tue</th> | |
<th>Wed</th> | |
<th>Thu</th> | |
<th>Fri</th> | |
<th>Sat</th> |
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
public class MergeSortClass | |
{ | |
// instance variables - replace the example below with your own | |
public MergeSortClass() | |
{ | |
int[] actual = { 5, 8, 1, 6, 7, 2, 3, 4 }; | |
// end result { 1, 2, 3, 4, 5, 6,7,8 }; | |
// for (int i = 0; i < actual.length; i++) |
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
public class SSearch { | |
String[] namesArray; | |
public SSearch(){ | |
String names = "Micheal Ray Richardson,Derek Smith,Calvin Natt,Kareem Abdul-Jabbar,Larry Bird,Darrell Griffith,Sleepy Floyd,Mark Aguirre,Magic Johnson,Dominique Wilkins,Tom McMillen,Michael Jordan,World B. Free,Isiah Thomas,Terry Cummings,Orlando Woolridge,Jack Sikma,Bernard King,Moses Malone,Alex English,Larry Nance,Herb Williams,Charles Barkley,Adrian Dantley,Sidney Moncrief,Clyde Drexler,Alvin Robertson,Jeff Ruland,Patrick Ewing,Buck Williams,Julius Erving,Larry Smith,Karl Malone,Fat Lever,Otis Thorpe,Tom Chambers,Hot Rod Williams,Robert Parish,Harold Pressley,Bobby Hansen,Roy Tarpley,John Stockton,Byron Scott,Xavier McDaniel,Kevin Johnson,Chuck Person,Hakeem Olajuwon,Ron Harper,Chris Mullin,Dale Ellis,Michael Adams,David Robinson,Rony Seikaly,Tim Hardaway,Terry Teagle,Vern Fleming,Scott Skiles,Mitch Richmond,Kenny Smith,Dennis Scott,Gerald Wilkins,Reggie Miller,Lionel Simmons,Ricky Pierce,Reggie Lewis,Mookie Blaylock,Mark Jack |
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.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; | |
import java.awt.event.MouseEvent; | |
import java.awt.Color; |
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
float r = 200; | |
float r2= 200; | |
float xx1 = 640; | |
float xx2 = 640; | |
float yy = 360; | |
boolean grow = false; | |
//Change this to triangles | |
//triangle(30, 75, 58, 20, 86, 75); | |
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
int side2 = 200; | |
int x2 = 250; | |
int y2 = 300; | |
int fact = 2; | |
void setup(){ | |
size(500,600); | |
frameRate(5); | |
drawRect(200, width/2, height/2); | |
} |