Skip to content

Instantly share code, notes, and snippets.

View springeye's full-sized avatar

springeye springeye

View GitHub Profile
@springeye
springeye / AbstractAdapter.java
Last active December 28, 2015 07:52
AbstractAdapter
import android.app.Fragment;
import android.content.Context;
import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
/**
@springeye
springeye / main.js
Last active December 27, 2016 07:09
vue webpack add bootstrap support
import Vue from 'vue'
import App from './App'
require('expose?$!expose?jQuery!jquery')//add this line
require('bootstrap-webpack')//add this line
/* eslint-disable no-new */
new Vue({
el: 'body',
components: { App }
})
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 1)
if(USE_32BITS)
message(STATUS "using 32bits")
set(CMAKE_SYSTEM_PROCESSOR x86)
else()
set(CMAKE_SYSTEM_PROCESSOR x86_64)
endif(USE_32BITS)
if(USE_32BITS)
@springeye
springeye / gist:0d6ce69b80254250e2035bf36591a47d
Last active August 31, 2024 08:53
转换 UGOS Pro BOOT分区格式

了解了。如果 / 不是 /dev/md0,请根据你的实际根分区来调整步骤。以下是修订后的步骤:

1. 备份当前数据

  1. 备份 /boot 分区的数据
    sudo mkdir /mnt/backup_boot
    sudo mount /dev/mmcblk0p1 /mnt/backup_boot
    sudo rsync -aAXv /mnt/backup_boot/ /path/to/backup/location
    sudo umount /mnt/backup_boot