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
public class ViewMapper<T> where T: BaseView { | |
private static T _ins; | |
public static T Instance { | |
get { return _ins; } | |
set { | |
if (_ins != null) { | |
GameObject.DestroyImmediate(_ins.gameObject); | |
} | |
_ins = value; |
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
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
const path = require('path') | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname, '../static') | |
}, | |
devtool: 'inline-source-map', | |
module: { |
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) 2017 Shanghai YongXiao Intelligence Co., Ltd. | |
*/ | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import { createStore, combineReducers, applyMiddleware } from 'redux' | |
import { Provider } from 'react-redux' | |
import { ConnectedRouter, routerReducer, routerMiddleware } from 'react-router-redux' | |
import { createEpicMiddleware } from 'redux-observable' |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<compilerArguments> | |
<bootclasspath>${JAVA_HOME}/jre/lib/rt.jar</bootclasspath> | |
</compilerArguments> | |
</configuration> |
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 JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8" |
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
// shack screen effect | |
// @duration | |
shakeEffect: function (duration) { | |
this.node.runAction( | |
cc.repeatForever( | |
cc.sequence( | |
cc.moveTo(0.02, cc.p(5, 7)), | |
cc.moveTo(0.02, cc.p(-6, 7)), | |
cc.moveTo(0.02, cc.p(-13, 3)), | |
cc.moveTo(0.02, cc.p(3, -6)), |
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
with codecs.open('./tmp/' + yt.title + '.xml', 'w+', 'utf-8') as f: | |
f.write(caption.xml_captions) |
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
[loggers] | |
keys=root,app | |
[handlers] | |
keys=fileHandler,consoleHandler | |
[formatters] | |
keys=defaultFormatter | |
[logger_root] |
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
#!/bin/sh | |
# create self-signed server certificate: | |
read -p "Enter your domain [www.example.com]: " DOMAIN | |
echo "Create server key..." | |
openssl genrsa -des3 -out $DOMAIN.key 1024 |
OlderNewer