Skip to content

Instantly share code, notes, and snippets.

@takezoe
takezoe / todo.md
Last active December 23, 2017 06:00
To Do list of GitBucket

To Do list of GitBucket

Core

  • Improve WebAPI coverage
  • Install plugins via internet gitbucket/gitbucket#1468
  • Scalability and durability gitbucket/gitbucket#819
  • Resolve conflicts on the browser
  • Cherrypick (Create a pull request from the specified commit?)
  • Option to delete a branch after a pull request is merged
@takezoe
takezoe / Welcome+to+Python.ipynb
Last active November 29, 2017 03:31
Jupyter test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@takezoe
takezoe / gist:347fbd421577a420815380ccb9544b8a
Created November 9, 2017 16:53
Error in building GitBucket on Windows
[error] coursier.ResolutionException: 1 not found
[error] C:\Users\takezoe\.sbt\preloaded\org.scala-lang.modules\scala-parser-combinators_2.12\1.0.4\bundles\scala-parser-combinators_2.12.jar
[error] (*:update) coursier.ResolutionException: 1 not found
[error] C:\Users\takezoe\.sbt\preloaded\org.scala-lang.modules\scala-parser-combinators_2.12\1.0.4\bundles\scala-parser-combinators_2.12.jar
[error] Total time: 30 s, completed 2017/11/10 1:52:52
@takezoe
takezoe / scalatra-2.6.0-releasenote.md
Last active November 9, 2017 06:20
Scalatra 2.6.0 Release Note
title layout author twitter date
Scalatra 2.6.0 is out
news
Naoki Takezoe
takezoen
2017-xx-xx

The Scalatra team is pleased to announce the release of version 2.6.0 of the framework. Noteworthy upgrades include new validation framework named scalatra-forms.

[error] java.lang.IllegalArgumentException: Cannot add dependency 'org.eclipse.jetty#jetty-security;9.3.19.v20170502' to configuration 'executable' of module io.github.gitbucket#gitbucket_2.12;4.18.0 because this configuration doesn't exist!
[error] at org.apache.ivy.core.module.descriptor.DefaultDependencyDescriptor.addDependencyConfiguration(DefaultDependencyDescriptor.java:565)
[error] at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:157)
[error] at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:128)
[error] at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:118)
[error] at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.parseDepsConfs(AbstractModuleDescriptorParser.java:113)
[error] at sbt.internal.librarymanagement.CustomXmlParser$Cust
@takezoe
takezoe / JavaDateTimeSerializers.scala
Last active November 13, 2019 14:41
Java8 Date & Time API support for json4s
package org.scalatra.json
import java.time._
import java.util.{ Date, TimeZone }
import org.json4s._
import org.json4s.ext.DateParser
object JavaDateTimeSerializers {
@takezoe
takezoe / ElasticsearchDemo.scala
Last active September 27, 2017 05:44
Demonstration of Elasticsearch and Akka Streams
package com.github.takezoe
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.alpakka.elasticsearch.{IncomingMessage}
import akka.stream.alpakka.elasticsearch.scaladsl.{ElasticsearchSink, ElasticsearchSinkSettings}
import akka.stream.scaladsl.Source
import org.apache.http.HttpHost
import org.elasticsearch.client.RestClient
import spray.json.DefaultJsonProtocol._
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 8,
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 4,
@takezoe
takezoe / scala_kansai_summit_2017_slides.md
Last active November 11, 2018 06:35
Scala関西Summit 2017のスライド #scala_ks