• Stars
    star
    6
  • Rank 2,463,307 (Top 50 %)
  • Language
    Zig
  • License
    Other
  • Created almost 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GUID parsing/stringifying with zig

ziguid

GUIDs for zig.

Usage

const guid = @import("ziguid");
const GUID = guid.GUID;

const at_comptime = GUID.from("14aacebd-2dfe-4f5c-a475-d1b57b0cb775");

const generate_at_runtime = GUID.v4();
var string_buffer = [_]u8{0} ** 38;
generate_at_runtime.toString(string_buffer, .Braced, .Upper);
// "{B10BC49E-E79A-478B-B180-0A7093E2D1BE}"

The GUID struct is 16 bytes large and has an identical layout to the GUID struct in the Windows C API.

License

Apache-2.0

More Repositories

1

setup-zig

use a @ziglang compiler in your github actions workflows
JavaScript
126
star
2

split-require

commonjs-first bundle splitting, for browserify
JavaScript
82
star
3

recanalyst

Analyzes Age of Empires 2 recorded game files.
PHP
74
star
4

node-resolve

the node.js module resolution algorithm, but it's rust
Rust
62
star
5

browser-pack-flat

bundle browserify modules into a single scope, a la rollup
JavaScript
53
star
6

react-bus

A global event emitter for react.
JavaScript
43
star
7

wikibattle

1v1 races through Wikipedia article links.
JavaScript
38
star
8

awestruct

🀩 Library for reading binary Buffer structures into objects in Node.js
JavaScript
38
star
9

webpack-unpack

extract modules from a bundle generated by webpack
JavaScript
38
star
10

get-artist-title

Get the artist and title from a string, eg. a YouTube video title.
JavaScript
31
star
11

minify-stream

minify javascript in a stream using uglify-js (ES5) or terser (ES6+)
JavaScript
26
star
12

scope-analyzer

simple scope analysis for javascript ASTs
JavaScript
22
star
13

qs-stringify

Simple query stringify with nesting, ~200b gzipped.
JavaScript
20
star
14

keyv-firestore

Firebase Cloud Firestore backend for Keyv, the simple persistent key-value storage module
JavaScript
20
star
15

tfilter

selectively run browserify transforms using globs or a filter function
JavaScript
18
star
16

p-wait-all

`Promise.all`, but it waits for all promises to settle even if one of them rejected
JavaScript
15
star
17

standard-action

Github Action to lint with `standard` and friends
JavaScript
15
star
18

react-abstract-autocomplete

Bring-Your-Own-UI autocomplete / mentions component for React.
JavaScript
15
star
19

choo-lazy-route

lazy load choo routes from split bundles
JavaScript
15
star
20

multisplice

easily splice a string multiple times, using offsets into the original string
JavaScript
14
star
21

dash-ast

walk an AST, quickly
JavaScript
12
star
22

sse-codec

A futures_codec that encodes and decodes Server-Sent Event/Event Sourcing streams.
Rust
12
star
23

transform-ast

transform an AST with source maps
JavaScript
12
star
24

get-youtube-chapters

parse chapters from a youtube video description
JavaScript
12
star
25

mongoose-model-decorators

ES2016 decorator functions for building Mongoose models
JavaScript
11
star
26

prototype-rs

basic rust js bundler
Rust
10
star
27

youtube-suggest

get youtube search suggestions for a query, in node.js and the browser
JavaScript
10
star
28

ircs

IRC Server library in Node.js [Probably never going to be maintained, pls fork]
JavaScript
10
star
29

dom-autofocus

focus an element when it enters the dom
JavaScript
10
star
30

shorten-url

omit parts of a url for friendlier display, in ~450 gzipped bytes
JavaScript
10
star
31

with-staged

run a command (like linting) on git staged files
JavaScript
9
star
32

dprun

DPRun is a standalone C Windows/Wine utility for starting DirectPlay lobbyable applications.
C
9
star
33

dart-event-source

W3C EventSource client implementation for Dart
Dart
9
star
34

babel-plugin-yo-yoify

Babel plugin to transform yo-yo or bel template strings into pure and fast document calls.
JavaScript
9
star
35

playage

Aspiring cross-platform Age of Empires 2 multiplayer client.
Rust
9
star
36

raf-iterator

requestAnimationFrame as an async iterator
JavaScript
8
star
37

frequency-bars

nanocomponent rendering realtime audio frequencies as a bar chart
JavaScript
8
star
38

dizzay

dizzay (/ˈdΙͺːdΚ’eΙͺ/) is a command-line program that plays media from a plug.dj room in VLC or in Mplayer.
JavaScript
8
star
39

require-detective

find require() calls in commonjs modules, quickly, using webassembly
Rust
8
star
40

wololobot

Chat bot for the ZeroEmpires Twitch.tv stream.
JavaScript
7
star
41

babel-plugin-generator-prettier

Babel plugin to use prettier for transformed code output
JavaScript
7
star
42

browserify-webpack-stats

output a webpack-style stats.json with browserify
JavaScript
7
star
43

babel-preset-unminify

make minified code more readable.
JavaScript
7
star
44

statusbar

Modular status bar for dzen, i3bar, etc. in Node.js.
JavaScript
7
star
45

ansi-scrollbox

a basic scrollable area for terminal apps
JavaScript
6
star
46

item-selection

Manage multi-`<select>` style array selection state.
JavaScript
6
star
47

ws-events

