Skip to content

Instantly share code, notes, and snippets.

💭
Currently working at Evand as a backend-developer

Hossein Baghayi baghayi

💭
Currently working at Evand as a backend-developer
Block or report user

Report or block baghayi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@baghayi
baghayi / Evand Advertising Campaign.postman_collection.json
Created Dec 12, 2018
Evand Advertising Campaign's Postman collection (V2)
View Evand Advertising Campaign.postman_collection.json
{
"variables": [],
"info": {
"name": "Evand Advertising Campaign",
"_postman_id": "170efde0-459a-11eb-deb5-904b6db7e762",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
@baghayi
baghayi / vimrc
Created Feb 10, 2015
My current vimrc file
View vimrc
set nocompatible
call pathogen#infect()
filetype plugin indent on
let mapleader=','
let g:used_javascript_libs = 'angularjs,angularui,jasmine,jquery'
set laststatus=2
set fileencoding=utf-8
View keybase.md

Keybase proof

I hereby claim:

  • I am baghayi on github.
  • I am hossein (https://keybase.io/hossein) on keybase.
  • I have a public key whose fingerprint is 1276 FE5D 9C0E 8A93 F487 2A1B E5F3 EA19 DBB4 F714

To claim this, I am signing this object:

@baghayi
baghayi / gist:8059337
Created Dec 20, 2013
Git Configurations
View gist:8059337
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
@baghayi
baghayi / gist:7726217
Last active Dec 29, 2015
There is something wrong with this code when calling serviceLocator with no use there is decrease is ram but when commenting it out, usage of resources increases. I am checking resources usage by zenddeveloper tools. it is on line 6.
View gist:7726217
public function getViewHelperConfig()
{
return array(
'factories' => array(
'sidebarMenu' => function ($helpers){
// $helpers->getServiceLocator();
return new SidebarMenu();
},
)
);
@baghayi
baghayi / phpunit-build-system-file-codes
Created Jan 14, 2013
phpunit build system file codes for sublime-text 2
View phpunit-build-system-file-codes
{
"cmd": ["phpunit"],
"file_regex": "php$",
"selector": "source.php",
"working_dir": "${project_path}"
}
@baghayi
baghayi / phpunit-sample-xml-file
Created Jan 14, 2013
phpunit sample xml file (phpunit.xml)
View phpunit-sample-xml-file
<testsuites>
<testsuite>
<directory suffix=".php">Test</directory>
</testsuite>
</testsuites>
@baghayi
baghayi / html5-css3
Created Apr 27, 2012
An Edited Page! :)
View html5-css3
<!doctype html>
<!--[if lt IE 7]> <html dir="rtl" class="no-js lt-ie9 lt-ie8 lt-ie7" lang="fa"> <![endif]-->
<!--[if IE 7]> <html dir="rtl" class="no-js lt-ie9 lt-ie8" lang="fa"> <![endif]-->
<!--[if IE 8]> <html dir="rtl" class="no-js lt-ie9" lang="fa"> <![endif]-->
<!--[if gt IE 8]><!--> <html dir="rtl" class="no-js" lang="fa"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="description" content="با خرید کتاب آموزش HTML5 و CSS در قالب پروژه می توانید طراحی سایت را بر اساس آخرین استانداردها فرا بگیرید و سایت هایی زیبا خلق کنید." />
<meta name="keywords" content="آموزش طراحی, HTML5, CSS3, کتاب HTML5, کتاب CSS3, امیرعباس عبدالعلی" />
<title>آموزش HTML5 و CSS3 در قالب پروژه - کتاب آموزشی طراحی سایت</title>
@baghayi
baghayi / Custom Attributes
Created Apr 18, 2012
A HTML File Which Demonstrates How Does Custom Attributes Work In HTML5
View Custom Attributes
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Custom Attributes</title>
<style>
#customAttribute
{
border: 2px solid red;
width: 300px;
height: 100px;
View A Nice Big Query :)
SELECT * FROM `mytable` WHERE `fid` IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 2
You can’t perform that action at this time.