This file contains hidden or 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 | |
TRAININGDIR="./Trained" | |
SUFFIX="tif" | |
FONTPROPERTIES="$TRAININGDIR/font_properties" | |
for f in $(find $TRAININGDIR -iname "*.$SUFFIX") | |
do | |
# Get the name of the file | |
filename=$(echo ${f%%.$SUFFIX} | sed 's#^.*/##') |
This file contains hidden or 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 $years = array(); $months = array(); ?> | |
<?php if(has_posts()): while(posts()): ?> | |
<?php $y = date('Y', article_time()); $m = date('F', article_time()); ?> | |
<?php if( ! in_array($y, $years)): $years[] = $y; ?> | |
<h1><?php echo $y; ?></h1> | |
<?php endif; ?> |
This file contains hidden or 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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
This file contains hidden or 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 /*?>* function csv_to_array | |
* @link http://gist.github.com/385876 | |
* @author Jay Williams <http://myd3.com/> | |
* @copyright Copyright (c) 2010, Jay Williams<?php */?> | |
<?php | |
$imagelist= $page->imagelist(); | |
if ($imagelist != ''){ | |
function csv_to_array($filename='', $delimiter=',') { |
This file contains hidden or 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
# Installation | |
curl -o laravel.phar http://laravel.com/laravel.phar | |
chmod 755 laravel.phar | |
mv laravel.phar /usr/local/bin/laravel | |
# Usage | |
laravel new <application_name> |
This file contains hidden or 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
// Send Email | |
require_once 'Mandrill.php'; | |
$mandrill = new Mandrill($apikey); | |
$message = new stdClass(); | |
$message->html = "html message"; | |
$message->text = "text body"; | |
$message->subject = "email subject"; | |
$message->from_email = "[email protected]"; |
This file contains hidden or 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
<div class="col50"> | |
<div class="column-margin"> | |
<h3>One half</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus | |
porttitor nibh eu est pretium sagittis. Vestibulum sapien nunc, | |
consequat in pulvinar ac, volutpat sed mauris. Nam nec eros mi. Nullam | |
euismod felis fermentum massa vehicula eu volutpat nisi egestas. Mauris | |
purus massa, tempor vitae egestas vel, mattis sit amet nisi. Curabitur | |
risus est, cursus vitae porta vitae, elementum scelerisque velit. Nunc |
This file contains hidden or 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
<div class="col33"> | |
<div class="column-margin"> | |
<h3>One Third</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus | |
porttitor nibh eu est pretium sagittis. Vestibulum sapien nunc, | |
consequat in pulvinar ac, volutpat sed mauris. Nam nec eros mi. Nullam | |
euismod felis fermentum massa vehicula eu volutpat nisi egestas. Mauris | |
purus massa, tempor vitae egestas vel, mattis sit amet nisi. Curabitur | |
risus est, cursus vitae porta vitae, elementum scelerisque velit. Nunc |
This file contains hidden or 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 | |
#Pages have these fields, they can have comma separated values for group, category and option | |
# Title: Event1 | |
# ---- | |
# Group: Group1 | |
# ---- | |
# Category: Cat2 | |
# ---- | |
# Option: Option1 |
This file contains hidden or 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 | |
#Pages have these fields, the can have comma separated values for group, category and option | |
# Title: Event1 | |
# ---- | |
# Group: Group1 | |
# ---- | |
# Category: Cat2 | |
# ---- |
OlderNewer