This file contains 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
%option noyywrap | |
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
%} | |
%% | |
int nums[100],i=0; | |
[\-0-9]*|[0-9]* { | |
i++; |
This file contains 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
program matrix; | |
uses | |
graph, | |
SysUtils; | |
const | |
colnum = 15; | |
var | |
GrDriver, GrMode, GrError: smallint; |
This file contains 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 pygame, math | |
pygame.init() | |
windowsSurfaceObj = pygame.display.set_mode((750,300)) | |
fpsClock = pygame.time.Clock() | |
whiteColor = (255,255,255) | |
greenColor = (0,255,0) | |
blackColor = (0,0,0) |
This file contains 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 pygame | |
import numpy as np | |
# change these values | |
points = 10000 | |
circles = 30.0 | |
radius = 200.0 | |
resolution = np.array([1000, 500]) |
This file contains 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 pygame | |
import numpy as np | |
# change these values | |
points_temp = 1000 | |
radius1 = 100 | |
radius2 = 100 | |
angular_speed_1 = 0.01 | |
angular_speed_2 = 0.0002 |
This file contains 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 pygame | |
import numpy as np | |
# change these values | |
points = 50000 | |
radius1 = 100.0 | |
radius2 = 70.0 | |
point_disp = 100.0 | |
angle_ratio =radius1/radius2 |
This file contains 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
\documentclass{article} | |
\usepackage{titlesec} | |
\titleformat{\section}{\huge\bfseries}{}{}{} | |
\setlength{\parindent}{4em} | |
\setlength{\parskip}{1em} | |
\begin{document} | |
\author{Maksims Kovalovs} | |
\title{Computer science programming project} |
This file contains 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
from cleverwrap import CleverWrap | |
import discord | |
from discord.ext.commands import Bot | |
import wolframalpha | |
at_max_id = "--MY ID--" | |
at_bot_id = "--BOT ID--" | |
cb = CleverWrap("--cb id--") | |
token = "--chat token--" | |
my_bot = Bot(command_prefix="!") |
This file contains 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
__author__ = 'mk070_000' | |
#R KEY - INCREASE FUNCTION LOOPS OR ACCURACY | |
#LEFT MOUSE, HOLD, MOVE, RELEASE - CHOOSE FUNCTION MERITS (max values, can be use to zoom in) | |
#RIGHT MOUSE - CREATE A JULIA SET , USING THE MOUSE COORDINATES | |
import math, pygame, cmath, sys | |
from pygame import gfxdraw | |
def mandelbrot(point ,koeff , n): | |
if abs(point) > 5: | |
return 254-(254.0/accuracy)*n |
This file contains 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
from string import ascii_lowercase | |
from collections import Counter | |
import matplotlib.pyplot as plt | |
import operator | |
import numpy as np | |
import glob | |
my_counter = Counter() | |
# for filename in glob.iglob(/home/max/*.txt): |
OlderNewer