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
class A(object): | |
obj = None | |
def __init__(self): | |
A.obj = self | |
if __name__ == '__main__': | |
from second import B | |
a = A() |
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 math import pow | |
class PirsonTest(object): | |
def check(self,n, k, gen): | |
sequence = [gen.next for i in xrange(0, n)] | |
min_value = min(sequence) | |
max_value = max(sequence) |
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
#include "Tests.h" | |
double PirsonTest::check() { | |
double minimum = min(); | |
double maximum = max(); | |
double h = (maximum - minimum) / m_k; | |
segments.push_back(minimum + h); |
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
{ | |
"user_actions": [ | |
{ | |
"user": { | |
"id": 1, | |
"username": "mike", | |
"first_name": "", | |
"last_name": "", | |
"avatar": "", | |
"email": "mike@mike.com", |
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 requests | |
EMAIL = "mike@razortheory.com" | |
PASSWORD = "123" | |
FILEPATH = "/home/mike/Music/sample.mp3" | |
# 1. Авторизуемся и получаем токен для дальнейших действий | |
r = requests.post("http://localhost:8000/api/signin", data={"email": EMAIL, "password": PASSWORD}) | |
result = r.json() | |
AUTH_TOKEN = result['token'] |
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
1) Тех. требования | |
2) Тех. задания | |
2 листа. Разобраться с гитом. |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package taskjavaapp; | |
import java.io.Closeable; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; |
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
#include <iostream> | |
#include <math.h> | |
#define FROM 1 | |
#define TO 3 | |
#define EPS 10e-9 | |
double function(double x) | |
{ | |
return log(sin(x)*sin(x) + 3) / (x*x + 2 * x - 1); |
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
#include <string> | |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
void UserInput(string&, string&, string&); | |
string ModifyLine(const string, const string, const string); | |
int main(int argc, char ** argv) |
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
#include <iostream> | |
void ReadSizeOfMatrix(int & rows, int & cols) { | |
std::cout << "Please, enter count of cols and rows " << std::endl; | |
std::cout << "Rows: "; | |
std::cin >> rows; | |
std::cout << "Cols: "; | |
std::cin >> cols; | |
} |
NewerOlder