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
| // ガントチャートを2ヶ月前開始で表示 | |
| // Shows gannt view starting 2 months ago | |
| $(document).ready(function(){ | |
| // configurable | |
| var monthsAgo = 2; | |
| var monthsRange = 6; | |
| // ----- | |
| var now = new Date(); | |
| var thisMonth = now.getMonth() + 1; | |
| var thisYear = now.getFullYear(); |
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
| @Controller | |
| public class SearchController { | |
| @Autowired | |
| private SearchService searchService; | |
| @RequestMapping("/search") | |
| public String search( | |
| @ModelAttribute("searchForm") | |
| SearchForm searchForm, | |
| Model model) { |
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
| In [6]: case class State[S](run: S => S) | |
| Out[6]: defined class State | |
| In [7]: case class Gen[A](sample: State[A]) | |
| Out[7]: defined class Gen | |
| In [8]: Gen(State[Int](a => a)) | |
| Something unexpected went wrong =(scala.reflect.internal.Types$TypeError: value <none> is not a member of Object{implicit lazy val derive$macro$71(): pprint.PPrint[$sess.cmd7.wrapper.cmd6.wrapper.Gen[Int]]; implicit lazy val derive$macro$74(): pprint.PPrint[cmd6Wrapper.this.cmd5.wrapper.State[Int]]; def derive$macro$84(): pprint.PPrint[$sess.cmd7.wrapper.cmd6.wrapper.Gen[Int]]} | |
| scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1402) | |
| scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1254) |
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 org.scalatest.{ FunSpec, Matchers } | |
| import scala.scalajs.js | |
| @js.native | |
| trait Foo extends js.Object { | |
| val sizeBytes: Long = js.native | |
| } | |
| object Foo { | |
| def apply(sizeByte: js.UndefOr[Long] = js.undefined): Foo = { |
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
| 🌞 Morning 487 commits ██████▍░░░░░░░░░░░░░░ 30.9% | |
| 🌆 Daytime 670 commits ████████▉░░░░░░░░░░░░ 42.5% | |
| 🌃 Evening 391 commits █████▏░░░░░░░░░░░░░░░ 24.8% | |
| 🌙 Night 30 commits ▍░░░░░░░░░░░░░░░░░░░░ 1.9% |
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
| Kotlin 9 hrs 55 mins ████████▏░░░░░░░░░░░░ 39.1% | |
| Markdown 2 hrs 4 mins █▋░░░░░░░░░░░░░░░░░░░ 8.2% | |
| Java 2 hrs 1 min █▋░░░░░░░░░░░░░░░░░░░ 8.0% | |
| Image (... 1 hr 47 mins █▍░░░░░░░░░░░░░░░░░░░ 7.1% | |
| Rust 1 hr 34 mins █▎░░░░░░░░░░░░░░░░░░░ 6.2% |
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
| name: Update AWS SDK crates daily | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |
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/zsh | |
| OWNER=my-company | |
| gh search repos \ | |
| --owner=$OWNER \ | |
| --language=ruby \ | |
| --visibility=private \ | |
| --archived=false \ | |
| --json="name,defaultBranch" \ |
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 * as cdk from "aws-cdk-lib"; | |
| export function getSubsetResourceTypes(stack: cdk.Stack): string[] { | |
| const subResources = stack.node.children.map((child) => child.node.defaultChild as unknown as cdk.CfnResource | undefined); | |
| return subResources.map((sub) => sub?.cfnResourceType).filter((t) => t !== undefined) as string[]; | |
| } | |
| expect(lambdaStack).toMatchCdkSnapshot({ | |
| ignoreAssets: true, | |
| subsetResourceTypes: getSubsetResourceTypes(stack.lambda).filter((t) => t !== "AWS::Lambda::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
| #!/bin/bash | |
| # Equivalent to "author:exoego is:merged created:>2022-02-28" in Web UI | |
| gh search prs --limit=1000 --author=exoego --created=">2022-02-28" --merged -- -user:exoego -user:scala-steward-org |