This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
... | |
city = CityRepository.filter(uuid=uuid).first() | |
... | |
query_params = { | |
"daily": [ | |
"rain_sum", | |
"showers_sum", | |
"snowfall_sum", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
camel = 'ChameLeon' | |
snake = re.sub(r'(?<!^)(?=[A-Z])', '_', camel).lower() | |
print(snake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
camel = 'ChameLeon' | |
snake = re.sub(r'(?<!^)(?=[A-Z])', '_', camel).lower() | |
print(snake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
camel = 'ChameLeon' | |
snake = re.sub(r'(?<!^)(?=[A-Z])', '_', camel).lower() | |
print(snake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+,", | |
"command": "editor.action.addSelectionToPreviousFindMatch" | |
}, | |
{ | |
"key": "alt+d", | |
"command": "editor.action.duplicateSelection" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import math | |
import os | |
import random | |
import re | |
import sys | |
def sockMerchant(n, ar): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import math | |
import os | |
import random | |
import re | |
import sys | |
def countingValleys(n, s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
data_dict = {'is_claimed': 'True', 'rating': 3.5} | |
json_str = json.dumps(data_dict) | |
print(json_str) | |
## How to run program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = 'centos/7' | |
config.vm.define "test_vm" do |test_vm| | |
test_vm.vm.hostname = "test-vm" | |
test_vm.vm.provider :libvirt do |libvirt| | |
libvirt.cpus = 1 | |
libvirt.memory = 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error version | |
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: helloworld | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: spec: |
NewerOlder