Skip to content

Instantly share code, notes, and snippets.

@fyunli
fyunli / bootstrap-dropdown-hack.css
Created February 27, 2012 08:31
Bootstrap 2.0 dropdown multi-level menu enabler
/**
* Bootstrap 2.0 dropdown multi-level menu enabler
* Bootstrap: http://twitter.github.com/bootstrap/javascript.html#dropdowns
*
* Bootstrap 2.1 add submenu support, don't use this
*/
/* overrides */
.open .dropdown-toggle,.dropdown.open .dropdown-toggle{color: #666;}
.open .dropdown-menu,.dropdown.open .dropdown-menu{display:none;}
@fyunli
fyunli / daystar.xml
Created February 28, 2012 12:23
an eclipse color theme base on oblivion
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="1" name="Daystar" modified="2011-04-28 09:42:16" author="Roger Dudler" website="http://www.rogerdudler.com/?p=362">
<searchResultIndication color="#585858" />
<filteredSearchResultIndication color="#585858" />
<occurrenceIndication color="#585858" />
<writeOccurrenceIndication color="#585858" />
<findScope color="#111111" />
<deletionIndication color="#D25252" />
<sourceHoverBackground color="#000000" />
<singleLineComment color="#C7DD0C" />
@fyunli
fyunli / jquery easyui 1.3.2 form _load sub object
Last active December 14, 2015 21:09
let jquery easyui form load sub object data
function _load(data){
var form = $(target);
for(var name in data){
var val = data[name];
/**
* added by fyunli for load sub object data in json
*/
if(typeof val == 'object' && val != null){
try{
for(var subname in val){
@Grab(group='com.fasterxml.jackson.core', module='jackson-databind', version='2.3.3')
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.databind.node.ValueNode
import org.pentaho.di.core.row.*
import org.pentaho.di.core.row.value.*
@fyunli
fyunli / springboot-hibernate-json-lazyload
Created December 8, 2017 06:50
SpringBoot+jpa+hibernate返回json数据实现按需加载数据
- import jar
```
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate5</artifactId>
<version>2.9.0.pr4</version>
</dependency>
```
VBoxManage controlvm win10 setvideomodehint 1440 900 32
@fyunli
fyunli / box-shadow.html
Created August 25, 2018 06:41 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@fyunli
fyunli / git
Created October 15, 2018 05:44
git pull origin master
git pull origin bonus:bonus
修改vue.config.js中的baseUrl为'./'
module.exports = {
baseUrl: './'
};
然后执行npm run build
What is expected?
所有URL都应以“./”开头,成为相对路径,以便适配混合app开发。
建议一:
@fyunli
fyunli / nginx_deployment.yaml
Created May 22, 2019 09:45 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {