Skip to content

Instantly share code, notes, and snippets.

Avatar
🗿
мы ВАЙБИН здесь

Alexander Pushkov notpushkin

🗿
мы ВАЙБИН здесь
View GitHub Profile
View Predtech.java
import java.util.*;
public class Predtech {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n + 2];
for (int i = 0; i < n + 1; i++) {
s[i] = sc.nextLine();
}
View olymp.py
#!/bin/life
# coding: utf-8
class Olympiad:
def __init__(self, subject):
pass
def makeRound(self, level):
return Round(self, level)
@notpushkin
notpushkin / firestarter.sh
Created Feb 10, 2014
Firestarter is an easy script to install Firefox on Debian systems
View firestarter.sh
#!/bin/bash
if [ "`whoami`" != "root" ]; then
echo "Please run this script as root"
else
echo "Going to install latest stable Firefox, is it OK?"
echo "Press Enter to continue or Ctrl-C to stop"
if read; then
echo "Adding Linux Mint repo..."
View bad.js
var tablerow = $('<tr><td>' + person.id + '</td><td>' + person.name + '</td><td>' + person.school + '</td><td>' + person.class + tasksMass + person.total + '</td></tr>');
@notpushkin
notpushkin / rc.xml
Created Feb 13, 2014
My openbox config
View rc.xml
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<followMouse>no</followMouse>
<focusLast>yes</focusLast>
@notpushkin
notpushkin / hashpay.html
Created Feb 13, 2014
A simple hashcash-ish thing in js
View hashpay.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script id="worker1" type="javascript/worker">
/*!
* A crc32 function that will produce the same result as PHP's crc32() function
* (http://php.net/crc32).
View ajax.js
var ajax = new XMLHttpRequest();
ajax.onreadystatechange = function(){
if(ajax.readyState == 4) {
// the request have successfully finished
alert(ajax.responseText);
}
}
ajax.open("GET", "hello.txt", true);
View Excavator.md

% Экскаватор. Формула Тейлора

Лемма о переразложении многочлена

Нулевой производной многочлена будем называть сам многочлен. Тогда для любого $P_n(x, x_0)$:

$P_n(x, x_0) = c_0 + c_1 (x - x_0) + c_2 (x - x_0) ^ 2 + c_3 (x - x_0) ^ 3 + \cdots + c_n (x - x_0) ^ n$, где $c_k = P^{(k)}(x_0)$.

Доказательство. Рассмотрим $P'(x)$:

View rasp.md

Понедельник

  • Математика
  • Физика
  • Литература
  • Английский язык -- 1

Вторник

  • Английский язык
  • Геометрия
  • География
View classified.jsom
{
"title": "Прадам айфун 5",
"text": "айфон 5 продам бесплатно без смс",
"seller": {
"id": 1488228,
"name": "Ашот"
},
"photo": "http://i.imgur.com/YusLYky.jpg"
}