Skip to content

Instantly share code, notes, and snippets.

View meirabruno's full-sized avatar
🏠
Working from home

Bruno Meira Melhado meirabruno

🏠
Working from home
View GitHub Profile
require 'httparty'
headers = {
'cache-control': 'no-cache',
'content-type': 'application/json',
'authorization': 'Bearer TOKEN'
}
HTTParty.post(
'https://feedsnag.com/api/v1/event',
@meirabruno
meirabruno / feedsnag.js
Last active October 25, 2022 17:51
javascript feedsnag
import const from "axios";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN"
};
axios.post(
"https://feedsnag.com/api/v1/event",
{
Create file config/initializers/rails_admin_pg_arrays.rb
Include this code
class RailsAdminPgArray < RailsAdmin::Config::Fields::Base
register_instance_option :formatted_value do
unless value.blank?
value.join(',')
end
end
@meirabruno
meirabruno / Sobrepõe better_branch na master
Created August 20, 2015 14:11
Passos para sobrepor branch derivada da master na master
link: http://stackoverflow.com/questions/2763006/change-the-current-branch-to-master-in-git
git checkout better_branch
git merge --strategy=ours master # keep the content of this branch, but record a merge
git checkout master
git merge better_branch # fast-forward master up to the merge
@meirabruno
meirabruno / gist:02c5f609fbfe6dbaa9dc
Created June 23, 2015 20:05
Exemplo de consumo CMS GVces com jquery - V2
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Exemplo de consumo API V2 CMS GVces</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<script>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Exemplo de consumo API V1 CMS GVces</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<script>
@meirabruno
meirabruno / confi sublime
Last active May 15, 2016 20:51
Configurações básicas do sublime text
{
"bold_folder_labels": true,
"ensure_newline_at_eof_on_save": true,
"font_face": "Menlo",
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
@meirabruno
meirabruno / install rmagick
Last active August 29, 2015 14:21
Instalar rmagick no ec2
sudo apt-get install imagemagick libmagickcore-dev
sudo apt-get install libmagick++-dev
@meirabruno
meirabruno / config terminator
Last active August 29, 2015 14:19
config terminator
[global_config]
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
handle_size = 1
[keybindings]
[profiles]
[[default]]
foreground_color = "#657b83"
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
font = Monaco 8
background_image = None