Skip to content

Instantly share code, notes, and snippets.

View upgundecha's full-sized avatar
💭
Busy

Unmesh Gundecha upgundecha

💭
Busy
View GitHub Profile
@upgundecha
upgundecha / Brewfile
Last active October 7, 2022 06:40
Brewfile for tools listed in https://github.com/ibraheemdev/modern-unix
# tools from https://github.com/ibraheemdev/modern-unix
tap "cantino/mcfly"
tap "clementtsang/bottom"
brew "bat"
brew "exa"
brew "lsd"
brew "git-delta"
brew "dust"
brew "duf"
brew "broot"
@upgundecha
upgundecha / README.MD
Created October 22, 2019 07:32
QR Code and Url Scheme

This requires Python installed on the machine

  1. Install Python QR code package along with Pillow
pip install qrcode[pil]
  1. Generate a QR code with Url Scheme (in this example, we'll create a QR code which opens given URL in Google Chrome browser
@upgundecha
upgundecha / step.md
Last active March 3, 2018 05:48
Recording terminal session videos with asciinema.org on Mac
  1. Install
brew install asciinema
  1. Start recording with
asciinema rec
  1. Stop recording with
@upgundecha
upgundecha / index.js
Created January 21, 2018 11:58
Simple BMI Calculator Lambda function
'use strict';
exports.handler = function(event, context, callback){
var height = event.height;
var weight = event.weight;
var bmi = weight/(height * height) * 10000;
bmi = Math.round ( bmi * 100 ) / 100;
@upgundecha
upgundecha / KendoDropdownTest.java
Last active July 13, 2021 14:36
Selenium WebDriver + Java - Kendo Dropdown Example (requires Java 8)
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.internal.WrapsDriver;
@upgundecha
upgundecha / ifttt_jenkins.py
Created June 25, 2017 18:21
"If This Then That" Jenkins example
#!/usr/bin/env python3
# Copyright (c) 2016 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
version: 0.2
phases:
pre_build:
commands:
- npm install newman --global
build:
commands:
- newman run -r html,cli sample_service.postman_collection --reporter-html-export report.html
@upgundecha
upgundecha / 0_reuse_code.js
Created March 13, 2017 15:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@upgundecha
upgundecha / SampleTest.java
Last active August 14, 2019 09:27
Selenium test for SAP Fiori UI
package com.sapfioritrial.test;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
@upgundecha
upgundecha / cucumberConf.js
Created February 19, 2017 15:53
cucumber-js hooks
var env = require('./environment.js');
// A small suite to make sure the cucumber framework works.
exports.config = {
seleniumAddress: env.seleniumAddress,
framework: 'custom',
frameworkPath: '../index.js',
// Spec patterns are relative to this directory.