Skip to content

Instantly share code, notes, and snippets.


Fuminori Sakamoto goldeneggg

View GitHub Profile
veuncent /
Last active Nov 22, 2020
Debugging Django apps running in Docker using ptvsd - Visual Studio (Code)

Remote debugging in Docker (for Django apps)

In order to enable debugging for your Django app running in a Docker container, follow these steps using Visual Studio (Code):

  1. Add ptvsd to your requirements.txt file
ptvsd == 4.3.2
  1. To your launch.json, add this:
kyletcarlson / rspec_model_testing_template.rb
Last active Jan 5, 2021
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
View rspec_model_testing_template.rb
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
# @kyletcarlson
# This skeleton also assumes you're using the following gems:
krrrr38 / NaverImageExtractor.scala
Created May 15, 2013
View NaverImageExtractor.scala
import scala.collection.JavaConversions._
import org.jsoup.Jsoup
import scalax.file.Path
object NaverImageExtractor {
You can’t perform that action at this time.