This file contains hidden or 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
private static c_TipoRelacion MapeaTipoRelacion(string tipoRelacion) | |
{ | |
switch (tipoRelacion) | |
{ | |
case "01": | |
return c_TipoRelacion.Item01; | |
case "02": | |
return c_TipoRelacion.Item02; | |
case "03": | |
return c_TipoRelacion.Item03; |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml; | |
using TestWCFProveedor.TimbradoService; | |
namespace TestWCFProveedor | |
{ |
This file contains hidden or 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
/// <reference path="./typings.d.ts" /> | |
// DevExtreme Globalize integration | |
import 'devextreme/localization/globalize/number' | |
import 'devextreme/localization/globalize/date' | |
import 'devextreme/localization/globalize/currency' | |
import 'devextreme/localization/globalize/message' | |
// DevExtreme messages (en messages already included) | |
import * as deMessages from 'devextreme/localization/messages/es.json' |
This file contains hidden or 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
// This file contains ambient module declarations | |
declare module 'globalize' { | |
const value: any; | |
export = value; | |
} | |
declare module 'cldr-data/*' { | |
const value: any; | |
export = value; | |
} |
This file contains hidden or 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
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const AotPlugin = require('@ngtools/webpack').AotPlugin; | |
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin; | |
module.exports = (env) => { | |
// Configuration in common to both client-side and server-side bundles | |
const isDevBuild = !(env && env.prod); | |
const sharedConfig = { |
This file contains hidden or 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 or replace PACKAGE BODY PR_NOTIFICACIONES_PUSH AS | |
procedure PUSH_NOTIFICATION | |
( | |
sDeviceId varchar2, | |
sDevicePlatform varchar2, | |
sName varchar2, | |
sTitle varchar2, | |
sBody varchar2 |
This file contains hidden or 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 async Task<string> GetKey() | |
{ | |
if (!IsConnected()) | |
throw new NotConnectedException(); | |
try | |
{ | |
using (HttpClient client = new HttpClient()) | |
{ | |
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(MediaType)); |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
This file contains hidden or 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
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand"> | |
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand"> | |
<Button Text="Log In"/> | |
</StackLayout> | |
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand"> | |
<Button Text="Sign Up"/> | |
</StackLayout> | |
</StackLayout> |
This file contains hidden or 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 void ConfigureAuth(IAppBuilder app) | |
{ | |
//AntiForgeryConfig.UniqueClaimTypeIdentifier = Constants.ClaimTypes.Subject; | |
JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>(); | |
// Configure the db context and user manager to use a single instance per request | |
app.CreatePerOwinContext(ApplicationDbContext.Create); | |
app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create); | |
AntiForgeryConfig.UniqueClaimTypeIdentifier = "Subject"; |