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 / 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#^.*/##')
<?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; ?>
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
# 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>
// 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 = "address@test.com";
@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
@nishad
nishad / cabc-3-cloumn
Created November 20, 2014 05:43
SandBox 3 coulmn
<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
<?php
#Pages have these fields, they can have comma separated values for group, category and option
# Title: Event1
# ----
# Group: Group1
# ----
# Category: Cat2
# ----
# Option: Option1
<?php
#Pages have these fields, the can have comma separated values for group, category and option
# Title: Event1
# ----
# Group: Group1
# ----
# Category: Cat2
# ----