Skip to content

Instantly share code, notes, and snippets.

@ildarry
ildarry / game_of_life.c
Created March 6, 2026 12:57
game_of_life.c
#include <ncurses.h>
#include <stdio.h>
#include <stdlib.h>
// Определяем размеры поля (Ширина и Высота)
#define W 80
#define H 25
// Прототипы функций (объявляем заранее для структурного стиля)
int init_grid(int grid[H][W]);
// 1. I am Groot, путь Windows и расчет с PI
#include <stdio.h>
int main(void) {
printf("\"I am Groot\" (c)Groot");
printf("C:\\WINDOWS\\\n");
int x;
double pi = 3.141;
if (scanf("%d", &x) == 1 && getchar() == '\n') {
printf("%.2f", pi * x);
} else {
// 1. I am Groot, путь Windows и расчет с PI
#include <stdio.h>
int main(void) {
printf("\"I am Groot\" (c)Groot");
printf("C:\\WINDOWS\\\n");
int x;
double pi = 3.141;
if (scanf("%d", &x) == 1 && getchar() == '\n') {
printf("%.2f", pi * x);
} else {
@ildarry
ildarry / stopwatch.py
Created April 24, 2020 14:03
10hours
import tkinter as Tkinter
counter = -1
running = False
def counter_label(label):
def count():
if running:
global counter
import tkinter as Tkinter
counter = -1
running = False
def counter_label(label):
def count():
if running:
global counter
@ildarry
ildarry / main.py
Created March 13, 2019 22:06
FirmYellowgreenSign created by ildarry - https://repl.it/@ildarry/FirmYellowgreenSign
import numpy as np
def nonlin(x,deriv=False):
if(deriv==True):
return f(x)*(1-f(x))
return 1/(1+np.exp(-x))
X = np.array([[0,0,1],
[0,1,1],
@ildarry
ildarry / main.py
Created March 13, 2019 21:42
FirmYellowgreenSign created by ildarry - https://repl.it/@ildarry/FirmYellowgreenSign
Empty file