Skip to content

Instantly share code, notes, and snippets.

View aznoisib's full-sized avatar

aznoisib aznoisib

View GitHub Profile
(function($) {
$.fn.countdown = function(options, callback) {
//custom 'this' selector
thisEl = $(this);
//array of custom settings
var settings = {
'date': null,
'format': null
@flangofas
flangofas / ConvertMS.js
Last active June 1, 2024 04:00
JS: Convert Milliseconds to days? minutes? seconds? or all!
function convertMiliseconds(miliseconds, format) {
var days, hours, minutes, seconds, total_hours, total_minutes, total_seconds;
total_seconds = parseInt(Math.floor(miliseconds / 1000));
total_minutes = parseInt(Math.floor(total_seconds / 60));
total_hours = parseInt(Math.floor(total_minutes / 60));
days = parseInt(Math.floor(total_hours / 24));
seconds = parseInt(total_seconds % 60);
minutes = parseInt(total_minutes % 60);
@brunomonteiro3
brunomonteiro3 / page_status_checker.php
Created February 14, 2017 23:50
PHP - Page status checker. Based on a cURL request, this script will check if an element is rendered on the requested URL and if it's not found, fire an e-mail alert.
<?php
/*
Author: Monteiro, Bruno
E-mail: [email protected]
*/
// Simple cURL settings to retrive all data from the submitted URL
function page_status_checker( $url ) {
$user_agent='Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0';
@tmatz
tmatz / build_android_app_on_termux.md
Last active November 17, 2024 19:19
Build android app on termux

Build android app on termux

1. install termux

install termux from F-Droid.

2. setup termux

apt update