Skip to content

Instantly share code, notes, and snippets.

View rankun203's full-sized avatar
🔨
building things

Kun R rankun203

🔨
building things
View GitHub Profile
@rankun203
rankun203 / pmt.js
Created April 24, 2013 00:43
为当前元素弹出一个提示信息,需要当前元素的ID和要弹出的字符串。
function pmt(eleId, pmt) {
if( document.getElementById("pmt") != null ){
return ;
}
var pmtLabel = document.createElement("div");
pmtLabel.id = "pmt";
pmtLabel.innerHTML = pmt;
var pmtTriangle = document.createElement("div");
pmtTriangle.id = "pmtTriangle";
@rankun203
rankun203 / javascripttest.html
Created September 13, 2013 02:02
利用中间对象避免修改子类prototype时自动修改父类的prototype,实现继承。
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Test</title>
</head>
<body>
</body>
</html>
@rankun203
rankun203 / findImg2Array.sh
Last active December 22, 2015 23:49
查找并处理文件
find /home/mindfine/下载/图片/ -name "*.bmp" -exec java ImgToArray {} {}.txt \;
@rankun203
rankun203 / WeatherController.java
Last active December 26, 2015 18:09
获取支持的MediaType
RestTemplate tpl = new RestTemplate();
List cvts = tpl.getMessageConverters();
for (int i = 0; i < cvts.size(); i++) {
List smts = ((HttpMessageConverter)cvts.get(i)).getSupportedMediaTypes();
for (int j = 0; j < smts.size(); j++) {
System.err.println(smts.get(j));
}
}
@rankun203
rankun203 / WeatherController.java
Created October 28, 2013 07:40
Java attach http proxy
//attach http proxy
System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "8087");
@rankun203
rankun203 / dispatcher-servlet.xml
Created October 29, 2013 00:44
SpringMVC配置/WEB-INF/pages下的视图
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
<property name="prefix">
<value>/WEB-INF/pages/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
@rankun203
rankun203 / GreetingController.java
Last active December 26, 2015 20:19
SpringMVC 指定返回页面的两种方式
@RequestMapping("/")
public ModelAndView welcome (ModelMap model) {
ModelAndView view = new ModelAndView("index");
model.addAttribute("introSelf", "I'm Spring, I'm Coming.");
return view;
}
@RequestMapping("/")
public String welcome (ModelMap model) {
model.addAttribute("introSelf", "I'm Spring, I'm Coming.");
$(function () {
$('#exercise-stat-chart-2').highcharts({
title: {
text: ''
},
xAxis: {
title: {
text: '课次'
},
allowDecimals: false,
@rankun203
rankun203 / style.css
Created November 12, 2013 11:50
CSS properties backup
font: 12px "微软雅黑","黑体","Microsoft Yahei","SimHei",Arial,sans-serif;

#一些互联网使用方法 ###目录:

  1. youtube下载视频(包括1080p).
  2. 翻墙.
  3. 不翻墙使用Google Search.
  4. 关于本文.
  5. 解释

###youtube下载视频