One Paragraph of project description goes here
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.
<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" |
Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.
Comment this gist or write me an E-Mail ([email protected])
/** | |
* 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; |
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.
###Array ####Definition:
If you use atom... download & install the following packages:
[0, '+', 1] === (0 + 1) | |
[0, '+', 1, '*', [2, '/', 3, '-', 4]] === (0 + 1б * (2 / 3 - 4)) |
const res1 = nemathode.evaluate([0, '+', 1]); // 1 | |
const res2 = nemathode.evaluate([0, '+', 1, '*', [2, '/', 1, '-', 3]); // -1 |
const sumOperator = nemathode.evaluate([1, '+', 1]); // 2 | |
const mulOperator = nemathode.evaluate([1, '*', 1]); // 1 |