What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-10 04:48:10
capitalize string python
# Python string capitalization string = "this isn't a #Standard Sntence." string.capitalize() # "This isn't a #standard sentence." string.upper() # "THIS ISN'T A #STANDARD SENTENCE." string.lower() # "this isn't a #stand... Add solution -
Javascript 2021-10-08 12:48:06
generate schema from json python
#Example usage of generating python code from jsonschemacodegen import python as pygen import json with open('schema.json') as fp: generator = pygen.GeneratorFromSchema('output_dir') generator.Generate(json.load(fp), 'Example', 'example') #using... Add solution -
Python 2021-10-05 15:50:04
list vs array python
lists and arrays are used in Python to store data(any data type- strings, integers etc), both can be indexed and iterated also. ... Arrays need to be declared whereas lists do not need declaration because they are a part of Python's syntax. This is the re... Add solution -
Javascript 2021-10-04 11:27:05
python run javascript
import js2py js = """ function escramble_758(){ var a,b,c a='+1 ' b='84-' a+='425-' b+='7450' c='9' document.write(a+c+b) } escramble_758() """.replace("document.write", "return ") result = js2py.eval_js... Add solution -
Javascript 2021-10-03 05:39:09
node js child_process read stdout
//Prints stdout of childprocess(here: from spawning a python script) // line by line, the rest (like errors) as whole: const { spawn } = require("child_process"); const { chunksToLinesAsync, chomp } = require('@rauschma/stringio'); const file... Add solution -
Python 2021-09-27 21:38:04
python help
help() # If this is your first time using Python, you should definitely check out # the tutorial on the Internet at https://docs.python.org/3.8/tutorial/. # Enter the name of any module, keyword, or topic to get help on writing # Python programs and usin... Add solution -
Python 2021-09-27 21:07:02
Is Python call by reference or call by value
If the object is mutable, the object will change. eg: def my_func(my_list): my_list.append(5) print("List printed inside the function: ",my_list) numberlist = [1,2,3] my_func(numberlist) # numberlist here changed since list is mu... Add solution -
Python 2021-09-21 19:44:03
export schedule to csv dynamo revit
# Schedules Exporter import clr import sys import System clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument uiapp = DocumentManager.Inst... Add solution