Skip to content

Instantly share code, notes, and snippets.

View hsa599's full-sized avatar
🎯
Focusing

Hossein Sadeghi Nima hsa599

🎯
Focusing
View GitHub Profile
@hsa599
hsa599 / gist:5d21b469448615a805d0f80770f9d5f9
Created May 2, 2021 19:09 — forked from ynh/gist:3941533
Google news template
<table>
{{#responseData.results}}
<tr>
<td>
<h4>{{{title}}}</h4>
<img src="{{image.tbUrl}}" style="float:left;padding-right:10px;" />
{{{content}}}
</td>
</tr>
{{/responseData.results}}
@hsa599
hsa599 / do-compile-ffmpeg.sh
Created May 2, 2021 19:10 — forked from teocci/do-compile-ffmpeg.sh
FFmpeg iOS build script
#! /bin/sh
# This script is based on projects below
# https://github.com/kolyvan/kxmovie
# https://github.com/yixia/FFmpeg-Android
# http://git.videolan.org/?p=vlc-ports/android.git;a=summary
# https://github.com/kewlbear/FFmpeg-iOS-build-script/
#--------------------
echo "===================="
<?php
@error_reporting(E_ALL);
@set_time_limit(0);
class ConvertFinglishToFarsi
{
/**
* Default Options
*/
public $useFarsiNumbers = false; //Replace English numbers with Persian numbers
@hsa599
hsa599 / whois.php
Created May 16, 2021 00:38 — forked from unusorin/whois.php
PHP Whois
<?php
function whois_query($domain) {
// fix the domain name:
$domain = strtolower(trim($domain));
$domain = preg_replace('/^http:\/\//i', '', $domain);
$domain = preg_replace('/^www\./i', '', $domain);
$domain = explode('/', $domain);
$domain = trim($domain[0]);