Skip to content

Instantly share code, notes, and snippets.

View raulperula's full-sized avatar

Raúl Pérula-Martínez, PhD raulperula

View GitHub Profile
@raulperula
raulperula / gitflow-breakdown.md
Created August 10, 2023 10:22 — forked from JamesMGreene/gitflow-breakdown.md
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@raulperula
raulperula / actionrecognitiondatasets.md
Created July 28, 2022 09:58 — forked from jin-zhe/actionrecognitiondatasets.md
An overview of action recognition datasets and their detection classes

Activity Recognition Datasets

An overview of recent action recognition datasets and their detection classes

Concepts & terminologies:

  • Action: Atomic low-level movement such as standing up, sitting down, walking, talking etc.
  • Activity/event: Higher level occurence then actions such as dining, playing, dancing
  • Trimmed video: A short video clip containing event/action/activity of interest
  • Untrimmed video: A video clip of arbitrary length potentially containing durations without activities of interest
  • Localization: locating an instance of event/action/activity within a video at a spatial or temporal scale
  • Spatial localization: Locating the region/area of an instance of action/activity within a video
@raulperula
raulperula / loteria.sh
Created December 16, 2021 14:23 — forked from jfisbein/loteria.sh
Script para chequear numeros loteria de navidad usando api de El Pais
#!/usr/bin/env bash
# Script to check Spanish Christmas Lottery
# more info: https://servicios.elpais.com/sorteos/loteria-navidad/api/
AUTO_RELOAD="120" # seconds
declare -A mainPrizes
mainPrizes['numero1']='1er Premio'
mainPrizes['numero2']='2º Premio'
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
@raulperula
raulperula / echo_command
Created March 26, 2018 09:15
execute command continuously in terminal
watch -n0 <command>
@raulperula
raulperula / compile_pyfile
Created December 18, 2017 12:17
Compile Python files
python -m compileall <file_1>.py <file_n>.py
@raulperula
raulperula / pip_install_e
Created August 28, 2017 11:41
Automatically create requirements.txt (pip)
pip freeze > requirements.txt
# remove last word
Ctrl + w
# remove all words
Ctrl + u
@raulperula
raulperula / README.me
Created March 10, 2017 11:52
How do I save terminal output to a file?
To write the output of a command to a file, there are basically 10 commonly used ways.
Please note that the n.e. in the syntax column means "not existing".
There is a way actually, but it's too complicated to fit into the column. You can find a helpful link in the List section about it.
Overview:
|| visible in terminal || visible in file || existing
Syntax || StdOut | StdErr || StdOut | StdErr || file
==========++==========+==========++==========+==========++===========
# revert a file
git checkout -- filename
# pull changes maintaining local changes
git stash
git pull
git stash pop
# Changing a remote's URL
https://help.github.com/articles/changing-a-remote-s-url/