Skip to content

Instantly share code, notes, and snippets.

View IgnacioGaldames's full-sized avatar
🚀
Desafío Latam

Ignacio Galdames IgnacioGaldames

🚀
Desafío Latam
View GitHub Profile
@IgnacioGaldames
IgnacioGaldames / navegacion.js
Created April 22, 2020 15:51
navegación con target on load y on click
$('header .navbar-nav a').on('click', function () {
$('header .navbar-nav').find('.active').removeClass('active');
$(this).parent('li').addClass('active');
});
$(window).on("load", function(){
$(function() {
setTimeout(function() {
if (location.hash) {
/* we need to scroll to the top of the window first, because the browser will always jump to the anchor first before JavaScript is ready, thanks Stack Overflow: http://stackoverflow.com/a/3659116 */
window.scrollTo(0, 0);
@IgnacioGaldames
IgnacioGaldames / landing.html
Created April 17, 2020 15:18
landing menu with anchor links
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E-Commerce2.0</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.typekit.net/nme0rgr.css">
@IgnacioGaldames
IgnacioGaldames / circles-lines.html
Created April 13, 2020 17:36
circles with lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="es" class="" manifest="cache.manifest">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Web App Template</title>
@IgnacioGaldames
IgnacioGaldames / Font-face.scss
Created March 30, 2020 15:19
Font face using fonts array
$fontsUrl : "unineue/";
$fonts:
'unineuethin' 100 normal 'uni_neuethin',
'unineuethin-italic' 100 italic 'uni_neuethin_italic',
'unineuelight' 200 normal 'uni_neuelight',
'unineuelight-italic' 200 italic 'uni_neuelight_italic',
'unineuebook' 300 normal 'uni_neuebook',
'unineueregular' 400 normal 'uni_neueregular',
'unineueregular-italic' 400 italic 'uni_neueregular_italic',
'unineuebold' bold normal 'uni_neuebold',
@IgnacioGaldames
IgnacioGaldames / basic-fonts.sass
Created March 30, 2020 15:18
Basic fonts css
.font-petite-caps
font-variant: all-petite-caps
body
-webkit-text-size-adjust: 100%
font-variant-ligatures: common-ligatures
-webkit-font-variant-ligatures: common-ligatures
text-rendering: optimizeLegibility
-moz-osx-font-smoothing: grayscale
-webkit-font-smoothing: antialiased
@IgnacioGaldames
IgnacioGaldames / gist:0769c477c481551f10c8bdaa29be17a6
Created February 15, 2018 18:35 — forked from bds/gist:2207826
Convert files from .scss to .sass
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass
@IgnacioGaldames
IgnacioGaldames / sf-mono.sh
Created February 9, 2018 19:47
Use San Francisco Mono
cp -R /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/. /Library/Fonts/
@IgnacioGaldames
IgnacioGaldames / jekyll.sh
Created August 2, 2017 13:36
jekyll serve incremental
jekyll serve --watch --incremental
@IgnacioGaldames
IgnacioGaldames / exe.sh
Created August 2, 2017 13:30
crear ejecutable vía terminal
$ chmod +x ./exe.sh