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;
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() {
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- */
View ibooks.opf
<item id="iTunesArtwork" href="../iTunesArtwork" media-type="image/jpg"></item>
View Copyright.js
View php_array_in_javascript.js
var myArray = <?php echo json_encode($php_array); ?>;
View npmProject
sudo npm install -g npm
sudo npm install -g express
mkdir TestProject
cd TestProject
npm init --yes
npm install request --save
View Install_NPM.sh
sudo npm install -g npm
sudo npm install -g express