Skip to content

Commit

Permalink
na
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvcky-gg committed Dec 20, 2023
1 parent 17bff1c commit f1ce72b
Show file tree
Hide file tree
Showing 161 changed files with 288 additions and 18 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
"java.configuration.updateBuildConfiguration": "interactive",
"telemetry.enableTelemetry": true
}
20 changes: 19 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
<a href="https://imgflip.com/i/89ts7o"><img src="https://i.imgflip.com/89ts7o.jpg" title="made at imgflip.com"/></a><div><a href="https://imgflip.com/memegenerator">from Imgflip Meme Generator</a></div>
# not-not-odd 🚀
![coverage](https://img.shields.io/badge/coverage-80%25-yellowgreen)
![version](https://img.shields.io/badge/version-1.2.3-blue)
![gem](https://img.shields.io/badge/gem-2.2.0-blue)
![dependencies](https://img.shields.io/badge/dependencies-out%20of%20date-orange)
![codacy](https://img.shields.io/badge/codacy-B-green)
![semver](https://img.shields.io/badge/semver-2.0.0-blue)
![receives](https://img.shields.io/badge/receives-2.00%20USD%2Fweek-yellow)
![downloads](https://img.shields.io/badge/downloads-13k%2Fmonth-brightgreen)
![rating](https://img.shields.io/badge/rating-★★★★☆-brightgreen)
![uptime](https://img.shields.io/badge/uptime-100%25-brightgreen)
![GitHub issues by-label](https://img.shields.io/github/issues/badges/shields/good%20first%20issue)
![discord](https://img.shields.io/discord/123?logo=discord&amp;label=discord)
![npm](https://img.shields.io/npm/v/badges.svg)
![crypto](https://img.shields.io/badge/crypto-donate-yellow.svg)
![paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)
![oc](https://img.shields.io/badge/open%20collective-donate-yellow.svg)
![bmac](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)

👽👽checks if a given number is not not odd👽👽

Expand Down Expand Up @@ -35,7 +52,8 @@ notNotOddNotNotEvenChecker.notNotEven(69) // => false
notNotOddNotNotEvenChecker.notNotEven(42) // => true
```
## Add what you feel necessary
https://discord.gg/EZW6bX5V
* Note: there are intentional issues in certain parts of the implementation that don't affect current builds. These are meant as a way for people to practice.
* https://discord.gg/9EBfMjYm



Expand Down
36 changes: 36 additions & 0 deletions bin/notNotOdd.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use strict;
use warnings;

my $num;
my $lastDig;

# Need my digit sets
# perl doesn't support sets so have to make them manually
my %odd = (
1 => 1,
3 => 1,
5 => 1,
7 => 1,
9 => 1,
);

if(@ARGV == 0) {
print STDERR "ERROR: No input provided\n";
exit 1;
}
$num = $ARGV[0];

#some debug if anyone needs it in the future
#print "Number " . $num . "\n";

if ($num =~ /(\d)[^\d]*$/) {
$lastDig = int($1);
}

if(exists $odd{$lastDig}){
print "True\n";
exit 0;
}
print "False\n";
1;

11 changes: 11 additions & 0 deletions build_time/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions build_time/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
std::thread::sleep(std::time::Duration::from_millis(100000));
}
2 changes: 1 addition & 1 deletion build_time/target/.rustc_info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"rustc_fingerprint":7324001767824312892,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/johnrodonnell/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.71.0-nightly (d0f204e4d 2023-04-16)\nbinary: rustc\ncommit-hash: d0f204e4d750b62f9d6c2593405e828757126832\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.71.0-nightly\nLLVM version: 16.0.2\n","stderr":""}},"successes":{}}
{"rustc_fingerprint":13423959009784225579,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.72.0 (5680fa18f 2023-08-23)\nbinary: rustc\ncommit-hash: 5680fa18feaa87f3ff04063800aec256c3d4b4be\ncommit-date: 2023-08-23\nhost: x86_64-unknown-linux-gnu\nrelease: 1.72.0\nLLVM version: 16.0.5\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/thomas/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d271683553f10ba6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":17954901377634971088,"features":"[]","target":427768481117760528,"profile":17385444107779271700,"path":4524081124783967569,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/build_time-05d94e818914635b/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d9f5043ec59fb7d5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":17954901377634971088,"features":"","target":0,"profile":0,"path":0,"deps":[[15687193879738803693,"build_script_build",false,11964922174720471506]],"local":[{"Precalculated":"1703042715.369586597s (target/CACHEDIR.TAG)"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf3c623d0b08d242
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":17954901377634971088,"features":"[]","target":16291746725044359259,"profile":11039742474438789458,"path":1684066648322511884,"deps":[[15687193879738803693,"build_script_build",false,15399953120314586585]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/build_time-a94d51ae7fb98483/dep-bin-build_time"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
Loading

0 comments on commit f1ce72b

Please sign in to comment.