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
/* | |
* 日付を引数に与えたら何の日か表示されるカレンダー的なの作ってみた | |
* ※正確な値と違うかもだから何があっても(勘違いとか)自己責任でね | |
* | |
* ------------使い方----------- | |
* 使える形にコンパイルなりなんなりしてコマンドプロンプトとかで引数で日付を与えて起動 | |
* (与えないと2014/4/1-2015/3/31までリストアップ表示) | |
* ※日付の形式:{年}/{月}/{日} (例)2014/5/5 | |
* | |
* ポインターとかメモリとか考えずに作った() |
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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<!-- jquery.min.jsが必要 --> | |
<script src="jquery.min.js"></script> | |
<script type="text/javascript"> | |
//関数名はループするRGBの順+飛ばす数 | |
function rgb16(){ | |
rgb(16,1); | |
} |
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
package longCover; | |
public class Main{ | |
public static void main(String[] args){ | |
try{ | |
longTest(20); | |
}catch(Exception e){ | |
e.printStackTrace(); | |
} |
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
using System; | |
namespace PrimeFind { | |
class Program { | |
static void Main(string[] args) { | |
int[] prime = FindPrimeNumber(1000); | |
foreach (int i in prime) { | |
Console.Out.Write("{0},",i); | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AjinoriNoTyousen { | |
public class Program { | |
//Q. 正の整数であって、その正の約数のうち4で割った余りが2でないようなものの総和が1000であるものをすべて求めよ. | |
public static void Main(string[] args) { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CLinq { | |
class Program { | |
static void Main(string[] args) { | |
Console.Out.WriteLine("整数値をスペース区切りで入力してください"); |
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
package linkedlist; | |
public class Item<T> {//ジェネリクス使用 | |
public final T element;//final fieldにするのでgetter,setter使わない | |
private Item<T> nextItem; | |
private Item<T> previousItem; | |
protected Item(T element){//protected修飾子でインスタンス生成を制限 | |
this.element=element; |
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 ActionModeTest{ | |
public Activity Activity; // 好きなタイミングでset | |
private ActionMode AB; | |
public void show(){ | |
if(AB==null&&Activity!=null){ | |
AB = Activity.startActionMode(ActionModeCallback); | |
} | |
} | |
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 Worker{ | |
private ExecutorService exec; | |
public ExecutorService getWorker(){ | |
if(exec==null){ | |
exec = Executors.newFixedThreadPool(2); // 上限2で作成 | |
} | |
return exec; | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/drawer_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > |
OlderNewer