Skip to content

Instantly share code, notes, and snippets.

View ricardogarfe's full-sized avatar
enjoy

Ricardo García Fernández ricardogarfe

enjoy
View GitHub Profile
@ricardogarfe
ricardogarfe / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@ricardogarfe
ricardogarfe / markdown-hello-world-list.md
Last active December 11, 2015 20:38
Markdown hello world list.

##Hello World!

  • item 1
  • item 2
  • item 3
  • item 4
@ricardogarfe
ricardogarfe / libcvsanaly2-full.patch
Created February 14, 2013 23:26
libcvsanaly2 library fix errors issues 14 to 19
diff --git a/.gitignore b/.gitignore
index 9b63d08..0350d49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,7 @@
*.pc
missing
py-compile
+/.project
+/.pydevproject
@ricardogarfe
ricardogarfe / .travis.yml
Created February 22, 2013 09:44
Travis Ruby configuration to launch tests
language: ruby
rvm:
- 1.8.7
script:
- bundle exec rake --trace test
@ricardogarfe
ricardogarfe / travis-ci-budget.md
Last active December 14, 2015 02:18
Travis build status budget

Build Status

@ricardogarfe
ricardogarfe / .travis.android.yml
Last active December 17, 2015 03:49
Android continuous integration using maven travis-ci and mvn-sdk-deployer
language: java
jdk: oraclejdk7
env:
matrix:
# android-16 is always included
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
before_install:
# Install base Android SDK
- sudo apt-get update -qq
<!-- data-id is your gist id. -->
<div class="gistLoad" data-id="5546503" id="gist-GistID">
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>

This should show a list of commits in all branches which touched that file. Then, you can find the version of the file you want, and display it with...

git log --all -- <path-to-file>
git show <SHA> -- <path-to-file>
@ricardogarfe
ricardogarfe / .bashrc
Created February 10, 2017 07:56
Git bash branch location
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\] $ "
node {
// Mark the code checkout 'stage'....
stage 'Checkout'
checkout scm
stage 'Configure'
env.PATH = "${tool 'Maven 3'}/bin:${env.PATH}"
// Mark the code build 'stage'....
stage('Build') {