- Create a new folder say
new_folder
. Use the command line command.
mkdir new_folder
- Transfer all the folders and files you want to keep in remote repository into
new folder
for linux
##Have a band, hire musicians and fire them using OOP | |
import random | |
class Musician: | |
"""docstring for ClassName""" | |
def __init__(self, name, specialization, sound): | |
self.name = name | |
self.specialization = specialization | |
self.sound = sound | |
class Guitarist(Musician): |
import string | |
def modify_string(word): | |
"""The main function for manipulating the string""" | |
uppercase_letters = list(string.ascii_uppercase) | |
lowercase_letters = list(string.ascii_lowercase) | |
numbers_0_to_9 = [ str(x) for x in range(0, 10) ] | |
output = '' | |
all_lists = [uppercase_letters, lowercase_letters, numbers_0_to_9] | |
import string | |
from random import randint | |
def modify_string(word): | |
"""The main function for manipulating the string""" | |
uppercase_letters = list(string.ascii_uppercase) | |
lowercase_letters = list(string.ascii_lowercase) | |
numbers_0_to_9 = [ str(x) for x in range(0, 10) ] | |
output = '' |
{"lastUpload":"2017-10-30T18:14:52.690Z","extensionVersion":"v2.8.3"} |
"""Common utility functions sqlalchemy in django""" | |
def dj_pg_db_url_to_sqlachemy(dj_pg_db_url): | |
""" | |
transforms a dj_database_url postgres url to | |
an sqlalchemy onereplacing 'postgres://...' with 'posgresql://...' | |
""" | |
try: | |
return 'postgresql%s' % (dj_pg_db_url[dj_pg_db_url.find('://'):]) |
new_folder
. Use the command line command.mkdir new_folder
new folder
for linux
{ | |
"html.format.enable": false, | |
"python.pythonPath": "${workspaceRoot}/env/bin/python3", | |
"python.linting.lintOnSave": true, | |
"python.formatting.autopep8Path": "${workspaceRoot}/env/lib/python3.5/site-packages/autopep8.py", | |
"python.autoComplete.extraPaths": [ | |
"${workspaceRoot}/env/lib/python3.5", | |
"${workspaceRoot}/env/lib/python3.5/site-packages" | |
], | |
"editor.formatOnSave": true |
const { | |
AuthenticationService, | |
JWTStrategy | |
} = require('@feathersjs/authentication'); | |
const { | |
expressOauth, | |
OAuthStrategy | |
} = require('@feathersjs/authentication-oauth'); | |
class AdvancedGoogleStrategy extends OAuthStrategy { |
/** | |
This is in a Nodejs environment | |
*/ | |
const crypto = require('crypto'); | |
module.exports = ( | |
email = '', | |
name = 'Anonymous', | |
initialsAvatarBackground = '000000', |
#!/bin/sh | |
## Script adapted from https://www.rabbitmq.com/install-debian.html | |
## | |
## If sudo is not available on the system, | |
## uncomment the line below to install it | |
# apt-get install -y sudo | |
sudo apt-get update -y |