Skip to content

Instantly share code, notes, and snippets.

View alkamid's full-sized avatar

Adam Klimont alkamid

View GitHub Profile
@ArturTan
ArturTan / morfeusz_execnet.py
Created November 2, 2018 17:02
morfeusz_execnet
import execnet
def token_converter(text):
gw = execnet.makegateway("popen//python=python2.7")
channel = gw.remote_exec(
"""import morfeusz2 as morf
import gc
def converter(text):
@baldassarreFe
baldassarreFe / MixedScaleDenseNetwork.ipynb
Created March 12, 2018 16:36
Mixed-Scale Dense Network
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nepsilon
nepsilon / how-to-git-patch-diff.md
Last active July 4, 2024 13:39
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch
@iamatypeofwalrus
iamatypeofwalrus / roll_ipython_in_aws.md
Last active January 22, 2024 11:18
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time