Skip to content

Instantly share code, notes, and snippets.

View NoTimeForHero's full-sized avatar

NoTimeForHero

View GitHub Profile
@NoTimeForHero
NoTimeForHero / registry.cpp
Created December 6, 2014 02:15
BCC32 Registry Check
#include <iostream>
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <string.h>
#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383
bool isNeedMoreThenOne;
#include "stdafx.h"
#include <iostream>
#include <stdlib.h>
#include <time.h>
struct DataType {
int value;
};
struct Vector {
#!/bin/bash
DIR="/home/minecraft/mc-$1/"
SCR="mc-$1"
MAX_STOP=10
if [[ "$1" == "s1" ]] ; then
memory=12288
else
memory=8192
fi
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
var xColor = "black";
$(document).ready(function() {
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
@NoTimeForHero
NoTimeForHero / queue.js
Created March 4, 2012 23:14
My simple Queue app with adder and executer
Queue = function(){
this.stopped = false;
this.array = [];
}
Queue.prototype = {
add: function(fn) { this.array.push(fn) },
pause: function() { this.stopped = true },
go: function() { this.stopped = false; this.exec(); },
exec: function() {