Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Omid Nasri omidnasri

🏠
Working from home
Block or report user

Report or block omidnasri

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SavePerson.js
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",
View NumberToWordsLib.cs
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
A simple solution to search and find the person.
View SearchPerson.php
<?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
A simple solution to find person by ID.
View FindPersonById.php
<?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
A simple solution to store person in CRM.
View SavePerson.php
<?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
A simple solution to delete person entity by ID.
View DeletePersonById.php
<?php
/**
* Target: DeletePersonById
*
* Authors: Omid Nasri
*
* Description: A simple solution to delete person entity by ID.
*
* Version: 1.0
View FtpHelper.php
<?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 Apr 12, 2019 — forked from fordnox/check-ftp.php
Check ftp connection with PHP
View check-ftp.php
<?php
$host = 'example.com';
$password = 'pass';
$username = 'username';
try {
$result = checkFtp($host, $username, $password);
} catch(Exception $e) {
$result = $e->getMessage();
}
View gist:5823fd4918e89e5011874497906bce72
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
namespace Lib.Common
{
public class FtpClient
@omidnasri
omidnasri / SlackClient.cs
Created Feb 26, 2019 — forked from jogleasonjr/SlackClient.cs
A simple C# class to post messages to a Slack channel. You must have the Incoming WebHooks Integration enabled. This class uses the Newtonsoft Json.NET serializer available via NuGet. Scroll down for an example test method and a LinqPad snippet. Enjoy!
View SlackClient.cs
using Newtonsoft.Json;
using System;
using System.Collections.Specialized;
using System.Net;
using System.Text;
//A simple C# class to post messages to a Slack channel
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet
public class SlackClient
{
You can’t perform that action at this time.