Skip to content

Instantly share code, notes, and snippets.

View dagezi's full-sized avatar

Takeshi Sasaki dagezi

View GitHub Profile
@dagezi
dagezi / github-url.el
Last active December 30, 2015 21:09
Create URL from current buffer and insert to kill-ring.
(defun github-url-decompose (file &optional partial)
(cond
((file-directory-p (expand-file-name ".git" file)) (cons file partial))
((equal "/" file) nil)
(t (github-url-decompose (directory-file-name (file-name-directory file))
(if partial
(concat (file-name-nondirectory file) "/" partial)
(file-name-nondirectory file))))))
(defun github-url-get-origin (dir)
@dagezi
dagezi / TestingTestFrameworks.md
Last active December 31, 2015 05:39
Android test casual talk #1 の資料です。

Test Framworkをなめた話

Takesi SASAKI @ Quipper @dagezi

(defun github-url-decompose (file &optional partial)
(cond
((file-directory-p (expand-file-name ".git" file)) (cons file partial))
((equal "/" file) nil)
(t (github-url-decompose (directory-file-name (file-name-directory file))
(if partial
(concat (file-name-nondirectory file) "/" partial)
(file-name-nondirectory file))))))
(defun github-url-get-origin (dir)
@dagezi
dagezi / gist:8334358
Created January 9, 2014 13:49
Bug of bundler
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting
documentation at http://bit.ly/bundler-issues. Thanks!
/var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/installer.rb:326:in `install_in_parallel': undefined method `[]' for nil:NilClass (NoMethodError)
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/installer.rb:95:in `run'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
from /var/lib/gems/2.0.0/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start'
@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 {