Skip to content

Instantly share code, notes, and snippets.

Julian Andres Guarin Reyes julianguarinautoformax

Block or report user

Report or block julianguarinautoformax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@julianguarinautoformax
julianguarinautoformax / git_files_under_version_control.sh
Created Mar 31, 2017
Git: Check files under git version control (the actual ones)
View git_files_under_version_control.sh
#This one is for the ones actually being tracked by git.
git ls-tree -r master --name-only
#If you want a list of files that ever existed (i.e. including deleted files):
git log --pretty=format: --name-only --diff-filter=A | sort - | sed '/^$/d'
@julianguarinautoformax
julianguarinautoformax / qdirsample.cpp
Last active Feb 25, 2017
QDir & QFileInfo information
View qdirsample.cpp
/* QFileInfo:
* http://doc.qt.io/qt-5/qfileinfo.html
* QDir:
* http://doc.qt.io/qt-5/qdir.html
*/
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
View Free Code Camp HMTL & CSS Intro
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
@julianguarinautoformax
julianguarinautoformax / gist:c15bd28fcf8a3626cb806a59873c3c67
Last active May 24, 2017
Add branch name to your command line in bash terminal.
View gist:c15bd28fcf8a3626cb806a59873c3c67
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
You can’t perform that action at this time.