Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tyoc213
tyoc213 / checkout-by-date.md
Last active August 28, 2020 04:46
checkout by date on HEAD
@tyoc213
tyoc213 / git change author.md
Created March 31, 2016 08:17
git change the author of the last 4 commits

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 September 23, 2013 23:50
downloading and geting where build for debug and release are located?
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 February 24, 2013 06:56
How to use FragmentManager... ?
private class ScreenSlidePagerAdapter extends android.support.v13.FragmentStatePagerAdapter {
public ScreenSlidePagerAdapter(android.app.FragmentManager fm) {
super(fm);
}
@tyoc213
tyoc213 / gist:4770812
Created February 12, 2013 15:49
A decompiled Validations from a jar without me have source code.
// 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 July 27, 2012 22:42
Currying or partial apply of scala from java method.


@myview(user, routes.Turns.list _)