This file contains 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 http(url, method, payload, callback) { | |
const options = { | |
method: method ? method : 'GET', | |
headers: { | |
"Content-Type": "application/json" | |
} | |
}; | |
if(payload) { | |
options.body = JSON.stringify(payload); |
This file contains 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
namespace SqlSample | |
{ | |
using System; | |
using System.Data; | |
using System.Data.SqlClient; | |
public class SqlService | |
{ | |
private readonly string connectionString; |
This file contains 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
using System; | |
using System.IO; | |
using System.Linq; | |
public static class Base64FileConverter | |
{ | |
public static string ToBase64(byte[] bytes) | |
{ | |
if (bytes == null || bytes.Length == 0) |
This file contains 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
namespace System.Windows.Forms | |
{ | |
//This class requires JSON.net package, to install from the nuget console use: | |
//Install-Package Newtonsoft.Json | |
using Newtonsoft.Json.Linq; | |
using System.IO; | |
using System.Linq; | |
public static class StickyInput | |
{ |
This file contains 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
//By Amen Ayach | |
using System; | |
using System.Windows.Forms; | |
using System.Drawing; | |
public class Mac | |
{ | |
public enum eDirection | |
{ | |
Up, |
NewerOlder