Skip to content

Instantly share code, notes, and snippets.

View enzuru's full-sized avatar

enzu.ru enzuru

View GitHub Profile
@enzuru
enzuru / gist:c5b6d41f7d27fcae7a5679d927cffdcc
Created March 23, 2024 22:11
LD_DEBUG=libs /gnu/store/z5kf1m7z7zqfnwx4wjdmjrjkjh9cx3p2-profile/bin/meson devenv -C ./builddir clinfo -l
9556: find library=libpython3.10.so.1.0 [0]; searching
9556: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
9556: trying file=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/lib/libpython3.10.so.1.0
9556:
9556: find library=libcrypt.so.1 [0]; searching
9556: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
9556: trying file=/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libcrypt.so.1
9556:
9556: find library=libm.so.6 [0]; searching
9556: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
@enzuru
enzuru / gist:4254eae19aed5f218a581edfba36b848
Created March 23, 2024 21:49
LD_DEBUG=libs meson devenv -C builddir clinfo -l
27843: find library=libpython3.10.so.1.0 [0]; searching
27843: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
27843: trying file=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/lib/libpython3.10.so.1.0
27843:
27843: find library=libcrypt.so.1 [0]; searching
27843: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
27843: trying file=/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libcrypt.so.1
27843:
27843: find library=libm.so.6 [0]; searching
27843: search cache=/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/etc/ld.so.cache
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.
Core properties:
Source dir /home/enzuru/src/mesa
Main project options:
Core options Default Value Possible Values Description
-------------- ------------- --------------- -----------
@enzuru
enzuru / gist:47ecb36233f2de30b5044774ffa11778
Created July 7, 2020 22:19
Psuedocode for perusing JSON
needle = 'keyThatIWant'
desiredKey[needle] = { value: None, date: None }
does_map_have_key(map, needle):
for key, value in map:
if (value is a Map):
does_map_have_key(value, needle)
elif (needle === key) and (date > desiredKey[needle][date]):
desiredKey[needle] = { value: value, date: date }
@enzuru
enzuru / gist:89908c60dfcb55307d3c
Last active October 27, 2015 23:40
returns.feature
Feature: Shipping
Background:
Given the following products exist in mysql:
| sku | event_id | style_id | quad_id | name | price | original_cost | freight_type | weight | quantity | available | sold | brand_id |
| 5000000 | 38568 | 98765432 | 584 | Cool pants | 20.00 | 50.00 | weight | 1 | 2 | 2 | 1 | 15235 |
| 5000001 | 38568 | 98765433 | 584 | Expensive pants | 100.00 | 200.00 | weight | 1 | 2 | 10 | 1 | 15235 |
| 5000002 | 38568 | 98765434 | 584 | Deal pants | 20.00 | 50.00 | free | 1 | 4 | 5 | 1 | 15235 |
| 5000003 | 38568 | 98765435 | 584 | Heavy pants | 20.00 | 50.00 | weight | 3 | 2 | 2 | 1 | 15235 |
| 5000004 | 38568 | 98765436 | 584 | Light pants | 20.00 | 50.00 | weight | 0.1 | 2 | 2 | 1 |
Feature: eBay feed
@solr @javascript
Scenario: Read the menu with full inventory
Given the following sellable skus exist in solr:
| division | department | class | subclass | name | brandName |
| Women | Clothing | Skirts | Summer | Nice skirt | Maxi |
| Women | Shoes | Heels | High | Hot heels | Guess |
When I am on "/api/feed/ebay"
Then I should see "Women > Clothing > Skirts > Summer" in the CSV
Feature: eBay feed
@solr
Scenario: Read the menu with full inventory # features/rack/api/marketing/ebay.feature:4
Given the following sellable skus exist in solr: # Hautelook\Common\Behat\SolrContext::theFollowingSellableSkusExistInSolr()
| division | department | class | subclass | name | brandName |
| Women | Clothing | Skirts | Summer | Nice skirt | Maxi |
| Women | Shoes | Heels | High | Hot heels | Guess |
buy_url category_program color condition description_long description_short image_thumb_url image_url in_stock keyword manufacturer material_name payment_accepted price price_retail price_sale price_shipping shoe_size size sku weight
https://test.nordstromrack.com/shop/product/1/maxi-nice-skirt Women > Clothing > Skirts > Summer new yes Maxi Credit/PayPal 0 1
{
"nodes":[
{
"value":"Women",
"children":[
{
"value":"Clothing",
"children":[
{
"value":"Dresses",
;; Unrealscript major mode
;; Copyright (C) 2012 John Connors
;; Author: John Connors
;; Keywords: extensions
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)