Skip to content

Instantly share code, notes, and snippets.

View alldevic's full-sized avatar
:octocat:

Nikolay Bely alldevic

:octocat:
View GitHub Profile
#include <stdio.h>
#include <math.h>
#include <string.h>
#define to_char(x) (char)(x+(x >= 10 ? 'W' : '0'))
#define to_int(x) ((x-'0')%39+((x>='A')&&(x <= 'F') ? -7 : x == '.' ? 1 : 0))
#define str_revert(s, e, i) for (i=0;i<e/2;i++)i+=0*((s[i]^=s[e-i-1])+(s[e-i-1]^=s[i])+(s[i]^=s[e-i-1]))
double td(char *x, int *b1, int *dot, int len) {
long long rez1 = to_int(x[0]), i = 0, h = (*dot < len) ? *dot : len;
double rez2 = 0.0;
for (i = 1; i < h; i++) rez1 = rez1 * *b1 + to_int(x[i]);
@alldevic
alldevic / table.css
Last active September 14, 2017 06:36
nsu table
@-moz-document url-prefix("http://table.nsu.ru/group"), url-prefix("http://table.nsu.ru/teacher") {
header { position: relative; margin-top: 26px; z-index:2; background-color: transparent; min-height: 0px; }
div.container-header { padding: 10px 0px;display: inherit; }
a.logo-nsu { display: none; }
div.title { display: none; }
div.alert.alert-info.text-center { display: none; }
ul.breadcrumb { margin: 0px; }
div.main_head { display: none; }
div.info-remember { display: none; }
div.text-update { font-size: 0px; line-height: 0px; }
using System;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Practice4
{
internal class Program
{
public static void Main(string[] args)
using System;
namespace Task1
{
internal class Program
{
public static void Main(string[] args)
{
double R, x, y;
using System;
namespace Taylor
{
internal class Program
{
public static void Main(string[] args)
{
double xbegin, xend, dx, eps;
using System;
namespace ConsoleApplication3
{
internal class Program
{
public static void Main(string[] args)
{
int n = 5, m = 3;
int[,] matrix = GenerateMatrix(n, m);
using System;
namespace Taylor
{
internal class Program
{
public static void Main(string[] args)
{
double xbegin, xend, dx, eps;
using System;
namespace ConsoleApplication6
{
internal class Program
{
public static void Main(string[] args)
{
var n = 5;
var step = 2;
using System;
using System.IO;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
using System;
namespace ConsoleApplication9
{
internal class Program
{
public static void Main(string[] args)
{
int x, y;
byte red, green, blue;