Skip to content

Instantly share code, notes, and snippets.

View rombyar's full-sized avatar
💻
Hai Sayang ...

Roma rombyar

💻
Hai Sayang ...
View GitHub Profile
@gitdagray
gitdagray / online_offline_detection.js
Last active March 14, 2024 20:55
Online / Offline Status Detection w/ Async & Await
/* ********** Online / Offline Detection ********** */
// Request a small image at an interval to determine status
// ** Get a 1x1 pixel image here: http://www.1x1px.me/
// ** Use this code with an HTML element with id="status"
const checkOnlineStatus = async () => {
try {
const online = await fetch("/1pixel.png");
return online.status >= 200 && online.status < 300; // either true or false
@matheusfaustino
matheusfaustino / install.sh
Created December 10, 2018 00:48
PHPBrew + PHP 7 (PHP 7.0/7.1/7.2/7.3) + Raspberry Pi 3
# How to install phpbrew
# https://github.com/phpbrew/phpbrew
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
# build openssl in your raspberry (it takes some time): https://raspberrypi.stackexchange.com/a/66788
git clone git://git.openssl.org/openssl.git
cd openssl
./config
@rizkysetiawanel
rizkysetiawanel / controller.php
Last active March 5, 2017 02:13
Load scroll dengan codeigniter, js->controller->model->view
public function auto_halaman($num)
{
$data['anime_data'] = $this->anime_panel_model->mengambil_data2($num); //ini untuk menload data posting nya
$this->load->view('browse/front/anime_view', $data); // ini untuk ke view nya
}
@siswadi
siswadi / Waktu Sholat Arah Kiblat.md
Last active October 28, 2023 07:10
Waktu Sholat & Arah Kiblat w/ HTTP/JSON API

Waktu Sholat & Arah Kiblat

Informasi Waktu

https://time.sis.im/
https://time.sis.im/Asia/Jakarta
https://time.sis.im/help
https://time.sis.im/?help
https://time.sis.im/?timezone=Asia/Jakarta # rekomendasi
@tzmartin
tzmartin / embedded-file-viewer.md
Last active April 22, 2024 19:39
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@FinlayDaG33k
FinlayDaG33k / gist:23a6134b1ad3e5f867a64219a374406e
Last active February 12, 2024 19:30
Minergate-cli ubuntu installation
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@webprogramozo
webprogramozo / blur.css
Created June 7, 2016 12:43
Bootstrap modal with blurry background
body.modal-open > :not(.modal) {
-webkit-filter: blur(1px);
-moz-filter: blur(1px);
-o-filter: blur(1px);
-ms-filter: blur(1px);
filter: blur(1px);
}