Skip to content

Instantly share code, notes, and snippets.

View tehcpu's full-sized avatar
🤔

Alex Agafonov tehcpu

🤔
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Boomshine</title>
<style type="text/css">
#canvas {
border: 1px solid black;
position: absolute;
}
</style>
anonymous
anonymous / lab1.cpp
Created February 24, 2018 20:41
#define _CRT_SECURE_NO_WARNINGS
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <wincrypt.h>
#include <iostream>
#include <fstream>
#pragma comment(lib,"Crypt32.lib")
using namespace std;
/*
* Simple dom framework
*
* For extending C, use
* C.node.prototype.someFunc = function() { return 'Value: ' + this.value(); }
*/
(function (w, d) {
function event(node, action, cb) {
if (node.addEventListener) {