Skip to content

Instantly share code, notes, and snippets.

View sinamiandashti's full-sized avatar
🏋️‍♀️
Focusing

sina miandashti sinamiandashti

🏋️‍♀️
Focusing
View GitHub Profile
Pruning file `/usr/local/opt/boost/include/boost/range/iterator_range.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/iterator_range_core.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/iterator_range_io.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/mutable_iterator.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/rbegin.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/rend.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/result_iterator.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/reverse_iterator.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/size.hpp'.
Pruning file `/usr/local/opt/boost/include/boost/range/size_type.hpp'.
@sinamiandashti
sinamiandashti / gist:8b0eae186148e977c233
Last active August 29, 2015 14:05
make -j1 hhvm osx
[ 26%] Built target hphp_analysis
[ 26%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/analyze.cpp.o
[ 26%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/cfg.cpp.o
[ 26%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/check.cpp.o
[ 26%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/class-util.cpp.o
[ 26%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/dce.cpp.o
[ 27%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/debug.cpp.o
[ 27%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/emit.cpp.o
[ 27%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/func-util.cpp.o
[ 27%] Building CXX object hphp/hhbbc/CMakeFiles/hphp_hhbbc.dir/hhbbc.cpp.o
@sinamiandashti
sinamiandashti / gist:22dfc847570ede4e9f02
Created September 10, 2014 08:32
osx make 100% failed
[ 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
[ 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
@sinamiandashti
sinamiandashti / province_with_cities.js
Created February 14, 2015 08:32
Iran Province with Cities Json
{"آذربايجان شرقي":["آذر شهر","اسكو","اهر","بستان آباد","بناب","بندر شرفخانه","تبريز","تسوج","جلفا","سراب","شبستر","صوفیان","عجبشير","قره آغاج","كليبر","كندوان","مراغه","مرند","ملكان","ممقان","ميانه","هاديشهر","هريس","هشترود","ورزقان"],"آذربايجان غربي":["اروميه","اشنويه","بازرگان","بوكان","پلدشت","پيرانشهر","تكاب","خوي","سردشت","سلماس","سيه چشمه- چالدران","سیمینه","شاهين دژ","شوط","ماكو","مهاباد","مياندوآب","نقده"],"اردبيل":["اردبيل","بيله سوار","پارس آباد","خلخال","سرعين","كيوي (كوثر)","گرمي (مغان)","مشگين شهر","مغان (سمنان)","نمين","نير"],"اصفهان":["آران و بيدگل","اردستان","اصفهان","باغ بهادران","تيران","خميني شهر","خوانسار","دهاقان","دولت آباد-اصفهان","زرين شهر","زيباشهر (محمديه)","سميرم","شاهين شهر","شهرضا","فريدن","فريدون شهر","فلاورجان","فولاد شهر","قهدریجان","كاشان","گلپايگان","گلدشت اصفهان","گلدشت مركزی","مباركه اصفهان","مهاباد-اصفهان","نايين","نجف آباد","نطنز","هرند"],"البرز":["آسارا","اشتهارد","شهر جديد هشتگرد","طالقان","كرج","گلستان تهران","نظرآباد","هشتگرد"],"ايلام":["آبدانان","ايلام","ايوان","دره
@sinamiandashti
sinamiandashti / index.js
Created September 19, 2015 05:53
sanarate.ir driver
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 / module.php
Created May 18, 2012 17:31
problem bootstrap evend zf2
<?php
namespace Accounting;
use Zend\Module\Manager,
Zend\EventManager\Event,
Zend\EventManager\StaticEventManager,
Zend\Module\Consumer\AutoloaderProvider;
class Module implements AutoloaderProvider {
@sinamiandashti
sinamiandashti / Paginator.php
Created August 9, 2012 22:50
zf doctrine paginator adapter
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Paginator
*
@sinamiandashti
sinamiandashti / gist:3308783
Created August 9, 2012 22:52
example usage zf doctrine paginator
$movies = $this->_em->createQueryBuilder();
$movies->add("select", "m")
->add("from", "Movies m")
->add("where", "m.active = '1'");
$pagin = new Zend_Paginator(new Paginator($movies));
$pagin->setItemCountPerPage(10);
@sinamiandashti
sinamiandashti / index.php
Last active December 23, 2015 08:19
aaab.ir multilang
<?
if (array_key_exists('lang', $_GET)) {
$currentlang = $_GET['lang'];
} else {
$currentlang = 'en';
}
$langdataArray = array(
'texten' => 'textfa',
);