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
'use strict'; | |
/** | |
* @ngdoc service | |
* @name $q | |
* @requires $rootScope | |
* | |
* @description | |
* A service that helps you run functions asynchronously, and use their return values (or exceptions) | |
* when they are done processing. |
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 com.voyageone.components.s7.template.analysis.viewer | |
import java.awt.image.BufferedImage | |
import java.io.ByteArrayInputStream | |
import java.io.ByteArrayOutputStream | |
import java.io.InputStream | |
import javax.imageio.ImageIO | |
fun adaptiveCenterAsStream(imageInputStream: InputStream, size: String): InputStream = adaptiveCenterAsImage(imageInputStream, size).let { | |
val os = ByteArrayOutputStream() |
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.jonas.test; | |
public class NumberRange { | |
private int lower = 1, upper = 50; | |
public int getLower() { return lower; } | |
public int getUpper() { return upper; } | |
public void setLower(int value) { | |
if (value > upper) |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<section> | |
Hello World | |
</section> | |
<script> | |
document.write("Im Writing some thing") | |
</script> | |
<section> |
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
server { | |
listen 80; | |
charset utf-8; | |
location / { | |
proxy_pass http://web; | |
proxy_intercept_errors on; | |
error_page 301 302 307 = @handle_redirects; | |
} |
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 { Action, AnyAction } from "redux" | |
type creator = (payload?: any, withNamespace?: boolean) => Action | |
type Creators<T> = { | |
[P in keyof T]: creator | |
}; | |
interface Model<S, E, R> { | |
namespace: 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
-server | |
-ea | |
-Xmx2g | |
-Xms1g | |
-XX:+UseG1GC | |
-XX:-UseParNewGC | |
-XX:-UseConcMarkSweepGC | |
-XX:ReservedCodeCacheSize=256m | |
-XX:+OmitStackTraceInFastThrow | |
-Dsun.io.useCanonCaches=false |
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
** | |
* 用于比较属性的帮助方法。应该仅在开发时使用 | |
*/ | |
export const helper = { | |
cache: {}, | |
diff(key: string | number, ...args) { | |
const latestArgs: any[] = this.cache[key]; | |
if (!latestArgs) { | |
this.cache[key] = args; | |
return |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title></title> | |
</head> | |
<body> | |
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 com.tools; | |
import org.apache.poi.ss.usermodel.*; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.ArrayList; |
OlderNewer