git rebase -i #commit
git branch --merged | egrep -v "(^*|master|main|dev)" | xargs git branch -d
# Load emulators | |
firebase emulators:start --import=./saved-data --export-on-exit | |
# Acceder a functions | |
$ export GOOGLE_APPLICATION_CREDENTIALS="path/to/key.json" | |
$ firebase functions:shell | |
# kill pid | |
lsof -t -i tcp:5000 | xargs kill |
lsof -ti tcp:9000 | xargs kill -9 |
import { | |
ToastAndroid, | |
Platform, | |
AlertIOS, | |
} from 'react-native'; | |
function notifyMessage(msg: string) { | |
if (Platform.OS === 'android') { | |
ToastAndroid.show(msg, ToastAndroid.SHORT) | |
} else { |
pragma solidity ^0.4.24; | |
// ---------------------------------------------------------------------------- | |
// Sample token contract | |
// | |
// Symbol : {{Token Symbol}} | |
// Name : {{Token Name}} | |
// Total supply : {{Total Supply}} | |
// Decimals : {{Decimals}} | |
// Owner Account : {{Owner Account}} |
const downloadCVs = async () => { | |
const url = window.django.urls.get_documens_cvs_for_have_company_whitout_member; | |
const response = await axios.get(url, {params: { applicant: applicant.id }, responseType: 'arraybuffer'}); | |
let fileName = response.headers["content-disposition"].split("filename=")[1]; | |
if (window.navigator && window.navigator.msSaveOrOpenBlob) { // IE variant | |
window.navigator.msSaveOrOpenBlob(new Blob([response.data], {type: 'application/zip'}), | |
fileName); | |
} else { | |
Buscar y reemplazar con regex el término ^\s*$\n |
" plugins | |
let need_to_install_plugins = 0 | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
let need_to_install_plugins = 1 | |
endif | |
call plug#begin() | |
Plug 'tpope/vim-sensible' |
""" | |
LA DATA ES | |
{'events_list': [{'status': u'confirmed', 'final': datetime.datetime(2020, 8, 26, 0, 58, tzinfo=tzoffset(None, -18000)), | |
'recurrence': False, 'inicio': datetime.datetime(2020, 8, 25, 18, 6, tzinfo=tzoffset(None, -18000)), | |
'summary': u'Vuelo a Las Vegas (CM 456)', 'id': u'_6tlnaqrle5p6cpb4dhmj4phpego68rb6c9i7cdb6d1jmkshgclmj4obf6hq7cq9oe8rn0prg69mmcthicdmn4drcdln6irradgonap32coo6e'}, | |
{'status': u'confirmed', 'final': datetime.datetime(2020, 9, 29, 15, 0, tzinfo=tzoffset(None, -18000)), | |
'recurrence': False, 'inicio': datetime.datetime(2020, 9, 29, 12, 22, tzinfo=tzoffset(None, -18000)), 'summary': u'Vuelo a La Habana (CM 246)', | |
'id': u'_6tlnaqrle5p6cpb4dhmj4phpegr6ud3b60rncs3fdpl6gpr5dorn4c1ledj36rpne0p7ctje61n30e3m6pk36cj5e5h6idrm65gj8sbbd9lj0'}, | |
{'status': u'confirmed', 'final': datetime.datetime(2020, 9, 29, 10, 2, tzinfo=tzoffset(None, -18000)), |