Skip to content

Instantly share code, notes, and snippets.

View robertnicjoo's full-sized avatar
🏠
Working from home

Robert Nicjoo robertnicjoo

🏠
Working from home
View GitHub Profile
@robertnicjoo
robertnicjoo / foreach_limit.blade.php
Created February 18, 2018 15:05 — forked from ericlbarnes/foreach_limit.blade.php
Limit a foreach with Laravel blade
@foreach (array_slice($posts->toArray(), 0, 5) as $post)
<h1>{{ $post['title'] }}</h1>
@endforeach
@robertnicjoo
robertnicjoo / telegram-instant-view-template-help
Created February 11, 2022 04:16 — forked from HoussenMoshine/telegram-instant-view-template-help
Help for Telegram Instant View Template
# To remove only some text on a content
@remove: //p[self::p/strong[contains(text(), "Articles liés")]]
@remove: //iframe[contains(@src,"https://urlsomething")]
# To deal with fucking error of <img> is not supported in blabla
@before_el(./..): //a/img
@before_el(./..): //p/img