This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wandb | |
from wandb.sweeps.config import tune | |
from wandb.sweeps.config.tune.suggest.hyperopt import HyperOptSearch | |
from wandb.sweeps.config.hyperopt import hp | |
tune_config = tune.run( | |
'example.py', | |
search_alg=HyperOptSearch( | |
hp.choice('classifier_type', [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSImage+Python.swift | |
// | |
// Created by Elia Cereda on 03/06/2019. | |
// Copyright © 2019 Elia Cereda. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func relativeDateString(date: NSDate) -> String { | |
let components: Array<(Int, (Int) -> String)> = [ | |
(60 * 60 * 24 * 365, { x in "\(x) anni fa" }), | |
(60 * 60 * 24 * 30, { x in "\(x) mesi fa" }), | |
(60 * 60 * 24 , { x in "\(x) giorni fa" }), | |
(60 * 60 , { x in "\(x) ore fa" }), | |
(60 , { x in "\(x) minuti fa" }) | |
] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Elia Cereda <eliacereda+arch at gmail dot com> | |
pkgname=shairport-sync-git | |
pkgver=2.1.15.r1.gcf6594d | |
pkgrel=1 | |
pkgdesc='Emulates an AirPort Express for the purpose of streaming music from iTunes and compatible iPods and iPhones' | |
url='https://github.com/mikebrady/shairport-sync' | |
arch=(i686 x86_64 armv6h armv7h) | |
license=('custom') | |
backup=(etc/conf.d/shairport-sync) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CRZRuntimeIvars.h | |
// CRZRuntimeIvars | |
// | |
// Copyright (c) 2013-2015 Elia Cereda | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |