Skip to content

Instantly share code, notes, and snippets.

View benwalio's full-sized avatar
🐻

ben wal benwalio

🐻
View GitHub Profile
@benwalio
benwalio / uuid.jinja
Created August 11, 2021 16:45
create a basic uuid using jinja2
{%- set ns = namespace(uuid = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx') %}
{%- set ns.new_uuid = '' %}
{%- for x in ns.uuid %}
{%- set ns.new_uuid = [ns.new_uuid,(x | replace('x', [0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f'] | random ))] | join %}
{%- endfor %}
{{ ns.new_uuid }}

Keybase proof

I hereby claim:

  • I am benwalio on github.
  • I am benwalio (https://keybase.io/benwalio) on keybase.
  • I have a public key ASBkXqnqTQoG9MtPUw212S3LwGL44SzaQHbmokPxIWe1CAo

To claim this, I am signing this object:

constructor (props) {
super(props);
this.state = this.initialState();
};
initialState () {
return ({
key: value
})
};