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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="en"> | |
<head> | |
<title>Login</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function CheckPassword() | |
{ | |
var username=document.login.username.value; |
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
input[type=search] | |
{ | |
padding: 3px; | |
font-family: monospace; | |
border: 1px solid black; | |
border-radius: 10px; | |
width: 80%; | |
margin-left: 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
var d = new Date(); | |
d.getHours(); | |
d.getMinutes(); | |
d.getSeconds(); | |
d.getDay(); |
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
//Assumed this was a console app | |
readAString() | |
{ | |
Console.WriteLine("Type in a word and BE AMAZED!"); | |
string input = Console.ReadLine; | |
Console.WriteLine(Convert.ToString(countVowels(input)) + " vowels. Now you know!"); | |
Console.ReadKey(); | |
//Not sure how isVowel fits in here but you get the idea | |
} |
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
//Maybe use Bitmap | |
private static Image[] frameArray; | |
public static Image active_frame; | |
public static int active_frame_number; | |
public sprite(Image[] frame_array) | |
{ | |
frameArray = frame_array; | |
active_frame_number = 0 | |
active_frame = frameArray[active_frame_number]; |
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> | |
<title>codewread</title> | |
<script src="codemirror-4.10/lib/codemirror.js"></script> | |
<link rel="stylesheet" href="codemirror-4.10/lib/codemirror.css"> | |
<script src="codemirror-4.10/mode/javascript/javascript.js"></script> | |
<style> | |
#comment | |
{ |
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
package com.bitbit.minild59.codes.main; | |
import java.awt.image.BufferedImage; | |
import java.io.IOException; | |
import java.net.URL; | |
import javax.imageio.ImageIO; | |
public class LoadSprites | |
{ |
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 static int[][] rooms = new int[100][100]; | |
public static void generate() | |
{ | |
Random rndgen = new Random(); | |
for(int i = 0; i <= 99; i++) | |
{ | |
for(int j = 0; j <= 99; j++) |
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 static bool detectCollision(Rectangle rect1, Rectangle rect2) | |
{ | |
if (rect1.X < (rect2.X + rect2.Width) && | |
(rect1.X + rect1.Width) > rect2.X && | |
rect1.Y < (rect2.Y + rect2.Height) && | |
(rect1.Height + rect1.Y) > rect2.Y) | |
return true; | |
else | |
return false; | |
} |
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
//ray_engine rs | |
//requires sdl2 crate | |
extern crate sdl2; | |
use sdl2::pixels::Color; | |
use sdl2::event::Event; | |
use sdl2::keyboard::Keycode; | |
use sdl2::rect::Point; | |
use sdl2::rect::Rect; |
OlderNewer