Skip to content

Instantly share code, notes, and snippets.

@yareyaredesuyo
yareyaredesuyo / progan_simple.py
Created December 16, 2020 15:57
simple way to use progan (tf2)
import PIL.Image
import numpy as np
import tensorflow_hub as hub
import tensorflow as tf
# https://github.com/tensorflow/hub/blob/master/examples/colab/tf_hub_generative_image_module.ipynb
# https://tfhub.dev/google/progan-128/1
latent_dim = 512
progan = hub.load("https://tfhub.dev/google/progan-128/1").signatures['default']
@yareyaredesuyo
yareyaredesuyo / fasstapi-management-tips.md
Created December 8, 2020 09:30
Tips for managing FastAPI project

It maybe useful to share the knowledge of fastapi's tips and practice.

Set up fastapi minimum project from scratch

This is a minimum setup procedure for a fastapi project using poetry.

@yareyaredesuyo
yareyaredesuyo / index.html
Created February 20, 2020 23:09
iPhone X to Macbook Pro
<div class="device single">
<div class="iphone">
<div class="button-right"></div>
<div class="button-left"></div>
</div>
<div class="iphone iphone-back">
<div class="button-right"></div>
<div class="button-left"></div>
<div class="camera"></div>
@yareyaredesuyo
yareyaredesuyo / laravellocal.md
Created July 5, 2019 09:12 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@yareyaredesuyo
yareyaredesuyo / get_html_meta.js
Last active February 12, 2019 02:20
get meta data using cheerio.
const fetch = require('node-fetch');
const cheerio = require('cheerio');
async function main() {
const args = process.argv.slice(2);
const arg = args[0];
const res = await fetch(arg);
const resText = await res.text();
const $ = cheerio.load(resText);