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
| { | |
| "languageSettings": [ | |
| { | |
| "languageId": "python", | |
| "allowCompoundWords": true, | |
| "dictionaries": [ | |
| "python" | |
| ] | |
| } | |
| ], |
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
| tailrec fun fact(n: Int, cont: (Int) -> Int = { it }): Int = when(n) { | |
| 1 -> cont(1) | |
| else -> fact(n - 1) { cont(n * it) } | |
| } |
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
| --- a/lightcrafts/ivy.xml | |
| +++ b/lightcrafts/ivy.xml | |
| @@ -4,6 +4,7 @@ | |
| <dependencies> | |
| <dependency name="annotations" rev="20.1.0" org="org.jetbrains"/> | |
| <dependency name="ejml-simple" rev="0.40" org="org.ejml"/> | |
| + <dependency name="javahelp" rev="2.0.05" org="javax.help"/> | |
| <dependency name="jiconfont-font_awesome" rev="4.7.0.0" org="com.github.jiconfont"/> | |
| <dependency name="jiconfont-google_material_design_icons" rev="2.2.0.2" org="com.github.jiconfont"/> | |
| <dependency name="jiconfont-swing" rev="1.0.1" org="com.github.jiconfont"/> |
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
| #!/bin/sh | |
| pkgarch="amd64" | |
| # Do not wait network on boot | |
| systemctl disable systemd-networkd-wait-online.service | |
| systemctl mask systemd-networkd-wait-online.service | |
| # Automatic shutdown | |
| echo "30 19 * * 5 root shutdown -hF 3" >> /etc/crontab |
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
| #!/usr/bin/env python | |
| # cf. https://zenn.dev/j5ik2o/articles/97b458eff8283c783d9b#go | |
| # val/letのような機能はないが、変数の値を上書きしないルールで | |
| # カバーすることになるかと。Javaと似た運用になりそう。 | |
| class Main: | |
| def main(self): |
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/libs/lensfun/lens.cpp b/libs/lensfun/lens.cpp | |
| index 52b76658..ec99da4b 100644 | |
| --- a/libs/lensfun/lens.cpp | |
| +++ b/libs/lensfun/lens.cpp | |
| @@ -130,7 +130,7 @@ void lfLens::AddMount (const char *val) | |
| { | |
| if (val) | |
| { | |
| - char* p = (char*)malloc(strlen(val)); | |
| + char* p = (char*)malloc(strlen(val) + 1); |
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
| Homebrew build logs for lensfun on macOS 11 | |
| Build date: 2021-02-15 22:09:03 |
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 org.eclipse.imagen.demo | |
| import org.eclipse.imagen.Interpolation | |
| import org.eclipse.imagen.JAI | |
| import org.eclipse.imagen.widget.ScrollingImagePanel | |
| import java.awt.image.RenderedImage | |
| import java.awt.image.renderable.ParameterBlock | |
| import java.io.File | |
| import java.io.IOException | |
| import javax.imageio.ImageIO |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> | |
| <channel> | |
| <title>Sparkle Test App Changelog</title> | |
| <link>file:///appcast.xml</link> | |
| <description>Most recent changes with links to updates.</description> | |
| <language>en</language> | |
| <item> | |
| <title>Version 4.2.0 (2 bugs fixed; 3 new features)</title> | |
| <description> |