Skip to content

Instantly share code, notes, and snippets.

View zrobit's full-sized avatar

zrobit ⚡️ zrobit

View GitHub Profile
@zrobit
zrobit / terminal-prompt-git-branch-zsh.md
Created June 26, 2022 12:43 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

screenshot

Open ~/.zshrc in your favorite editor and add the following content to the bottom.

function parse_git_branch() {
    git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
@zrobit
zrobit / components.md
Created October 24, 2017 12:09 — forked from iclanzan/components.md
UI Component Name Ideas

UI component names

As front-end developers we all know the pain of coming up with meaningful component names for CSS classes. I created this gist as a place to collect terms that are suitable as user interface component names.

Please contribute your own ideas!

Interactive components

  • button
@zrobit
zrobit / ssr-redux
Created July 31, 2017 22:29
server side render react redux react-router
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import reducer from '../client/reducers'
// import { Provider, useStaticRendering } from 'mobx-react';
@zrobit
zrobit / ssr-example.js
Created July 31, 2017 22:28
server side render example react react-router mobx
// import isDev from 'isdev';
// import path from 'path';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import { Provider } from 'mobx-react';
import { dehydrate } from '../client/state/hydrate';
import { fetchData } from './fetch';
// import { Dir } from '~/src/config';
import routes from '../client/routes';

Sublime text configuración con hayaku

{
    //Sublime personal config
    "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
    "trim_trailing_white_space_on_save": true,
    "ensure_newline_at_eof_on_save": true,
    "auto_complete_commit_on_tab": false,
    "translate_tabs_to_spaces": true,
    "overlay_scroll_bars": "enabled",

Keybase proof

I hereby claim:

  • I am zrobit on github.
  • I am zrobit (https://keybase.io/zrobit) on keybase.
  • I have a public key whose fingerprint is 782F 9421 33D0 D9DE C655 DFAF BA6A B5F5 88EE 56FD

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am zrobit on github.
  • I am zrobit (https://keybase.io/zrobit) on keybase.
  • I have a public key whose fingerprint is 782F 9421 33D0 D9DE C655 DFAF BA6A B5F5 88EE 56FD

To claim this, I am signing this object:

@zrobit
zrobit / upload-file-via-shell.md
Created May 24, 2017 20:08
subir archivo via shell

scp /path/to/file username@a:/path/to/destination

<!DOCTYPE html><!--[if lt IE 7]><html id="html" class="no-js lt-ie9 lt-ie8 lt-ie7" lang='es' xmlns:fb="http://ogp.me/ns/fb#"><![endif]--><!--[if IE 7]><html id="html" class="no-js ie7 lt-ie9 lt-ie8" lang='es' xmlns:fb="http://ogp.me/ns/fb#"><![endif]--><!--[if IE 8]><html id="html" class="no-js ie8 lt-ie9" lang="es" xmlns:fb="http://ogp.me/ns/fb#"><![endif]--><!--[if IE 9]><html id="html" class="no-js ie9 lt-ie10" lang="es" xmlns:fb="http://ogp.me/ns/fb#"><![endif]--><!--[if gt IE 9]><!--><html id="html" lang="es"><!--<![endif]--><head><title>Nodos Digital - Agencia de Creatividad Digital | Bienvenido</title><meta charset="utf-8"><meta name="google-site-verification" content="AdHsCtsuTQjf5JrSUbXsh3BslCaM2yotrs1Ki87xK1k"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta property="og:type" content="website"><meta name="description" content="Somos una agencia con corazón digital que busca constr
{
"auto_complete_commit_on_tab": true,
"auto_complete_selector": "meta.tag - punctuation.definition.tag.begin, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"default_line_ending": "unix",
"draw_indent_guides": true,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"folder_exclude_patterns":
[