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
| const fs = require("fs"); | |
| const path = require("path"); | |
| const asar = require("asar"); | |
| const src = "../resources/app.asar"; | |
| const dest = "../resources/app_copy"; | |
| // if dest exists, remove it | |
| if (fs.existsSync(dest)) { | |
| fs.rmSync(dest, { recursive: 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
| function FindProxyForURL(url, host) { | |
| if (dnsDomainIs(host, ".jetbrains.com") | |
| || dnsDomainIs(host, ".gradle.org") | |
| || dnsDomainIs(host, ".githubusercontent.com")) { | |
| return "PROXY 172.16.201.206:7890; DIRECT"; | |
| } else { | |
| return "DIRECT"; | |
| } | |
| } |
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
| #parse("equalsHelper.vm") | |
| public boolean sameWith(## | |
| #if ($settings.generateFinalParameters) | |
| final ## | |
| #end | |
| $class.name $instanceBaseName){ | |
| return this == $instanceBaseName && | |
| #set($i = 0) | |
| #foreach($field in $fields) | |
| #if ($i > 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
| RedisSessionHandlerValve valve = new RedisSessionHandlerValve(); | |
| Pipeline pipeline = Mockito.mock(Pipeline.class); | |
| Container container = Mockito.mock(Container.class); | |
| Context context = Mockito.mock(Context.class); | |
| Mockito.when(context.getParent()).thenReturn(container); | |
| Mockito.when(context.getName()).thenReturn("/"); | |
| Mockito.when(context.getPipeline()).thenReturn(pipeline); | |
| Mockito.when(container.getName()).thenReturn("Nice"); |
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
| version: '3.1' | |
| services: | |
| zookeeper: | |
| image: zookeeper:3.8.4-jre-17 | |
| restart: always | |
| hostname: zoo1 | |
| ports: | |
| - 2181:2181 | |
| deploy: | |
| resources: |
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
| export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static | |
| cargo build --release |
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
| /* From https://gist.github.com/JonasGao/500f61ed19a6a1232c8bc06cc63ddd02 */ | |
| .menuBar { | |
| background-color: #101010; | |
| } | |
| .menuBar-Btn_Icon { | |
| fill: #ffffff !important; | |
| } | |
| .dictList { | |
| padding-left: 15px; |
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
| import java.time.LocalDateTime; | |
| import java.time.format.DateTimeFormatter; | |
| import java.time.format.DateTimeFormatterBuilder; | |
| import java.time.format.SignStyle; | |
| import java.util.Random; | |
| import static java.time.temporal.ChronoField.*; | |
| import static java.time.temporal.ChronoField.SECOND_OF_MINUTE; | |
| public class ErrorLogIdBuilder { |
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
| DOMAIN-SUFFIX, grazie.aws.intellij.net |
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
| import com.fasterxml.jackson.annotation.JsonIgnore; | |
| import org.jetbrains.annotations.NotNull; | |
| import org.springframework.data.domain.Page; | |
| import org.springframework.data.domain.Pageable; | |
| import org.springframework.data.domain.Sort; | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.function.Function; |
NewerOlder