I hereby claim:
- I am mafzst on github.
- I am mafzst (https://keybase.io/mafzst) on keybase.
- I have a public key ASAdcRrAW4Tdlc59ppNTFWv_-pM-uOR4s04eeY7o8ntofwo
To claim this, I am signing this object:
<?php | |
/** | |
* Truncate Html string without stripping tags | |
* register in Resources/config/services.yml with: | |
* services: | |
* truncatehtml.twig.extension: | |
* class: Radley\TwigExtensionBundle\Extension\TruncateHtmlExtension | |
* tags: | |
* - { name: twig.extension } | |
* |
const keys = Object.keys(nutriments); | |
let parsed = {}; | |
const primitives = keys | |
.filter((key) => key.split('_').length == 1); | |
primitives.forEach((key) => { | |
let secondaries = keys.filter((secondKey) => { | |
let splitted = secondKey.split('_'); | |
return splitted.length == 2 && splitted[0] == key; |
"nutriments": { | |
"sodium": "0.192913385826772", | |
"sugars": "31", | |
"sugars_value": "31", | |
"fat_unit": "g", | |
"carbohydrates_unit": "g", | |
"proteins_unit": "g", | |
"fat": "15", | |
"nutrition-score-fr_100g": "17", | |
"carbohydrates_value": "71", |
{ | |
"sodium": { | |
"serving": "0.627", | |
"unit": "g", | |
"100g": "0.196", | |
"value": "0.196" | |
}, | |
"sugars": { | |
"value": "3.8", | |
"unit": "g", |
Verifying that "nicolasperraut.id" is my Blockstack ID. https://onename.com/nicolasperraut |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<template> | |
<div class="hello"> | |
<h1 @click="createSupplier">{{ msg }}</h1> | |
<h2 v-for="supplier in suppliers" :key="supplier.id">{{supplier.name}}</h2> | |
</div> | |
</template> | |
<script> | |
import axios from 'axios' // == const axios = require('axios') |
diff --git a/PKGBUILD b/PKGBUILD | |
index 35e2038..51f0dd8 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -19,6 +19,7 @@ sha512sums=('146ad1301beb2f2348d2ddf8f53c235f67968e784ab7349bbb2d11044fca88d02b0 | |
package() { | |
local _gemdir="$(ruby -e'puts Gem.default_dir')" | |
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem | |
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" faraday_middleware -v 0.9.1 | |
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" |
<template> | |
<div class="p-12"> | |
<ul role="list" class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3"> | |
<li v-for="product in products" :key="product.id" | |
class="col-span-1 divide-y divide-gray-200 rounded-lg bg-white shadow"> | |
<div class="flex w-full items-center justify-between space-x-6 p-6"> | |
<div class="flex-1 truncate"> | |
<div class="flex items-center space-x-3"> | |
<h3 class="truncate text-sm font-medium text-gray-900">{{ product.title }}</h3> | |
<span |