alpha
Login
or
Join now
suri.codes
/
ziglings
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my ziglings
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ziglings
/
exercises
/
at
main
116 files
suri-codes
feat: init
1mo ago
f98cf6bc
001_hello.zig
feat: init
1 month ago
002_std.zig
Fix: Fix grammar at 002_std.zig
5 years ago
003_assignment.zig
Replace "−" with "-" in Assigment 3 tutorial text When viewing this file in VSCode, I saw the following warning highlighting lines `15` and `29` ``` The character U+2212 "−" could be confused with the character U+002d "-", which is more common in source code. ``` It seems to me this is just a small oversight, as "-" is used elsewhere in the commented block to denote a negative value, but I'll freely admit ignorance as to any nuance here in using one vs. the other.
4 years ago
004_arrays.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
005_arrays2.zig
Minor grammar fix to comment in `005_arrays2`
2 months ago
006_strings.zig
fixed removed array multiplication
2 months ago
007_strings2.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
008_quiz.zig
New usize explanation 008, etc.
5 years ago
009_if.zig
changed 1 to 42 for better understanding
8 months ago
010_if2.zig
var to const when posssible
3 years ago
011_while.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
012_while2.zig
add spaces
4 years ago
013_while3.zig
improve comment on continue expression behavior
5 months ago
014_while4.zig
Normalize interrobangs
5 years ago
015_for.zig
Updating wording in 'for' exercises This is in preparation for another dive into 'for' in an upcoming Exercise 100. Also reformatted 095 for 65 columns and some wording.
3 years ago
016_for2.zig
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
3 years ago
017_quiz2.zig
var to const when posssible
3 years ago
018_functions.zig
Update 018_functions.zig
4 years ago
019_functions2.zig
fix: 019 typo in example function, missing return type
11 months ago
020_quiz3.zig
adds missing 'the' to intro text `some of things` => `some of the things`. (I'm loving the exercises and wanted to contribute in any way possible)
3 years ago
021_errors.zig
use const for variables that are never modified
4 years ago
022_errors2.zig
Normalized exercise output, answers (#41) 1. All exercises should print a trailing \n 2. The build script should always show you _exactly_ what it's looking for when you get it wrong. Therefore, .output should be set to the exact expected output.
5 years ago
023_errors3.zig
var to const when posssible
3 years ago
024_errors4.zig
var to const when posssible
3 years ago
025_errors5.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
026_hello2.zig
I/O improvements
6 months ago
027_defer.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
028_defer2.zig
Normalize interrobangs
5 years ago
029_errdefer.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
030_switch.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
031_switch2.zig
var to const when posssible
3 years ago
032_unreachable.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
033_iferror.zig
fix: typos
1 year ago
034_quiz4.zig
I/O improvements
6 months ago
035_enums.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
036_enums2.zig
Update outdated comments
3 years ago
037_structs.zig
changed struct name 'class' into 'role'
3 years ago
038_structs2.zig
changed struct name 'class' into 'role'
3 years ago
039_pointers.zig
add commas
5 months ago
040_pointers2.zig
added expalantion for const pointer
2 months ago
041_pointers3.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
042_pointers4.zig
Update 042_pointers4.zig https://github.com/ratfactor/ziglings/pull/122
3 years ago
043_pointers5.zig
Correct conventional Zig reference vs value passing re #89
4 years ago
044_quiz5.zig
"999 is enough for anybody" triple-zero padding (#18) When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
5 years ago
045_optionals.zig
var to const when posssible
3 years ago
046_optionals2.zig
Deleted unnecessary pointer.
2 years ago
047_methods.zig
the Earth
2 years ago
048_methods2.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
049_quiz6.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
050_no_value.zig
fix: oops
4 months ago
051_values.zig
051: add a comma
2 months ago
052_slices.zig
Update 052_slices.zig
4 years ago
053_slices2.zig
zig fmt
4 years ago
054_manypointers.zig
Introduce syntax for turning a many pointer to a slice
2 years ago
055_unions.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
056_unions2.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
057_unions3.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
058_quiz7.zig
fixed removed array multiplication
2 months ago
059_integers.zig
Fixed unicode literal
2 years ago
060_floats.zig
adjusted comment to zig 0.16
2 months ago
061_coercions.zig
remove redundant word "a"
4 years ago
062_loop_expressions.zig
fix loop else clause explanation
4 years ago
063_labels.zig
dev.1711 - switched to multi-object-for-loops
3 years ago
064_builtins.zig
Fix two minor typos
2 years ago
065_builtins2.zig
Instruct user not to worry about sentinel syntax in `065_builtins2`
2 months ago
066_comptime.zig
description specified
3 years ago
067_comptime2.zig
fixed removed array multiplication
2 months ago
068_comptime3.zig
fix 068_comptime3 comment to 'std.Io.Writer.print'
5 months ago
069_comptime4.zig
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
3 years ago
070_comptime5.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
071_comptime6.zig
fix: 071 update TypeInfo field case to .int
6 months ago
072_comptime7.zig
Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664
2 years ago
073_comptime8.zig
fix whitespace line-endings
4 years ago
074_comptime9.zig
fixed removed array multiplication
2 months ago
075_quiz8.zig
fixed removed array multiplication
2 months ago
076_sentinels.zig
Fixes several changes in std.builtin.zig
2 years ago
077_sentinels2.zig
zig fmt
4 years ago
078_sentinels3.zig
Update 078_sentinels3.zig Changed description of @ptrCast closes https://github.com/ratfactor/ziglings/issues/334
3 years ago
079_quoted_identifiers.zig
Remove trailing whitespace.
4 years ago
080_anonymous_structs.zig
080: Fix @typeName results in comment
1 year ago
081_anonymous_structs2.zig
Fix exercises 058 and 081 :wrench:
4 years ago
082_anonymous_structs3.zig
add hint that @field() works differently on types and values
5 months ago
083_anonymous_lists.zig
Ensure the exercises use the canonical format Add the check-exercises.py tool in the new tools directory. It is used to check that the exercises are correctly formatted, printing on stderr the invalid ones and the diff in the unified format. Update the exercises that don't use the canonical zig fmt format. Update some patches that cause the generated zig file to be incorrectly formatted.
3 years ago
084_interfaces.zig
improved report design
3 months ago
085_async.zig
improvements for async-io
3 months ago
086_async2.zig
improvements for async-io
3 months ago
087_async3.zig
improvements for async-io
3 months ago
088_async4.zig
improvements for async-io
3 months ago
089_async5.zig
improvements for async-io
3 months ago
090_async6.zig
improvements for async-io
3 months ago
091_async7.zig
demonstrate the benefit of the mutex
3 months ago
092_async8.zig
added async-io quiz
3 months ago
093_async9.zig
fixed merge conflict
3 months ago
094_async10.zig
improvements for async-io
3 months ago
095_quiz_async.zig
095_quiz_async: Add missing Bug 4
3 months ago
096_hello_c.zig
Insert space for additional async exercises
3 months ago
097_c_math.zig
Insert space for additional async exercises
3 months ago
098_for3.zig
Insert space for additional async exercises
3 months ago
099_memory_allocation.zig
Insert space for additional async exercises
3 months ago
100_bit_manipulation.zig
fix: move exercise 100 celebration comment to the right file
3 months ago
101_bit_manipulation2.zig
Insert space for additional async exercises
3 months ago
102_formatting.zig
Fix formatting reference link
3 months ago
103_for4.zig
fix: move exercise 100 celebration comment to the right file
3 months ago
104_for5.zig
Insert space for additional async exercises
3 months ago
105_testing.zig
Insert space for additional async exercises
3 months ago
106_tokenization.zig
Insert space for additional async exercises
3 months ago
107_threading.zig
Insert space for additional async exercises
3 months ago
108_threading2.zig
added result for 12 digits
3 months ago
109_files.zig
Insert space for additional async exercises
3 months ago
110_files2.zig
docs: update wrong reference to prior exercise The comment should reference exercise 109, not 106.
3 months ago
111_labeled_switch.zig
Insert space for additional async exercises
3 months ago
112_vectors.zig
Insert space for additional async exercises
3 months ago
113_quiz9.zig
Insert space for additional async exercises
3 months ago
114_packed.zig
Insert space for additional async exercises
3 months ago
115_packed2.zig
Insert space for additional async exercises
3 months ago
999_the_end.zig
changed 'the_end' to '999_the_end'
3 years ago