git fetch origin master
git checkout master
git merge origin/master
git checkout MY_BRANCH
git rebase master
git push -f origin HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainApp extends Component { | |
constructor(props) { | |
super(props); | |
} | |
renderScene(route, navigator) { | |
var Component = route.component; | |
return ( | |
<Component route={route} navigator={navigator} /> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Pra todos os arquivos | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
; Estilo de identação em arquivos HTML | |
[*.html] | |
indent_style = space | |
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.3.1 | |
MAINTAINER Thadeu Esteves Jr <eu@thadeuesteves.com.br> | |
# libs essentials | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libpq-dev \ | |
postgresql-client-9.4 \ | |
libxml2-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ruby.rubocop.executePath": "/Users/thadeu/.rbenv/shims/", | |
"csscomb.formatOnSave": true, | |
"csscomb.preset": "zen", | |
"csscomb.preset": { | |
"sort-order": [ | |
["$variable"], | |
["$include"] | |
], | |
"sort-order-fallback": "abc", |
export const getNotifications = async (title) => {
let ASYNC_TIMEOUT = 10000 // 10s
let didTimeout = false
let notifications = []
const workerDelayedPromise = () => {
return new Promise(async (resolve, reject) => {
// timeout in order to send reject if delayed
for file in app/views/**/*.html.erb; do html2haml -e $file ${file%erb}haml && rm $file; done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
activate :external_pipeline, | |
name: :webpack, | |
command: build? ? "npm run build:assets" : "npm run start:assets", | |
source: ".tmp/webpack_output", | |
latency: 1 | |
# ... |