####1. 限制必须登录后才能上传; 两处代码更改。 第一处在客户端部分,改变resumable的fileAdded触发事件代码
#insert fallowing code under sample.coffee line 84
if !Meteor.userId()
alert('please login first!');
return false;
//日历JS部分 | |
var da=new Date(); | |
var index_calendar_year=da.getFullYear(); | |
var index_calendar_month=da.getMonth() + 1 ;//当前月份 | |
var index_calendar_date=da.getDate();//当前日期,0为全部 | |
var m_old = index_calendar_month; |
body { | |
padding: 0px; | |
margin: 0px; | |
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; | |
} | |
a { | |
color: #00B7FF; | |
} |
// ==UserScript== | |
// @name hnust_jiaowu | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description 解决湖南科技大学教务网不能兼容Chrome和Firefox浏览器的问题 | |
// @match http://kdjw.hnust.cn/kdjw/framework/main.jsp | |
// @copyright 2012+, You | |
// @grant GM_setValue | |
// @grant GM_getValue |
.center{ | |
margin:0 auto; | |
display:block; | |
} | |
.width-wide{ | |
width:1200px; | |
} | |
.right{ |
_____ _____ _______ | |
|_ _| / ____| |__ __| | |
| | | | | | | |
| | | | | | | |
_| |_ | |____ | | | |
|_____| \_____| |_| | |
__________ |
####1. 限制必须登录后才能上传; 两处代码更改。 第一处在客户端部分,改变resumable的fileAdded触发事件代码
#insert fallowing code under sample.coffee line 84
if !Meteor.userId()
alert('please login first!');
return false;
var fs = Npm.require('fs'); | |
var path = Npm.require('path'); | |
var archiver = Npm.require('archiver'); | |
var req = this.request; | |
var res = this.response; | |
//create archiver class | |
var zip_name; //must with .zip ext. for example xxx.zip | |
var archive = archiver('zip', { |
{ | |
"1": "united states", | |
"7": "kazakhstan", | |
"20": "egypt", | |
"27": "south africa", | |
"30": "greece", | |
"31": "netherlands", | |
"32": "belgium", | |
"33": "france", | |
"34": "spain", |
// Copyright © 2015 Daniel Porrey | |
// | |
// This file is part of the DHT11 Temperature Sensor project | |
// on hackster.io (based on the code posted by Posted by Rahul Kar | |
// found at http://www.rpiblog.com/2012/11/interfacing-temperature-and-humidity.html) | |
// | |
// Dht11_Speed.c is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. |
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" complection support js tern used by omni completion |