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
# Rime default settings | |
# vim: set sw=2 sts=2 et: | |
# encoding: utf-8 | |
config_version: "0.13" | |
schema_list: | |
- schema: wubi_pinyin | |
switcher: |
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
# This is a configuration file for ProGuard. | |
# http://proguard.sourceforge.net/index.html#manual/usage.html | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-verbose | |
# Optimization is turned off by default. Dex does not like code run | |
# through the ProGuard optimize and preverify steps (and performs some | |
# of these optimizations on its own). |
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
// main app code | |
apply plugin: 'com.android.application' | |
repositories { | |
jcenter() | |
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | |
} | |
android { | |
compileSdkVersion 21 |
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 RainbowTextView extends TextView { | |
protected void onSizeChanged(int w, int h, int oldw, int oldh) { | |
super.onSizeChanged(w, h, oldw, oldh); | |
int[] rainbow = getRainbowColors(); | |
Shader shader = new LinearGradient(0, 0, 0, w, rainbow, | |
null, Shader.TileMode.MIRROR); | |
Matrix matrix = new Matrix(); | |
matrix.setRotate(90); |
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 WidgetUtils { | |
/** | |
* create alert dialog | |
* | |
* @param context | |
* @param layout | |
* @param showSoftInput | |
* @return | |
*/ | |
public static AlertDialog createAlertDialog(Context context, int layout, boolean showSoftInput) { |
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 | |
setxkbmap -option ctrl:swapcaps |
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 | |
# install softwares after install lubuntu | |
sudo apt-get install git vim terminator ibus-rime librime-data-wubu arandr gimp |
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"> | |
<title>Title</title> | |
<link href="css/normalize.css" rel="stylesheet" /> | |
<link href="css/style.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="impress"> |
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
body { | |
font-family: sans-serif; | |
line-height: 1.5; | |
font-size: 48px; | |
background: #333333; | |
background: -webkit-radial-gradient(center bottom, circle farthest-corner, #666666, #333333, black); | |
background: -moz-radial-gradient(center bottom, circle farthest-corner, #666666, #333333, black); | |
background: -o-radial-gradient(center bottom, circle farthest-corner, #666666, #333333, black); | |
background: -ms-radial-gradient(center bottom, circle farthest-corner, #666666, #333333, black); |
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
<!-- | |
Welcome to the light side of the source, young padawan. | |
One step closer to learn something interesting you are... | |
____ | |
_.' : `._ | |
.-.'`. ; .'`.-. | |
__ / : ___\ ; /___ ; \ __ |