start new:
tmux
start new with session name:
tmux new -s myname
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. | |
# You can redistribute it and/or modify it under the terms of the Do What The | |
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See |
from celery import chain | |
from django.core.management.base import BaseCommand | |
from . import tasks | |
class Command(BaseCommand): | |
def handle(self, *args, **kwargs): |
import tensorflow as tf | |
import numpy as np | |
import time | |
N=10000 | |
K=4 | |
MAX_ITERS = 1000 | |
start = time.time() |
# launch your own Gradio Web Demo of Arcane style transfer by following the steps below | |
# open a jupyter notebook, code editor (vs code etc), or google colab | |
# pip install gradio | |
# copy the code below into a file or cell in a python notebook and run it | |
# that's it, a web demo will appear in your python notebook or web browser | |
# github: https://github.com/jjeamin/anime_style_transfer_pytorch | |
# HF blog: https://huggingface.co/blog/gradio-spaces | |
import gradio as gr |
import s3fs | |
import pickle | |
import json | |
import numpy as np | |
BUCKET_NAME = "my-bucket" | |
# definitions, keras/tf/... imports... | |
if __name__ == "__main__": |