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
<?php | |
// Source and documentation : http://www.texniq.de/en/kirby-wiki/split-long-posts-into-pages | |
// store the content of the kirbytext text variable in $text | |
$text = kirbytext($page->text()); | |
// split the content of $text whenever a <!--pagebreak--> code is encountered and store in the array $pages | |
$pages = explode('<!--pagebreak-->', $text); |
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
<?php | |
//If you want to remove the paragraph tags from the resulting string, uncomment the second line of the function. | |
function getFirstPara($string){ | |
$string = substr($string,0, strpos($string, "</p>")+4); | |
//$string = str_replace("<p>", "", str_replace("<p/>", "", $string)); | |
return $string; | |
} | |
$text = getFirstPara(kirbytext($page->text())); ?> | |
?> |
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
#!/bin/bash | |
# Takes one parameter: a remote git repository URL. | |
# | |
# This is the stuff this script does: | |
# | |
# 1. Clones the repository | |
# 2. Fetches all remote branches | |
# 3. Compresses the folder | |
# 4. Deletes the cloned folder. |
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
<?php | |
/* Merge multiple RSS feeds with SimplePie | |
* | |
* Just modify the path to SimplePie and | |
* modify the $feeds array with the feeds you want | |
* | |
* You should probably also change the channel title, link and description, | |
* plus I added a CC license you may not want | |
* | |
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/ |
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
# ma config | |
seen-local-config.php | |
# stockage de mon backup xml | |
tmp/ | |
# mes fichiers exportes | |
seen/ | |
# mac os x |
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
*/ | |
* h5ai 0.21 | |
*/ | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, |
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
// RecordFindChange_CS3-CS5.jsx | |
// | |
// An InDesign CS3--CS5 JavaScript | |
// Writes the current find/change preferences to a text file so that | |
// you can copy/paste them into a find/change list file. | |
// Kasyan Servetsky - http://kasyan.ho.com.ua/scripts_by_categories.html | |
String.prototype.cleanProps = 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
<!--JS Carousel on Twitter Bootstrap--> | |
<div id="myCarousel" class="carousel"> | |
<!-- Carousel items --> | |
<div class="carousel-inner"> | |
<div class="active item"> | |
<img alt="" src="../images/image1.jpg"> | |
</div> | |
<div class="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
<!--Javascript modal window in Twitter Bootstrap--> | |
<div id="myModal" class="modal hide fade"> | |
<div class="modal-header"> | |
<button class="close" data-dismiss="modal">×</button> | |
<h3>Modal Heading</h3> | |
</div> | |
<div class="modal-body"> | |
<h4>Text in a modal</h4> | |
</div> |
OlderNewer