Skip to content

Instantly share code, notes, and snippets.

Avatar
🕸️
👨🏼‍💻

Sachin Chavan sachinsmc

🕸️
👨🏼‍💻
View GitHub Profile
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++)
View Template.java
import java.io.*;
import java.util.*;
import java.text.*;
public class Template {
private static Scan scanner = new Scan(System.in);
private static Print printer = new Print();
public static void main(String args[]) throws Exception {
View Hit.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Hit {
static int arr[][], N;
public static void main(String args[]) throws Exception {
BufferedReader ob = new BufferedReader(new InputStreamReader(System.in));
N = Integer.parseInt(ob.readLine());
View files.js
Files.upload = function (ctx,options,cb) {
if(!options) options = {};
console.log('File Uploading.....');
//console.log(ctx.req.headers['mobile']);
//console.log(ctx.mobile);
ctx.req.params.container = 'common';
Files.app.models.container.upload(ctx.req,ctx.result,options,function (err,fileObj) {
if(err) {
cb(err);
} else {
View cronjobs.txt
*/5 * * * * /home/aws/scripts/savelogs.sh
*/10 * * * * /home/aws/scripts/cps3z.sh