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
# 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#^.*/##')