I hereby claim:
- I am nathiss on github.
- I am krusin (https://keybase.io/krusin) on keybase.
- I have a public key ASAJRaEdIsLINOcnqR7rzL6Egv88iHuO4Ck86R7QyrIfXQo
To claim this, I am signing this object:
# ============================================= | |
# =============== ALERT =============== | |
# ============================================= | |
# Do NOT run this script! | |
# It's like a document, it'll NOT work! | |
# 1. Install AsseticBundle via composer. | |
composer require symfony/assetic-bundle | |
# 2. Add AsseticBundle to AppKernel's bundles list: |
#!/usr/bin/env python3 | |
# coding: utf-8 | |
import argparse | |
import os | |
import subprocess | |
def append_copyright(info, des): | |
content = open(des, 'r').read() |
Co jest stoliną Niemiec? | |
Berlin | |
Bukareszt | |
Warszawa | |
Londyn | |
Który z kolorów nie jest we fladze Niemiec? | |
Różnowy | |
Czarny | |
Czerwony | |
Żółty |
#!/usr/bin/env python3 | |
import socket | |
class Socket(socket.socket): | |
def __init__(self, *args): | |
super().__init__(*args) | |
def recvuntil(self, txt): | |
result = b"" | |
while result.find(txt) == -1: |
#include "settings_bag.h" | |
std::shared_ptr<SettingsBag> SettingsBag::instance = nullptr; | |
SettingsBag::SettingsBag() { | |
} | |
std::shared_ptr<SettingsBag> SettingsBag::Instance() { | |
if(instance == nullptr) | |
instance.reset(new SettingsBag()); |
CXX=g++ | |
LD=g++ | |
CFLAGS= | |
LDFLAGS= | |
EXEC=out | |
SOURCES=$(wildcard *.cc) | |
OBJECTS=$(SOURCES:.cc=.o) | |
.PHONY: clean all run |
#ifndef _SAME_H | |
#define _SAME_H | |
template <bool C> | |
struct bool_type { | |
static constexpr bool value = C; | |
}; | |
using true_type = bool_type<true>; |
;******************************************************************************************************************* | |
; Snake Game By * | |
; HERO-DAI * | |
;******************************************************************************************************************* | |
;code is not well-commented, sorry about that, I'll try to comment it nice and well, but can't make any | |
;promises, Also, this code writes directly into the video memory instead of int 21H (21H is slow) except | |
;at some certain points (like displaying scores and the intro) | |
;and next time someone tells you to not use goto, ask them to code in assembly without goto... :P |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
void* alloc_mem(size_t size) { | |
void *ptr = mmap(0, size, PROT_READ | PROT_WRITE | PROT_EXEC, | |
MAP_PRIVATE | MAP_ANONYMOUS, -1 ,0); | |
if(ptr == MAP_FAILED) | |
return NULL; |
I hereby claim:
To claim this, I am signing this object: