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
Show hidden characters
[ | |
{ "keys": ["alt+space"], "command": "auto_complete" }, | |
{ "keys": ["alt+q"], "command": "lsp_signature_help_show" } | |
] |
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://users.rust-lang.org/t/how-do-i-do-streaming-parsing-in-serde-json/28039 | |
https://users.rust-lang.org/t/streaming-json-parser/23785 | |
https://docs.serde.rs/serde_json/struct.StreamDeserializer.html |
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
Доклад простыми словами знакомит слушателя с понятиями "тайпкласс" и "тип высшего порядка" и объясняет, | |
почему об этом постоянно говорят функциональщики. | |
Для тех, кто был на докладе Олега на Joker 2018, но ничего не понял |
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 JAVA_HOME=$(/usr/libexec/java_home -v 17) | |
jdk() { | |
version=$1 | |
escaped=$(echo $JAVA_HOME | sed -e 's/[]\/$*.^[]/\\&/g') | |
pattern=$(printf 's/%s\/bin://g' "$escaped") | |
export PATH=$(echo $PATH | sed -e "$pattern") | |
export JAVA_HOME=$(/usr/libexec/java_home -v "$version") | |
export PATH=$JAVA_HOME/bin:$PATH | |
java -version |
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
public static class GenericExtensions | |
{ | |
public static void CopyProperties<T>(this T source, T destination) | |
{ | |
var props = source?.GetType().GetProperties(); | |
if (props == null) return; | |
foreach (var prop in props) | |
{ | |
prop.SetValue(destination, prop.GetValue(source)); | |
} |
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://ru.wikipedia.org/wiki/%D0%9B%D0%B5%D0%BC%D0%BC%D0%B0_%D0%99%D0%BE%D0%BD%D0%B5%D0%B4%D1%8B | |
/* | |
Scala за 5 минут | |
int Plus(int Lhs, int Rhs) => lhs + rhs; def plus(lhs: Int, rhs: Int) = lhs + rhs; | |
Func<int, Int, Int> plus = (lhs, rhs) => lhs + rhs; val plus: (Int, Int) => Int = (lhs, rhs) => lhs + rhs; |
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://github.com/fsprojects/fantomas/blob/master/docs/Documentation.md | |
[*.{fs,fsx}] | |
indent_size=4 | |
max_line_length=120 | |
fsharp_max_value_binding_width=120 | |
fsharp_max_function_binding_width=120 | |
fsharp_multiline_block_brackets_on_same_column=true | |
fsharp_multi_line_lambda_closing_newline=true | |
fsharp_multiline_block_brackets_on_same_column = true | |
fsharp_experimental_stroustrup_style = 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
package sbt | |
import sbt.Keys._ | |
import sbt.internal.inc.HashUtil | |
import sbt.internal.remotecache.CustomRemoteCacheArtifact | |
import sbt.nio.FileStamp | |
import sbt.nio.file.FileAttributes | |
import sbt.plugins.JvmPlugin | |
import sbt.util.InterfaceUtil.toOption |
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 $ivy.`com.propensive::contextual-core:3.0.1` | |
import java.time.format.DateTimeFormatter | |
import scala.language.experimental.macros | |
import contextual._ | |
object dateTimeFormat { | |
object DateTimeFormatInterpolator extends Interpolator { |
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
@derive(encoder(identity, Some("statusCode"))) | |
sealed trait Result[T] | |
object Result { | |
implicit val swaggerConfig: SwaggerTypeable.Config = | |
SwaggerTypeable.defaultConfig.withDiscriminator("statusCode") | |
.copy(mangleTypeParams = false) | |
implicit def typeable[T: Tag](implicit tType: SwaggerTypeable[T]): SwaggerTypeable[Result[T]] = { | |
val updateRefName: Endo[SwaggerType] = | |
(SwaggerType.refPrism >> SwaggerRef.name) |
NewerOlder