Skip to content

Instantly share code, notes, and snippets.

View jesusr's full-sized avatar
🎯
Focusing

Jesús R Peinado jesusr

🎯
Focusing
View GitHub Profile
@jesusr
jesusr / compass.sh
Last active December 20, 2015 16:39
Compass - install
gem install compass
compass create [nombre_de_proyecto]
compass watch [ruta]
@jesusr
jesusr / rvm-install.sh
Last active December 20, 2015 16:39
RVM, Ruby, RubyGems- Install
curl −L https://get.rvm.io | bash −s stable
echo 'source ~/.rvm/scripts/rvm' >> ~/.bash_aliases && bash
rvm install 2.0.0-p195
rvm use 2.0.0-p195 --default
rvm rubygems current
@jesusr
jesusr / sass.sh
Last active December 20, 2015 16:39
Sass - Install
sudo gem install sass
@jesusr
jesusr / sass-example.sass
Last active December 20, 2015 16:39
sass - example 1
@import reset //partials
$front_color: #43de5e //variables
@mixin left($dist)
float: left
margin-left: $dist //Definición de mixin con parámetro
.notesite
position: relative
width: 1em
height: 1em
&:after // & es el simbolo de 'parent'
@jesusr
jesusr / gist:6163449
Created August 6, 2013 10:34
Sass - use
sass --watch sass:stylesheets
@jesusr
jesusr / rsc-install.sh
Created August 6, 2013 10:38
Rails, Sass, Coffee - Install
#Rails
sudo gem install rails
#SASS
gem install sass-rails
#CoffeeScript
gem install coffee-rails
@jesusr
jesusr / anchor-simple.sass
Last active August 29, 2015 14:09
Nice effect for the hover event
/* More simple transition, without underline effect
a:hover
color: #7f270a
text-decoration: none
+transition-duration(.7s)
+transition-property(all)
+transition-timing-function(ease-in-out)
@jesusr
jesusr / _triarrow.sass
Created December 1, 2014 11:27
Triarrow: Triangle arrow attached to any position at the container
%triarrow
position: relative
&:after
border: solid transparent
content: " "
height: 0
width: 0
position: absolute
pointer-events: none
z-index: 99
@jesusr
jesusr / github_repo_data.php
Last active August 29, 2015 14:10
Github Extract Commit, Contributors and Issues data with PHP, the awful way
<?php
function getGithubData($user,$repo){
$ch = curl_init();
$url = 'https://api.github.com/repos/'.$user.'/'.$repo.'/commits';
$url2 = 'https://api.github.com/repos/'.$user.'/'.$repo.'/stats/contributors';
$url3 = 'https://api.github.com/repos/'.$user.'/'.$repo.'/issues';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent: Awesome-Octocat-App'));
@jesusr
jesusr / _block_button.sass
Created December 1, 2014 16:51
Button inside block (inverting colors transition)
%block_btn
+transition(background .1s ease-in 0s,color .1s ease-in 0s)
&:hover
background-color: rgba(white,.7)
=colorize($color: gray)
@extend %block_btn
&:hover
color: $color