Skip to content

Instantly share code, notes, and snippets.

View hbb20's full-sized avatar
:octocat:
Almost nothing 😉

Harsh Baldevbhai Bhakt hbb20

:octocat:
Almost nothing 😉
  • Neighbor
  • Utah, USA
View GitHub Profile
@hbb20
hbb20 / gist:0ffa975df9e36117e4560b5e0de5fe7b
Created November 28, 2023 22:39
measureLazyList stack trace
Fatal Exception: java.lang.IllegalArgumentException
Failed requirement.
androidx.compose.foundation.lazy.LazyListMeasureKt.measureLazyList-CD5nmq0 (LazyListMeasure.kt:63)
androidx.compose.foundation.lazy.LazyListKt$rememberLazyListMeasurePolicy$1$1.invoke-0kLqBqw (LazyList.kt:306)
androidx.compose.foundation.lazy.LazyListKt$rememberLazyListMeasurePolicy$1$1.invoke (LazyList.kt:184)
androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$3$2$1.invoke-0kLqBqw (LazyLayout.kt:87)
androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$3$2$1.invoke (LazyLayout.kt:80)
androidx.compose.ui.layout.LayoutNodeSubcompositionsState$createMeasurePolicy$1.measure-3p2s80s (SubcomposeLayout.kt:866)
androidx.compose.ui.node.InnerNodeCoordinator.measure-BRTryo0 (InnerNodeCoordinator.kt:126)
git remote prune origin
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d
Giant Atom
When it comes to quantum mechanics, I try to avoid writing about purely theoretical results. This is especially true of quantum computing, where, in the not-too-distant past, every researcher would put their names to papers describing a new way to make a quantum computer. Then people started playing with the real thing, and suddenly the theory-side held fewer attractions. But every now and again, one of these ideas makes me mash my hands on the keyboard.
Today, it's Rydberg atoms and how to make a quantum computer from them. It's a bit far-fetched, but given the detail of the calculations, it's probably something that will turn up in a couple of years. And when it turns up, it will not be like previous quantum computers, which started testing with one or two qubits. A Rydberg computer should start out at 10-12 qubits.
Forbidden transition
To turn a Rydberg atom into a qubit (a qubit is a bit of quantum information), you choose two of these energetic states as logic one and logic zero. In this cas
@hbb20
hbb20 / Post.java
Created February 28, 2018 23:53 — forked from yashbmewada/Post.java
Post model for Android Workshop
public class Post {
String title;
String author;
String body;
public Post(String title, String author, String body) {
this.title = title;
this.author = author;
this.body = body;
Find all resources for the workshop.
@hbb20
hbb20 / AwesomeWalmartApp Doc
Last active March 23, 2018 16:53
Use this class in your walmart demo app
Here is the list of resources that will be helpful for AwesomeWalmartApp:
Image resources: https://goo.gl/S9YQDP
Method to get URL content during background task: Included in this page.
Model Class for Product : Included in this page (Note: this class contatins method to convert JSON Data Array to List of Products)
@hbb20
hbb20 / User.java
Last active June 14, 2018 14:14
Dummy User Class
public class User {
String name;
String email;
String photoUrl;
String phone;
public User(String name, String email, String phone, String photoUrl) {
this.name = name;
this.email = email;
this.photoUrl = photoUrl;
@hbb20
hbb20 / 1. Dummy weather data string[]
Last active February 8, 2018 02:39
Required snippets for android workshop
// dummy data
weatherDataArray = new String[]{"Today, February 7 - Clear - 17°C / 15°C",
"Tomorrow - Cloudy - 19°C / 15°C",
"Friday - Thunderstorms - 21°C / 9°C",
"Saturday - Thunderstorms - 16°C / 7°C",
"Sunday - Rainy - 16°C / 8°C",
"Monday - Partly Cloudy - 15°C / 10°C",
"Tuesday, February 13 - Meatballs - 16°C / 18°C",
"Wednesday, February 14 - Cloudy - 19°C / 15°C",
@hbb20
hbb20 / 0_reuse_code.js
Created August 8, 2014 09:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console