Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Ho Ho Ho!

Wallen Han WallenHan

🦄
Ho Ho Ho!
  • Xi'An, ShanXi, China
View GitHub Profile
@WallenHan
WallenHan / nginx.conf
Created May 21, 2021 03:00 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
View nginx.conf
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@WallenHan
WallenHan / cors.nginxconf
Created February 1, 2021 09:07 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
View cors.nginxconf
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {
@WallenHan
WallenHan / pom.xml
Last active July 12, 2019 01:45
maven 打包 webpack 项目配置
View pom.xml
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<id>npm i </id>
<phase>prepare-package</phase>
@WallenHan
WallenHan / index.html
Last active May 31, 2018 09:42
JS Bin// source https://jsbin.com/wagegapivo 实现无间隙的滚屏动画 css
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div, p {
margin: 0;
padding: 0;
View gist:bf8b93e01c56663bff03a327413a628c
package practice;
import java.util.*;
/**
* Created by Wallen on 2018/5/20.
*/
public class Test1 {
public static void main(String[] args) {
@WallenHan
WallenHan / index.html
Last active October 18, 2016 14:50
TributePage
View index.html
<div class="well row text-center main-container">
<div class="col-md-12 title-container">
<h1>袁隆平-杂交水稻之父<h1>
<h2>为人类运用科技手段战胜饥饿带来绿色的希望和金色的收获</h2>
</div>
<div class="thumbnail image-container">
<img src="//i4.qhimg.com/t01403f0d12c07b95a5.jpg" alt="袁隆平在讲授杂交水稻">
<div class="captain tect-center">袁隆平给来自10多个国家的专家讲授杂交水稻方面的主要课程
</div>
</div>