Skip to content

Instantly share code, notes, and snippets.


Ederson Badeca edersonbadeca

View GitHub Profile
View detox-bitrise.yml
format_version: 1.1.0
- push_branch: "*"
workflow: tests
- activate-ssh-key: {}
View pipeline.kt
// Example of pipeline process written in kotlin
fun multiplyIt(x:Int): Int {
println(x * 2)
return x * 2
fun plusTwo(x: Int): Int {
println(x + 2)
return x + 2

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL


import math
View .cvimrc
" Settings
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
if __name__ == '__main__':
edersonbadeca / Python Utility for asynchronous
Created Oct 23, 2017
Python Utility for asynchronous mocking
View Python Utility for asynchronous
import asyncio
from unittest import mock
class AsyncMock(mock.MagicMock):
def __call__(self, *args, **kwargs):
return super(AsyncMock, self).__call__(*args, **kwargs)
# Alternative using Tornado...
edersonbadeca /
Created Jul 20, 2017 — forked from thom-nic/
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
edersonbadeca /
Created Jun 23, 2016 — forked from topheman/
Git notes cheat sheet
View My vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
" let Vundle manage Vundle
Plugin 'gmarik/Vundle.vim'
View gist:7eb4c9ccd8abcb02db23
### Testing if the client is a mobile or a desktop.
### The selection is based on the usual UA strings for desktop browsers.
## Testing a user agent using a method that reverts the logic of the
## UA detection. Inspired by
map $http_user_agent $is_desktop {
default 0;
~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule
~*spider|crawl|slurp|bot 1; # bots
~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes