Skip to content

Instantly share code, notes, and snippets.

View menor's full-sized avatar

José Menor menor

View GitHub Profile

vim Cheatsheet

Navigation

  • % - Go to matching bracket
  • zz - Center current line in screen

Netrw

vim Cheatsheet

Navigation

  • % - Go to matching bracket
  • zz - Center current ile in screen
@menor
menor / vim.md
Last active February 4, 2018 10:40
Vim Cheatsheet

vim Cheatsheet

Navigation

  • % - Go to matching bracket
  • zz - Center current line in screen

Netrw

@menor
menor / React_Component_Design_Tips.md
Last active December 14, 2017 09:27
Random Notes about Component Design

React Components Ideas

How to Implement

Best way is to start with specific components in one project, once you see a component that has potential to reuse, then move it up to the library. Start small and add more complex components later.

Rigid vs Flexible Components

@menor
menor / albums.json
Last active May 30, 2017 18:11
Endpoint to test apps
[
{
"title": "Ramones",
"artist": "Ramones",
"url": "https://www.amazon.com/Ramones/dp/B00FW5MOSO",
"image": "https://images-na.ssl-images-amazon.com/images/I/61Fv75Pdd1L._SS500.jpg",
"thumbnail_image": "https://i.imgur.com/6xFHeyS.jpg"
},
{
"title": "Nonagon Infinity",
@menor
menor / tmux-cheatsheet.markdown
Created April 21, 2017 15:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@menor
menor / reactCheatsheet.md
Last active March 20, 2017 19:52
React Cheatsheet

React Cheatsheet

ES6 Property Initializer Syntax

class App extends Component {
  state = {
    albums: [
      {name: '#1 Record', isComplete: true},
      {name: 'Radio City', isComplete: false},
      {name: 'Third Sister/Lover', isComplete: false}
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (e.g. foo/bar): "
@menor
menor / observable.html
Last active August 8, 2016 19:34 — forked from anonymous/index.html
Building the observable pattern to learn the observable patern // source http://jsbin.com/pewojab
<script src="https://fb.me/react-with-addons-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Building the observable pattern">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
/**
* @jsx React.DOM
*/
var React = require('react'),
MyReactComponent = React.createClass({
// The object returned by this method sets the initial value of this.state
getInitialState: function(){
return {};