Skip to content

Instantly share code, notes, and snippets.

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

Sudipta Mondal sudiptamondal

🏠
Working from home
  • New Delhi, India
View GitHub Profile
[2024-05-03 14:20:17] ./configure
current path: /home/cloud/.rvm/src/ruby-2.7.2
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/cloud/.rvm/bin
command(4): ./configure --prefix=/home/cloud/.rvm/rubies/ruby-2.7.2 --disable-install-doc --enable-shared
checking for ruby... false
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
[2024-05-03 14:20:39] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /home/cloud/.rvm/src/ruby-2.7.2
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/cloud/.rvm/bin
command(2): __rvm_make -j24
++ make -j24
BASERUBY = echo executable host ruby is required. use --with-baseruby option.; false
require 'bigdecimal'
# Input the number of numbers
n = readline
# Input the list of numbers
array_list = readline.split(' ')
# Initializing the variables
max1 = BigDecimal("0")
max2 = BigDecimal("0")
min1 = BigDecimal("0")
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/apps/scm/altItem/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" name="pdhsoap" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" targetNamespace="http://xmlns.oracle.com/apps/scm/altItem/">
<wsdl:documentation xmlns:oer="http://xmlns.oracle.com/oer">
<name>pdhsoap</name>
<description>Sample WSDL</description>
<oer:lifecycle>Active</oer:lifecycle>
<oer:operation name="check_altitem">
<description>Sample Operation</description>
</oer:operation>
</wsdl:documentation>
@sudiptamondal
sudiptamondal / UpdateTPIWithBlankEndDate.xml
Created March 11, 2020 06:18
Update the End Date on Trading Partner Item with NULL
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:typ="http://xmlns.oracle.com/apps/scm/productModel/items/tradingPartnerItems/tradingPartnerItemServiceV2/types/"
xmlns:trad="http://xmlns.oracle.com/apps/scm/productModel/items/tradingPartnerItems/tradingPartnerItemServiceV2/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<typ:updateTradingPartnerItem>
<typ:tradingPartnerItem>
<trad:TradingPartnerItemId>300000063693002</trad:TradingPartnerItemId>
<!-- 1. --> <trad:EndDate>NULL</trad:EndDate>
<!-- 2. --> <trad:EndDate>nil</trad:EndDate>
<!-- 3. --> <trad:EndDate></trad:EndDate>
@sudiptamondal
sudiptamondal / UpdateTPIWithEndDate.xml
Created March 11, 2020 05:57
Update Trading Partner Item with End Date
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:typ="http://xmlns.oracle.com/apps/scm/productModel/items/tradingPartnerItems/tradingPartnerItemServiceV2/types/"
xmlns:trad="http://xmlns.oracle.com/apps/scm/productModel/items/tradingPartnerItems/tradingPartnerItemServiceV2/" >
<soapenv:Header/>
<soapenv:Body>
<typ:updateTradingPartnerItem>
<typ:tradingPartnerItem>
<trad:TradingPartnerItemId>300000063693002</trad:TradingPartnerItemId>
<trad:EndDate>2019-09-21</trad:EndDate>
@sudiptamondal
sudiptamondal / todo.html
Created February 28, 2020 13:01
A simple Todo Application
<!doctype html>
<html>
<head>
<title>Sample To-Do</title>
<style type="text/css">
section {margin: 0 auto;width: 100%;}
h3, h5, li {float: left;width:100%;}
ul {list-style: none;}
input[type=checkbox], p { float:left;margin: 0;}
</style>
@sudiptamondal
sudiptamondal / fastled_arduino.ino
Last active February 28, 2020 06:52
fastled_arduino.ino
#include <FastLED.h>
int led = 13; // Usually the orangle led is set at pin 13.
#define LED_PIN 6 // data pin to be connected to WS2812B
#define NUM_LEDS 60
#define LED_TYPE WS2812B // make sure to choose the correct LED TYPE.
#define COLOR_ORDER GRB
#define BRIGHTNESS 200
@sudiptamondal
sudiptamondal / edq_script_proc.js
Created February 27, 2020 13:37
Script Processor in Javascript for currency conversion
addLibrary("http");
var output1;
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "http://demo7684243.mockable.io/curr_rates", false);// Here goes your web service URL
xmlHttp.send();
var responseData = xmlHttp.responseText;
var dataJSON = JSON.parse(responseData);
var baseCurr = dataJSON["base"];