Skip to content

Instantly share code, notes, and snippets.

Avatar
🏋️‍♀️
Focusing

sina miandashti sinamiandashti

🏋️‍♀️
Focusing
View GitHub Profile
View menu middleware.php
<?php
namespace App\Http\Middleware;
use Closure;
use Menu;
class AdminMenuGenerator
{
/**
View www.conf
; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
View cpubench.sh
function start_progress {
while true
do
echo -ne "#"
sleep 1
done
}
function stop_progress {
kill $1
wait $1 2>/dev/null
@sinamiandashti
sinamiandashti / Verta.php
Created Aug 8, 2018
vendor/hekmatinasser/verta/src/Verta.php
View Verta.php
<?php
namespace Hekmatinasser\Verta;
/*
* This file is part of the Jalali package.
*
* (c) Nasser Hekmati <hekmati.nasser@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
@sinamiandashti
sinamiandashti / fail.php
Created Dec 13, 2017
2 method of query in IPTV
View fail.php
<?php
$query = "SELECT SQL_CALC_FOUND_ROWS notifications.* FROM notifications WHERE";
if (!empty($filters['subsystem_id'])) {
$query .= " notifications.subsystem_id=:subsystem_id";
}
$stm = $this->db->prepare($query);
$stm->execute([':subsystem_id' => $filters['subsystem_id']]);
$data = [];
while ($row = $stm->fetch(\PDO::FETCH_ASSOC)) {
View Pm24 new api
Payment24 new API!
===================
[TOC]
Here is newly added api's for mobile applications
----------
@sinamiandashti
sinamiandashti / index.js
Created Sep 19, 2015
sanarate.ir driver
View index.js
var count =0;
var unameArr = ['usdirr','eurirr','uaeirr'];
$('#MainContent_ViewSanaRates_tblSale').find('.trAgg').each(function(index){
if (count ==0) {
count++;
return true;
}
var price = u.getPrice($(index).text());
@sinamiandashti
sinamiandashti / province_with_cities.js
Created Feb 14, 2015
Iran Province with Cities Json
View province_with_cities.js
{"آذربايجان شرقي":["آذر شهر","اسكو","اهر","بستان آباد","بناب","بندر شرفخانه","تبريز","تسوج","جلفا","سراب","شبستر","صوفیان","عجبشير","قره آغاج","كليبر","كندوان","مراغه","مرند","ملكان","ممقان","ميانه","هاديشهر","هريس","هشترود","ورزقان"],"آذربايجان غربي":["اروميه","اشنويه","بازرگان","بوكان","پلدشت","پيرانشهر","تكاب","خوي","سردشت","سلماس","سيه چشمه- چالدران","سیمینه","شاهين دژ","شوط","ماكو","مهاباد","مياندوآب","نقده"],"اردبيل":["اردبيل","بيله سوار","پارس آباد","خلخال","سرعين","كيوي (كوثر)","گرمي (مغان)","مشگين شهر","مغان (سمنان)","نمين","نير"],"اصفهان":["آران و بيدگل","اردستان","اصفهان","باغ بهادران","تيران","خميني شهر","خوانسار","دهاقان","دولت آباد-اصفهان","زرين شهر","زيباشهر (محمديه)","سميرم","شاهين شهر","شهرضا","فريدن","فريدون شهر","فلاورجان","فولاد شهر","قهدریجان","كاشان","گلپايگان","گلدشت اصفهان","گلدشت مركزی","مباركه اصفهان","مهاباد-اصفهان","نايين","نجف آباد","نطنز","هرند"],"البرز":["آسارا","اشتهارد","شهر جديد هشتگرد","طالقان","كرج","گلستان تهران","نظرآباد","هشتگرد"],"ايلام":["آبدانان","ايلام","ايوان","دره
View gist:d5bed2819b22854e75ac
[ 0%] Built target fastlz
[ 2%] Built target pcre
[ 2%] Built target afdt
[ 2%] Built target sqlite3
[ 7%] Built target mbfl
[ 8%] Built target timelib
[ 8%] Built target lz4
[ 8%] Built target double-conversion
[ 14%] Built target zip_static
[ 16%] Built target hphp_thrift
View gist:22dfc847570ede4e9f02
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/Bits.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/Checksum.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/Conv.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/dynamic.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/File.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/FileUtil.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/Format.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/GroupVarint.cpp.o
[ 0%] Building CXX object third-party/folly/CMakeFiles/folly.dir/folly/IPAddress.cpp.o
You can’t perform that action at this time.