Skip to content

Instantly share code, notes, and snippets.

:peepo-love: Emj Cheat Sheet (Slack → Github)

Esse é um cheat sheet com alguns emojis da Finbits para utilizar em PRs, issues e comentários: use com moderação :thumbsup-parrot:

:term: Bash

Alternativamente, você pode colocar a função abaixo no seu .zshrc para facilitar a busca e/ou copiar o <img> direto:

function emj() {
  raw="${1//:/}"
  companyid="T02BNKN7B1B" # substituir pelo id da empresa/grupo do slack
  emoji="${raw:-rainbowdance}" # substituir rainbowdance por um emoji default

Phoenix 1.4.x to 1.5.0 upgrade instructions

Phoenix 1.5 requires Elixir >= 1.7. Be sure your existing version is up to date by running elixir -v on the command line.

Install the new phx.new project generator

$ mix archive.uninstall phx_new
$ mix archive.install hex phx_new 1.5.0
@getify
getify / 1.md
Last active October 15, 2020 01:44
BetterPromise: a strawman experiment in subclassing Promise and "fixing" a bunch of its awkward/bad parts

Some things that are "better" with this BetterPromise implementation:

  • BetterPromise # then(..) accepts a BetterPromise (or Promise) instance passed directly, instead of requiring a function to return it, so that the promise is linked into the chain.

    var p = BetterPromise.resolve(42);
    
    var q = Promise.resolve(10);
    
    p.then(console.log).then(q).then(console.log);
// handy method to create a Higher Order Component out of a
// Render Prop Component (like a Context.Consumer).
// handles, statics, displayName, refs, and value forwarding
function createHOCFromRenderProp({prop, Consumer}) {
return Component => {
function Wrapper(props, ref) {
return (
<Consumer>
{value => <Component {...{...props, [prop]: value, ref}} />}
@thiamsantos
thiamsantos / .editorconfig
Last active March 1, 2018 12:50
editorconfig
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@thiamsantos
thiamsantos / emoji-commit.md
Last active March 15, 2017 18:03
Commit Message Emoji

Commit Message Emoji

Every commit is important. So let's celebrate each and every commit with a corresponding emoji! 😄

Which Emoji to Use? 😕

Commit Type Emoji
Initial Commit 🎉 :tada:
@thiamsantos
thiamsantos / CONTRIBUTING.md
Created March 12, 2017 00:52
Example of a contributing file

Contributing to project-name

First off, thanks for taking the time to contribute!

Now, take a moment to be sure your contributions make sense to everyone else. These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

Reporting Issues

Found a problem? Want a new feature? First of all see if your issue or idea has already been reported. If don't, just open a new clear and descriptive issue.

@thiamsantos
thiamsantos / links.js
Created February 21, 2017 00:14
Social Media Sharing URLS
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@vasanthk
vasanthk / System Design.md
Last active November 18, 2024 01:50
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?