Skip to content

Instantly share code, notes, and snippets.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# NumPy: продолжение"
]
},
{
#---- Generated by tint2conf e94c ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Активная панель задач, Батарея, Имя неактивного рабочего стола, Неактивная панель задач, Панель, Системный лоток, Часы
rounded = 0
border_width = 0
@Zamony
Zamony / trie.c
Created May 22, 2019 21:05
Trie Data Structure Implemented in C language
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Pair {
unsigned ok;
int val;
};
@Zamony
Zamony / bubblesort.go
Last active May 19, 2019 11:36
Golang Algorithms Implementation
package main
import (
"fmt"
)
func bubblesort(arr []int) []int {
is_changed := true
n := len(arr) - 1
for is_changed {
@Zamony
Zamony / net.py
Created August 3, 2018 11:02
Python neural network implementation for the XOR problem
import pprint
import collections
import random
import math
class NeuralNetwork:
class NMath:
@staticmethod
def mulMatrix(a, b):
@Zamony
Zamony / fox.c
Last active December 30, 2017 10:33
Умножение матриц методом Фокса / Matrix Multiplication by Fox Method in C
/*
MIT License
Copyright (c) 2017 Mochalov Nikita Sergeevich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
import math
import random
import simpy
SECS_PER_HOUR = 60*60
# Exponental distribution
# People/Seconds
Q1SPEED = 14 / SECS_PER_HOUR
Q2SPEED = 10 / SECS_PER_HOUR