Skip to content

Instantly share code, notes, and snippets.

Orlando Quero orlaqp

  • Binaryways Inc.
  • United States
Block or report user

Report or block orlaqp

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
orlaqp /
Created Feb 16, 2019 — forked from staltz/
The introduction to Reactive Programming you've been missing
orlaqp / launch.json
Created Jul 21, 2018
VS Code configuration to debug Jest test when working on a NodeJS app using Typescript
View launch.json
"name": "Jest All",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
View gist:0635a66aef2724cf6c8e2bdcba6dbeaa
// Apollo
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import { ApolloModule } from 'angular2-apollo';
// by default, this client will send queries to `/graphql` (relative to the URL of your app)
const client = new ApolloClient({
networkInterface: createNetworkInterface({
uri: 'http://localhost:8081'
View gist:d239ee5cda1426ed6875bf8c8d908a78
DECLARE @databaseName varchar(50), @novaID nvarchar(50), @runAt int, @offSet int, @sqlString varchar (max), @isShutdown int, @dateStart datetime, @dateEnd datetime;
DECLARE @now as DATETIME, @day as INT, @month as INT, @year as INT;
DECLARE @startDate AS DATE, @endDate AS DATE, @limitDate AS DATE;
-- Define a cursor with all companies in POS_Main..Users table
View gist:893c13f26c2c53644f6daefadbfcd4bc
// Component
import { Component, OnInit } from '@angular/core';
import { REACTIVE_FORM_DIRECTIVES, FormGroup } from '@angular/forms';
import { MATERIAL_FORM } from '../../../../../dist/ng2-materialform';
selector: 'demo-checkbox',
template: require('./checkbox.html'),
View gist:2fcc98771041b2f5bda4c0db58b57597
import { provideRouter, RouterConfig } from '@angular/router';
import {DemoRoute} from './components/demo/demo';
import {SupportRoute} from './components/support/support';
export const routes: RouterConfig = [
{ path: '', component: DemoRoute },
{ path: 'components', component: DemoRoute },
{ path: 'support', component: SupportRoute },
View gist:30f314227cacb3777bed992c9168728e
* @license
* Copyright Google Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at
import { OnChanges, SimpleChanges } from '@angular/core';
import { EventEmitter } from '../../facade/async';
import { FormArray, FormControl, FormGroup } from '../../model';
View gist:72d2f087d264a5653b3daa6f860c36dc
* @license
* Copyright Google Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
View error connecting to sql database in mac os x
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HKT4823JM0U5": An unhandled exception was thrown by the application.
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.AggregateException: One or more errors occurred. (Device not configured) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Device not configured
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
at System.Net.Dns.<>c.<GetHostAddressesAsync>b__14_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1
orlaqp / gist:f8ab1c9dfb374ea0e839d10cf5f7f4a6
Created Jul 4, 2016
Startup for my first ASP .NET Core 1.0
View gist:f8ab1c9dfb374ea0e839d10cf5f7f4a6
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Security.Models;
using OpenIddict;
You can’t perform that action at this time.