Skip to content

Instantly share code, notes, and snippets.

View ufo22940268's full-sized avatar
🎯
Focusing

Chao Cheng ufo22940268

🎯
Focusing
View GitHub Profile
public static Uri convertToRingtoneUri(Context context, String customRingtone) {
if (TextUtils.isEmpty(customRingtone) || SILENT_RINGTONE_LABEL.equals(customRingtone)) {
return null;
}
//Query internal media.
ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(Media.INTERNAL_CONTENT_URI,
new String[]{Media._ID},
Media.DATA + " = ?",
@ufo22940268
ufo22940268 / iso2wbfs
Created November 21, 2012 13:21 — forked from openback/iso2wbfs
Uses Wiimms ISO Tool to convert one or more Wii ISO into a WBFS file, properly named for use on non-WBFS partitions
#!/bin/bash
#===============================================================================
#
# FILE: iso2wbfs
#
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory]
#
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file
# properly named for use on non-WBFS partitions.
#
package com.example.android.skeletonapp;
/*
* @author octobershiner
* 2011 07 27
* SE.HIT
* 一个演示android加速度感应器的例子
* */
import java.util.Iterator;
@ufo22940268
ufo22940268 / Issue
Created December 18, 2012 01:08
.Xdefaults
foreground: #c5c8c6
background: #1d1f21
cursorColor: #aeafad
color0: #000000
color1: #912226
color2: #778900
color3: #ae7b00
color4: #1d2594
color5: #682a9b
color6: #2b6651
@ufo22940268
ufo22940268 / 11
Created January 5, 2013 04:03
PathClassLoader.java
11
@ufo22940268
ufo22940268 / html1
Created January 20, 2013 09:44
html1
<head></head>
<body>
<div id="container" style="width:500px">
<div id="header" style="width:500px;background-color:#FFA500;float:left;">
<h1>html demo</h1>
</div>
<div id="menu" style="width:100px;height:300px;background-color:#FFA500;float:left">
Menu</br>
HTML</br>
package com.example.android.apis.view;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.util.*;
import android.widget.*;
import android.view.*;
import android.content.*;
import android.app.*;
#!/usr/bin/env python
#-*- coding: utf-8 -*
#
# Copyright 2011 shuotao.me
# by error.d@gmail.com
# 2011-12-19
#
# Sputnik Python Object
#
# ToDoList:
outland Q&A:
✓ tc_handlers.py : self.api中的api是什么
✓ outland.py: rpcservice的作用是什么
完成跨语言调用。[link](http://thrift.apache.org/)
✓ 有什么好的方法模拟post请求
- 为什么api中没有__init__
python basic:
- 关于python的__dict__机制
- 再classmethod中通过cls来设置类变量和直接设置module变量有什么区别?
@ufo22940268
ufo22940268 / weekly_conference.txt
Created September 9, 2013 05:55
weekly conference.
#龙井
##last week。
* 36kr交涉。
* 公司手续。所有手续办好,下周一新的营业执照会下来。
##this week。
* 上线营销。
* 补交的文件的准备。
* imessage