Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View baghayi's full-sized avatar
🌴
On vacation

Hüsen Baghayi baghayi

🌴
On vacation
View GitHub Profile
@baghayi
baghayi / Evand Advertising Campaign.postman_collection.json
Created December 12, 2018 12:45
Evand Advertising Campaign's Postman collection (V2)
{
"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 / gist:8059337
Created December 20, 2013 18:39
Git Configurations
[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 December 29, 2015 20:49
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.
public function getViewHelperConfig()
{
return array(
'factories' => array(
'sidebarMenu' => function ($helpers){
// $helpers->getServiceLocator();
return new SidebarMenu();
},
)
);
@baghayi
baghayi / phpunit-build-system-file-codes
Created January 14, 2013 22:24
phpunit build system file codes for sublime-text 2
{
"cmd": ["phpunit"],
"file_regex": "php$",
"selector": "source.php",
"working_dir": "${project_path}"
}
@baghayi
baghayi / phpunit-sample-xml-file
Created January 14, 2013 22:22
phpunit sample xml file (phpunit.xml)
<testsuites>
<testsuite>
<directory suffix=".php">Test</directory>
</testsuite>
</testsuites>
@baghayi
baghayi / html5-css3
Created April 27, 2012 15:39
An Edited Page! :)
<!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 April 18, 2012 01:02
A HTML File Which Demonstrates How Does Custom Attributes Work In HTML5
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Custom Attributes</title>
<style>
#customAttribute
{
border: 2px solid red;
width: 300px;
height: 100px;
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
@baghayi
baghayi / bcrypt.php
Created November 4, 2011 21:13 — forked from rk/bcrypt.php
Simple bcrypt object to wrap crypt() with.
<?php
// Originally by Andrew Moore
// Src: http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php/6337021#6337021
//
// Heavily modified by Robert Kosek, from data at php.net/crypt
class Bcrypt {
private $rounds;
private $prefix;
@baghayi
baghayi / vimrc
Created February 10, 2015 14:31
My current vimrc file
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