Category "format"

AutoHotKey Date Parsing returning today's date

I had been working on a QoL macro to convert selected text dates into a desired format. For that purpose I was trying to utilize the DateParse function that is

node-oidc-provider access token format

I've setup oidc-provider for pkce (v7x). When I do the following: request a code from /auth with response_type='code' Used the code to get token form /token wit

How to change the date format on a Work Item in Azure DevOps Work item

The date format on each Work Item is showing in US format (M/d/yyyy) and I need it to display in AU format (dd/mm/yyyy). I have set the region for the Organisat

Nesting long lists and sets using black formatter

Can the python black formatter nest long lists and sets? For example: Input coworkers = {"amy", "bill", "raj", "satoshi", "jim", "lifeng", "jeff", "sandeep", "m

capl how to change byte format to char fomat

I want to change byte value to char value in capl. Using MD5 the input value is char and the result value is byte I want to put the result value into the input

Reduce size of text in slack message

Is there a way to reduce the size of the text in slack messages just the way we have ways to make the text bold/italics?

How to control the display precision of a NumPy float64 scalar?

I'm writing a teaching document that uses lots of examples of Python code and includes the resulting numeric output. I'm working from inside IPython and a lot

Sphinx: how to show attributes as in scipy

Let's say we have the following module testmodule.py with a TestClass definition: """This is a test module""" class TestClass: """ This is a simple des

XML autoformat in Visual Studio Code

Is there a way to make Visual Studio Code automatically format the content of XML tags? I want to have an indent when pressing Enter or even when closing a tag:

Format currency in JavaScript removing .00

I am currently formatting numbers to display as currency values using the following code: return symbol + value.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,"

When copying from Github the indentation is not preserved

I was trying to copy from GitHub the following file: https://github.com/vineodd/PIMSim/blob/master/GEM5Simulation/gem5/configs/common/MemConfig.py I have tried

suppress Name dtype from python pandas describe

Lets say I have r = pd.DataFrame({'A':1 , 'B':pd.Series(1,index=list(range(4)),dtype='float32')}) And r['B'].describe()[['mean','std','min','m

How to remove nth column from the text table in powershell?

Let’s say I am working with a nicely formatted table. Take kubectl output for example: NAME READY STATUS RESTARTS AGE IP NO

Docker event output formatting

Is there an easy way to format the output from the docker events into something thats more easily parseable ? I need to extract the event and the container name

Date showing as serial number in formula

I'm currently having an issue with the date format. I have basically extracted the month and year from a standard dd/mm/yyyy date and wish this to be formatted

Formatting in SAS to Create Buckets

I use the following code to bucket my continuous variable in SAS, but it does not work: proc freq data = right; table Age; run; proc format; value AgeBucke

How can I get git log to print the full hash and short stats of each commit on one line?

I would like to get this kind of output with git command line: bcfd649de8850e3bfc9584eb12be8fe136ca6985 3 files changed, 8 insertions(+), 1 deletion(-) I'm c

How can I do a dictionary format with f-string in Python 3 .6?

How can I do this format with a Python 3.6 F-String? person = {'name': 'Jenne', 'age': 23} print('My name {0[name]} and my age {1[age]}'.format(person, person)

NLog: Format loglevel with Whitespaces

I am using NLog for logging. Currently my Layout-String is: "${date:format=dd.MM.yyyy HH\\:mm\\:ss,fff} | ${level:uppercase=true} | ${message}" This results

Where do calendar messages in PST files store appointment times and dates?

I am using the PST File Format SDK to try and extract some appointment item data from an Outlook PST export: int main() { pst myfile(L"export.pst"); fo