Short code snippets written by our open source community!

Overview

Code Examples

This repository contains different code examples in different programming languages.

Website

https://codes.snowflakedev.org

How do I contribute?

You can create pull requests to this repo in any language you like. If you don't know what pull requests are, click here.

What should I do?

  • add examples to this repo related to any language (inside /codes directory)
  • properly structure, format your codebase
  • any programming language is accepted

What should I not do?

  • make spam pull requests (like adding/removing whitespace in misc. files such as .gitignore, README.md etc)
  • make single pull requests for multiple languages/topics
  • can refactor existing codes but make sure to check if there's a pull request open for that

Commit messages

It's best to use conventional commit message format but is not compulsory.

Join our Discord

💗 Open Source 🎉

Comments
  • feat(JavaScript): Added a few new code examples

    feat(JavaScript): Added a few new code examples

    feat(JavaScript): Added the decimalToBinary, binaryToDecimal and solveX to the code examples

    • Added JavaScript/decimalToBinary.js
    • Added JavaScript/binaryToDecimal.js
    • Added JavaScript/solveX.js
    awaiting response 
    opened by Iliannnn 14
  • Revamped the style & added search functionality

    Revamped the style & added search functionality

    • Changed JavaScript to TypeScript • Changed the Style (used brand colors) • Added search functionality

    • In case the "snippets" are folders, it will redirect to the github repo. Otherwise, it will display it on the site.
    enhancement 
    opened by Nemika-Haj 12
  • Design Of a Helical Spring

    Design Of a Helical Spring

    Anyone (literally) will be able to compute the dimensions of a helical spring by giving inputs like the maximum weight attached, length of the scale, ultimate tensile strength, spring Index, and modulus of rigidity.

    opened by mugdhapendse 5
  • Searching for samples on the website feels quite unpolished

    Searching for samples on the website feels quite unpolished

    When looking through the samples on the website it didn't feel very good. The main cause of this is the need to include characters like - and _ when searching for some sample (like a hello world file). I think that ignoring these characters, which are in the file names just to not have spaces there, while searching would make the site much better. Something else I noticed is that you can't search for language specific samples. This would be great for the languages that have a lot of samples, for example if I try to search for a hello world file in JS, I will either have to scroll through a lot of hello world files or through a lot of other JS samples.

    https://user-images.githubusercontent.com/70060103/139596201-7dd5e939-25cb-4662-9ead-1371eb90d9c9.mp4

    enhancement 
    opened by Pandicon 4
  • maze.cpp and n_queen.cpp causes memory leak

    maze.cpp and n_queen.cpp causes memory leak

    maze.cpp allocates two nested arrays with the new keyword. which means they are both dynamic pointers which won't be deleted when the program exits unless a delete keyword is used or if it's called with a free() function.

    the program does not delete the two nested arrays before exiting, thus, causing a memory leak when it goes out of scope.

    bug 
    opened by null8626 3
Owner
SnowflakeDev Community ❄️
Winter ❄️ | "Lets code together in language we love 😃"
SnowflakeDev Community ❄️
Apache Dubbo is a high-performance, java based, open source RPC framework.

Apache Dubbo Project Apache Dubbo is a high-performance, Java-based open-source RPC framework. Please visit official site for quick start and document

The Apache Software Foundation 38.2k Dec 31, 2022
This is an open source android based Music Player application developed in Android Studio

Pulse Music An offline music player android app, with modern UI and powerful features If you liked this repo, fork it and leave a STAR. Your support m

Sharath 7 Apr 11, 2022
GrimAC is an open source anticheat designed for 1.17 and supporting 1.7-1.17.

GrimAC Currently too unstable to use in production. Work is being done on a partial rewrite to simplify the code, run block place/break/interact logic

DefineOutside 511 Jan 2, 2023
API gateway for REST and SOAP written in Java.

API gateway for REST and SOAP written in Java.

predic8 GmbH 389 Dec 31, 2022
A barebones WebSocket client and server implementation written in 100% Java.

Java WebSockets This repository contains a barebones WebSocket server and client implementation written in 100% Java. The underlying classes are imple

Nathan Rajlich 9.5k Dec 30, 2022
A multi-threaded downloader written in java

A multi-threaded downloader written in java

null 1 Feb 20, 2022
Nzyme is a free and open next-generation WiFi defense system.

Nzyme is a free and open next-generation WiFi defense system.

Lennart Koopmann 1.1k Jan 1, 2023
Pcap editing and replay tools for *NIX and Windows - Users please download source from

Tcpreplay Tcpreplay is a suite of GPLv3 licensed utilities for UNIX (and Win32 under Cygwin) operating systems for editing and replaying network traff

AppNeta, Inc. 956 Dec 30, 2022
Unconventional Java code for building web servers / services without a framework.

Unconventional Java code for building web servers / services without a framework. Think dropwizard but as a seed project instead of a framework. If this project had a theme it would be break the rules but be mindful of your decisions.

StubbornJava 227 Nov 15, 2022
Welcome to the EHS robotics club's GitHub repository, this will also be used as our primary community center and means of communication. Also be sure to join our remind for on the go updates @EHSFTC21

NOTICE This repository contains the public FTC SDK for the Ultimate Goal (2020-2021) competition season. Formerly this software project was hosted her

null 5 Feb 25, 2022
100 Days of Code Learning program to keep a habit of coding daily and learn things at your own pace with help from our remote community.

100 Days of Code Learning program to keep a habit of coding daily and learn things at your own pace with help from our remote community.

Git Commit Show by Invide 41 Dec 30, 2022
You are looking for examples, code snippets, sample applications for Spring Integration? This is the place.

Spring Integration Samples Note This (master) branch requires Spring Integration 5.0 or above. For samples running against earlier versions of Spring

Spring 2.1k Dec 30, 2022
A complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android.

Highlight A complete and performing library to highlight text snippets (EditText/Editable and TextView) using Spannable with Regular Expressions (Rege

Irineu A. Silva 16 Dec 22, 2022
log4j-scanner is a project derived from other members of the open-source community by CISA's Rapid Action Force team to help organizations identify potentially vulnerable web services affected by the log4j vulnerabilities.

Log4j Scanner This repository provides a scanning solution for the log4j Remote Code Execution vulnerabilities (CVE-2021-44228 & CVE-2021-45046). The

Cybersecurity and Infrastructure Security Agency 1.3k Dec 22, 2022
Free, open-source, Minecraft 1.12.2 PvP client aimed at the anarchy community.

Cosmos is a free, open-source, Minecraft 1.12.2 Forge PvP Client aimed at the anarchy community. The client is still in the development phase. Usage:

null 153 Jan 1, 2023
Compiler that compiles our language flowg to g-code (4th semester project)

flowg FlowG is a language that greatly simplifies manual g-code programming. It is a high-level language that supports functions, for loops, if statem

Mads Mogensen 4 Jun 15, 2022
Source code of APK-Explorer-Editor (AEE), an open-source tool to explore the contents of an installed APK!

APK Explorer & Editor (AEE) APK Explorer & Editor, an open-source tool to explore the contents of an installed APK, is strictly made with an aim to in

APK Explorer & Editor 271 Jan 8, 2023
This repository consists of the code samples, assignments, and the curriculum for the Community Classroom complete Data Structures & Algorithms Java bootcamp.

DSA-Bootcamp-Java Subscribe to our channel Complete Playlist Syllabus Discord for discussions Telegram for announcements Connect with me     Follow Co

Kunal Kushwaha 10.2k Jan 1, 2023