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>2D Horizontal Stars Oldskool Demo</title> | |
</head> | |
<body> | |
<canvas width="800" height="800" id="mainCanvas"> | |
</canvas> | |
<p><input type="Button" VALUE=" start " onClick="doTimer()"></p> | |
<p><input type="Button" VALUE=" stop " onclick="stopTimer()"></p> |
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> | |
</head> | |
<body> | |
<!-- 3*x A4 --> | |
<!-- 630 891 --> | |
<canvas id="topCanvas" width="737" height="100" style="border:1px solid #d3d3d3;" onmouseover="mouseOver(this)" onmousedown="handleMouseClick(event)" onmouseup="handleMouseRelease(event)"> | |
</canvas> |
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>Stars Oldskool Demo</title> | |
</head> | |
<body> | |
<canvas width="800" height="800" id="mainCanvas"> | |
</canvas> | |
<p><input type="Button" VALUE=" start " onClick="doTimer()"></p> | |
<p><input type="Button" VALUE=" stop " onclick="stopTimer()"></p> |
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.levo.odev; | |
/* | |
* En buyuk Fenerbahce! | |
*/ | |
public class MergeDemo { | |
public static void main(String[] args) { | |
int[] arr1 = { 1, 2, 6, 7, 18, 19 }; | |
int[] arr2 = { 3, 4, 5, 8, 9 }; |
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
entries = [3, 2 , 'a', 'b' , 2 , 'c', 'd', 3, 'e', 'f', 'g'] | |
numberOfEntries = entries[0] | |
i = 1; | |
elements = [] | |
elIndex = 0 | |
for index in range(numberOfEntries): | |
elements.append([]) |
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.levo; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
public class ExtDelegationPathExample { | |
public static void main(String[] args) { | |
// ClassLoaders up to BootStrap; | |
// AppClassLoader |
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 ProducerConsumer { | |
private static final int BUFFER_SIZE = 100; | |
private static final int PROCESS_SIZE = 1000000; | |
private static final int DIFF = 19; | |
private static Object lock = new Object(); | |
private static int[] buffer; | |
private static int count; |
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
// check struct for gcc pragma pop push; | |
// http://stackoverflow.com/questions/11129138/reading-writing-bmp-files-in-c | |
#include <stdio.h> | |
#include <stdint.h> // uint8_t, uint16_t | |
#include <stdlib.h> // malloc() | |
#include <string.h> | |
#define HALF 2 // HALF WORD 2 bytes | |
#define WORD 4 // WORD 4 bytes |
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
#include <stdio.h> | |
int closestMultipleOfFour(int num); | |
int main() | |
{ | |
for(int i = 0; i < 20; i++) | |
printf("%2d : %2d\n", i, closestMultipleOfFour(i)); | |
return 0; |
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
#include <string> | |
#include <vector> | |
#include <fstream> | |
using namespace std; | |
struct Journal | |
{ | |
string title; | |
vector<std::string> entries; |