This file contains 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
[ | |
{ | |
"content": "我从来不把安逸和快乐看作是生活目的本身,对这种伦理基础,我称之为“猪栏的理想”。", | |
"author": "爱因斯坦" | |
}, | |
{ | |
"content": "人生中最大的两个财富是:你的才华和你的时间。才华越来越多而时间越来越少。我们的一生就是用时间来换取才华。" | |
}, | |
{ | |
"content": "这辈子没法做太多的事情,所以每一件都要做到精彩绝伦!", |
This file contains 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 kotlin.math.abs | |
private val max = CustomBase.from(Long.MAX_VALUE) | |
private val maxLength = max.length | |
object CustomBase { | |
val radix = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toList().toCharArray() | |
val base = radix.size.toLong() | |
fun from(long: Long): String { |
This file contains 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.jcodec.api.FrameGrab; | |
import org.jcodec.common.io.NIOUtils; | |
import org.jcodec.common.model.Picture; | |
import org.jcodec.scale.AWTUtil; | |
import java.awt.image.BufferedImage; | |
import java.io.*; | |
import javax.sound.sampled.AudioInputStream; | |
import javax.sound.sampled.AudioSystem; | |
import javax.sound.sampled.Clip; |
This file contains 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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.geom.Path2D; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import java.util.stream.Collectors; | |
/** |
This file contains 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.util.*; | |
/** | |
* Cosmic Number | |
* License: Unlicensed | |
**/ | |
public class Cosmic { | |
private static final int ONE = 1; //$ tac - | |
private static final int TEN = ONE*10; | |
private static final int HUNDRED = TEN*10; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.