Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Busy

Amir Shokri amirshnll

:octocat:
Busy
View GitHub Profile
View bigdump.php
<?php
error_reporting(E_ALL);
// BigDump ver. 0.36b from 2015-04-30
// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump)
// Even through the webservers with hard runtime limit and those in safe mode
// Works fine with latest Chrome, Internet Explorer and Firefox
// Author: Alexey Ozerov (alexey at ozerov dot de)
@amirshnll
amirshnll / wp-sponsors-fa_IR.po
Created Oct 19, 2021
wp sponsors wordpress plugin - persian translate
View wp-sponsors-fa_IR.po
# Copyright (C) 2021 wp-sponsors
# This file is distributed under the same license as the wp-sponsors package.
msgid ""
msgstr ""
"Project-Id-Version: wp-sponsors\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:"
@amirshnll
amirshnll / checkout-files-upload-woocommerce-fa_IR.po
Created Sep 17, 2021
checkout files upload woocommerce - persian translate
View checkout-files-upload-woocommerce-fa_IR.po
msgid ""
msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"Project-Id-Version: Checkout Files Upload for WooCommerce\n"
"POT-Creation-Date: 2021-09-16 01:38-0700\n"
"PO-Revision-Date: 2021-09-17 09:33+0000\n"
"Last-Translator: مدیر سایت\n"
"Language-Team: فارسی\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@amirshnll
amirshnll / gist:294a99654b5306ec1df5ca05bf323f11
Created Apr 12, 2021 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:294a99654b5306ec1df5ca05bf323f11

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@amirshnll
amirshnll / breek-fa_IR.po
Created Mar 14, 2021
breek Theme | persian translation .po file
View breek-fa_IR.po
msgid ""
msgstr ""
"Project-Id-Version: Breek\n"
"POT-Creation-Date: 2020-09-14 17:12-0300\n"
"PO-Revision-Date: 2021-03-14 22:30+0000\n"
"Last-Translator: مهدی عباسیان\n"
"Language-Team: فارسی\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@amirshnll
amirshnll / how-to-publish-to-npm.md
Created Feb 23, 2021 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM
View how-to-publish-to-npm.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser
@amirshnll
amirshnll / edabit-php-hard.php
Created Feb 19, 2021
edabit.com challenges php | Hard Level
View edabit-php-hard.php
<?php
function missingLetter($arr)
{
for ($i=ord($arr['0']); $i <= ord($arr[count($arr)-1]); $i++)
if(ord($arr[$i - ord($arr['0'])]) != $i)
return chr($i);
}
echo 'missingLetter(["a", "b", "c", "e", "f", "g"]) : ' . missingLetter(["a", "b", "c", "e", "f", "g"]) . "<br /><br />";
@amirshnll
amirshnll / edabit-php-medium.php
Created Feb 15, 2021
edabit challenges php medium
View edabit-php-medium.php
<?php
function isValidHexCode($string) {
if(strlen($string) != 7)
return "false";
$temp = str_split(strtolower($string));
if($temp[0] != "#")
@amirshnll
amirshnll / edabit-php-easy.php
Created Feb 14, 2021
edabit php challenges | easy level
View edabit-php-easy.php
<?php
function largestSwap($number) {
if($number < 10 || $number > 99)
return;
$string = str_split($number);