Skip to content

Instantly share code, notes, and snippets.

import { PingMicroserviceConfig } from "@app/ping";
import * as k8s from "@pulumi/kubernetes";
import * as kx from "@pulumi/kubernetesx";
import { Output } from "@pulumi/pulumi";
const appLables = {
namespace: PingMicroserviceConfig.name + "-ing"
}
const deployment = new k8s.networking.v1.Ingress(appLables.namespace, {
metadata: {
labels: {app: 'nginx'},
@noctifer20
noctifer20 / form.context.js
Created April 13, 2021 11:45
React Native - auto focus next input using context
export const FormContext = createContext({});
let inputsLL = null;
let lastInput = null;
const FormContextProvider = ({ children }) => {
useEffect(() => {
inputsLL = null;
lastInput = null;
/**
* ARCA API BaseController.
*/
import rp from 'request-promise';
import qs from 'qs';
export default class BaseController {
/**
@noctifer20
noctifer20 / Restful.route.js
Last active June 14, 2017 12:10
Express Restful Route
"use strict";
import express, { Router } from 'express';
import _ from 'lodash';
class Restful extens Router {
constructor($conf) {
this.table = $conf.table;
this.sql = $conf.sql;
this.AC = $conf.AC;
this.customs.call(this);