Skip to content

Instantly share code, notes, and snippets.

View omidnasri's full-sized avatar
🏢
PTFCH

Omid Nasri omidnasri

🏢
PTFCH
View GitHub Profile
{
"@copyright" : "https://fa.wikipedia.org/wiki/%D9%85%D8%AE%D8%AA%D8%B5%D8%A7%D8%AA_%D9%85%D8%B1%DA%A9%D8%B2_%D8%A7%D8%B3%D8%AA%D8%A7%D9%86%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86",
"East Azerbaijan": {
"Lat": 38.052468,
"Lng": 46.284993
},
"West Azerbaijan": {
"Lat": 37.529607,
"Lng": 45.046549
},
@omidnasri
omidnasri / ReplaceYeKe.sql
Created June 27, 2020 09:17 — forked from Hameds/ReplaceYeKe.sql
Replace Arabic ي & ك in SQL Server Database with Persian characters
use [DATABASE_NAME];
DECLARE @Table NVARCHAR(MAX)
DECLARE @Col NVARCHAR(MAX)
DECLARE Table_Cursor CURSOR
FOR
--پيدا کردن تمام فيلدهاي متني تمام جداول ديتابيس جاري
SELECT a.name, --table
b.name --col
FROM sysobjects a,
syscolumns b
node.js
npm i strong-soap
// رضا پولادینه
var soap = require('strong-soap').soap;
var url = 'http://yoururl/Services/API/IPerson.svc?wsdl';
var requestArgs = {"username": 'نام کاربری',"password": 'رمز',
person:{
FirstName:"node",
LastName:"node",
using System.Collections.Generic;
using System.Linq;
 
namespace NumberToWordsLib
{
 /// <summary>
 /// Number to word languages
 /// </summary>
 public enum Language
 {
@omidnasri
omidnasri / SearchPerson.php
Created May 26, 2019 11:41
A simple solution to search and find the person.
<?php
/**
* Target: SearchPerson
*
* Authors: Omid Nasri
*
* Description: A simple solution to search and find the person.
*
* Version: 1.0
@omidnasri
omidnasri / FindPersonById.php
Created May 26, 2019 11:41
A simple solution to find person by ID.
<?php
/**
* Target: FindPersonById
*
* Authors: Omid Nasri
*
* Description: A simple solution to find person by ID.
*
* Version: 1.0
@omidnasri
omidnasri / SavePerson.php
Last active May 26, 2019 11:38
A simple solution to store person in CRM.
<?php
/**
* Target: SavePerson
*
* Authors: Hossein Neshati, Omid Nasri
*
* Description: A simple solution to store person in CRM.
*
* Version: 1.0
@omidnasri
omidnasri / DeletePersonById.php
Last active May 26, 2019 11:39
A simple solution to delete person entity by ID.
<?php
/**
* Target: DeletePersonById
*
* Authors: Omid Nasri
*
* Description: A simple solution to delete person entity by ID.
*
* Version: 1.0
@omidnasri
omidnasri / FtpHelper.php
Created April 12, 2019 19:59 — forked from ivandnepr90/FtpHelper.php
Ftp helper
<?php
/**
* Created by JetBrains PhpStorm.
* User: dn211290sia
* Date: 25.10.14
* Time: 10:00
* To change this template use File | Settings | File Templates.
*/
namespace Common\Utility\GeneralPurpose;
@omidnasri
omidnasri / check-ftp.php
Created April 12, 2019 19:57 — forked from fordnox/check-ftp.php
Check ftp connection with PHP
<?php
$host = 'example.com';
$password = 'pass';
$username = 'username';
try {
$result = checkFtp($host, $username, $password);
} catch(Exception $e) {
$result = $e->getMessage();
}