News for hackers. Stuff that matters.

Horlahcoded

Re:Show HN: Laravel Brick Money Package on Saturday December 27, 2025 @11:00PM (#46408293)
This package provides the Laravel integration of Brick/Money.

``` use Devhammed\LaravelBrickMoney\Money; use Devhammed\LaravelBrickMoney\Currency;

echo Money::of(100); // '$100.00'

echo Money::of(100, Currency::of('EUR')); // '€100,00'

echo Money::of(100, 'USD'); // '$100.00'

echo Money::ofMinor(100); // '$1.00'

echo Money::ofMinor(100, 'EUR'); // '€1,00' ```

Re:Sleep.js: JavaScript port of PHP sleep() function in 6 LOC on Saturday February 10, 2018 @10:58PM (#16351099)
Why @taf2 ? setTimeout is asynchronous, code after it will be executed before the function...requestAnimationFrame is for animations.
Re:HUI.js – JavaScript Front End UI Library in 657 Bytes on Monday January 01, 2018 @06:14PM (#16048600)
Thanks for pointing that out, you can write your code in separate file then include in the HTML. i have updated the docs to note that.
Re:HUI.js – JavaScript Front End UI Library in 657 Bytes on Monday January 01, 2018 @05:34PM (#16048409)
have you checked HyperScript?
Re:HUI.js JavaScript Re-Usable UI Library on Thursday December 21, 2017 @02:46PM (#15982167)
i'm a Nigerian, never knew it has such translation.
Re:HUI.js JavaScript Re-Usable UI Library on Thursday December 21, 2017 @01:08AM (#15976811)
Thanks. it is a layout library to create re-usable web components.