Skip to content

Instantly share code, notes, and snippets.

Ignacio Galdames IgnacioGaldames

Block or report user

Report or block IgnacioGaldames

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@IgnacioGaldames
IgnacioGaldames / gist:0769c477c481551f10c8bdaa29be17a6
Created Feb 15, 2018 — forked from bds/gist:2207826
Convert files from .scss to .sass
View gist:0769c477c481551f10c8bdaa29be17a6
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass
@IgnacioGaldames
IgnacioGaldames / sf-mono.sh
Created Feb 9, 2018
Use San Francisco Mono
View sf-mono.sh
cp -R /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/. /Library/Fonts/
@IgnacioGaldames
IgnacioGaldames / jekyll.sh
Created Aug 2, 2017
jekyll serve incremental
View jekyll.sh
jekyll serve --watch --incremental
@IgnacioGaldames
IgnacioGaldames / exe.sh
Created Aug 2, 2017
crear ejecutable vía terminal
View exe.sh
$ chmod +x ./exe.sh
@IgnacioGaldames
IgnacioGaldames / trunc.php
Created Jun 27, 2017
Limitar palabras en Wordrpress
View trunc.php
//en functions.php
function trunc($phrase, $max_words, $after = null) {
$phrase_array = explode(' ',$phrase);
if(count($phrase_array) > $max_words && $max_words > 0)
$phrase = implode(' ',array_slice($phrase_array, 0, $max_words)) . $after;
return $phrase;
}
View email_expo_arcon.html
<html>
<head>
<title>informacion-expo-peru</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<style type="text/css">
td img {
display: block;
border: 0;
margin: 0;
@IgnacioGaldames
IgnacioGaldames / jquery_toggle.html
Last active Apr 24, 2017
Simple show content con jQuery
View jquery_toggle.html
<button class="btn btn-danger" id="click_desc">
Ver Más
</button>
<section id="desc">
<h1>hide content</h1>
</section>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script>
$(document).ready(function() {
$("button").click(function() {
@IgnacioGaldames
IgnacioGaldames / placeholder_shown.css
Last active Apr 24, 2017
Estilizar el placeholder de un input.
View placeholder_shown.css
input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #fff !important;
}
input::-moz-placeholder { /* Firefox 19+ */
color: #fff !important;
}
input:-ms-input-placeholder { /* IE 10+ */
color: #fff !important;
}
input:-moz-placeholder { /* Firefox 18- */
@IgnacioGaldames
IgnacioGaldames / ibooks.opf
Created Mar 7, 2017
Solución error ePub
View ibooks.opf
<item id="iTunesArtwork" href="../iTunesArtwork" media-type="image/jpg"></item>
View Copyright.js
You can’t perform that action at this time.