Broj π se može obračunati na više načina (Arhimed, Bazelski problem i slično), a čini se da je jedna zakonotost povoljna da se to uradi programski.
Continue reading “Kako do broja PI? Korak 1”Category: Programiranje
PHP vs Python pack format comparation
Differences between PHP and Python pack/unpack format characters
Continue reading “PHP vs Python pack format comparation”What’s new in PHP 8
After a lot of to-ing and fro-ing as to when PHP 8 would be released, the developers have now announced that November 26th, 2020 is the date we’re waiting for.
The new version of PHP is expected to come with some new features that offer web developers many additional possibilities.
JIT Compiler, JSON extension always activated, Union Types, Static return type, WeakMap, Use ::class for objects, Stringable interface, Convert DateTime, Type annotations, Type errors…
Continue reading “What’s new in PHP 8”PHP list() and Shorthand for Array Destructuring
PHP construct list() or its shorthand can be useful in many cases. It can be very useful to use it with PHP functions that returns arrays. Supun Kavinda have interesting article about.
Continue reading “PHP list() and Shorthand for Array Destructuring”25+ JavaScript Shorthand Coding Techniques
This really is a must read for any JavaScript developer. Michael Wanyoike, Sam Deering have written this guide to shorthand JavaScript coding techniques that they have picked up over the years. To help you understand what is going on, they have included the longhand versions to give some coding perspective.
This really is a must read for any JavaScript developer. Michael Wanyoike, Sam Deering have written this guide to shorthand JavaScript coding techniques that they have picked up over the years. To help you understand what is going on, they have included the longhand versions to give some coding perspective.
Continue reading “25+ JavaScript Shorthand Coding Techniques”JS simple autocomplete – najprostiji način
AJAX autocomplete formiran pomoću HTML5 datalist taga Continue reading “JS simple autocomplete – najprostiji način”
JS validacija, jednostavan način
Postoje 2 načina za validaciju formi na osnovu mesta izvršenja validacije. Jedna je obavezna server-side validacija (php, asp, java), a druga je na klijentskoj strani i za to se uglavnom koristi Java Script. Kažem uglavnom, jer moderni browser-i imaju ugrađene validatore. Continue reading “JS validacija, jednostavan način”
JQuery UI je koristan, ali…
Neke osobine u jQueryUI css mogu da naruše css sajta.Recimo,
.ui-helper-clearfix:after {
clear: both;
}
valjalo bi zameniti sa
.ui-helper-clearfix:after {
overflow: auto;
width: 100%
}
Koristan link: http://www.quirksmode.org/css/clearing.html
JavaScript Module Pattern
Smanjivanje broja globalnih promenljivih i njihovo premeštanje u lokalne (privatne) promenljive donosi više reda u svim jezicima, pa tako i u JavaScript kodu. Ako znamo da se na stranicama često nalazi više različitih skripti ovakvo označavanje ima više smisla.
Create Microsoft Office Minibar with jQuery and CSS3
Vredi probati, interesantno je za neke aplikacije:
Izvor:
http://www.jankoatwarpspeed.com/post/2010/05/23/microsoft-office-minibar-jQuery-CSS3.aspx