Skip to content

Instantly share code, notes, and snippets.

View vestigegroup's full-sized avatar
🏠
Working from home

Harish Vagjiyani vestigegroup

🏠
Working from home
View GitHub Profile
@antonputra
antonputra / manifests.tf
Created August 15, 2023 21:23
How to apply MULTIPLE Kubernetes manifests using Terraform?
# Install kubectl provider
terraform {
required_version = ">= 0.13"
required_providers {
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.14.0"
}
}
@vestigegroup
vestigegroup / thread_pool.py
Created December 21, 2022 08:36 — forked from heavywatal/thread_pool.py
Example of thread pool in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example of thread pool
https://docs.python.org/3/library/concurrent.futures.html
https://docs.python.org/3/library/multiprocessing.html
"""
import concurrent.futures as confu
import multiprocessing.pool as mpp
import time
@getify
getify / 1-post.md
Last active February 27, 2023 00:23
Comparing: array method chaining, generator delegations, and transducing

Comparing: array method chaining, generator delegations, and transducing

I'm writing this quick post to respond to a recent twitter conversation where claims were made about the merits (or lack thereof) of transducers, as they relate to composing list comprehensions (map, filter).

For comparison sake throughout the rest of my post, below you'll find three (actually four!) implementations of a simple list operation demo:

@robinpokorny
robinpokorny / railway_oriented_typescript.ts
Created November 3, 2022 08:47
Heapcon 2022: Railway Oriented Typescript
/*
=============================
Railway Oriented Typescript
=============================
by @robinpokorny
*/
/* === 1. Union basics === */
const a: string | number = 42;
@vestigegroup
vestigegroup / VMware Workstation Pro 16 license keys
Created October 18, 2022 05:34 — forked from Ryan-Dela-rosa/VMware Workstation Pro 16 license keys
Free VMware Workstation Pro 16 full license keys with tested
Install new VMware Workstation Pro 16 or upgrade from 15 by download below as trial version first:
https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html
After install or upgrade just insert the key and enjoy.
*No virus
*No spam just license key
ZF3R0-FHED2-M80TY-8QYGC-NPKYF --->> This key is 100% worked for me
YF390-0HF8P-M81RQ-2DXQE-M2UT6
@vestigegroup
vestigegroup / VMware Workstation Pro 16 License Keys
Created October 18, 2022 05:34 — forked from benjaminjacobreji/VMware Workstation Pro 16 License Keys
Free VMware Workstation Pro 16 full license keys with tested
After install or upgrade just insert the key and enjoy.
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
ZF71R-DMX85-08DQY-8YMNC-PPHV8
AZ3E8-DCD8J-0842Z-N6NZE-XPKYF
FC11K-00DE0-0800Z-04Z5E-MC8T6
Enjoy!
@vestigegroup
vestigegroup / VMware Workstation 16 Pro and Player keys
Created October 18, 2022 05:34 — forked from NSWG/VMware Workstation 16 Pro and Player keys
VMware Workstation 16 Pro and Player keys
VMware Workstation Pro 16.x Serials
YA7RA-F6Y46-H889Z-LZMXZ-WF8UA
ZV7HR-4YX17-M80EP-JDMQG-PF0RF
UC3XK-8DD1J-089NP-MYPXT-QGU80
GV100-84W16-M85JP-WXZ7E-ZP2R6
YF5X2-8MW91-4888Y-DNWGC-W68TF
AY1XK-0NG5P-0855Y-K6ZXG-YK0T4
VMware Workstation Player 16.x Serials
@vestigegroup
vestigegroup / solved_code.py
Created July 13, 2022 11:39 — forked from jinhoyoo/solved_code.py
Given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
import unittest
'''Write a function:
def solution(A)
that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5.
Given A = [1, 2, 3], the function should return 4.
Given A = [−1, −3], the function should return 1.
@vestigegroup
vestigegroup / chatbot-ui.dart
Created June 10, 2022 15:40 — forked from CheshtaK/chatbot-ui.dart
UI for chatbot built using Flutter and Dialogflow
import 'package:flutter/material.dart';
import 'package:flutter_dialogflow/dialogflow_v2.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Example Dialogflow Flutter',

Python unittest Cheat Sheet

Skeleton