Skip to content

Instantly share code, notes, and snippets.

View Gaubee's full-sized avatar
🫐
Growing

Gaubee Gaubee

🫐
Growing
View GitHub Profile

JAVA排队系统

数据表

用户:user

	u_id
	u_name
	u_email
	u_password
@Gaubee
Gaubee / parseURL.js
Created March 2, 2014 03:32
http://blog.sae.sina.com.cn/archives/2894 一个不错的JavaScript解析浏览器路径方法
function parseURL(url) {
var a = document.createElement('a');
//创建一个链接
a.href = url;
return {
source: url,
protocol: a.protocol.replace(':', ''),
host: a.hostname,
port: a.port,
query: a.search,
@Gaubee
Gaubee / 功能模块整理文档.md
Created March 5, 2014 03:04
YC财务系统相关文档

YC财务系统

功能模块

  • 业绩录入
  • 人员管理(主要是售前人员)
  • 交款报表(报表的格式有待商榷)
  • 售后服务情况(未知)

重点难点疑点功能

@Gaubee
Gaubee / 0_To世辉.md
Last active August 29, 2015 13:57
给世辉定制的编程技能快速有效的入门方案。旨在学习编程核心思想与编程界的知识,保证每个时间段都能学到独立有效的知识与实践能力

首先对于汪世辉学编程这件事情我是表示各种呵呵。

当然他说要学习编程并不代表要成为程序员。

而应该说是一定程度上去了解编程界的各种潜规则,所以不能把他当成程序员去培养,而是从培养互联网公司的CEO的角度去了解编程界的各种领域的概念,当然有时候了解是需要代码实践的,但这不会像做业务一样烦人。

有几点要注意的:

  • 不要盲目的写代码,而是通过展示一些精简的核心代码来阐述原理,确保不踩傻逼坑。
  • 了解的方向主要是Web开发方向,桌面编程做适当了解不过于深入
  • 如果有API的学习,确保是为了学习API设计的原理与所针对的底层知识概念。
@Gaubee
Gaubee / file.rb
Created March 17, 2014 03:51
对java语言本身进行扩展要了解些什么知识? 要对java语言本身进行扩展需要了解些什么知识? 操作系统?Java虚拟机规范? 能不能介绍几本有关的书籍?
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你应该十分了解UML,尤其是class,object,interaction以及statediagrams。
2.你需要学习JAVA语言的基础知识以及它的核心类库(collections,serialization,streams,networking, multithreading,reflection,event,handling,NIO,localization,以及其他)
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制等。你应该有能力反编译一个类文件并且明白一些基本的汇编指令。
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设计的思想和方法,以及桌面程序的SWING,AWT, SWT。你还应该对UI部件的JAVABEAN组件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。
5.你需要学习java数据库技术,如JDBCAPI并且会使用至少一种persistence/ORM构架,例如Hibernate,JDO, CocoBase,TopLink,InsideLiberator(国产JDO红工厂软件)或者iBatis。
6.你还应该了解对象关系的阻抗失配的含义,以及它是如何影响业务对象的与关系型数据库的交互,和它的运行结果,还需要掌握不同的数据库产品运用,比如:oracle,mysql,mssqlserver。
7.你需要学习JAVA的沙盒安全模式(classloaders,bytecodeverification,managers,policyandpermissions,
codesigning, digitalsignatures,cryptography,certification,Kerberos,以及其他)还有不同的安全/认证 API,例如JAAS(JavaAuthenticationandAuthorizationService),JCE (JavaCryptographyExtension),JSSE(JavaSecureSocketExtension),以及JGSS (JavaGeneralSecurityService)
8.你需要学习Servlets,JSP,以

Tutorial: Meteor in Windows using Vagrant

These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).

Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s covered on steps 8 to 15.

If you have no idea what I’m talking about, I’ve made a tutorial to install Ubuntu Precise x86 through Windows command-line with Meteor very simple to follow

@Gaubee
Gaubee / con_muil_arg.js
Created July 6, 2014 04:06
实例化函数多参数的实现方式
var _no_new = {};
var Cons = function (arg) {
if (!(this instanceof Cons)) {
var instance = new Cons(_no_new);
instance._init.apply(instance,arguments);
return instance;
}
if (arg !== _no_new) {
this._init.apply(this,arguments);
}
@Gaubee
Gaubee / Conosle.js
Created April 4, 2015 07:03
NodeJS的console对象没有group和groupEnd,这段代码就是为此而生。同时也为time与timeEnd函数提供了类似group一样的折叠效果
require("./$.Date");
require("./$.Array");
require("./$.Object");
function Console() {
this.before = [];
this.date_format = "hh:mm:ss MM-DD";
this.timeMap = {};
};
var _console = global.console;
@Gaubee
Gaubee / test_express_error_handle.js
Created October 9, 2015 03:29
测试Express的错误处理
/*
* 创建类似DB服务
*/
var net = require("net");
var server = net.createServer(function(c) {
console.log('DB-SERVER: client connected');
c.on('end', function() {
console.log('DB-SERVER: client disconnected');
});
c.on('data', function(chunk) {

Debugging & Profiling Node.js

This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)

Interactive Stack Traces with traceGL - Shareware

  1. Guide here