Minimal Events/RPC decorator for WebSockets.
JavaScript
6
star
48

is-es-version

check if some source code uses syntax supported by an ES version
JavaScript
6
star
49

ascjsify

fast browserify transform for ES modules, and nothing else--using @WebReflection `ascjs`
JavaScript
6
star
50

aocmultiny

[wip] Tiny NAT-traversing Age of Empires 2 Multiplayer client.
C++
6
star
51

get-youtube-title

get the title of a youtube video in node.js or the browser.
JavaScript
6
star
52

micro-helmet

security headers for micro
JavaScript
5
star
53

shorten-url-rs

omit parts of a URL for friendlier display
Rust
5
star
54

require-with-global

inject a global variable into a module require() tree
JavaScript
5
star
55

gulp-babel-external-helpers

Gulp plugin to add external helpers for Babel in a separate file.
JavaScript
5
star
56

empty-element

Empty a DOM element.
JavaScript
5
star
57

mini-unassert

remove assert calls from a stream of javascript
JavaScript
4
star
58

estree-is-member-expression

check if an AST node is a MemberExpression, in general or a specific one
JavaScript
4
star
59

noneofyourf-cking.business

http://noneofyourfucking.business
HTML
4
star
60

dynamic-import-support

transform dynamic imports for node.js
JavaScript
4
star
61

bulmare

Thin React components for Bulma.
JavaScript
4
star
62

write-file-tree

write an object to nested file tree, with one file for each value
JavaScript
4
star
63

prop-types-table

create a markdown table documenting a React component's propTypes
JavaScript
4
star
64

estree-assign-parent

assign `.parent` properties to all nodes in an ast.
JavaScript
4
star
65

dzen2

Use dzen2 from Node.js.
JavaScript
4
star
66

read-file-tree

recursively read contents of all files in a directory
JavaScript
4
star
67

plug-auth

Browser and Node.js libraries for third-party authentication with plug.dj
JavaScript
4
star
68

bluebirdish

bluebird's fancy api but with native promises
JavaScript
4
star
69

dotfiles

dot dot dot
Shell
4
star
70

deps-write

write modules from a module-deps stream to the filesystem instead of bundling
JavaScript
4
star
71

rollup-plugin-es-module-interop

change the rollup commonjs output for external imports to check `module.__esModule`
JavaScript
4
star
72

md-insert

insert content under a markdown header or into a comment delimited region
JavaScript
4
star
73

flat-loader

Scope hoisting Webpack loader based on Rollup. β€” use webpack 3's ModuleConcatenationPlugin instead!
JavaScript
3
star
74

min-react-env

minimal browser mocks for testing react-dom code in node.js
JavaScript
3
star
75

aoe-map-renderer

Render Age of Empires 2 scenario maps using WebGL. This is incomplete and won't be worked on in the near future. feel free to take the code and make it work (or not).
JavaScript
3
star
76

flash-document-title

flash a notification message in the tab title area
JavaScript
3
star
77

async-cls

dead simple continuation local storage using async hooks
JavaScript
3
star
78

amd-unpack

extract modules from a bundled AMD project using define/require functions
JavaScript
3
star
79

babel-plugin-transform-phonetize

babel plugin to rename identifiers in a file to randomly generated pronounceable names
JavaScript
3
star
80

arms

[VERY WIP] Random Map/Scenario Scripting for Age of Empires 2.
Rust
3
star
81

undeclared-identifiers

find undeclared identifiers and property accesses in a javascript file.
JavaScript
3
star
82

sqc

sqlite cli with syntax highlighting and pretty tables
Rust
3
star
83

smol-jsonp

small, promise-based, zero-dependency jsonp library for browsers. ~330b gzip
JavaScript
3
star
84

surf-sse

Server-Sent Events/EventSource client based on Surf
Rust
3
star
85

babel-plugin-dynamic-import-split-require

babel plugin to compile `import()` syntax to `split-require`, the commonjs bundle splitting library
JavaScript
3
star
86

has-async-hooks

check if the current node version has async_hooks.
JavaScript
2
star
87

cr-tools

More tools in Canvas Rider [OBSOLETE]
JavaScript
2
star
88

estree-is-function

check if an AST node is a function of some sort
JavaScript
2
star
89

scream-stream

convert contents of a stream to uppercase (for tests n whatever)
JavaScript
2
star
90

xkcd-37

Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one word to the right.
JavaScript
2
star
91

from2-buffer

Create a readable stream from a Buffer with from2
JavaScript
2
star
92

redux-minifetch

small composable HTTP requests for redux actions
JavaScript
2
star
93

remove-react-proptypes

Remove React propTypes.
JavaScript
2
star
94

deku-material-svg-icons

Google's Material Design SVG icons as Deku components.
JavaScript
2
star
95

fs-read-stream-live

fs.createReadStream but it waits for new writes instead of ending
JavaScript
2
star
96

imgur-blob-store

upload and download images from imgur through an abstract-blob-store compatible interface
JavaScript
2
star
97

dotreg

Parse and stringify Windows registry files – unstable, API still in progress!
Rust
2
star
98

esm-bundler

a very small ES modules bundler
JavaScript
2
star
99

wrap-comment

Safely wrap some text in a JavaScript comment, escaping close `*/` sequences.
JavaScript
2
star
100

yaml-hook

minimal require() hook to load .yml/.yaml YAML files as JS objects
JavaScript
2
star