Skip to content

Instantly share code, notes, and snippets.

View kyleniemeyer's full-sized avatar
🚀

Kyle Niemeyer kyleniemeyer

🚀
View GitHub Profile
@floer32
floer32 / _socket_toggle.py
Last active December 18, 2019 20:31
Disable the internet in Python. With py.test hooks. (Disable socket.socket.) GREAT for unit testing.
from __future__ import print_function
import socket
import sys
_module = sys.modules[__name__]
def disable_socket():
""" disable socket.socket to disable the Internet. useful in testing.
.. doctest::
@denvazh
denvazh / INSTALL.md
Created November 24, 2015 07:14
Ruby development environment with rbenv and bundler

Ruby

Rbenv

Used to manage ruby environment, since it is more beneficial and clean to use non-system one.

Install rbenv and ruby-build

Contributing to Cantera

  • For significant changes, consider starting a discussion on the Cantera Users' Group to plan your modifications so that they can be implemented efficiently and in a way that doesn't conflict with any other planned future development
  • Fork the Cantera/cantera repository on Github
  • Clone your new repository or add it as a remote to an existing repository
  • Check out the existing 'master' branch, then start a new feature branch for your work