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
from collections import defaultdict | |
from typing import Optional | |
def hamilton(G: dict[int, list[int]], size: int, pt: int, path: Optional[list] = None) -> Optional[list[int]]: | |
if not path: | |
path = [] | |
# print('hamilton called with pt={}, path={}'.format(pt, path)) | |
if pt not in path: | |
path.append(pt) |
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
public class Config | |
{ | |
public Config(Stats.Scope scope) | |
{ | |
this(scope, TLS_MAX_CLIENT_HELLO); | |
} | |
//C++ TO JAVA CONVERTER NOTE: Java does not allow default values for parameters. Overloaded methods are inserted above: | |
//ORIGINAL LINE: Config(Stats::Scope& scope, uint max_client_hello_size = TLS_MAX_CLIENT_HELLO) : stats_({ALL_TLS_INSPECTOR_STATS((scope).counter(Envoy::statPrefixJoin("tls_inspector.", FINISH_STAT_DECL_)}), ssl_ctx_(SSL_CTX_new(TLS_with_buffers_method())), max_client_hello_size_(max_client_hello_size) | |
public Config(Stats.Scope scope, int max_client_hello_size) | |
{ |
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
#include "extensions/filters/listener/tls_inspector/tls_inspector.h" | |
#include <cstdint> | |
#include <string> | |
#include <vector> | |
#include "envoy/common/exception.h" | |
#include "envoy/common/platform.h" | |
#include "envoy/event/dispatcher.h" | |
#include "envoy/network/listen_socket.h" |
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
public class SKey { | |
private int value; | |
public SKey(int value) { | |
this.value = value; | |
} | |
@Override | |
public boolean equals(Object other) { | |
return false; |
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
``` | |
// user setting | |
{ | |
"python.linting.flake8Enabled": true, | |
"python.linting.pylintEnabled": true, | |
} | |
``` | |
``` | |
// user virtual environment |
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
package com.sangmoon.square; | |
public class Square { | |
public static void main(String arg[]){ | |
int N = Integer.parseInt(arg[0]); | |
int[][] map = new int[N][N]; | |
Square s = new Square(); |
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
stage-0 - Strawman: just an idea, possible Babel plugin. | |
stage-1 - Proposal: this is worth working on. | |
stage-2 - Draft: initial spec. | |
stage-3 - Candidate: complete spec and initial browser implementations. | |
stage-4 - Finished: will be added to the next yearly release. |
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
Constants | |
Constants | |
Scoping | |
Block-Scoped Variables | |
Block-Scoped Functions | |
Arrow Functions | |
Expression Bodies | |
Statement Bodies | |
Lexical this | |
Extended Parameter Handling |