Skip to content

Instantly share code, notes, and snippets.

Avatar
🕸️
👨🏼‍💻

Sachin Chavan sachinsmc

🕸️
👨🏼‍💻
View GitHub Profile
@sachinsmc
sachinsmc / launch.json
Created Jan 21, 2022
Debug configuration for AWS Lambda - Serverless Invoke Local
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug AWS Lambda",
"program": "${workspaceRoot}/node_modules/.bin/sls",
"runtimeVersion": "12.20.2",
"args": [
View task4.js
const { EventEmitter } = require('events');
var input = {
"orders": [
[
"Pepperoni",
"Mushrooms",
"Sausage"
]
]
@sachinsmc
sachinsmc / xmr btc atomic swap.md
Created Sep 29, 2021
List of Rendezvous Points for atomic swap
View xmr btc atomic swap.md

Bitcoin–Monero Cross-chain Atomic Swap Rendezvous Points

Here is the list of rendezvous point for xmr-btc-swap Atomic swap

/dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

/dns4/rendezvous.xmr.radio/tcp/8888/p2p/12D3KooWN3n2MioS515ek6LoUBNwFKxtG2ribRpFkVwJufSr7ro7

View index.html
<body class="align">
<div class="grid">
<form action="https://httpbin.org/post" method="POST" class="form login">
<div class="form__field">
<label for="login__username"><svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use></svg><span class="hidden">Username</span></label>
<input id="login__username" type="text" name="username" class="form__input" placeholder="Username" required>
</div>
@sachinsmc
sachinsmc / main.go
Created Jun 24, 2019
learn go cheat.sh
View main.go
package main
import(
"fmt"
m "math"
"os"
"io/ioutil"
"net/http"
"strconv"
)
View jdbc-sample.java
package com.smc.jdbc;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
public class JDBCStatementCreateExample {
private static final String DB_DRIVER = "oracle.jdbc.driver.OracleDriver";
View FindNth.java
import java.io.*;
import java.util.*;
public class TestClass {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter wr = new PrintWriter(System.out);
int T = Integer.parseInt(br.readLine().trim());
for(int t_i=0; t_i<T; t_i++)