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
CREATE function [E].[geoloc_get_distance_in_kms](@lat1 as decimal (18,6), @long1 as decimal (18,6), | |
@lat2 as decimal (18,6), @long2 as decimal (18,6)) | |
returns decimal (18,6) | |
as | |
begin | |
declare @kms decimal(18,4), @op1 decimal (18,10), @op2 decimal (18,10) | |
set @kms = 6370 | |
set @op2 = COS(RADIANS(@lat2)) | |
set @op2 = @op2 * COS(RADIANS(@lat1)) |
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
create function [E].[compute_ean13fromgencod](@gencod as varchar(12)) | |
returns varchar(13) | |
as | |
begin | |
declare @calcul bigint, @temp int | |
declare @ret varchar(13) | |
if(len(@gencod)<>12) | |
return @gencod | |
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
public static DateTime JourDePaques(int year) | |
{ | |
int a, b, C, P, E, F, g, h, i, K, N, Y, r, M, D; | |
Y = year; | |
a = fmod(Y, 19); | |
b = (int)(Y / 100); | |
C = fmod(Y, 100); | |
P = (int)(b / 4); | |
E = fmod(b, 4); | |
F = (int)((b + 8) / 25); |
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
declare @stat nvarchar(500) | |
declare tbl_cursor cursor for | |
select 'truncate table [' + schemas.name + '].[' + tables.name + ']' | |
from sys.schemas | |
inner join sys.tables on schemas.schema_id = tables.schema_id | |
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
# la recherche à effectuer : | |
$recherche = '*sip*' | |
# si vous êtes sur un poste avec vos identifiants sauvegardés | |
Connect-e_session | |
# dans le cas contraire, vous devrez préciser les paramètres | |
# ServerUrl : l'url racine de votre gestion commerciale | |
# Username : l'adresse e-mail de connexion à utiliser |
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
Import-Module E_PointOfSale | |
update-e_pos_config -force -restart | wait-e_pos_device |
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 () { | |
var domain = getParameterByName("$from"); | |
if (domain == "") domain = "http://app.simplement-e.com/"; | |
window.addEventListener("resize", function (e) { | |
setTimeout(signalSize, 150); | |
}); | |
document.addEventListener("DOMContentLoaded", function (e) { | |
setTimeout(signalSize, 150); | |
}); | |
window.addEventListener("load", function (e) { |
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 Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ |
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 CPointSoftware.Equihira.Extensibility.UI; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.UI.WebControls; | |
namespace Sample |
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
class TokenInfo | |
{ | |
bool IsChildToken { get; set; } | |
string Token { get; set; } | |
Guid DeviceGuid { get; set; } | |
Guid StoreGuid { get; set; } | |
DateTime ExpirationDate { get; set; } | |
} |
OlderNewer