Skip to content

Instantly share code, notes, and snippets.

View nishad's full-sized avatar
🐢
I may be slow to respond.

Nishad Thalhath nishad

🐢
I may be slow to respond.
View GitHub Profile
@nishad
nishad / cabc-2-column.html
Last active August 29, 2015 14:10
CAbC SandBox
<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
// 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]";
# 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>
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
<?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; ?>
@nishad
nishad / Tesseract lang creation script
Created February 14, 2013 06:20
Tesseract lang creation script
#!/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#^.*/##')