collecting links and documents about the topic
Object Systems (2004, as used in Thief 1998) http://chrishecker.com/images/6/6f/ObjSys.ppt
package com.abstractobserver | |
import com.google.common.base.Stopwatch; | |
import sun.misc.Unsafe; | |
import java.lang.reflect.Field; | |
import java.util.Random; | |
import java.util.concurrent.TimeUnit; | |
/** |
#include <stdio.h> | |
#include <stdbool.h> | |
struct coro { | |
void *state; | |
}; | |
struct range_coro { | |
struct coro base; | |
int cur, max, step; |
collecting links and documents about the topic
Object Systems (2004, as used in Thief 1998) http://chrishecker.com/images/6/6f/ObjSys.ppt
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
# Coding: utf-8 | |
# Python 3.5 | |
# OpenCV 3.1.0 | |
# | |
# Developed by Luana Coppio | |
# | |
__author__ = "Luana Scoppio" | |
__version__ = "1.0" | |
__date__ = "26 july 2016" |
from random import randint | |
class Character: | |
def __init__(self): | |
self.name = "" | |
self.health = 1 | |
self.health_max = 1 | |
def do_damage(self, enemy): | |
damage = min(max(randint(0, self.health) - randint(0, enemy.health), 0), enemy.health) |
def save_Log( e): | |
with open("logFile.log", "a") as logFile: | |
timestamp = time.strftime("%d/%m/%y %H:%M:%S", time.localtime()) | |
logFile.write( timestamp + " " +str(e) + "\n") | |
def findFirstMatch(region: str='br', | |
api_key: str='api_key.json', | |
verbosity: bool=False, | |
year: int=2016, | |
month: int=1, |