- 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
| /* | |
| * In an attempt to use the https://github.com/Azure/go-amqp/ to connect to an AMQP topic, I was using the sample code | |
| * on the README but kept getting an error like: | |
| * "Failed creating receiver link *Error{Condition: amqp:unauthorized-access, Description: User qbtzf4r2sqkimdl is not authorized to read from: queue://topic..." | |
| * To connect to an AMQP 1.0 topic, the LinkSourceAddress or the LinkTargetAddres has to be of the form "topic://..." | |
| */ | |
| package main | |
| import ( |
| import os | |
| import pickle | |
| # ...... more code | |
| # ...... | |
| results = some_calculation() | |
| expected_result_file_path = 'path_to_the_snapshot_file_of_choice' | |
| # the snapshot file should not exist at the beginning |
| #!/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 |
| /** | |
| This is in a Nodejs environment | |
| */ | |
| const crypto = require('crypto'); | |
| module.exports = ( | |
| email = '', | |
| name = 'Anonymous', | |
| initialsAvatarBackground = '000000', |
| const { | |
| AuthenticationService, | |
| JWTStrategy | |
| } = require('@feathersjs/authentication'); | |
| const { | |
| expressOauth, | |
| OAuthStrategy | |
| } = require('@feathersjs/authentication-oauth'); | |
| class AdvancedGoogleStrategy extends OAuthStrategy { |
| { | |
| "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 |
new_folder. Use the command line command.mkdir new_folder
new folderfor linux
| """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('://'):]) |
| {"lastUpload":"2017-10-30T18:14:52.690Z","extensionVersion":"v2.8.3"} |
| 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 = '' |