In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
import mentionsService from 'mentionsService.js' | |
import InlineMention from 'inlineMention.js' | |
/** | |
* this is just a code snippet on how to use the Mentions Service and Inline Tool | |
*/ | |
const editor = new EditorJS({ | |
holder: 'editorjs', | |
inlineToolbar: ['bold', 'italic', 'link', 'inlineMention'], | |
tools: { |
from io import StringIO | |
def double(): | |
x = input("Enter an integer: ") | |
return int(x) * 2 | |
def adding(): | |
x = float(input('Enter the first number')) |
#!/usr/bin/env python | |
try: | |
# for python newer than 2.7 | |
from collections import OrderedDict | |
except ImportError: | |
# use backport from pypi | |
from ordereddict import OrderedDict | |
import yaml |