Skip to content

Instantly share code, notes, and snippets.

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

Bedanta Bikash Borah iamBedant

🏠
Working from home
View GitHub Profile
class MainActivity : AppCompatActivity() {
@Inject
lateinit var car: Car
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
DaggerCarComponent.builder().carModule(CarModule()).build().inject(this)
car?.let {
@Module
class CarModule {
@Provides
fun engine(hp: HorsePower): Engine {
return PetrolEngine(hp)
}
}
class ClassB {
val b = ClassD()
fun whereIsMyJoke(): String {
return b.tellMeAJoke()
}
}
class ClassC {
fun tellMeAJoke(): String {
return "You are funny :C"
}
}
class ClassD {
fun tellMeAJoke():String{
return "You are funny :D"
}
}
class ClassA {
val c = ClassC()
fun whereIsMyJoke(): String {
return c.tellMeAJoke()
}
}
[{
"id": 12345,
"type": "1",
"title": "I kill an Abhishek",
"date": "4th Mar 2018",
"status": "Driver Assigned",
"phone_no": "7890977579",
"heading": "Getting to somewhere",
"description": "lorem ipsum",
from bs4 import BeautifulSoup
import re
soup = BeautifulSoup(open("employeeDetails.html"))
spans = soup.find_all('span')
csv_data = []
count =2
for span in spans:
inner_text = span.text
strings = inner_text.split('\n')

Keybase proof

I hereby claim:

  • I am iamBedant on github.
  • I am iambedant (https://keybase.io/iambedant) on keybase.
  • I have a public key whose fingerprint is 4698 77F2 7A3F 54FD 202C 73E7 FEE1 D533 4ECF A94E

To claim this, I am signing this object:

@iamBedant
iamBedant / designer.html
Created November 16, 2014 17:52
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<polymer-element name="my-element">
<template>