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
},
Here’s how to update your fork directly from GitHub (as shown in the video above):
1 Open your fork repository on GitHub.
2 Click on Pull Requests.
3 Click on New Pull Request. By default, GitHub will compare the original with your fork, and there shouldn’t be nothing to compare if you didn’t make any changes.
4 Click on switching the base (if no changes were made in the fork) or click Edit and switch the base manually. Now GitHub will compare your fork with the original, and you should see all the latest changes.
5 Click on Create to create a pull request for this comparison and assign a predictable name to your pull request (e.g., Update from original).
6 Click on Send pull request.
7 Scroll down and click Merge pull request and finally Confirm merge (If your fork didn’t have any changes, you will be able to merge it automatically).
@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 / 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 / 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 / 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;