Skip to content

Instantly share code, notes, and snippets.

View yblee85's full-sized avatar

Yunbo Lee yblee85

  • Toronto, Canada
View GitHub Profile
@yblee85
yblee85 / gist:11401537
Created April 29, 2014 14:11
Java Remove Column from JTable , Still You can access value
remove column from table
tableListSchedule.removeColumn(tableListSchedule.getColumnModel().getColumn(1));
@yblee85
yblee85 / gist:11350348
Created April 27, 2014 16:56
ubuntu 12.04 add maximize minimize button on window
gsettings set org.gnome.shell.overrides button-layout ':minimize,maximize,close'
@yblee85
yblee85 / gist:11220380
Last active August 29, 2015 14:00
jQuery from 1.9 select option
html
<select id="select_id" value="">
<option value=""></option>
<option value="VALUE1">Value 1 for display</option>
<option value="VALUE2">Value 2 for display</option>
</select>
js
$("#select_id option[value=VALUE1]").prop('selected', true)
@yblee85
yblee85 / gist:5331826
Created April 7, 2013 18:38
dzi code
just in case, dzi example code below.
/******************************* index.html *****************************************/
<!DOCTYPE html>
<html ng-app="angularjs-starter">
<head lang="en">
<meta charset="utf-8">
<title>Custom Plunker</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
http://plnkr.co/edit/Kl0lYAY3O2goy5Ar4w6B?s=MJhcYoHefpn9524Z
fork from
http://plnkr.co/edit/fvD0FZBr81dtq3bjY15o?s=MJhcYoHefpn9524Z
deepzoom_image
wheel roll up/down functions work. watch seems to be not working.
=CRASH REPORT==== 21-Nov-2011::18:14:39 ===
crasher:
initial call: couch_rep:init/1
pid: <0.14013.0>
registered_name: []
exception exit: {{badmatch,{error,{changes_error_code,400}}},
[{couch_rep,do_init,1},
{couch_rep,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}