Skip to content

Instantly share code, notes, and snippets.

View dagezi's full-sized avatar

Takeshi Sasaki dagezi

View GitHub Profile
@dagezi
dagezi / hoge-table.md
Last active August 29, 2015 13:56
Test of table
Name Description
Help Display the help window.
Close Closes a window
@dagezi
dagezi / slides.md
Created March 12, 2014 03:33
test slides

Markdown Demo

External 1.1

Content 1.1

Note: This will only appear in the speaker notes window.

package com.quipper.appdater;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.content.Context;
import android.content.pm.IPackageInstallObserver;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.RemoteException;
@dagezi
dagezi / appdater.md
Created March 12, 2014 14:01
Potatotips #5 markdown

Googleの人から教えてもらった tips

Quipper

dagezi@{twitter, github, gmail.com}

adb lolcat

lolcat

@dagezi
dagezi / file0.txt
Created March 13, 2014 04:37
reveal.jsで作った資料を github pagesにホストさせる手順 ref: http://qiita.com/dagezi/items/57e1ae6f268594a16dfd
*potatotips5<master> git branch -rd origin/gh-pages
Deleted remote branch origin/gh-pages (was 6255a81).
*potatotips5<master> git push origin --delete gh-pages
To git@github.com:dagezi/potatotips5.git
- [deleted] gh-pages
@dagezi
dagezi / Sha1.java
Created March 14, 2014 08:41
sample code of MessageDigest
import java.security.MessageDigest;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Sha1 {
@dagezi
dagezi / c.html
Last active August 29, 2015 14:01
<html>
<title>test html</title>
With <a href="http://rawgit.com/">rawgit.com</a>, I can browse this Gist as HTML!
</html>
package week4
import scala.annotation.tailrec
abstract class List[T] {
def isEmpty: Boolean
def head: T
def tail: List[T]
override def toString =
public final java.lang.String toStringAcc(scala.collection.mutable.StringBuilder, boolean);
Code:
0: aload_0
1: invokevirtual #43 // Method isEmpty:()Z
4: ifeq 17
7: aload_1
8: ldc #45 // String ]
10: invokevirtual #49 // Method scala/collection/mutable/StringBuilder.append:(Ljava/lang/String;)Lscala/collection/mutable/StringBuilder;
13: invokevirtual #51 // Method scala/collection/mutable/StringBuilder.toString:()Ljava/lang/String;
16: areturn
@dagezi
dagezi / android-debug-icons
Created December 23, 2014 20:24
Generate debug icons with batch.
#!/bin/bash
# all coordinate specified by percentage
x=75
y=75
w=12
h=12
color=yellow
icons=`cd src/main;echo res/*-*dpi/ic_launcher.png`