Skip to content

Instantly share code, notes, and snippets.

Kelvin Rojas kr0

Block or report user

Report or block kr0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kr0
kr0 / iterm2-solarized.md
Created Nov 22, 2018 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@kr0
kr0 / counter2
Created Jul 12, 2016
Code for a counter. Focus on immutability because that's how redux works. Also tests with deepfreeze and expect
View counter2
const addCounter = (list) => {
return [...list, 0];
};
const removeCounter = (list, index) => {
// return list
// .slice(0,index)
// .concat(list.slice(index + 1);
return [
...list.slice(0,index),
@kr0
kr0 / counter
Created Jul 12, 2016
A simple react/redux application
View counter
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
</head>
You can’t perform that action at this time.