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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
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 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd"> | |
<!--父项目的坐标。如果项目中没有规定某个元素的值,那么父项目中的对应值即为项目的默认值。 坐标包括group ID,artifact ID和 | |
version。 --> | |
<parent> | |
<!--被继承的父项目的构件标识符 --> | |
<artifactId /> | |
<!--被继承的父项目的全球唯一标识符 --> | |
<groupId /> | |
<!--被继承的父项目的版本 --> |
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
package org.greycode.sd.base.log; | |
import java.util.Map; | |
import java.util.concurrent.atomic.AtomicBoolean; | |
import org.apache.logging.log4j.core.appender.AppenderLoggingException; | |
import org.apache.logging.log4j.nosql.appender.DefaultNoSqlObject; | |
import org.apache.logging.log4j.nosql.appender.NoSqlConnection; | |
import org.apache.logging.log4j.nosql.appender.NoSqlObject; |
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
CREATE TABLE `comments` ( | |
`id` bigint(20) NOT NULL AUTO_INCREMENT, | |
`text` text NOT NULL, | |
PRIMARY KEY (`id`) | |
) ; | |
CREATE TABLE `comments_tree` ( | |
`parent_id` bigint(20) NOT NULL, | |
`child_id` bigint(20) NOT NULL, | |
`level` int(11) DEFAULT NULL, |
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
package org.demoweb.ws; | |
import java.io.IOException; | |
import org.atmosphere.cache.UUIDBroadcasterCache; | |
import org.atmosphere.client.TrackMessageSizeInterceptor; | |
import org.atmosphere.config.service.AtmosphereHandlerService; | |
import org.atmosphere.cpr.AtmosphereResource; | |
import org.atmosphere.cpr.AtmosphereResponse; | |
import org.atmosphere.handler.OnMessage; |
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
package org.demoweb.jpa.entity; | |
import java.io.Serializable; | |
import javax.persistence.*; | |
import java.util.Date; | |
/** | |
* The persistent class for the CC_CARE_TASK database table. | |
* |
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
package org.yct.demo.guava; | |
import com.google.common.base.MoreObjects; | |
import com.google.common.base.Objects; | |
import static com.google.common.base.Preconditions.*; | |
import com.google.common.collect.ComparisonChain; | |
import com.google.common.collect.Ordering; | |
public class Employee implements Comparable<Employee> { | |
private String name; |
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
package xxx; | |
import org.xxx.utils.Encodes; | |
public class EncodeDemo { | |
public static void main(String[] args) throws Exception { | |
System.out.println(Encodes.encodeHex("你好,世界+あい/うえお@xxx.com".getBytes())); | |
System.out.println(Encodes.encodeBase62("你好,世界+あい/うえお@xxx.com".getBytes())); |
NewerOlder