Skip to content

Instantly share code, notes, and snippets.

Avatar

Benktesh Sharma benktesh

View GitHub Profile
View fileshare_Main.java
import jcifs.smb.NtlmPasswordAuthentication;
import jcifs.smb.SmbException;
import jcifs.smb.SmbFile;
import java.net.MalformedURLException;
public class Main {
public static void main(String[] args) {
String url = "smb://127.0.0.1/test/";
String userName = "test";
String password = "password";
View fileshare_pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fileShare</groupId>
<artifactId>fileShare</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
@benktesh
benktesh / aggregate_app.xml
Last active Jun 11, 2019
aggregate_app.config
View aggregate_app.xml
<configuration>
<appsettings>
<add key="datapath" value="C:\temp\">
</add></appsettings>
</configuration>
View aggregate.cs
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Data.Odbc;
namespace Aggregate
{
class Program
View AsyncTask_MainActitivity.java
package benktesh.smartstock;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
View swagger_response_json.md
{
    "swagger": "2.0",
    "info": {
        "version": "v1",
        "title": "SmartStock API"
    },
    "paths": {
        "/api/Stock": {
            "get": {
View swagger_startup_cs.md
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;

namespace Api
{
View example2.js
/**
*@NApiVersion 2.x
*@NScriptType MapReduceScript
*/
/**
* The script uses NetSuite's Map/Reduce pardigm implementation and uses getInputData, map, reduce and summarize stages. When completed,
* the script deletes existing Pricing data for for qualifying items using the following generalized algorithm:
* Read the items and price data in getinputdata
* In map stage, create a data structure for where key is itemid and value is pricedata.
View example1.js
/**
*@NApiVersion 2.x
*@NScriptType MapReduceScript
*/
/**
* The script uses NetSuite's Map/Reduce pardigm implementation and uses getInputData, map, and summarize stages. When completed,
* the script deletes existing Pricing data for for qualifying items using the following generalized algorithm:
* Read the items and price data in getinputdata
* In map stage, delete the price data that was passed from getInputData stage
You can’t perform that action at this time.