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
class FrameTime { | |
constructor() { | |
this.parent = document.body; | |
this.lastTime = performance.now(); | |
this.lastFrameTime = 0.0; | |
this.frameCounter = 0; | |
this.accumulatedTime = 0.0; | |
this.framesPerSecond = 0.0; | |
this.container = document.createElement('div'); | |
this.container.style.position = 'fixed'; |
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
struct LinkedList | |
{ | |
struct Node | |
{ | |
Node* next; | |
int value; | |
}; | |
LinkedList(std::initializer_list<int> list) | |
{ |
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 <vector> | |
#include <stack> | |
int partition(std::vector<int>& input, int left, int right) | |
{ | |
if (left < right) | |
{ | |
int pivotValue = input[right]; | |
// This represent the current position of the pivot | |
int pivotIndex = left; |
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
/*.sln | |
*.suo | |
*.opensdf | |
*.sdf | |
/Engine/DerivedDataCache/* | |
**/DerivedDataCache/Boot.ddc | |
**/DerivedDataCache/**/*.udd | |
*/Intermediate/* | |
*/Saved/* | |
/Engine/Programs/UnrealBuildTool/* |
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
@echo off | |
setlocal enabledelayedexpansion | |
for %%f in (*.zip.*) do ( | |
set "filename=%%f" | |
if /i not "!filename:~-4!"==".zip" ( | |
echo Renaming !filename! to !filename!.zip | |
ren "!filename!" "!filename!.zip" | |
) else ( | |
set "restoredFilename=!filename:~0,-4!" |
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
; 6502 STACK BASED CALCULATOR. | |
; THE FIRST ARGUMENT MUST BE | |
; THE ID FOR THE OPERATION. | |
; 1 = ADDITION | 2 = SUBTRACTION | |
; 3 = MULTIPLICATION | 4 = DIVITION | |
; THE RETURN VALUE OF THE OPERATIONS | |
; IS STORED IN THE TOP OF THE STACK. | |
; | |
; *** NOTE: THIS IS NOT A FAST IMPLEMENTATION *** | |
JMP MAIN |
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 os | |
import re | |
exp = re.compile("\.zip\.\d+") | |
for file_name in os.listdir("./"): | |
if exp.search(file_name): | |
if not file_name.endswith(".zip"): | |
print("Renaming " + file_name + " to " + file_name + ".zip") | |
os.rename(file_name, file_name + ".zip") | |
else: |
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
void socket_run(void*) | |
{ | |
//addrinfo hints; | |
//addrinfo* result = NULL; | |
//addrinfo* pointer = NULL; | |
uint32 success = 0; | |
SOCKET listen_socket = INVALID_SOCKET; | |
SOCKET client_socket = INVALID_SOCKET; | |
WSADATA wsa_data; |
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>LOADING...</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
window.onload = function () { |
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
isdmg | |
offbankgroup | |
puball | |
title group $00 | |
org $0040 | |
reti | |
org $0048 | |
reti | |
org $0050 | |
reti |
NewerOlder