Skip to content

Instantly share code, notes, and snippets.

View maresb's full-sized avatar

Ben Mares maresb

  • Tensorial (EI Bernard Mares)
  • Ferney-Voltaire, France
View GitHub Profile
@xylar
xylar / grayskull_autoupdate.py
Last active October 31, 2023 10:08
A script for automatically updating dependencies in conda-forge bot branches using grayskull and pypi
#!/usr/bin/env python
import argparse
import os
import shutil
import subprocess
import packaging.version
import grayskull.strategy
from importlib.resources import open_binary
import yaml
@wolfv
wolfv / fetch.sh
Created September 8, 2021 13:08
Fetch from OCI registry (ghcr.io)
export TOKEN=$(curl --silent https://ghcr.io/token\?scope\=repository:wolfv/artifact:pull | jq -r .token)
curl \
--silent \
--request 'GET' \
--header "Authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.oci.image.manifest.v1+json" \
'https://ghcr.io/v2/wolfv/artifact/manifests/1.0'
echo "\n\nFetching image content now:\n\n"
@guillaume-chevalier
guillaume-chevalier / tensorflow-simple-second-order-optimization.py
Created July 30, 2017 04:58
Simple second order optimization with TensorFlow.
"""Simple second order optimization with TensorFlow."""
import tensorflow as tf
####
# 1. Define the problem