Skip to content

Instantly share code, notes, and snippets.

View rsoni286's full-sized avatar
💭
Learn();Practise();Excel();

Rahul Soni rsoni286

💭
Learn();Practise();Excel();
  • Cloud Masters Pvt. Ltd.
  • Biratnagar, Nepal
View GitHub Profile
@PimDeWitte
PimDeWitte / Efficient Bad Word Filter
Last active February 11, 2024 14:57
Simple profanity filter written in Java for efficient comparison. Runtime grows based on string input, not list size.
static Map<String, String[]> words = new HashMap<>();
static int largestWordLength = 0;
public static void loadConfigs() {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://docs.google.com/spreadsheets/d/1hIEi2YG3ydav1E06Bzf2mQbGZ12kh2fe4ISgLg_UBuM/export?format=csv").openConnection().getInputStream()));
String line = "";
int counter = 0;
while((line = reader.readLine()) != null) {
@cdiggins
cdiggins / react-best-practices.md
Created January 25, 2018 16:20
React Best Practices