This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from pytesseract import pytesseract | |
img = Image.open(path_to_file) | |
text = pytesseract.image_to_string(img) | |
print(text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Stack; | |
public class DecimalToAnyBaseConverter { | |
/* | |
We use base 62 array for all base conversions | |
*/ | |
char[] base62 = new char[62]; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reverse_string(s): | |
if len(s)==1: | |
return s | |
else: | |
return s[-1]+reverse_string(s[0:len(s)-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.lobster1234.misc; | |
import junit.framework.TestCase; | |
import java.util.concurrent.TimeUnit; | |
public class TokenBucketRateLimiterTest extends TestCase { | |
public void testTokenBucketRateLimiter() { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.lobster1234.misc; | |
import java.util.concurrent.*; | |
import java.util.function.Consumer; | |
/** | |
* Implementation of a token bucket rate limiter. | |
*/ | |
public class TokenBucketRateLimiter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
/* | |
Coding a C linked list after 1995. It took a global pandemic. | |
*/ | |
/* | |
First off, lets create a node struct called Node | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.lobster1234; | |
import software.amazon.awssdk.services.s3.S3AsyncClient; | |
import software.amazon.awssdk.services.s3.model.DeleteObjectRequest; | |
import software.amazon.awssdk.services.s3.model.DeleteObjectResponse; | |
import software.amazon.awssdk.services.s3.model.ListBucketsResponse; | |
import java.util.concurrent.CompletableFuture; | |
public class S3AsyncTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.lobster1234; | |
import java.util.Random; | |
import java.util.Stack; | |
/** | |
* Simple demo of producer-consumer problem with wait and notify | |
* | |
*/ | |
public class ProducerConsumer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.lobster1234; | |
import org.apache.commons.codec.digest.DigestUtils; | |
public class Miner { | |
public static void main(String[] args){ | |
Block block = new Block("185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from collections import OrderedDict | |
from operator import itemgetter | |
import requests | |
import sys | |
if len(sys.argv) < 2: | |
print("Usage : python merge.py [http(s)://path_to_swagger_json(s)]") | |
sys.exit(-1) | |
# Loop through the URLs | |
files = list() |
NewerOlder