#include <stdio.h>
#include <stdint.h>
uint8_t values[100];
int main(int argc, char **argv)
{
for(int i = 0; i < 100; i++)
{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ??? */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
// two arguments required one string input and one the number of '?' to be added | |
if(argc != 3) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lox; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import static lox.TokenType.*; | |
public class Scanner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import operator | |
INTEGER, PLUS, MINUS, EOF, WHITESPACE = 'INTEGER', 'PLUS', 'MINUS', 'EOF', 'WHITESPACE' | |
class Token(object): | |
def __init__(self, type, value): | |
self.type = type | |
self.value = value | |
def __str__(self): | |
return 'Token({type}, {value})'.format(type=self.type, value=repr(self.value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
main.py | |
Author: Robert (Duality) | |
Git: https://github.com/Duality4y | |
notes: | |
this is an implementation of the strange attractor in python. | |
using pygame to draw it. | |
details can be found here: | |
https://en.wikipedia.org/wiki/Lorenz_system |