View bank_mellat_errors.json
{ | |
"errors": { | |
"0": "تراكنش با موفقيت انجام شد", | |
"11": "شماره كارت نامعتبر است", | |
"12": "موجودي كافي نيست", | |
"13": "رمز نادرست است", | |
"14": "تعداد دفعات وارد كردن رمز بيش از حد مجاز است", | |
"15": "كارت نامعتبر است", | |
"16": "دفعات برداشت وجه بيش از حد مجاز است", | |
"17": "كاربر از انجام تراكنش منصرف شده است", |
View cow.on.ini
[watcher:cow] | |
cmd = /usr/local/bin/cow | |
uid = danial | |
gid = danial | |
numprocesses = 1 | |
debug = true | |
stdout_stream.class = FileStream | |
stdout_stream.filename = /var/log/circus/cow.stdout.log | |
stdout_stream.time_format = %Y-%m-%d %H:%M:%S |
View postgresql_run.sh
#!/bin/sh | |
# Use the exec command to start the app you want to run in this container. | |
# Don't let the app daemonize itself. | |
# `/sbin/setuser memcache` runs the given command as the user `memcache`. | |
# If you omit that part, the command will be run as root. | |
# Read more here: https://github.com/phusion/baseimage-docker#adding-additional-daemons | |
exec /sbin/setuser postgres /usr/lib/postgresql/9.5/bin/postgres -D /usr/local/pgsql/data |
View invalid_form.html
<!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> |
View PKGBUILD
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') |
View nginx.conf
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |
View pnumber.js
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 | |
} |
View pagination.erb
{% 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) %} |
View .emacs
(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)))) | |
View gist:5619814
/** | |
* http://bit.ly/12J93qc | |
*/ | |
(function ($) { | |
$.fn.farsiInput = function (options) { | |
var defaults = { | |
changeLanguageKey: 145 /* Scroll lock */ | |
}; | |
var options = $.extend(defaults, options); | |
NewerOlder