Skip to content

Instantly share code, notes, and snippets.

@CodeIdeal
CodeIdeal / example.java
Created February 16, 2017 13:42
通过代码给CoordinatorLayout中的子view设置Behavior
...
@ViewInject(R.id.page_two)
private NestedScrollView pageTwo;
...
...
CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) pageTwo.getLayoutParams();
layoutParams.setBehavior(new PageBehavior(mAct, new PageBehavior.OnSwitchListener() {
@Override
public void onSwitch(int page) {
@CodeIdeal
CodeIdeal / secret_garden.py
Created October 12, 2017 16:16 — forked from haojian/secret_garden.py
secret garden
import skimage;
from skimage import data
from skimage.filters import threshold_otsu
from skimage.segmentation import clear_border
from skimage.measure import label
from skimage.morphology import closing, square
from skimage.measure import regionprops
from skimage.color import label2rgb
import cv2
import numpy as np
@CodeIdeal
CodeIdeal / trial.key
Created January 3, 2018 02:40 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@CodeIdeal
CodeIdeal / listen1_aha_playlist.md
Created May 25, 2023 09:13
updated by Listen1(https://listen1.github.io/listen1/) at 5/25/2023, 5:13:33 PM

本歌单由Listen1创建, 歌曲数:83,歌单数:1,点击查看更多