Product | IDE version | Solution version(s) | Platform toolset | _MSC_VER |
---|---|---|---|---|
Visual Studio 2022 | 17.0 | ? | v143 | ? |
Visual Studio 2019 | 16.0 | ? | v142 | ? |
Visual Studio 2017 | 15.0 | 12.0 | v141 | 1910 |
Visual Studio 2015 | 14.0 | 12.0 | v140 | 1900 |
Visual Studio 2013 | 12.0 | 12.0 | v120 | 1800 |
Visual Studio 2012 | 11.0 | 12.0 | v110 | 1700 |
Visual Studio 2010 | 10.0 | 11.0 | v100 | 1600 |
Visual Studio 2008 | 9.0 | 10.0 | v90 | 1500 |
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
# -*- coding: utf-8 -*- | |
import time | |
def countdown_sleep(second: int): | |
# check second is natural number (contains 0) | |
if not isinstance(second, int) or second < 0: | |
raise ValueError("'second' should be a natural number (contains 0). second: %s" % second) |
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
{ | |
"PresetList": [ | |
{ | |
"AlignAVStart": false, | |
"AudioCopyMask": [], | |
"AudioEncoderFallback": "opus", | |
"AudioLanguageList": [ | |
"und" | |
], | |
"AudioList": [ |
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your contributions to Microsoft open source projects. This Agreement is effective as of the latest signature date below.
- Definitions. “Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Microsoft under this Agreement. “Project” means any of the projects owned or managed by Microsoft and offered under a license approved by the Open Source Initiative (www.opensource.org). “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any Project, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of discussing
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 python | |
# -*- coding: utf-8 -*- | |
def classic_function(x, y ,z): | |
print(x, y, z) | |
def force_named_arguments_function(*, x, y ,z): | |
print(x, y, z) | |
This file has been truncated, but you can view the full file.
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 python | |
# | |
# Hi There! | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip (version 20.2.4). | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone | |
# might want to install, especially if they're looking to run this get-pip.py |
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 ctypes, os | |
from sys import exit | |
def is_admin(): | |
is_admin = False | |
is_win = False | |
try: | |
is_admin = os.getuid() == 0 | |
except AttributeError: |
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
<NotepadPlus> | |
<UserLang name="Markdown (Default)" ext="md markdown" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" /> | |
<Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00# 01 02((EOL)) 03<!-- 04--></Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
# -*- coding: utf-8 -*- | |
from random import randint | |
class MyClass(object): | |
# Static class variable | |
static_variable = 17 |
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 python | |
try: | |
import wmi | |
except ImportError as e: | |
print(e) | |
print("Please, install wmi package using 'pip install wmi'") | |
exit(-1) | |
c = wmi.WMI () |
NewerOlder