Skip to content

Instantly share code, notes, and snippets.

View kas-elvirov's full-sized avatar
🇷🇺

Kas Elvirov kas-elvirov

🇷🇺
View GitHub Profile
@kas-elvirov
kas-elvirov / activity_main.xml
Last active August 31, 2015 11:28 — forked from anonymous/activity_main.xml
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
@kas-elvirov
kas-elvirov / README-Template.md
Created October 5, 2016 07:31 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

@kas-elvirov
kas-elvirov / license-badges.md
Created March 10, 2017 06:03 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

@kas-elvirov
kas-elvirov / bubble-sorting.js
Created June 9, 2018 10:13
JS implementation of bubble sorting algorithm
/**
* Bubble sorting function
*
* @param {array} array with numbers
*
* @return {array} sorted array
*/
const sort = array => {
let arr = Array.prototype.slice.call(array);
/**
* Finds smallest element of an array
*
* @param {Array} arr array for searching
*
* @return {number} index of smallest element in array
*/
const findSmallest = array => {
let currentValue = array[0];
let currentIndex = 0;
@kas-elvirov
kas-elvirov / The Technical Interview Cheat Sheet.md
Created June 11, 2018 16:13 — 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.
@kas-elvirov
kas-elvirov / react-typescript.md
Created August 17, 2018 11:54 — forked from juhaelee/react-typescript.md
React + Typescript Cheatsheet

React + Typescript Cheatsheet

Setup

If you use atom... download & install the following packages:

What are Typescript type definition files? (*.d.ts)

@kas-elvirov
kas-elvirov / nemathodePseudocode.txt
Last active May 23, 2021 11:09
Nemathode - Pseudocode
[0, '+', 1] === (0 + 1)
[0, '+', 1, '*', [2, '/', 3, '-', 4]] === (0 + 1б * (2 / 3 - 4))
@kas-elvirov
kas-elvirov / nemathodeJSexample.js
Created May 22, 2021 16:35
Nemathode.js example
const res1 = nemathode.evaluate([0, '+', 1]); // 1
const res2 = nemathode.evaluate([0, '+', 1, '*', [2, '/', 1, '-', 3]); // -1
@kas-elvirov
kas-elvirov / nemathodeWithBinaryOperators.js
Created May 22, 2021 16:43
Nemathode with binary operators
const sumOperator = nemathode.evaluate([1, '+', 1]); // 2
const mulOperator = nemathode.evaluate([1, '*', 1]); // 1