This file contains hidden or 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
| // https://leetcode.com/problems/merge-intervals/ | |
| class Solution | |
| { | |
| public: | |
| vector<vector<int>> merge(vector<vector<int>> &intervals) | |
| { | |
| sort(intervals.begin(), intervals.end(), [](auto &vec1, auto &vec2) { | |
| // if the start timings are equal | |
| if (vec1[0] == vec2[0]) | |
| { |
This file contains hidden or 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
| diff --git a/compiler/build.gradle b/compiler/build.gradle | |
| index 60d3a436f..409df7a03 100644 | |
| --- a/compiler/build.gradle | |
| +++ b/compiler/build.gradle | |
| @@ -31,6 +31,7 @@ def addLibraryIfNotLinked = { libName, argList -> | |
| } | |
| def String arch = rootProject.hasProperty('targetArch') ? rootProject.targetArch : osdetector.arch | |
| +// arch = arch.replace('osx_arm-v8', 'osx_aarch64') | |
| def boolean vcDisable = rootProject.hasProperty('vcDisable') ? rootProject.vcDisable : false |
This file contains hidden or 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
| Cypress.Commands.add('loginOkta', () => { | |
| const optionsSessionToken = { | |
| method: 'POST', | |
| url: Cypress.env('session_token_url'), | |
| body: { | |
| username: Cypress.env('username'), | |
| password: Cypress.env('password'), | |
| options: { | |
| warnBeforePasswordExpired: 'true' | |
| } |
This file contains hidden or 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
| conda activate <env_name> | |
| conda install -c conda-forge jupyter_contrib_nbextensions | |
| jupyter nbextensions_configurator enable --user | |
| jupyter contrib nbextension install --user | |
| jupyter nbextension enable hinterland/hinterland |
This file contains hidden or 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 main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or 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 main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "github.com/dicedb/dicedb-go" |
This file contains hidden or 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
| class Dense(Layer): | |
| ... | |
| def get_gptq_handler(self) -> "GPTQHandler": | |
| """Provides a GPTQHandler for a standard Dense layer.""" | |
| return GPTQHandler( | |
| kernel=self.kernel, | |
| bias=self.bias, | |
| rows=self.kernel.shape[0], |
OlderNewer