Skip to content

Instantly share code, notes, and snippets.

View coderjonny's full-sized avatar
🏠
Working from home

Jonny Kang coderjonny

🏠
Working from home
View GitHub Profile
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Fragment} from 'react';
import {
@coderjonny
coderjonny / rpn_calc.js
Last active July 1, 2019 21:48
rpn calculator CLI tool in js
// This function would be used for the CLI program for a RPN calculator
// This assumes that variable stdout is the last value that was stored by the CLI
var rpn_calc = (inputs) => {
const stack = [];
// pseudocode: check the last value for stdout
// stdout is the last stored value in standard out
if (typeof parseInt(stdout) === 'number' ) {
stack.push(parseInt(stdout))

Commmand Line Basics

pwd = shows your current directory

whoami = shows who you are

cd = moving in and out of directories

cd .. = Moving up to the parent dir.

[~/dev/att-devprg-apimatrix] jonny-> cucumber features/dynamic_navigation.feature --verbose
Using the default profile...
Code:
* features/support/env.rb
* features/support/helpers.rb
* features/step_definitions/dynamic_navigation_steps.rb
* features/step_definitions/feature_flags_steps.rb
* features/step_definitions/permissions_steps.rb
* features/step_definitions/services_steps.rb
* features/step_definitions/user_steps.rb
@coderjonny
coderjonny / pagination.md
Created September 9, 2011 20:38 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o

@coderjonny
coderjonny / pagination.md
Created September 9, 2011 20:38 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o