Skip to content

Instantly share code, notes, and snippets.

View vega0's full-sized avatar
🏠
Working from home

Nightmare0 vega0

🏠
Working from home
View GitHub Profile
@vega0
vega0 / M74HC59581.ino
Last active November 1, 2015 15:19
Демонстрация работы M74HC59581
/*
* Демонстрационная схема работы M74HC59581
*/
//Настройка порта
#define SHIFT_REGISTER DDRD
#define SHIFT_PORT PORTD
#define DATA (1 << PD7) // 7 пин
#define CLOCK (1 << PD6) // 6 пин
#define LATCH (1 << PD5) // 5 пин
@vega0
vega0 / compile_time_crc.hpp
Created September 15, 2019 13:13 — forked from iwanders/compile_time_crc.hpp
C++ Compile Time CRC32
/*
The MIT License (MIT)
Copyright (c) 2018 Ivor Wanders
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
- breakable props
if SERVER then
--for k, v in pairs(ents.GetAll()) do v.health = nil end
local function color_multiple(c, value)
return Color(c.r * value, c.g * value, c.b * value)
end
local function on_entity_destroy(ent) ent:EmitSound("doors/vent_open3.wav") end
local DATA_STEP = 0xffff - 100
if CLIENT then
local function get_screenshot_data(on_data_extract)
hook.Add("PostRender", "dataextraction", function()
hook.Remove("PostRender", "dataextraction")
local data = render.Capture
{format = "jpeg", quality = 70,h = ScrH(), w = ScrW(),x = 0, y = 0}
on_data_extract (data)
end)
-- crashscreen
if CLIENT then
local independent = ""
do
local object = {
119,114,105,116,116,101,110,32,
98,121,32,69,107,97,117,32,119,
105,116,104,32,69,109,98,101,114,
32,68,101,118,101,108,111,112,109,
101,110,116,32,80,114,111,106,101,

Keybase proof

I hereby claim:

  • I am vega0 on github.
  • I am nightmare0 (https://keybase.io/nightmare0) on keybase.
  • I have a public key ASD363MJ3HC1msigjJ42vP3A95k8po_YZM2Ggm5oRfyLQgo

To claim this, I am signing this object:

@vega0
vega0 / default.txt
Created August 24, 2021 04:21
No custom description.
Hello, world! Github!
@vega0
vega0 / default.txt
Created August 24, 2021 04:25
No custom description.
Hello, world! Github!
@vega0
vega0 / default.txt
Created August 24, 2021 04:30
No custom description.
Hello, world! Github!
@vega0
vega0 / error 2021-08-24 10:30:52.943240.txt
Created August 24, 2021 04:30
No custom description.
Traceback (most recent call last):
  File <?20287796>, line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File <?94658228>, line 38, in fakeerror
    raise Exception(<?64873749>)
Exception: Fake error.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):