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
<sourceDirectory>src/main/flex</sourceDirectory> | |
<testSourceDirectory>src/test/flex</testSourceDirectory> | |
<directory>target</directory> | |
<plugins> | |
<plugin> | |
<groupId>org.sonatype.flexmojos</groupId> | |
<artifactId>flexmojos-maven-plugin</artifactId> | |
<version>4.0-RC2</version> | |
<extensions>true</extensions> | |
<executions> |
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
{ | |
// 代码提示的控制范围 | |
"auto_complete_selector": "source", | |
// 主题设置 | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
// 代码地图的可视区域部分加上边框 | |
"draw_minimap_border": true, | |
// 字体设置 | |
"font_face": "PT Mono", | |
// 字体大小 |
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
# 同时创建src/main/java和src/main/resources 以及 src/test/java 和 src/test/resouces 四个maven标准的目录 | |
mkdir -p src/{main,test}/{java,resources} |
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
// Helper methods to get the directory in which to deploy webapps (add-ons). | |
File getDeployLoc() { | |
file("$buildDir/"+war.baseName.toLowerCase()) | |
} | |
idea { | |
project { | |
//if you want to set specific jdk and language level |
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
# https://github.com/blinks zsh theme | |
CURRENT_BG='NONE' | |
SEGMENT_SEPARATOR='⮀' | |
function _prompt_char() { | |
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
echo "%{%F{blue}%}⚙%{%f%k%b%}" | |
else | |
echo '%{%F{cyan}%}λ' | |
fi |
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) 2012-2013 www.iflytek.com. All Rights Reserved. | |
* This software for customer relationship management system, developed by Ifly@ZY team. | |
* Software code and design for the team, copy rights reserved. | |
*/ | |
package com.ifkytek.irime; | |
import java.util.Set; |
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) 2012-2013 www.iflytek.com. All Rights Reserved. | |
* This software for customer relationship management system, developed by Ifly@ZY team. | |
* Software code and design for the team, copy rights reserved. | |
*/ | |
package com.ifkytek.irime; | |
import java.util.Set; |
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 | |
# 创建数据和配置文件 | |
mkdir -p ~/dbs/config | |
mkdir -p ~/dbs/shard1 | |
mkdir -p ~/dbs/shard2 | |
# 启动服务器 |
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
// FSDataInputStream,支持随机访问 | |
final FSDataInputStream in = fs.open(new Path(hdfs_file_uri)); | |
try { | |
// 设置从第八行开始读取 | |
InputSupplier<? extends InputStream> supplier = new InputSupplier<InputStream>() { | |
@Override | |
public InputStream getInput() throws IOException { | |
return in; | |
} |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# See http://www.cnblogs.com/ma6174/archive/2012/05/25/2508378.html | |
import pexpect | |
import paramiko | |
import threading | |
import yaml |