Skip to content

Instantly share code, notes, and snippets.

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

Sajjad Javed sajjadjaved01

🏠
Working from home
View GitHub Profile
@sajjadjaved01
sajjadjaved01 / onItemClickListener.kt
Last active August 18, 2019 08:58
Get RecyclerView onItemClick to parent activity. Android
package com.reactivespace.tylsinmcwalet.ui
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

@sajjadjaved01
sajjadjaved01 / test.cs
Created January 12, 2018 09:38
report
{
var con = new MySqlConnection(
"server=localhost;userid=root;password=admin;database=POS_DB;persistsecurityinfo=True;");
var cmd = new MySqlCommand(
"Select DISTINCT Sales.InvoiceNo, Sales.CustomerID, Sales.GrandTotal, Sales.TotalPayment, Sales.PaymentDue, Sales.InvoiceDate, ProductSold.ConfigID, ProductSold.ProductName, ProductSold.Quantity, ProductSold.Price, ProductSold.TotalAmount " +
"From ProductSold, Sales, Branch " +
"Where Sales.InvoiceNo='INV-559216' And branch.BranchID='1'", con);
var sqlData = new MySqlDataAdapter { SelectCommand = cmd };
sqlData.Fill(set, "Sales");
sqlData.Fill(set, "ProductSold");