Skip to content

Instantly share code, notes, and snippets.

View artyomtrityak's full-sized avatar
:octocat:
Alloha

Artem Trytiak artyomtrityak

:octocat:
Alloha
View GitHub Profile
@artyomtrityak
artyomtrityak / The Technical Interview Cheat Sheet.md
Created September 16, 2016 23:07 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@artyomtrityak
artyomtrityak / WebDriver_Mocha
Created April 7, 2016 05:30 — forked from patoi/WebDriver_Mocha
Selenium WebDriver JavaScript test with Mocha and NodeJS
/*
* Selenium WebDriver JavaScript test with Mocha and NodeJS
*
* Start with: SELENIUM=PATH_TO_SELENIUM_JAR/selenium-server-standalone-2.31.0.jar mocha -t 10000 -R list google-sample.js
*
* Download selenium-server-standalone-2.31.0.jar from https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar
* 'sudo su' and 'npm install -g colors mocha selenium-webdriver'
*
* http://visionmedia.github.io/mocha/
* https://code.google.com/p/selenium/wiki/WebDriverJs
import React from 'react';
import Relay from 'react-relay';
const pageSize = 2;
class Content extends React.Component {
componentWillMount() {
this.hasNextPage = this.props.user.next ? this.props.user.next.pageInfo.hasNextPage : false;
this.hasPreviousPage = this.props.user.prev ? this.props.user.prev.pageInfo.hasPreviousPage : false;
@artyomtrityak
artyomtrityak / AppComponent.js
Created March 18, 2016 17:56 — forked from ericallam/AppComponent.js
Getting React Native's Navigator and Relay to work together
import Relay, {
RootContainer,
Route
} from 'react-relay'
class SeasonRoute extends Route {
static paramDefinitions = {};
static queries = {
currentSeason: () => Relay.QL`query { currentSeason }`,