This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MyController extends CI_Controller { | |
function MyFunction($page = 0){ | |
$this->config->load('bootstrap_pagination'); | |
$config = $this->config->item('pagination'); | |
$config['base_url'] = base_url('my_uri'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ /path/to/phpThumb.php?src=../wallpapers/$1&w=200&h=355&aoe=1&q=99&zc=1 | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* http://bit.ly/12J93qc | |
*/ | |
(function ($) { | |
$.fn.farsiInput = function (options) { | |
var defaults = { | |
changeLanguageKey: 145 /* Scroll lock */ | |
}; | |
var options = $.extend(defaults, options); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") | |
(unless (require 'el-get nil t) | |
(url-retrieve | |
"https://github.com/dimitri/el-get/raw/master/el-get-install.el" | |
(lambda (s) | |
(end-of-buffer) | |
(eval-print-last-sexp)))) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if paginator.total_pages > 1 %} | |
<ul class="pagination"> | |
{% if paginator.previous_page %} | |
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">قبلی</a></li> | |
{% else %} | |
<li class="disabled"><a>قبلی</a></li> | |
{% endif %} | |
{% for page in (1..paginator.total_pages) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pnumber(text){ | |
var en_to_persian = {"1":"۱", "2":"۲","3":"۳","4":"۴","5":"۵","6":"۶","7":"۷","8":"۸","9":"۹","0":"۰"} | |
var ar_to_persian = {"١":"۱", "٢":"۲","٣":"۳","٤":"۴","٥":"۵","٦":"۶","٧":"۷","٨":"۸","٩":"۹","٠":"۰"} | |
for (var val in en_to_persian) | |
text = text.replace(new RegExp(val, "g"), en_to_persian[val]); | |
for (var val in ar_to_persian) | |
text = text.replace(new RegExp(val, "g"), ar_to_persian[val]); | |
return text | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=aspell-fa | |
pkgver=0.11 | |
pkgrel=1 | |
pkgdesc="Farsi dictionary for aspell" | |
arch=('i686' 'x86_64') | |
url="http://aspell.net/" | |
license=('custom') | |
depends=('aspell') | |
source=(ftp://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-${pkgver}-0.tar.bz2) | |
md5sums=('47c8599e529fc291a096c12f0b8372ca') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sptest</title> | |
<link rel="stylesheet" media="all" href="/assets/links.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" data-turbolinks-track="true" /> | |
<link rel="stylesheet" media="all" href="/assets/scaffolds.self-0e337535bfad65509947bc36f19106a4d73fcef4cd922ab5cd5f57e8392ea85b.css?body=1" data-turbolinks-track="true" /> | |
<link rel="stylesheet" media="all" href="/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" data-turbolinks-track="true" /> | |
<script src="/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" data-turbolinks-track="true"></script> | |
<script src="/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" data-turbolinks-track="true"></script> |
OlderNewer