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
export class Row extends BasePageObject { | |
@selector('#element') | |
public rowElement: Element; | |
public clickCheckboxes() { } | |
} | |
export class List extends BasePageObject { |
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 * as ts from 'typescript'; | |
class Test { | |
public ParamString: string; | |
public ParamInt: number; | |
public ParamString2: string; | |
} | |
class Collection<T> { |
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 { debug } from 'util'; | |
import * as ts from 'typescript'; | |
function getArrowFunction(func: Function): ts.ArrowFunction { | |
let src = ts.createSourceFile("test.ts", func.toString(), ts.ScriptTarget.ES2016, false); | |
var expr = <ts.ExpressionStatement> src.statements[0]; | |
return <ts.ArrowFunction> expr.expression; | |
} | |
function toSql(expr: ts.Node): string { |
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
// ==UserScript== | |
// @name Add statistics to Memrise | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.memrise.com/home/ | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Deutsche letters | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Change letters to umlaut letters | |
// @author Nikolay Dozmorov | |
// @match http://*/* | |
// @match https://*/* | |
// @grant none | |
// ==/UserScript== |
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
For[i = 1, i <= pointNumber - 1, i++, | |
x[[i + 1]] = x[[i]] + v[[i]] * dt + 1 / 8 * (5 * a[[i]] - a[[i - 1]]) * dt^2; | |
a[[i + 1]] = -dU[x[[i + 1]]] / m / 836700; | |
v[[i + 1]] = v[[i]] + 1 / 8 * (3 * a[[i + 1]] + 6 * a[[i]] - a[[i - 1]]) * dt; | |
] |
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
void MainWindow::updateView() | |
{ | |
for (int x = 0; x < world -> getHeight(); x++) | |
{ | |
for(int y = 0; y < world -> getWidth(); y++) | |
{ | |
if (world -> getStatusOfCell(x, y)) { | |
pushButton[x*world->getHeight() + y]->setGeometry(x*BUTTON_HEIGHT, y*BUTTON_WIDTH, std::rand() % BUTTON_HEIGHT, std::rand() % BUTTON_WIDTH); | |
QString r = QString::number(std::rand() % 256, 16); |
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
using System; | |
using System.Threading; | |
namespace DelegateTest | |
{ | |
class Algorithm | |
{ | |
public int Key { get; set; } | |
} |
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 "stdafx.h" | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
double polynom(double x, double a[], int n) | |
{ | |
double p_val = 0; // p_val не очень говорящее название переменной. Лучше написать что-то типа sum | |