Skip to content

Instantly share code, notes, and snippets.

View gugat's full-sized avatar

Gustavo Salazar gugat

  • Buk
  • Santiago - Chile
View GitHub Profile
@gugat
gugat / gist:cd10b3cf03f96018c1efa5ba1c43fefe
Created December 14, 2017 22:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@gugat
gugat / git-commit-emojis.md
Created December 14, 2017 22:42 — forked from jhermann/git-commit-emojis.md
Useful emoji for git commit messages

Useful emoji for git commit messages

If you add emoji to your commit messages for a GitHub repo, they become less boring, and you can convey the kind of change you're adding. See the full set of GitHub supported emoji here (also useful for easy copy&paste via a simple click).

Example commit message

The following is a possible scheme to use:

@gugat
gugat / GitCommitEmoji.md
Created December 28, 2017 17:57 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶

Convert .mov to .gif

Useful when you want to share in Github how a change in your code is working, or how to reproduce a bug. I use QuickTimePlayer to record the screen, then ffmpeg to convert the mov file to gif.

ffmpeg -i video.mov -r "15" video.gif

This example sets the frame rate to 15.

@gugat
gugat / gist:0bed825976c2049ebe15214f9690a126
Created March 8, 2018 17:08 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@gugat
gugat / documents.rb
Created November 8, 2018 17:14 — forked from dhh/documents.rb
# config/routes.rb
resources :documents do
scope module: 'documents' do
resources :versions do
post :restore, on: :member
end
resource :lock
end
end
require 'minitest/autorun'
require 'minitest/spec'
#:nodoc:
class TestCompensation < Minitest::Test
def setup
@compensation = Compensation.new
end
describe 'when worked less than 12 months' do
export const signIn = (email, password) => {
return (dispatch, getState) => {
return new Promise((resolve, reject) => {
return fetch(`${BASE_URL}/auth/sign_in`, {
method: 'POST',
timeout: REQUEST_TIMEOUT,
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
@gugat
gugat / postman_parse_link_headers.rb
Last active September 3, 2019 20:25 — forked from thesowah/plh.rb
Parse link headers from Postman API in Ruby