Snaps in all categories

Yii2 check if record exists with where condition...

yii2 php

The simplest and quickest (to write) way to reverse string in Java which I have ever seen without third party libraries....

reverse string

In JavaScript String (unlike array) hasn't got native reverse function (at least by now). To reverse string we can use both String.prototype or "third party" function. To see full code and demo check out http://jsbin.com/gawiga/2/edit?html,js,ou...

reverse string

Model detachment is caused by the nature of inheritance in JavaScript. When you type something in child controller model the inherited variable will be overwritten. It can be easily fixed by using object variables. Check out the demo: http://jsb...

model twitter-bootstrap angular

Very simplistic rotator in actionscript 3.0, contains few traces for debugging....

actionscript-3 rotator slider

php

Simple hello world program in PHP...

echo

C

Simple hello world program in C...

printf

Simple hello world program in Haxe...

trace

C++

Simple hello world program in C++...

cout std

Simple hello world program in Java....

println

Custom styles with responsive text with media queries. Desktop first queries 10 different settings....

css css3 bootstrap

Efficient way of checking whether given number is prime or not without additional libraries or pre-generating array of prime numbers. Remember to search prime numbers in positive integers....

prime-number maths

Copying table structure from one database to another database....

mysql table copy database

php

php - datetime current date for save in mysql table...

php mysql date

linux ubuntu - add current user ownership to folder...

linux ownership folder

php

Php connection class returning instance. Using singleton pattern....

php mysql pdo singleton connection

Setting default datetime using CURRENT_TIMESTAMP with mysql...

mysql timestamp default datetime

If you want to move another layer along another one use this code:...

after-effects

Kohana orm validation...

php kohana orm validation frameworks

php

Finding first and last item of an array using end and reset functions...

php array find