Skip to content

Instantly share code, notes, and snippets.

View JGallardo's full-sized avatar

Juan Gallardo JGallardo

View GitHub Profile
@JGallardo
JGallardo / copyleft.html
Created July 25, 2013 05:51
This makes the "Copyleft symbol." Credit to the Stack Overflow user "Anonimo" for the help on the CSS http://stackoverflow.com/users/2178220/anonimo
<style>
.copy-left {
display: inline-block;
text-align: right;
margin: 0;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
@JGallardo
JGallardo / mortgageCalc.rb
Created December 14, 2012 03:06
Very basic script in Ruby to calculate mortgage payments.
print "enter loan amount: "
loan = gets.chomp.to_i
print "Enter length of time in months: "
time = gets.chomp.to_i
print "Enter interest rate: "
rate = gets.chomp.to_f/100
i = (1+rate/12)**(12/12)-1
annuity = (1-(1/(1+i))**time)/i
@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 / Meyerweb CSS Reset
Created June 1, 2012 18:02
Reset for CSS - From Meyerweb - Shortened Version
/* CSS reset prior to style*/
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video
{ margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
/* HTML5 display-role reset for older browsers */
@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;
@JGallardo
JGallardo / footer-link-elements
Created September 14, 2013 00:34
I used this to align the elements inside of a mobile footer. The link name is on the left, a button is on the right.