Skip to content

Instantly share code, notes, and snippets.

tyoc213 tyoc213

View GitHub Profile
@tyoc213
tyoc213 / git change author.md
Created Mar 31, 2016
git change the author of the last 4 commits
View git change author.md

git rebase -i HEAD~5 put edit in front of each commit to edit

Then for each commit

git commit --amend --author="Your Name yourmail@provider.xx"


@tyoc213
tyoc213 / gist:6678572
Created Sep 23, 2013
downloading and geting where build for debug and release are located?
View gist:6678572
ExternalProject_Add(project_glfw
URL https://github.com/glfw/glfw/archive/3.0.3.zip
LOG_DOWNLOAD 1
LOG_UPDATE 1
LOG_CONFIGURE 1
LOG_BUILD 1
LOG_TEST 1
LOG_INSTALL 1
)
@tyoc213
tyoc213 / gist:5022936
Created Feb 24, 2013
How to use FragmentManager... ?
View gist:5022936
private class ScreenSlidePagerAdapter extends android.support.v13.FragmentStatePagerAdapter {
public ScreenSlidePagerAdapter(android.app.FragmentManager fm) {
super(fm);
}
@tyoc213
tyoc213 / gist:4770812
Created Feb 12, 2013
A decompiled Validations from a jar without me have source code.
View gist:4770812
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: Validations.java
package mx.com.validators.annotations;
import java.lang.annotation.Annotation;
public interface Validations
@tyoc213
tyoc213 / father.scala.html

Created Jul 27, 2012
Currying or partial apply of scala from java method.
View father.scala.html



@myview(user, routes.Turns.list _)
You can’t perform that action at this time.