Skip to content

Instantly share code, notes, and snippets.

View epy0n0ff's full-sized avatar

epy0n0ff epy0n0ff

View GitHub Profile

Keybase proof

I hereby claim:

  • I am epy0n0ff on github.
  • I am epy0n0ff (https://keybase.io/epy0n0ff) on keybase.
  • I have a public key ASDqFlfwKlOFslodKgFRcpifCQKv_mZkbw4kPg_lJvQiOQo

To claim this, I am signing this object:

@epy0n0ff
epy0n0ff / build.gradle
Created November 16, 2017 09:27
it works with gradle 4.3.1
apply plugin: 'java'
apply plugin: 'net.ltgt.apt-idea'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
package main

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestEmpty(t *testing.T) {

go-mysql-driver + gormな環境

DATETIMEでエラー

sql: Scan error on column index 3: unsupported driver -> Scan pair: []uint8 -> *time.Time
	var tweets []Tweet

func(_ *hoge) A()と省略しているコードがあったので気になった。

package main
import "fmt"


type Func struct {
	value int
}

Request

GET /x/tools?go-get=1 HTTP/1.1
Host: golang.org
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: ja,en-US;q=0.8,en;q=0.6
/**
* Copyright: 2015 epy0n0ff
* License: Apache V2 http://www.apache.org/licenses/LICENSE-2.0
**/
package com.epy0n0ff.widget;
import android.content.Context;
import android.graphics.Matrix;
import android.util.AttributeSet;
import android.widget.ImageView;
@epy0n0ff
epy0n0ff / addAction.txt
Created April 16, 2015 12:25
NotificationSample
Intent intent = new Intent( getApplicationContext(), AboutDialogActivity.class );
PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT );
NotificationCompat.Action action = new NotificationCompat.Action( android.R.drawable.ic_menu_info_details, "Info", pendingIntent );
NotificationCompat.Builder builder = new NotificationCompat.Builder( getApplicationContext() );
builder.setSmallIcon( android.R.drawable.ic_menu_myplaces )
.setLargeIcon( mLargeIcon )
.setContentTitle( getString( R.string.content_title ) )
.setContentText( getString( R.string.content_text ) )
.addAction( action );