Skip to content

Instantly share code, notes, and snippets.

View JGallardo's full-sized avatar

Juan Gallardo JGallardo

View GitHub Profile
@JGallardo
JGallardo / bootstrap-grid-only.css
Created February 5, 2018 17:59
Reference - Bootrap grid only by Schalk Joubert found at https://codepen.io/schalkjoubert/pen/dOoKre
/*!
* Bootstrap v3.3.7 (https://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (https://getbootstrap.com/customize/?id=3480420b1bdb271445f091b053f499d7)
* Config saved to config.json and https://gist.github.com/3480420b1bdb271445f091b053f499d7
*/
@JGallardo
JGallardo / postgresql-fail-fml
Created October 25, 2014 05:28
fail fail fail
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:11:in `block (3 levels) in <top (required)>'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/juangallardo/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/Users/juangallardo/.rvm/gems/ruby-2.1.3/gems/rake-10.3.2/lib/rake/application.rb:150:in `inv
@JGallardo
JGallardo / topics.py
Last active August 29, 2015 14:03
script to get my the topics that I answer the most on Quora
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def get_topics(user):
url = "http://www.quora.com/" + user + "/topics"
browser = webdriver.Chrome()
browser.get(url)
time.sleep(2)
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>[Pute your page title here]</title>
<meta name="description" content="[Describe the purpose of your website. And focus on what the specific page is about.]">
<meta name="author" content="[Put your name up here]">
@JGallardo
JGallardo / A-Pen-by-Juan-Gallardo.markdown
Created February 20, 2014 04:26
A Pen by Juan Gallardo.
@JGallardo
JGallardo / containers
Created January 21, 2014 21:19
test containers
/* resets */
body { margin:0; padding:0; }
/* outer container */
.outside{
background: #888;
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
@JGallardo
JGallardo / startup.sh
Created January 8, 2014 17:18
My script in the morning
#!/bin/sh
open /Applications/iTerm.app &
open /Applications/Firefox.app &
open /Applications/Transmit.app &
open /Applications/Sublime Text 2 &
open /Applications/Messages.app &
open /Applications/Screenhero.app &
open ~/Desktop/LimeChat.app &
open "/Applications/Microsoft Office 2011/Microsoft Outlook.app"
@JGallardo
JGallardo / startup
Created December 30, 2013 23:14
example of how to startup a computer to do various things
on run args
set home to (POSIX path of (path to home folder)) as string
tell application "iTerm"
activate
set myTerm to (make new terminal)
tell myTerm
repeat with i from 1 to 6
set newTab to (make new session at the end of sessions)
tell newTab
set name to "My tab " & i
@JGallardo
JGallardo / funky-button.css
Created October 3, 2013 20:24
funky looking button i accidentally made
a.wot {
background-color: #71c2ce;
border: 1px #8ab24f solid;
border-radius:3px;
margin: 0;
color: #fff;
padding: 6px 13px;
text-decoration: none;
text-shadow: none;
}
@JGallardo
JGallardo / gut
Created September 27, 2013 06:58
body {margin:0;padding:0;}
body{font-family:helvetica;}
#header {
height: 72px;
background-color: rgb(60,60,60);
}
#header h1 { line-height:30px; vertical-align:middle; }
#header h1 a {
text-decoration: none;
color:#fff;