This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm install -g npm | |
sudo npm install -g express |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm install -g npm | |
sudo npm install -g express | |
mkdir TestProject | |
cd TestProject | |
npm init --yes | |
npm install request --save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myArray = <?php echo json_encode($php_array); ?>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gem install -n /usr/local/bin jekyll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addLink() { | |
var body_element = document.getElementsByTagName('body')[0]; | |
var selection; | |
selection = window.getSelection(); | |
// change this if you want | |
var pagelink = "<br><br>Fuente: myFuente - <a href='"+document.location.href+"'>"+document.location.href+"</a><br>"; | |
var copytext = selection + pagelink; | |
var newdiv = document.createElement('div'); | |
newdiv.style.position='absolute'; | |
newdiv.style.left='-99999px'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item id="iTunesArtwork" href="../iTunesArtwork" media-type="image/jpg"></item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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- */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; | |
} |