Skip to content

Instantly share code, notes, and snippets.

View inpresif's full-sized avatar
🎯
Focusing

inpresif

🎯
Focusing
View GitHub Profile
@inpresif
inpresif / ICS.php
Created October 20, 2020 00:14 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@inpresif
inpresif / Big List of Real Estate APIs.md
Created October 14, 2020 13:21 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@inpresif
inpresif / Amortization.php
Created October 25, 2019 22:39 — forked from pranid/Amortization.php
Amortization Schedule Example -- PHP Version
<?php
/**
* AMORTIZATION CALCULATOR
* @author PRANEETH NIDARSHAN
* @version V1.0
*/
class Amortization
{
private $loan_amount;
private $term_years;
@inpresif
inpresif / calculate-utc-offset-dst.php
Created January 30, 2019 20:51 — forked from glueckpress/calculate-utc-offset-dst.php
Calculate a timezone’s offset to UTC considering daylight savings time (e.g. CEST), print a string like “UTC+2” or “UTC-9”
<?php
/**
* Prints a string showing current time zone offset to UTC, considering daylight savings time.
* @link http://php.net/manual/en/timezones.php
* @param string $time_zone Time zone name
* @return string Offset in hours, prepended by +/-
*/
function ch150918__utc_offset_dst( $time_zone = 'Europe/Berlin' ) {
// Set UTC as default time zone.
@inpresif
inpresif / has-characters.php
Created December 23, 2018 12:01 — forked from cferdinandi/has-characters.php
Test strings for letters, numbers, and special characters. Returns true if they exist, false if they don't. Forked from http://stackoverflow.com/a/9588010/1293256
<?php
// Does string contain letters?
function _s_has_letters( $string ) {
return preg_match( '/[a-zA-Z]/', $string );
}
// Does string contain numbers?
function _s_has_numbers( $string ) {
return preg_match( '/\d/', $string );