├── osxair
├── bin
│ └── readme.md
├── pkg
│ └── readme.md
├── src
│ ├── osxair_web
│ │ ├── public
│ │ │ ├── img
│ │ │ │ ├── glyphicons-halflings.png
│ │ │ │ ├── grid-baseline-20px.png
│ │ │ │ ├── bs-docs-masthead-pattern.png
│ │ │ │ ├── responsive-illustrations.png
│ │ │ │ ├── bs-docs-bootstrap-features.png
│ │ │ │ ├── glyphicons-halflings-white.png
│ │ │ │ └── bs-docs-responsive-illustrations.png
│ │ │ ├── css
│ │ │ │ └── common.css
│ │ │ └── js
│ │ │ │ └── websocket.js
│ │ └── main.go
│ ├── osxair_client
│ │ └── exec.go
│ └── code.google.com
│ │ └── p
│ │ └── go.net
│ │ └── websocket
│ │ ├── examplehandler_test.go
│ │ └── exampledial_test.go
├── README.md
└── make
├── .DS_Store
├── SocketIM
├── README.md
└── SocketIM
│ ├── Properties
│ └── Settings.settings
│ ├── Program.cs
│ └── MainForm.cs
├── go-wssocket
├── .DS_Store
├── client
│ ├── .DS_Store
│ ├── index.html
│ └── websocket.js
└── accept.go
├── getDomainLinks
├── links
├── Snoopy.class.php
├── INSTALL
├── AUTHORS
└── TODO
├── MouseHookApp
├── MouseHookApp.suo
└── MouseHookApp
│ ├── Properties
│ └── Settings.settings
│ └── Program.cs
├── DesignPattern
├── DesignPattern.suo
├── Proxy
│ ├── Proxy
│ │ └── proxy.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Proxy.exe
│ │ │ ├── Proxy.pdb
│ │ │ ├── Proxy.vshost.exe
│ │ │ └── Proxy.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Proxy.exe
│ │ │ ├── Proxy.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Proxy.csproj.FileListAbsolute.txt
│ ├── IMath.cs
│ ├── Proxy.csproj.user
│ ├── Math.cs
│ ├── MathProxy.cs
│ └── Program.cs
├── State
│ ├── State
│ │ └── state.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── State.exe
│ │ │ └── State.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── State.exe
│ │ │ ├── State.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── State.csproj.FileListAbsolute.txt
│ ├── State.csproj.user
│ └── Program.cs
├── Facade
│ ├── Facade
│ │ └── facade.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Facade.exe
│ │ │ └── Facade.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Facade.exe
│ │ │ ├── Facade.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Facade.csproj.FileListAbsolute.txt
│ ├── Loan.cs
│ ├── Credit.cs
│ ├── Bank.cs
│ ├── Facade.csproj.user
│ ├── Customer.cs
│ └── Program.cs
├── Backup
│ ├── Proxy
│ │ ├── Proxy
│ │ │ └── proxy.gif
│ │ ├── IMath.cs
│ │ ├── Math.cs
│ │ ├── MathProxy.cs
│ │ └── Program.cs
│ ├── State
│ │ ├── State
│ │ │ └── state.gif
│ │ └── Program.cs
│ ├── Facade
│ │ ├── Facade
│ │ │ └── facade.gif
│ │ ├── Loan.cs
│ │ ├── Credit.cs
│ │ ├── Bank.cs
│ │ ├── Customer.cs
│ │ └── Program.cs
│ ├── Command
│ │ ├── Command
│ │ │ └── command.gif
│ │ ├── Command.cs
│ │ └── Calculator.cs
│ ├── Memento
│ │ ├── Memento
│ │ │ └── memento.gif
│ │ └── ProspectMemory.cs
│ ├── Visitor
│ │ ├── Visitor
│ │ │ └── visitor.gif
│ │ ├── IVisitor.cs
│ │ ├── Element.cs
│ │ ├── VacationVisitor.cs
│ │ ├── IncomeVisitor.cs
│ │ ├── employee types.cs
│ │ ├── Program.cs
│ │ └── Employees.cs
│ ├── Iterator
│ │ ├── Iterator
│ │ │ └── iterator.gif
│ │ ├── IAbstractCollection.cs
│ │ ├── IAbstractIterator.cs
│ │ ├── Item.cs
│ │ └── Collection.cs
│ ├── Mediator
│ │ ├── Mediator
│ │ │ └── mediator.gif
│ │ ├── AbstractChatroom.cs
│ │ ├── Beatle.cs
│ │ └── NonBeatle.cs
│ ├── Observer
│ │ ├── Observer
│ │ │ └── observer.gif
│ │ ├── IInvestor.cs
│ │ ├── IBM.cs
│ │ └── Program.cs
│ ├── Strategy
│ │ ├── Strategy
│ │ │ └── strategy.gif
│ │ ├── SortStrategy.cs
│ │ ├── QuickSort.cs
│ │ ├── ShellSort.cs
│ │ └── MergeSort.cs
│ ├── Bridge
│ │ ├── Bridge Resource
│ │ │ └── bridge.gif
│ │ ├── DataObject.cs
│ │ └── Customers.cs
│ ├── Decorator
│ │ ├── Decorator
│ │ │ └── decorator.gif
│ │ ├── LibraryItem.cs
│ │ └── Decorator .cs
│ ├── Adapter
│ │ ├── Adapter Resource
│ │ │ └── adapter.gif
│ │ ├── Program.cs
│ │ └── Compound.cs
│ ├── Builder
│ │ ├── Builder Resource
│ │ │ └── builder.gif
│ │ ├── Shop.cs
│ │ ├── VehicleBuilder.cs
│ │ ├── Program.cs
│ │ ├── CarBuilder.cs
│ │ ├── ScooterBuilder.cs
│ │ └── MotorCycleBuilder.cs
│ ├── Interpreter
│ │ ├── Interpreter
│ │ │ └── interpreter.gif
│ │ ├── TenExpression.cs
│ │ ├── HundredExpression.cs
│ │ ├── OneExpression.cs
│ │ ├── ThousandExpression.cs
│ │ └── Context.cs
│ ├── Composite
│ │ ├── Composite Resource
│ │ │ └── composite.gif
│ │ └── DrawingElement.cs
│ ├── Prototype
│ │ ├── Prototype Resource
│ │ │ └── prototype.gif
│ │ ├── ColorPrototype.cs
│ │ ├── ColorManager.cs
│ │ └── Color.cs
│ ├── Singleton
│ │ └── Singleton Resource
│ │ │ └── singleton.gif
│ ├── Template Method
│ │ ├── Template Method
│ │ │ └── template.gif
│ │ └── Program.cs
│ ├── Factory Method
│ │ ├── Factory Method Resource
│ │ │ └── FactoryMethod.gif
│ │ ├── ExperiencePage.cs
│ │ ├── Page.cs
│ │ ├── SkillsPage.cs
│ │ ├── EducationPage.cs
│ │ ├── ResultsPage.cs
│ │ ├── SummaryPage.cs
│ │ ├── ConclusionPage.cs
│ │ ├── BibliographyPage.cs
│ │ ├── IntroductionPage.cs
│ │ ├── Report.cs
│ │ ├── Resume.cs
│ │ ├── Document.cs
│ │ └── Program.cs
│ ├── Chain of Responsibility
│ │ ├── Chain of Responsibility
│ │ │ └── chain.gif
│ │ ├── Approver.cs
│ │ ├── Director.cs
│ │ └── President.cs
│ ├── AbstractFactory
│ │ ├── AbStractFactory Resource
│ │ │ └── abstractFactory.gif
│ │ ├── Program.cs
│ │ └── AnimalWorld.cs
│ └── Flyweight
│ │ ├── Character.cs
│ │ ├── CharacterA.cs
│ │ ├── CharacterB.cs
│ │ └── CharacterZ.cs
├── Bridge
│ ├── bin
│ │ └── Debug
│ │ │ ├── Bridge.exe
│ │ │ ├── Bridge.pdb
│ │ │ ├── Bridge.vshost.exe
│ │ │ └── Bridge.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Bridge.exe
│ │ │ ├── Bridge.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Bridge.csproj.FileListAbsolute.txt
│ ├── Bridge Resource
│ │ └── bridge.gif
│ ├── Bridge.csproj.user
│ ├── DataObject.cs
│ └── Customers.cs
├── Command
│ ├── Command
│ │ └── command.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Command.exe
│ │ │ └── Command.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Command.exe
│ │ │ ├── Command.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Command.csproj.FileListAbsolute.txt
│ ├── Command.cs
│ ├── Command.csproj.user
│ └── Calculator.cs
├── Memento
│ ├── Memento
│ │ └── memento.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Memento.exe
│ │ │ └── Memento.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Memento.exe
│ │ │ ├── Memento.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Memento.csproj.FileListAbsolute.txt
│ ├── ProspectMemory.cs
│ └── Memento.csproj.user
├── Visitor
│ ├── Visitor
│ │ └── visitor.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Visitor.exe
│ │ │ └── Visitor.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Visitor.exe
│ │ │ ├── Visitor.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Visitor.csproj.FileListAbsolute.txt
│ ├── IVisitor.cs
│ ├── Element.cs
│ ├── Visitor.csproj.user
│ ├── VacationVisitor.cs
│ ├── IncomeVisitor.cs
│ ├── employee types.cs
│ ├── Program.cs
│ └── Employees.cs
├── Adapter
│ ├── bin
│ │ └── Debug
│ │ │ ├── Adapter.exe
│ │ │ ├── Adapter.pdb
│ │ │ ├── Adapter.vshost.exe
│ │ │ └── Adapter.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Adapter.exe
│ │ │ ├── Adapter.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Adapter Resource
│ │ └── adapter.gif
│ ├── Adapter.csproj.user
│ ├── Program.cs
│ └── Compound.cs
├── Builder
│ ├── bin
│ │ └── Debug
│ │ │ ├── Builder.exe
│ │ │ ├── Builder.pdb
│ │ │ ├── Builder.vshost.exe
│ │ │ └── Builder.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Builder.exe
│ │ │ ├── Builder.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Builder Resource
│ │ └── builder.gif
│ ├── Shop.cs
│ ├── Builder.csproj.user
│ ├── VehicleBuilder.cs
│ ├── Program.cs
│ ├── CarBuilder.cs
│ ├── ScooterBuilder.cs
│ └── MotorCycleBuilder.cs
├── Iterator
│ ├── Iterator
│ │ └── iterator.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Iterator.exe
│ │ │ └── Iterator.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Iterator.exe
│ │ │ ├── Iterator.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Iterator.csproj.FileListAbsolute.txt
│ ├── IAbstractCollection.cs
│ ├── IAbstractIterator.cs
│ ├── Iterator.csproj.user
│ ├── Item.cs
│ └── Collection.cs
├── Mediator
│ ├── Mediator
│ │ └── mediator.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Mediator.exe
│ │ │ └── Mediator.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Mediator.exe
│ │ │ ├── Mediator.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Mediator.csproj.FileListAbsolute.txt
│ ├── AbstractChatroom.cs
│ ├── Mediator.csproj.user
│ ├── Beatle.cs
│ └── NonBeatle.cs
├── Observer
│ ├── Observer
│ │ └── observer.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Observer.exe
│ │ │ ├── Observer.pdb
│ │ │ ├── Observer.vshost.exe
│ │ │ └── Observer.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Observer.exe
│ │ │ ├── Observer.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── IInvestor.cs
│ ├── IBM.cs
│ ├── Observer.csproj.user
│ └── Program.cs
├── Strategy
│ ├── Strategy
│ │ └── strategy.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Strategy.exe
│ │ │ └── Strategy.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Strategy.exe
│ │ │ ├── Strategy.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Strategy.csproj.FileListAbsolute.txt
│ ├── SortStrategy.cs
│ ├── QuickSort.cs
│ ├── ShellSort.cs
│ ├── MergeSort.cs
│ └── Strategy.csproj.user
├── Composite
│ ├── bin
│ │ └── Debug
│ │ │ ├── Composite.exe
│ │ │ └── Composite.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Composite.exe
│ │ │ ├── Composite.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Composite.csproj.FileListAbsolute.txt
│ ├── Composite Resource
│ │ └── composite.gif
│ ├── Composite.csproj.user
│ └── DrawingElement.cs
├── Decorator
│ ├── Decorator
│ │ └── decorator.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Decorator.exe
│ │ │ └── Decorator.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Decorator.exe
│ │ │ ├── Decorator.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Decorator.csproj.FileListAbsolute.txt
│ ├── Decorator.csproj.user
│ ├── LibraryItem.cs
│ └── Decorator .cs
├── Flyweight
│ ├── bin
│ │ └── Debug
│ │ │ ├── Flyweight.exe
│ │ │ ├── Flyweight.pdb
│ │ │ ├── Flyweight.vshost.exe
│ │ │ └── Flyweight.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Flyweight.exe
│ │ │ ├── Flyweight.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Flyweight.csproj.FileListAbsolute.txt
│ ├── Flyweight.csproj.user
│ ├── Character.cs
│ ├── CharacterA.cs
│ ├── CharacterB.cs
│ └── CharacterZ.cs
├── Prototype
│ ├── bin
│ │ └── Debug
│ │ │ ├── Prototype.exe
│ │ │ ├── Prototype.pdb
│ │ │ ├── Prototype.vshost.exe
│ │ │ └── Prototype.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Prototype.exe
│ │ │ ├── Prototype.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Prototype Resource
│ │ └── prototype.gif
│ ├── ColorPrototype.cs
│ ├── Prototype.csproj.user
│ ├── ColorManager.cs
│ └── Color.cs
├── Singleton
│ ├── bin
│ │ └── Debug
│ │ │ ├── Singleton.exe
│ │ │ ├── Singleton.pdb
│ │ │ ├── Singleton.vshost.exe
│ │ │ └── Singleton.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Singleton.exe
│ │ │ ├── Singleton.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Singleton Resource
│ │ └── singleton.gif
│ └── Singleton.csproj.user
├── Interpreter
│ ├── bin
│ │ └── Debug
│ │ │ ├── Interpreter.exe
│ │ │ ├── Interpreter.pdb
│ │ │ ├── Interpreter.vshost.exe
│ │ │ └── Interpreter.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Interpreter.exe
│ │ │ ├── Interpreter.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Interpreter.csproj.FileListAbsolute.txt
│ ├── Interpreter
│ │ └── interpreter.gif
│ ├── Interpreter.csproj.user
│ ├── TenExpression.cs
│ ├── HundredExpression.cs
│ ├── OneExpression.cs
│ ├── ThousandExpression.cs
│ └── Context.cs
├── Factory Method
│ ├── bin
│ │ └── Debug
│ │ │ ├── Factory Method.exe
│ │ │ ├── Factory Method.pdb
│ │ │ └── Factory Method.vshost.exe
│ ├── obj
│ │ └── Debug
│ │ │ ├── Factory Method.exe
│ │ │ ├── Factory Method.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Factory Method Resource
│ │ └── FactoryMethod.gif
│ ├── ExperiencePage.cs
│ ├── Page.cs
│ ├── ResultsPage.cs
│ ├── SkillsPage.cs
│ ├── SummaryPage.cs
│ ├── ConclusionPage.cs
│ ├── EducationPage.cs
│ ├── BibliographyPage.cs
│ ├── IntroductionPage.cs
│ ├── Factory Method.csproj.user
│ ├── Report.cs
│ ├── Resume.cs
│ ├── Document.cs
│ └── Program.cs
├── _UpgradeReport_Files
│ ├── UpgradeReport_Plus.gif
│ └── UpgradeReport_Minus.gif
├── AbstractFactory
│ ├── bin
│ │ └── Debug
│ │ │ ├── AbstractFactory.exe
│ │ │ ├── AbstractFactory.pdb
│ │ │ ├── AbstractFactory.vshost.exe
│ │ │ └── AbstractFactory.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── AbstractFactory.exe
│ │ │ ├── AbstractFactory.pdb
│ │ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── AbStractFactory Resource
│ │ └── abstractFactory.gif
│ ├── AbstractFactory.csproj.user
│ ├── Program.cs
│ └── AnimalWorld.cs
├── Template Method
│ ├── Template Method
│ │ └── template.gif
│ ├── bin
│ │ └── Debug
│ │ │ ├── Template Method.exe
│ │ │ └── Template Method.pdb
│ ├── obj
│ │ └── Debug
│ │ │ ├── Template Method.exe
│ │ │ ├── Template Method.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── Template Method.csproj.FileListAbsolute.txt
│ ├── Template Method.csproj.user
│ └── Program.cs
└── Chain of Responsibility
│ ├── Chain of Responsibility
│ └── chain.gif
│ ├── bin
│ └── Debug
│ │ ├── Chain of Responsibility.exe
│ │ └── Chain of Responsibility.pdb
│ ├── obj
│ └── Debug
│ │ ├── Chain of Responsibility.exe
│ │ ├── Chain of Responsibility.pdb
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ └── Chain of Responsibility.csproj.FileListAbsolute.txt
│ ├── Chain of Responsibility.csproj.user
│ ├── Approver.cs
│ ├── Director.cs
│ ├── President.cs
│ └── VicePresident.cs
├── nginx_module_mysecret
├── .DS_Store
└── config
├── nginx_module_mytest
└── config
├── nginx_module_mysecret2
└── config
├── go_socketim
└── README.md
├── gomysqltest
├── README.md
├── mymysql
│ ├── mymysql_test.go
│ └── mymysql_b_test.go
└── gomysqldriver
│ ├── gomysqldriver_test.go
│ └── gomysqldriver_b_test.go
├── regexp_example
└── posix_perl.go
├── url_example
└── url.go
└── piccheck
├── skillpic.go
├── checkrole.go
└── checkskill.go
/osxair/bin/readme.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/osxair/pkg/readme.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/.DS_Store
--------------------------------------------------------------------------------
/SocketIM/README.md:
--------------------------------------------------------------------------------
1 | SocketIM
2 | =======
3 |
4 | 使用C#的WinForm做的一个类似IM的小demo,主要使用到多线程,socket库
--------------------------------------------------------------------------------
/go-wssocket/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/go-wssocket/.DS_Store
--------------------------------------------------------------------------------
/getDomainLinks/links:
--------------------------------------------------------------------------------
1 | http://www.fjjxxy.cn/jxxy/?menuID=1466
2 | http://www.fjjxxy.cn/jxxy/?menuID=1467
3 |
--------------------------------------------------------------------------------
/MouseHookApp/MouseHookApp.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/MouseHookApp/MouseHookApp.suo
--------------------------------------------------------------------------------
/go-wssocket/client/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/go-wssocket/client/.DS_Store
--------------------------------------------------------------------------------
/DesignPattern/DesignPattern.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/DesignPattern.suo
--------------------------------------------------------------------------------
/getDomainLinks/Snoopy.class.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/getDomainLinks/Snoopy.class.php
--------------------------------------------------------------------------------
/nginx_module_mysecret/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/nginx_module_mysecret/.DS_Store
--------------------------------------------------------------------------------
/DesignPattern/Proxy/Proxy/proxy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/Proxy/proxy.gif
--------------------------------------------------------------------------------
/DesignPattern/State/State/state.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/State/state.gif
--------------------------------------------------------------------------------
/DesignPattern/Facade/Facade/facade.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/Facade/facade.gif
--------------------------------------------------------------------------------
/DesignPattern/Proxy/bin/Debug/Proxy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/bin/Debug/Proxy.exe
--------------------------------------------------------------------------------
/DesignPattern/Proxy/bin/Debug/Proxy.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/bin/Debug/Proxy.pdb
--------------------------------------------------------------------------------
/DesignPattern/Proxy/obj/Debug/Proxy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/obj/Debug/Proxy.exe
--------------------------------------------------------------------------------
/DesignPattern/Proxy/obj/Debug/Proxy.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/obj/Debug/Proxy.pdb
--------------------------------------------------------------------------------
/DesignPattern/State/bin/Debug/State.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/bin/Debug/State.exe
--------------------------------------------------------------------------------
/DesignPattern/State/bin/Debug/State.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/bin/Debug/State.pdb
--------------------------------------------------------------------------------
/DesignPattern/State/obj/Debug/State.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/obj/Debug/State.exe
--------------------------------------------------------------------------------
/DesignPattern/State/obj/Debug/State.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/obj/Debug/State.pdb
--------------------------------------------------------------------------------
/getDomainLinks/INSTALL:
--------------------------------------------------------------------------------
1 | Put Snoopy.class.php into one of the directories specified in your
2 | php.ini include_path directive.
3 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Proxy/Proxy/proxy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Proxy/Proxy/proxy.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/State/State/state.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/State/State/state.gif
--------------------------------------------------------------------------------
/DesignPattern/Bridge/bin/Debug/Bridge.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/bin/Debug/Bridge.exe
--------------------------------------------------------------------------------
/DesignPattern/Bridge/bin/Debug/Bridge.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/bin/Debug/Bridge.pdb
--------------------------------------------------------------------------------
/DesignPattern/Bridge/obj/Debug/Bridge.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/obj/Debug/Bridge.exe
--------------------------------------------------------------------------------
/DesignPattern/Bridge/obj/Debug/Bridge.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/obj/Debug/Bridge.pdb
--------------------------------------------------------------------------------
/DesignPattern/Command/Command/command.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/Command/command.gif
--------------------------------------------------------------------------------
/DesignPattern/Facade/bin/Debug/Facade.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/bin/Debug/Facade.exe
--------------------------------------------------------------------------------
/DesignPattern/Facade/bin/Debug/Facade.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/bin/Debug/Facade.pdb
--------------------------------------------------------------------------------
/DesignPattern/Facade/obj/Debug/Facade.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/obj/Debug/Facade.exe
--------------------------------------------------------------------------------
/DesignPattern/Facade/obj/Debug/Facade.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/obj/Debug/Facade.pdb
--------------------------------------------------------------------------------
/DesignPattern/Memento/Memento/memento.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/Memento/memento.gif
--------------------------------------------------------------------------------
/DesignPattern/Visitor/Visitor/visitor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/Visitor/visitor.gif
--------------------------------------------------------------------------------
/DesignPattern/Adapter/bin/Debug/Adapter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/bin/Debug/Adapter.exe
--------------------------------------------------------------------------------
/DesignPattern/Adapter/bin/Debug/Adapter.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/bin/Debug/Adapter.pdb
--------------------------------------------------------------------------------
/DesignPattern/Adapter/obj/Debug/Adapter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/obj/Debug/Adapter.exe
--------------------------------------------------------------------------------
/DesignPattern/Adapter/obj/Debug/Adapter.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/obj/Debug/Adapter.pdb
--------------------------------------------------------------------------------
/DesignPattern/Builder/bin/Debug/Builder.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/bin/Debug/Builder.exe
--------------------------------------------------------------------------------
/DesignPattern/Builder/bin/Debug/Builder.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/bin/Debug/Builder.pdb
--------------------------------------------------------------------------------
/DesignPattern/Builder/obj/Debug/Builder.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/obj/Debug/Builder.exe
--------------------------------------------------------------------------------
/DesignPattern/Builder/obj/Debug/Builder.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/obj/Debug/Builder.pdb
--------------------------------------------------------------------------------
/DesignPattern/Command/bin/Debug/Command.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/bin/Debug/Command.exe
--------------------------------------------------------------------------------
/DesignPattern/Command/bin/Debug/Command.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/bin/Debug/Command.pdb
--------------------------------------------------------------------------------
/DesignPattern/Command/obj/Debug/Command.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/obj/Debug/Command.exe
--------------------------------------------------------------------------------
/DesignPattern/Command/obj/Debug/Command.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/obj/Debug/Command.pdb
--------------------------------------------------------------------------------
/DesignPattern/Iterator/Iterator/iterator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/Iterator/iterator.gif
--------------------------------------------------------------------------------
/DesignPattern/Mediator/Mediator/mediator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/Mediator/mediator.gif
--------------------------------------------------------------------------------
/DesignPattern/Memento/bin/Debug/Memento.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/bin/Debug/Memento.exe
--------------------------------------------------------------------------------
/DesignPattern/Memento/bin/Debug/Memento.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/bin/Debug/Memento.pdb
--------------------------------------------------------------------------------
/DesignPattern/Memento/obj/Debug/Memento.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/obj/Debug/Memento.exe
--------------------------------------------------------------------------------
/DesignPattern/Memento/obj/Debug/Memento.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/obj/Debug/Memento.pdb
--------------------------------------------------------------------------------
/DesignPattern/Observer/Observer/observer.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/Observer/observer.gif
--------------------------------------------------------------------------------
/DesignPattern/Strategy/Strategy/strategy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/Strategy/strategy.gif
--------------------------------------------------------------------------------
/DesignPattern/Visitor/bin/Debug/Visitor.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/bin/Debug/Visitor.exe
--------------------------------------------------------------------------------
/DesignPattern/Visitor/bin/Debug/Visitor.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/bin/Debug/Visitor.pdb
--------------------------------------------------------------------------------
/DesignPattern/Visitor/obj/Debug/Visitor.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/obj/Debug/Visitor.exe
--------------------------------------------------------------------------------
/DesignPattern/Visitor/obj/Debug/Visitor.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/obj/Debug/Visitor.pdb
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Facade/facade.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Facade/Facade/facade.gif
--------------------------------------------------------------------------------
/DesignPattern/Bridge/Bridge Resource/bridge.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/Bridge Resource/bridge.gif
--------------------------------------------------------------------------------
/DesignPattern/Composite/bin/Debug/Composite.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/bin/Debug/Composite.exe
--------------------------------------------------------------------------------
/DesignPattern/Composite/bin/Debug/Composite.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/bin/Debug/Composite.pdb
--------------------------------------------------------------------------------
/DesignPattern/Composite/obj/Debug/Composite.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/obj/Debug/Composite.exe
--------------------------------------------------------------------------------
/DesignPattern/Composite/obj/Debug/Composite.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/obj/Debug/Composite.pdb
--------------------------------------------------------------------------------
/DesignPattern/Decorator/Decorator/decorator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/Decorator/decorator.gif
--------------------------------------------------------------------------------
/DesignPattern/Decorator/bin/Debug/Decorator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/bin/Debug/Decorator.exe
--------------------------------------------------------------------------------
/DesignPattern/Decorator/bin/Debug/Decorator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/bin/Debug/Decorator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Decorator/obj/Debug/Decorator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/obj/Debug/Decorator.exe
--------------------------------------------------------------------------------
/DesignPattern/Decorator/obj/Debug/Decorator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/obj/Debug/Decorator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/bin/Debug/Flyweight.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/bin/Debug/Flyweight.exe
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/bin/Debug/Flyweight.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/bin/Debug/Flyweight.pdb
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/obj/Debug/Flyweight.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/obj/Debug/Flyweight.exe
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/obj/Debug/Flyweight.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/obj/Debug/Flyweight.pdb
--------------------------------------------------------------------------------
/DesignPattern/Iterator/bin/Debug/Iterator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/bin/Debug/Iterator.exe
--------------------------------------------------------------------------------
/DesignPattern/Iterator/bin/Debug/Iterator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/bin/Debug/Iterator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Iterator/obj/Debug/Iterator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/obj/Debug/Iterator.exe
--------------------------------------------------------------------------------
/DesignPattern/Iterator/obj/Debug/Iterator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/obj/Debug/Iterator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Mediator/bin/Debug/Mediator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/bin/Debug/Mediator.exe
--------------------------------------------------------------------------------
/DesignPattern/Mediator/bin/Debug/Mediator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/bin/Debug/Mediator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Mediator/obj/Debug/Mediator.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/obj/Debug/Mediator.exe
--------------------------------------------------------------------------------
/DesignPattern/Mediator/obj/Debug/Mediator.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/obj/Debug/Mediator.pdb
--------------------------------------------------------------------------------
/DesignPattern/Observer/bin/Debug/Observer.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/bin/Debug/Observer.exe
--------------------------------------------------------------------------------
/DesignPattern/Observer/bin/Debug/Observer.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/bin/Debug/Observer.pdb
--------------------------------------------------------------------------------
/DesignPattern/Observer/obj/Debug/Observer.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/obj/Debug/Observer.exe
--------------------------------------------------------------------------------
/DesignPattern/Observer/obj/Debug/Observer.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/obj/Debug/Observer.pdb
--------------------------------------------------------------------------------
/DesignPattern/Prototype/bin/Debug/Prototype.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/bin/Debug/Prototype.exe
--------------------------------------------------------------------------------
/DesignPattern/Prototype/bin/Debug/Prototype.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/bin/Debug/Prototype.pdb
--------------------------------------------------------------------------------
/DesignPattern/Prototype/obj/Debug/Prototype.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/obj/Debug/Prototype.exe
--------------------------------------------------------------------------------
/DesignPattern/Prototype/obj/Debug/Prototype.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/obj/Debug/Prototype.pdb
--------------------------------------------------------------------------------
/DesignPattern/Proxy/bin/Debug/Proxy.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/bin/Debug/Proxy.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Singleton/bin/Debug/Singleton.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/bin/Debug/Singleton.exe
--------------------------------------------------------------------------------
/DesignPattern/Singleton/bin/Debug/Singleton.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/bin/Debug/Singleton.pdb
--------------------------------------------------------------------------------
/DesignPattern/Singleton/obj/Debug/Singleton.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/obj/Debug/Singleton.exe
--------------------------------------------------------------------------------
/DesignPattern/Singleton/obj/Debug/Singleton.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/obj/Debug/Singleton.pdb
--------------------------------------------------------------------------------
/DesignPattern/Strategy/bin/Debug/Strategy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/bin/Debug/Strategy.exe
--------------------------------------------------------------------------------
/DesignPattern/Strategy/bin/Debug/Strategy.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/bin/Debug/Strategy.pdb
--------------------------------------------------------------------------------
/DesignPattern/Strategy/obj/Debug/Strategy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/obj/Debug/Strategy.exe
--------------------------------------------------------------------------------
/DesignPattern/Strategy/obj/Debug/Strategy.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/obj/Debug/Strategy.pdb
--------------------------------------------------------------------------------
/DesignPattern/Backup/Command/Command/command.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Command/Command/command.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Memento/Memento/memento.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Memento/Memento/memento.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/Visitor/visitor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Visitor/Visitor/visitor.gif
--------------------------------------------------------------------------------
/DesignPattern/Bridge/bin/Debug/Bridge.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/bin/Debug/Bridge.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Adapter/Adapter Resource/adapter.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/Adapter Resource/adapter.gif
--------------------------------------------------------------------------------
/DesignPattern/Adapter/bin/Debug/Adapter.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/bin/Debug/Adapter.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Backup/Iterator/Iterator/iterator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Iterator/Iterator/iterator.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Mediator/Mediator/mediator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Mediator/Mediator/mediator.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Observer/Observer/observer.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Observer/Observer/observer.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Strategy/Strategy/strategy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Strategy/Strategy/strategy.gif
--------------------------------------------------------------------------------
/DesignPattern/Builder/Builder Resource/builder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/Builder Resource/builder.gif
--------------------------------------------------------------------------------
/DesignPattern/Builder/bin/Debug/Builder.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/bin/Debug/Builder.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/bin/Debug/Interpreter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/bin/Debug/Interpreter.exe
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/bin/Debug/Interpreter.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/bin/Debug/Interpreter.pdb
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/obj/Debug/Interpreter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/obj/Debug/Interpreter.exe
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/obj/Debug/Interpreter.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/obj/Debug/Interpreter.pdb
--------------------------------------------------------------------------------
/DesignPattern/Observer/bin/Debug/Observer.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/bin/Debug/Observer.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Backup/Bridge/Bridge Resource/bridge.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Bridge/Bridge Resource/bridge.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Decorator/Decorator/decorator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Decorator/Decorator/decorator.gif
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/bin/Debug/Flyweight.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/bin/Debug/Flyweight.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/Interpreter/interpreter.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/Interpreter/interpreter.gif
--------------------------------------------------------------------------------
/DesignPattern/Prototype/bin/Debug/Prototype.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/bin/Debug/Prototype.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Singleton/bin/Debug/Singleton.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/bin/Debug/Singleton.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Backup/Adapter/Adapter Resource/adapter.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Adapter/Adapter Resource/adapter.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/Builder Resource/builder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Builder/Builder Resource/builder.gif
--------------------------------------------------------------------------------
/DesignPattern/Composite/Composite Resource/composite.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/Composite Resource/composite.gif
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/bin/Debug/Factory Method.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/bin/Debug/Factory Method.exe
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/bin/Debug/Factory Method.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/bin/Debug/Factory Method.pdb
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/obj/Debug/Factory Method.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/obj/Debug/Factory Method.exe
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/obj/Debug/Factory Method.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/obj/Debug/Factory Method.pdb
--------------------------------------------------------------------------------
/DesignPattern/Prototype/Prototype Resource/prototype.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/Prototype Resource/prototype.gif
--------------------------------------------------------------------------------
/DesignPattern/Singleton/Singleton Resource/singleton.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/Singleton Resource/singleton.gif
--------------------------------------------------------------------------------
/DesignPattern/_UpgradeReport_Files/UpgradeReport_Plus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/_UpgradeReport_Files/UpgradeReport_Plus.gif
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/grid-baseline-20px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/grid-baseline-20px.png
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.exe
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.pdb
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/obj/Debug/AbstractFactory.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/obj/Debug/AbstractFactory.exe
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/obj/Debug/AbstractFactory.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/obj/Debug/AbstractFactory.pdb
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/bin/Debug/Interpreter.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/bin/Debug/Interpreter.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Template Method/Template Method/template.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/Template Method/template.gif
--------------------------------------------------------------------------------
/DesignPattern/Template Method/bin/Debug/Template Method.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/bin/Debug/Template Method.exe
--------------------------------------------------------------------------------
/DesignPattern/Template Method/bin/Debug/Template Method.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/bin/Debug/Template Method.pdb
--------------------------------------------------------------------------------
/DesignPattern/Template Method/obj/Debug/Template Method.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/obj/Debug/Template Method.exe
--------------------------------------------------------------------------------
/DesignPattern/Template Method/obj/Debug/Template Method.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/obj/Debug/Template Method.pdb
--------------------------------------------------------------------------------
/DesignPattern/_UpgradeReport_Files/UpgradeReport_Minus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/_UpgradeReport_Files/UpgradeReport_Minus.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/Interpreter/interpreter.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Interpreter/Interpreter/interpreter.gif
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/bs-docs-masthead-pattern.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/bs-docs-masthead-pattern.png
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/responsive-illustrations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/responsive-illustrations.png
--------------------------------------------------------------------------------
/DesignPattern/Backup/Composite/Composite Resource/composite.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Composite/Composite Resource/composite.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Prototype/Prototype Resource/prototype.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Prototype/Prototype Resource/prototype.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Singleton/Singleton Resource/singleton.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Singleton/Singleton Resource/singleton.gif
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/bin/Debug/Factory Method.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/bin/Debug/Factory Method.vshost.exe
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/bs-docs-bootstrap-features.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/bs-docs-bootstrap-features.png
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.vshost.exe
--------------------------------------------------------------------------------
/DesignPattern/Backup/Template Method/Template Method/template.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Template Method/Template Method/template.gif
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/css/common.css:
--------------------------------------------------------------------------------
1 | input[class*="common"] {
2 | min-height: 28px;
3 | }
4 |
5 | .form-actions {
6 | background-color: whiteSmoke;
7 | border-top: 0px;
8 | }
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/img/bs-docs-responsive-illustrations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/osxair/src/osxair_web/public/img/bs-docs-responsive-illustrations.png
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/Chain of Responsibility/chain.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/Chain of Responsibility/chain.gif
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Factory Method Resource/FactoryMethod.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/Factory Method Resource/FactoryMethod.gif
--------------------------------------------------------------------------------
/nginx_module_mytest/config:
--------------------------------------------------------------------------------
1 | ngx_addon_name=ngx_http_mytest_module
2 | HTTP_MODULES="$HTTP_MODULES ngx_http_mytest_module"
3 | NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_mytest_module.c"
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/AbStractFactory Resource/abstractFactory.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/AbStractFactory Resource/abstractFactory.gif
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Factory Method Resource/FactoryMethod.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Factory Method/Factory Method Resource/FactoryMethod.gif
--------------------------------------------------------------------------------
/DesignPattern/Bridge/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Bridge/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/bin/Debug/Chain of Responsibility.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/bin/Debug/Chain of Responsibility.exe
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/bin/Debug/Chain of Responsibility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/bin/Debug/Chain of Responsibility.pdb
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/obj/Debug/Chain of Responsibility.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/obj/Debug/Chain of Responsibility.exe
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/obj/Debug/Chain of Responsibility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/obj/Debug/Chain of Responsibility.pdb
--------------------------------------------------------------------------------
/DesignPattern/Facade/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Facade/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Proxy/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Proxy/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/State/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/State/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Adapter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Adapter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Backup/Chain of Responsibility/Chain of Responsibility/chain.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/Chain of Responsibility/Chain of Responsibility/chain.gif
--------------------------------------------------------------------------------
/DesignPattern/Builder/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Builder/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Command/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Command/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Iterator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Iterator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Mediator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Mediator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Memento/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Memento/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Observer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Observer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Strategy/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Strategy/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Visitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Visitor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/nginx_module_mysecret/config:
--------------------------------------------------------------------------------
1 | ngx_addon_name=ngx_http_mysecret_module
2 | HTTP_MODULES="$HTTP_MODULES ngx_http_mysecret_module"
3 | NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_mysecret_module.c"
4 |
--------------------------------------------------------------------------------
/nginx_module_mysecret2/config:
--------------------------------------------------------------------------------
1 | ngx_addon_name=ngx_http_mysecret_module
2 | HTTP_MODULES="$HTTP_MODULES ngx_http_mysecret_module"
3 | NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_mysecret_module.c"
4 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/AbstractFactory/AbStractFactory Resource/abstractFactory.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Backup/AbstractFactory/AbStractFactory Resource/abstractFactory.gif
--------------------------------------------------------------------------------
/DesignPattern/Composite/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Composite/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Decorator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Decorator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Flyweight/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Interpreter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Prototype/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Prototype/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Singleton/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Singleton/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/AbstractFactory/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Factory Method/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/DesignPattern/Template Method/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Template Method/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/osxair/README.md:
--------------------------------------------------------------------------------
1 | 使用步骤:
2 |
3 | ==========================================
4 |
5 | 1 在mac上安装go
6 |
7 | 2 sh make
8 |
9 | 3 bin/osxair_client
10 |
11 | 4 bin/osxair_web
12 |
13 | 5 访问XXXXX:3200
14 |
15 | 6 操作按钮控制itunes
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jianfengye/MyWorks/HEAD/DesignPattern/Chain of Responsibility/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/go_socketim/README.md:
--------------------------------------------------------------------------------
1 | go_socketim
2 | =======
3 |
4 | go的socketim版本
5 |
6 | 使用了
7 | https://github.com/lxn/walk
8 |
9 | 和
10 |
11 | https://github.com/lxn/go-winapi
12 |
13 | 使用前需要安装walk
14 |
15 |
16 | go get github.com/lxn/walk
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/ExperiencePage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class ExperiencePage : Page
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/ExperiencePage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class ExperiencePage : Page
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/gomysqltest/README.md:
--------------------------------------------------------------------------------
1 | MyWorks / gomysqltest
2 | =======
3 |
4 | 测试了mymysql和gomysqldriver两个mysql驱动的性能
5 |
6 | 测试代码和结果放在这里
7 |
8 | mysqltestpprof存放pprof生成的svg文件
9 |
10 | 测试相关文章链接:
11 |
12 | mymysql与go-mysql-driver性能比较
13 |
14 | http://www.cnblogs.com/yjf512/archive/2013/01/21/2869198.html
15 |
--------------------------------------------------------------------------------
/SocketIM/SocketIM/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MouseHookApp/MouseHookApp/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/getDomainLinks/AUTHORS:
--------------------------------------------------------------------------------
1 | Monte Ohrt
2 | - main Snoopy work
3 |
4 | Andrei Zmievski
5 | - miscellaneous fixes
6 | - read timeout support
7 | - file submission capability
8 |
9 | Gene Wood
10 | - bug fixes
11 | - security fixes
12 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Page.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// The 'Product' abstract class
10 | ///
11 | abstract class Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/getDomainLinks/TODO:
--------------------------------------------------------------------------------
1 | * fetch other types of protocols such as ftp, nntp, gopher, etc.
2 | * post forms with http file upload (I didn't have this need,
3 | but it should be fairly straightforward)
4 | * expand links, image tags, and form actions to fully
5 | qualified URLs
6 |
7 | Bugs
8 | ----
9 | * none known
10 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Page.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// The 'Product' abstract class
10 | ///
11 | abstract class Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/ResultsPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class ResultsPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/SkillsPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class SkillsPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/SummaryPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class SummaryPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/SkillsPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class SkillsPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/ConclusionPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class ConclusionPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/EducationPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class EducationPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/EducationPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class EducationPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/ResultsPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class ResultsPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/SummaryPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class SummaryPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/BibliographyPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class BibliographyPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/IntroductionPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class IntroductionPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/IVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// The 'Visitor' interface
9 | ///
10 | interface IVisitor
11 | {
12 | void Visit(Element element);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/ConclusionPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class ConclusionPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Observer/IInvestor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 | ///
8 | /// The 'Observer' interface
9 | ///
10 | interface IInvestor
11 | {
12 | void Update(Stock stock);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/BibliographyPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class BibliographyPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/IntroductionPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteProduct' class
10 | ///
11 | class IntroductionPage : Page
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Observer/IInvestor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 | ///
8 | /// The 'Observer' interface
9 | ///
10 | interface IInvestor
11 | {
12 | void Update(Stock stock);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/IVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// The 'Visitor' interface
9 | ///
10 | interface IVisitor
11 | {
12 | void Visit(Element element);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Iterator/IAbstractCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 |
8 | ///
9 | /// The 'Aggregate' interface
10 | ///
11 | interface IAbstractCollection
12 | {
13 | Iterator CreateIterator();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/Element.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// The 'Element' abstract class
9 | ///
10 | abstract class Element
11 | {
12 | public abstract void Accept(IVisitor visitor);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/Element.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// The 'Element' abstract class
9 | ///
10 | abstract class Element
11 | {
12 | public abstract void Accept(IVisitor visitor);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Iterator/IAbstractCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 |
8 | ///
9 | /// The 'Aggregate' interface
10 | ///
11 | interface IAbstractCollection
12 | {
13 | Iterator CreateIterator();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/SortStrategy.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// The 'Strategy' abstract class
9 | ///
10 | abstract class SortStrategy
11 | {
12 | public abstract void Sort(List list);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Strategy/SortStrategy.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// The 'Strategy' abstract class
9 | ///
10 | abstract class SortStrategy
11 | {
12 | public abstract void Sort(List list);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DesignPattern/Prototype/ColorPrototype.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | ///
9 | /// The 'Prototype' abstract class
10 | ///
11 | abstract class ColorPrototype
12 | {
13 | public abstract ColorPrototype Clone();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Prototype/ColorPrototype.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | ///
9 | /// The 'Prototype' abstract class
10 | ///
11 | abstract class ColorPrototype
12 | {
13 | public abstract ColorPrototype Clone();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/DesignPattern/Command/Command.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Command
6 | {
7 | ///
8 | /// The 'Command' abstract class
9 | ///
10 | abstract class Command
11 | {
12 | public abstract void Execute();
13 | public abstract void UnExecute();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/regexp_example/posix_perl.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "regexp"
5 | "fmt"
6 | )
7 |
8 | func main() {
9 | var origin1 = `tt`
10 | var reg = `t\z`
11 |
12 | matches1 := regexp.MustCompile(reg).FindString(origin1)
13 | fmt.Println(matches1)
14 |
15 | /*
16 | matches2 := regexp.MustCompilePOSIX(reg).FindString(origin1)
17 | fmt.Println(matches2)
18 | */
19 | }
--------------------------------------------------------------------------------
/DesignPattern/Backup/Command/Command.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Command
6 | {
7 | ///
8 | /// The 'Command' abstract class
9 | ///
10 | abstract class Command
11 | {
12 | public abstract void Execute();
13 | public abstract void UnExecute();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/url_example/url.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "net/url"
5 | "fmt"
6 | )
7 |
8 | func main() {
9 | u, _ := url.Parse("http://bing.com/search?q=dotnet")
10 |
11 | fmt.Println(u.Query())
12 |
13 | fmt.Println(u.RequestURI())
14 |
15 | fmt.Println(u.Scheme + "//" + u.Host)
16 |
17 | /*
18 | map[q:[dotnet]]
19 | /search?q=dotnet
20 | http//bing.com
21 | */
22 | }
--------------------------------------------------------------------------------
/DesignPattern/Iterator/IAbstractIterator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 | ///
8 | /// The 'Iterator' interface
9 | ///
10 | interface IAbstractIterator
11 | {
12 | Item First();
13 | Item Next();
14 | bool IsDone { get; }
15 | Item CurrentItem { get; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/obj/Debug/Proxy.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Proxy\bin\Debug\Proxy.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Proxy\bin\Debug\Proxy.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Proxy\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Proxy\obj\Debug\Proxy.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Proxy\obj\Debug\Proxy.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/State/obj/Debug/State.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\State\bin\Debug\State.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\State\bin\Debug\State.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\State\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\State\obj\Debug\State.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\State\obj\Debug\State.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Iterator/IAbstractIterator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 | ///
8 | /// The 'Iterator' interface
9 | ///
10 | interface IAbstractIterator
11 | {
12 | Item First();
13 | Item Next();
14 | bool IsDone { get; }
15 | Item CurrentItem { get; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DesignPattern/Observer/IBM.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 |
8 | ///
9 | /// The 'ConcreteSubject' class
10 | ///
11 | class IBM : Stock
12 | {
13 | // Constructor
14 | public IBM(string symbol, double price)
15 | : base(symbol, price)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Bridge/obj/Debug/Bridge.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Bridge\bin\Debug\Bridge.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Bridge\bin\Debug\Bridge.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Bridge\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Bridge\obj\Debug\Bridge.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Bridge\obj\Debug\Bridge.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/obj/Debug/Facade.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Facade\bin\Debug\Facade.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Facade\bin\Debug\Facade.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Facade\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Facade\obj\Debug\Facade.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Facade\obj\Debug\Facade.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Observer/IBM.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 |
8 | ///
9 | /// The 'ConcreteSubject' class
10 | ///
11 | class IBM : Stock
12 | {
13 | // Constructor
14 | public IBM(string symbol, double price)
15 | : base(symbol, price)
16 | {
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Command/obj/Debug/Command.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Command\bin\Debug\Command.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Command\bin\Debug\Command.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Command\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Command\obj\Debug\Command.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Command\obj\Debug\Command.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Memento/obj/Debug/Memento.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Memento\bin\Debug\Memento.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Memento\bin\Debug\Memento.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Memento\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Memento\obj\Debug\Memento.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Memento\obj\Debug\Memento.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/obj/Debug/Visitor.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Visitor\bin\Debug\Visitor.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Visitor\bin\Debug\Visitor.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Visitor\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Visitor\obj\Debug\Visitor.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Visitor\obj\Debug\Visitor.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Loan.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | ///
9 | /// The 'Subsystem ClassC' class
10 | ///
11 | class Loan
12 | {
13 | public bool HasNoBadLoans(Customer c)
14 | {
15 | Console.WriteLine("Check loans for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/go-wssocket/client/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Loan.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | ///
9 | /// The 'Subsystem ClassC' class
10 | ///
11 | class Loan
12 | {
13 | public bool HasNoBadLoans(Customer c)
14 | {
15 | Console.WriteLine("Check loans for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Credit.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | ///
9 | /// The 'Subsystem ClassB' class
10 | ///
11 | class Credit
12 | {
13 | public bool HasGoodCredit(Customer c)
14 | {
15 | Console.WriteLine("Check credit for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Iterator/obj/Debug/Iterator.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Iterator\obj\Debug\ResolveAssemblyReference.cache
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Iterator\bin\Debug\Iterator.exe
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Iterator\bin\Debug\Iterator.pdb
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Iterator\obj\Debug\Iterator.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Iterator\obj\Debug\Iterator.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Mediator/obj/Debug/Mediator.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Mediator\bin\Debug\Mediator.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Mediator\bin\Debug\Mediator.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Mediator\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Mediator\obj\Debug\Mediator.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Mediator\obj\Debug\Mediator.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/IMath.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'Subject interface
10 | ///
11 | public interface IMath
12 | {
13 | double Add(double x, double y);
14 | double Sub(double x, double y);
15 | double Mul(double x, double y);
16 | double Div(double x, double y);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/obj/Debug/Strategy.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Strategy\bin\Debug\Strategy.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Strategy\bin\Debug\Strategy.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Strategy\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Strategy\obj\Debug\Strategy.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Strategy\obj\Debug\Strategy.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Credit.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | ///
9 | /// The 'Subsystem ClassB' class
10 | ///
11 | class Credit
12 | {
13 | public bool HasGoodCredit(Customer c)
14 | {
15 | Console.WriteLine("Check credit for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Proxy/IMath.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'Subject interface
10 | ///
11 | public interface IMath
12 | {
13 | double Add(double x, double y);
14 | double Sub(double x, double y);
15 | double Mul(double x, double y);
16 | double Div(double x, double y);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/Shop.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class Shop
9 | {
10 | public void Construct(VehicleBuilder vehicleBuilder)
11 | {
12 | vehicleBuilder.BuildFrame();
13 | vehicleBuilder.BuildEngine();
14 | vehicleBuilder.BuildWheel();
15 | vehicleBuilder.BuildDoors();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Composite/obj/Debug/Composite.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Composite\obj\Debug\ResolveAssemblyReference.cache
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Composite\bin\Debug\Composite.exe
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Composite\bin\Debug\Composite.pdb
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Composite\obj\Debug\Composite.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Composite\obj\Debug\Composite.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Decorator/obj/Debug/Decorator.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Decorator\bin\Debug\Decorator.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Decorator\bin\Debug\Decorator.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Decorator\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Decorator\obj\Debug\Decorator.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Decorator\obj\Debug\Decorator.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Bank.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Facade
6 | {
7 |
8 | ///
9 | /// The 'Subsystem ClassA' class
10 | ///
11 | class Bank
12 | {
13 | public bool HasSufficientSavings(Customer c, int amount)
14 | {
15 | Console.WriteLine("Check bank for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/obj/Debug/Flyweight.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Flyweight\bin\Debug\Flyweight.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Flyweight\bin\Debug\Flyweight.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Flyweight\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Flyweight\obj\Debug\Flyweight.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Flyweight\obj\Debug\Flyweight.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/Shop.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class Shop
9 | {
10 | public void Construct(VehicleBuilder vehicleBuilder)
11 | {
12 | vehicleBuilder.BuildFrame();
13 | vehicleBuilder.BuildEngine();
14 | vehicleBuilder.BuildWheel();
15 | vehicleBuilder.BuildDoors();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Bank.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Facade
6 | {
7 |
8 | ///
9 | /// The 'Subsystem ClassA' class
10 | ///
11 | class Bank
12 | {
13 | public bool HasSufficientSavings(Customer c, int amount)
14 | {
15 | Console.WriteLine("Check bank for " + c.Name);
16 | return true;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Mediator/AbstractChatroom.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 |
8 | ///
9 | /// The 'Mediator' abstract class
10 | ///
11 | abstract class AbstractChatroom
12 | {
13 | public abstract void Register(Participant participant);
14 | public abstract void Send(
15 | string from, string to, string message);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/osxair/make:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | if [ ! -f make ]; then
4 | echo 'make must be run within its container folder' 1>&2
5 | exit 1
6 | fi
7 |
8 | export CGO_ENABLED=0
9 | export GOROOT=/Users/yejianfeng/software/go
10 |
11 | OLDPATH="$PATH"
12 | export PATH=$PATH:$GOROOT/bin
13 | OLDGOPATH="$GOPATH"
14 | export GOPATH=`pwd`
15 |
16 | go install osxair_client
17 | go install osxair_web
18 |
19 | export GOPATH="$OLDGOPATH"
20 | export PATH="$OLDPATH"
21 |
22 | echo 'finished.'
23 |
--------------------------------------------------------------------------------
/piccheck/skillpic.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "io/ioutil"
5 | "strings"
6 | "os"
7 | )
8 |
9 | // 将目录中的所有文件名前面的0去掉
10 | func main() {
11 | skillfolder := `C:\Users\yejianfeng\Desktop\mxm\skill\`
12 | os.Chdir(skillfolder)
13 | // 获取所有文件
14 | files, _ := ioutil.ReadDir(skillfolder)
15 | for _,file := range files {
16 | if file.IsDir() {
17 | continue
18 | } else {
19 | name := file.Name()
20 | os.Rename(name, strings.TrimLeft(name, "0"))
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Mediator/AbstractChatroom.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 |
8 | ///
9 | /// The 'Mediator' abstract class
10 | ///
11 | abstract class AbstractChatroom
12 | {
13 | public abstract void Register(Participant participant);
14 | public abstract void Send(
15 | string from, string to, string message);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/QuickSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class QuickSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | list.Sort(); // Default is Quicksort
15 | Console.WriteLine("QuickSorted list ");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/ShellSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class ShellSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | //list.ShellSort(); not-implemented
15 | Console.WriteLine("ShellSorted list ");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Strategy/QuickSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class QuickSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | list.Sort(); // Default is Quicksort
15 | Console.WriteLine("QuickSorted list ");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Strategy/ShellSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class ShellSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | //list.ShellSort(); not-implemented
15 | Console.WriteLine("ShellSorted list ");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Bridge/Bridge.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Facade.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Memento/ProspectMemory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Memento
6 | {
7 | ///
8 | /// The 'Caretaker' class
9 | ///
10 | class ProspectMemory
11 | {
12 | private Memento _memento;
13 |
14 | // Property
15 | public Memento Memento
16 | {
17 | set { _memento = value; }
18 | get { return _memento; }
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/Proxy.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/State/State.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/MergeSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class MergeSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | //list.MergeSort(); not-implemented
15 | Console.WriteLine("MergeSorted list ");
16 | }
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Adapter/Adapter.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Strategy/MergeSort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Strategy
6 | {
7 | ///
8 | /// A 'ConcreteStrategy' class
9 | ///
10 | class MergeSort : SortStrategy
11 | {
12 | public override void Sort(List list)
13 | {
14 | //list.MergeSort(); not-implemented
15 | Console.WriteLine("MergeSorted list ");
16 | }
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/Builder.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Command/Command.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Composite/Composite.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Decorator/Decorator.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/Flyweight.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Iterator/Iterator.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Mediator/Mediator.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Memento/Memento.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Observer/Observer.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Prototype/Prototype.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Singleton/Singleton.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Strategy/Strategy.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/Visitor.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Memento/ProspectMemory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Memento
6 | {
7 | ///
8 | /// The 'Caretaker' class
9 | ///
10 | class ProspectMemory
11 | {
12 | private Memento _memento;
13 |
14 | // Property
15 | public Memento Memento
16 | {
17 | set { _memento = value; }
18 | get { return _memento; }
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/Interpreter.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Factory Method.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/AbstractFactory.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Template Method/Template Method.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/Chain of Responsibility.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
--------------------------------------------------------------------------------
/DesignPattern/Template Method/obj/Debug/Template Method.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Template Method\obj\Debug\ResolveAssemblyReference.cache
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Template Method\bin\Debug\Template Method.exe
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Template Method\bin\Debug\Template Method.pdb
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Template Method\obj\Debug\Template Method.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Template Method\obj\Debug\Template Method.pdb
6 |
--------------------------------------------------------------------------------
/go-wssocket/accept.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "io"
5 | "log"
6 | "encoding/base64"
7 | "crypto/sha1"
8 | )
9 |
10 | func main() {
11 | secWebsocketKey := "4nxvdy1H63gBcE39fzbddw=="
12 |
13 | guid := "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
14 |
15 | h := sha1.New()
16 | log.Println("accept raw:", secWebsocketKey + guid)
17 |
18 | io.WriteString(h, secWebsocketKey + guid)
19 | accept := make([]byte, 28)
20 | base64.StdEncoding.Encode(accept, h.Sum(nil))
21 |
22 | log.Println(string(accept))
23 | }
--------------------------------------------------------------------------------
/osxair/src/osxair_client/exec.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "bytes"
5 | "os/exec"
6 | "log"
7 | )
8 |
9 | func Run(dir string, args ...string) ([]byte, error) {
10 | var buf bytes.Buffer
11 | cmd := exec.Command(args[0], args[1:]...)
12 |
13 | cmd.Dir = dir
14 | cmd.Stdout = &buf
15 | cmd.Stderr = cmd.Stdout
16 | log.Println("run cmd:", cmd.Args)
17 |
18 | if err := cmd.Start(); err != nil {
19 | return nil, err
20 | }
21 |
22 | // Wait for the command. Clean up,
23 | err := cmd.Wait()
24 | return buf.Bytes(), err
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Report.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class Report : Document
9 | {
10 | public override void CreatePages()
11 | {
12 | Pages.Add(new IntroductionPage());
13 | Pages.Add(new ResultsPage());
14 | Pages.Add(new ConclusionPage());
15 | Pages.Add(new SummaryPage());
16 | Pages.Add(new BibliographyPage());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Report.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class Report : Document
9 | {
10 | public override void CreatePages()
11 | {
12 | Pages.Add(new IntroductionPage());
13 | Pages.Add(new ResultsPage());
14 | Pages.Add(new ConclusionPage());
15 | Pages.Add(new SummaryPage());
16 | Pages.Add(new BibliographyPage());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/Math.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'RealSubject' class
10 | ///
11 | class Math : IMath
12 | {
13 | public double Add(double x, double y) { return x + y; }
14 | public double Sub(double x, double y) { return x - y; }
15 | public double Mul(double x, double y) { return x * y; }
16 | public double Div(double x, double y) { return x / y; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/bin/Debug/Proxy.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Adapter/bin/Debug/Adapter.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Proxy/Math.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'RealSubject' class
10 | ///
11 | class Math : IMath
12 | {
13 | public double Add(double x, double y) { return x + y; }
14 | public double Sub(double x, double y) { return x - y; }
15 | public double Mul(double x, double y) { return x * y; }
16 | public double Div(double x, double y) { return x / y; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/DesignPattern/Bridge/bin/Debug/Bridge.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/bin/Debug/Builder.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Observer/bin/Debug/Observer.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SocketIM/SocketIM/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace SocketIM
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/bin/Debug/Flyweight.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Prototype/bin/Debug/Prototype.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Singleton/bin/Debug/Singleton.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/VehicleBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | abstract class VehicleBuilder
9 | {
10 | protected Vehicle vehicle;
11 |
12 | public Vehicle Vehicle
13 | {
14 | get { return vehicle; }
15 | }
16 |
17 | public abstract void BuildFrame();
18 | public abstract void BuildEngine();
19 | public abstract void BuildWheel();
20 | public abstract void BuildDoors();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/bin/Debug/Interpreter.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/bin/Debug/AbstractFactory.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Resume.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteCreator' class
10 | ///
11 | class Resume : Document
12 | {
13 | // Factory Method implementation
14 | public override void CreatePages()
15 | {
16 | Pages.Add(new SkillsPage());
17 | Pages.Add(new EducationPage());
18 | Pages.Add(new ExperiencePage());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Iterator/Item.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 |
8 | ///
9 | /// A collection item
10 | ///
11 | class Item
12 | {
13 | private string _name;
14 |
15 | // Constructor
16 | public Item(string name)
17 | {
18 | this._name = name;
19 | }
20 |
21 | // Gets name
22 | public string Name
23 | {
24 | get { return _name; }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/VehicleBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | abstract class VehicleBuilder
9 | {
10 | protected Vehicle vehicle;
11 |
12 | public Vehicle Vehicle
13 | {
14 | get { return vehicle; }
15 | }
16 |
17 | public abstract void BuildFrame();
18 | public abstract void BuildEngine();
19 | public abstract void BuildWheel();
20 | public abstract void BuildDoors();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Resume.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// A 'ConcreteCreator' class
10 | ///
11 | class Resume : Document
12 | {
13 | // Factory Method implementation
14 | public override void CreatePages()
15 | {
16 | Pages.Add(new SkillsPage());
17 | Pages.Add(new EducationPage());
18 | Pages.Add(new ExperiencePage());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Decorator/LibraryItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Decorator
7 | {
8 | ///
9 | /// The 'Component' abstract class
10 | ///
11 | abstract class LibraryItem
12 | {
13 | private int _numCopies;
14 |
15 | // Property
16 | public int NumCopies
17 | {
18 | get { return _numCopies; }
19 | set { _numCopies = value; }
20 | }
21 |
22 | public abstract void Display();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/Character.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// The 'Flyweight' abstract class
10 | ///
11 | abstract class Character
12 | {
13 | protected char symbol;
14 | protected int width;
15 | protected int height;
16 | protected int ascent;
17 | protected int descent;
18 | protected int pointSize;
19 |
20 | public abstract void Display(int pointSize);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Decorator/LibraryItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Decorator
7 | {
8 | ///
9 | /// The 'Component' abstract class
10 | ///
11 | abstract class LibraryItem
12 | {
13 | private int _numCopies;
14 |
15 | // Property
16 | public int NumCopies
17 | {
18 | get { return _numCopies; }
19 | set { _numCopies = value; }
20 | }
21 |
22 | public abstract void Display();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Iterator/Item.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Iterator
6 | {
7 |
8 | ///
9 | /// A collection item
10 | ///
11 | class Item
12 | {
13 | private string _name;
14 |
15 | // Constructor
16 | public Item(string name)
17 | {
18 | this._name = name;
19 | }
20 |
21 | // Gets name
22 | public string Name
23 | {
24 | get { return _name; }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/Approver.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Chain_of_Responsibility
7 | {
8 | ///
9 | /// The 'Handler' abstract class
10 | ///
11 | abstract class Approver
12 | {
13 | protected Approver successor;
14 |
15 | public void SetSuccessor(Approver successor)
16 | {
17 | this.successor = successor;
18 | }
19 |
20 | public abstract void ProcessRequest(Purchase purchase);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Chain of Responsibility/Approver.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Chain_of_Responsibility
7 | {
8 | ///
9 | /// The 'Handler' abstract class
10 | ///
11 | abstract class Approver
12 | {
13 | protected Approver successor;
14 |
15 | public void SetSuccessor(Approver successor)
16 | {
17 | this.successor = successor;
18 | }
19 |
20 | public abstract void ProcessRequest(Purchase purchase);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Flyweight/Character.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// The 'Flyweight' abstract class
10 | ///
11 | abstract class Character
12 | {
13 | protected char symbol;
14 | protected int width;
15 | protected int height;
16 | protected int ascent;
17 | protected int descent;
18 | protected int pointSize;
19 |
20 | public abstract void Display(int pointSize);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 |
9 | ///
10 | /// Customer class
11 | ///
12 | class Customer
13 | {
14 | private string _name;
15 |
16 | // Constructor
17 | public Customer(string name)
18 | {
19 | this._name = name;
20 | }
21 |
22 | // Gets the name
23 | public string Name
24 | {
25 | get { return _name; }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/MouseHookApp/MouseHookApp/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace MouseHookApp
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/go-wssocket/client/websocket.js:
--------------------------------------------------------------------------------
1 | var socket;
2 |
3 | $("#connect").click(function(event){
4 | socket = new WebSocket("ws://127.0.0.1:8000");
5 |
6 | socket.onopen = function(){
7 | alert("Socket has been opened");
8 | }
9 |
10 | socket.onmessage = function(msg){
11 | alert(msg.data);
12 | }
13 |
14 | socket.onclose = function() {
15 | alert("Socket has been closed");
16 | }
17 | });
18 |
19 | $("#send").click(function(event){
20 | socket.send("send from client");
21 | });
22 |
23 | $("#close").click(function(event){
24 | socket.close();
25 | })
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Customer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 |
9 | ///
10 | /// Customer class
11 | ///
12 | class Customer
13 | {
14 | private string _name;
15 |
16 | // Constructor
17 | public Customer(string name)
18 | {
19 | this._name = name;
20 | }
21 |
22 | // Gets the name
23 | public string Name
24 | {
25 | get { return _name; }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Prototype/ColorManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | ///
9 | /// Prototype manager
10 | ///
11 | class ColorManager
12 | {
13 | private Dictionary _colors = new Dictionary();
14 |
15 | //Indexer
16 | public ColorPrototype this[string key]
17 | {
18 | get { return _colors[key]; }
19 | set { _colors.Add(key, value); }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Prototype/ColorManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | ///
9 | /// Prototype manager
10 | ///
11 | class ColorManager
12 | {
13 | private Dictionary _colors = new Dictionary();
14 |
15 | //Indexer
16 | public ColorPrototype this[string key]
17 | {
18 | get { return _colors[key]; }
19 | set { _colors.Add(key, value); }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Bridge/DataObject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Bridge
7 | {
8 | ///
9 | /// The 'Implementor' abstract class
10 | ///
11 | abstract class DataObject
12 | {
13 | public abstract void NextRecord();
14 | public abstract void PriorRecord();
15 | public abstract void AddRecord(string name);
16 | public abstract void DeleteRecord(string name);
17 | public abstract void ShowRecord();
18 | public abstract void ShowAllRecords();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Document.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// The 'Creator' abstract class
10 | ///
11 | abstract class Document
12 | {
13 | private List _pages = new List();
14 |
15 | public Document()
16 | {
17 | this.CreatePages();
18 | }
19 |
20 | public List Pages = new List();
21 |
22 | //Factory Method
23 | public abstract void CreatePages();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Bridge/DataObject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Bridge
7 | {
8 | ///
9 | /// The 'Implementor' abstract class
10 | ///
11 | abstract class DataObject
12 | {
13 | public abstract void NextRecord();
14 | public abstract void PriorRecord();
15 | public abstract void AddRecord(string name);
16 | public abstract void DeleteRecord(string name);
17 | public abstract void ShowRecord();
18 | public abstract void ShowAllRecords();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/obj/Debug/Chain of Responsibility.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Chain of Responsibility\bin\Debug\Chain of Responsibility.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Chain of Responsibility\bin\Debug\Chain of Responsibility.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Chain of Responsibility\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Chain of Responsibility\obj\Debug\Chain of Responsibility.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Chain of Responsibility\obj\Debug\Chain of Responsibility.pdb
6 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/obj/Debug/Interpreter.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Interpreter\bin\Debug\Interpreter.exe
2 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Interpreter\bin\Debug\Interpreter.pdb
3 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Interpreter\obj\Debug\ResolveAssemblyReference.cache
4 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Interpreter\obj\Debug\Interpreter.exe
5 | C:\Users\v-jiaye\Desktop\面试资源\DesignPattern\Interpreter\obj\Debug\Interpreter.pdb
6 | F:\面试资源\DesignPattern\Interpreter\obj\Debug\Interpreter.exe
7 | F:\面试资源\DesignPattern\Interpreter\obj\Debug\Interpreter.pdb
8 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Document.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | ///
9 | /// The 'Creator' abstract class
10 | ///
11 | abstract class Document
12 | {
13 | private List _pages = new List();
14 |
15 | public Document()
16 | {
17 | this.CreatePages();
18 | }
19 |
20 | public List Pages = new List();
21 |
22 | //Factory Method
23 | public abstract void CreatePages();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Mediator/Beatle.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 |
8 | ///
9 | /// A 'ConcreteColleague' class
10 | ///
11 | class Beatle : Participant
12 | {
13 | // Constructor
14 | public Beatle(string name)
15 | : base(name)
16 | {
17 | }
18 |
19 | public override void Receive(string from, string message)
20 | {
21 | Console.Write("To a Beatle: ");
22 | base.Receive(from, message);
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Mediator/Beatle.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 |
8 | ///
9 | /// A 'ConcreteColleague' class
10 | ///
11 | class Beatle : Participant
12 | {
13 | // Constructor
14 | public Beatle(string name)
15 | : base(name)
16 | {
17 | }
18 |
19 | public override void Receive(string from, string message)
20 | {
21 | Console.Write("To a Beatle: ");
22 | base.Receive(from, message);
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Mediator/NonBeatle.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 | ///
8 | /// A 'ConcreteColleague' class
9 | ///
10 | class NonBeatle : Participant
11 | {
12 | // Constructor
13 | public NonBeatle(string name)
14 | : base(name)
15 | {
16 | }
17 |
18 | public override void Receive(string from, string message)
19 | {
20 | Console.Write("To a non-Beatle: ");
21 | base.Receive(from, message);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Mediator/NonBeatle.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Mediator
6 | {
7 | ///
8 | /// A 'ConcreteColleague' class
9 | ///
10 | class NonBeatle : Participant
11 | {
12 | // Constructor
13 | public NonBeatle(string name)
14 | : base(name)
15 | {
16 | }
17 |
18 | public override void Receive(string from, string message)
19 | {
20 | Console.Write("To a non-Beatle: ");
21 | base.Receive(from, message);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/osxair/src/osxair_web/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "log"
5 | "net/http"
6 | "os"
7 | "os/exec"
8 | "path"
9 | )
10 |
11 | func main() {
12 | file, err := exec.LookPath(os.Args[0])
13 | if err != nil {
14 | panic(err)
15 | }
16 |
17 | dir, _ := path.Split(file)
18 | os.Chdir(dir + "/../src/osxair_web/public")
19 | wd, err := os.Getwd()
20 | if err != nil {
21 | panic(err)
22 | }
23 |
24 | log.Println("please listen in port 3200")
25 | err = http.ListenAndServe(":3200", http.FileServer(http.Dir(wd)))
26 | if err != nil {
27 | panic(err)
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace AbstractFactory
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | ContinentFactory africa = new AfricaFactory();
13 | AnimalWorld world = new AnimalWorld(africa);
14 | world.RunFoodChain();
15 |
16 | ContinentFactory america = new AmericaFactory();
17 | world = new AnimalWorld(america);
18 | world.RunFoodChain();
19 |
20 | Console.ReadKey();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DesignPattern/Decorator/Decorator .cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Decorator
7 | {
8 | ///
9 | /// The 'Decorator' abstract class
10 | ///
11 | abstract class Decorator : LibraryItem
12 | {
13 | protected LibraryItem libraryItem;
14 |
15 | // Constructor
16 | public Decorator(LibraryItem libraryItem)
17 | {
18 | this.libraryItem = libraryItem;
19 | }
20 |
21 | public override void Display()
22 | {
23 | libraryItem.Display();
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Decorator/Decorator .cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Decorator
7 | {
8 | ///
9 | /// The 'Decorator' abstract class
10 | ///
11 | abstract class Decorator : LibraryItem
12 | {
13 | protected LibraryItem libraryItem;
14 |
15 | // Constructor
16 | public Decorator(LibraryItem libraryItem)
17 | {
18 | this.libraryItem = libraryItem;
19 | }
20 |
21 | public override void Display()
22 | {
23 | libraryItem.Display();
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/AbstractFactory/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace AbstractFactory
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | ContinentFactory africa = new AfricaFactory();
13 | AnimalWorld world = new AnimalWorld(africa);
14 | world.RunFoodChain();
15 |
16 | ContinentFactory america = new AmericaFactory();
17 | world = new AnimalWorld(america);
18 | world.RunFoodChain();
19 |
20 | Console.ReadKey();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DesignPattern/Template Method/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Template_Method
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | DataAccessObject daoCategories = new Categories();
15 | daoCategories.Run();
16 |
17 | DataAccessObject daoProducts = new Products();
18 | daoProducts.Run();
19 |
20 | // Wait for user
21 | Console.ReadKey();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Composite/DrawingElement.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Composite
7 | {
8 | ///
9 | /// The 'Component' Treenode
10 | ///
11 | abstract class DrawingElement
12 | {
13 | protected string _name;
14 |
15 | // Constructor
16 | public DrawingElement(string name)
17 | {
18 | this._name = name;
19 | }
20 |
21 | public abstract void Add(DrawingElement d);
22 | public abstract void Remove(DrawingElement d);
23 | public abstract void Display(int indent);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/VacationVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// A 'ConcreteVisitor' class
9 | ///
10 | class VacationVisitor : IVisitor
11 | {
12 | public void Visit(Element element)
13 | {
14 | Employee employee = element as Employee;
15 |
16 | // Provide 3 extra vacation days
17 | Console.WriteLine("{0} {1}'s new vacation days: {2}",
18 | employee.GetType().Name, employee.Name,
19 | employee.VacationDays);
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Composite/DrawingElement.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Composite
7 | {
8 | ///
9 | /// The 'Component' Treenode
10 | ///
11 | abstract class DrawingElement
12 | {
13 | protected string _name;
14 |
15 | // Constructor
16 | public DrawingElement(string name)
17 | {
18 | this._name = name;
19 | }
20 |
21 | public abstract void Add(DrawingElement d);
22 | public abstract void Remove(DrawingElement d);
23 | public abstract void Display(int indent);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Template Method/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Template_Method
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | DataAccessObject daoCategories = new Categories();
15 | daoCategories.Run();
16 |
17 | DataAccessObject daoProducts = new Products();
18 | daoProducts.Run();
19 |
20 | // Wait for user
21 | Console.ReadKey();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/VacationVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | ///
8 | /// A 'ConcreteVisitor' class
9 | ///
10 | class VacationVisitor : IVisitor
11 | {
12 | public void Visit(Element element)
13 | {
14 | Employee employee = element as Employee;
15 |
16 | // Provide 3 extra vacation days
17 | Console.WriteLine("{0} {1}'s new vacation days: {2}",
18 | employee.GetType().Name, employee.Name,
19 | employee.VacationDays);
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/IncomeVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | ///
9 | /// A 'ConcreteVisitor' class
10 | ///
11 | class IncomeVisitor : IVisitor
12 | {
13 | public void Visit(Element element)
14 | {
15 | Employee employee = element as Employee;
16 |
17 | // Provide 10% pay raise
18 | employee.Income *= 1.10;
19 | Console.WriteLine("{0} {1}'s new income: {2:C}",
20 | employee.GetType().Name, employee.Name,
21 | employee.Income);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/AbstractFactory/AnimalWorld.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace AbstractFactory
7 | {
8 | ///
9 | /// client
10 | ///
11 | class AnimalWorld
12 | {
13 | private Herbivor _herbivor;
14 | private Carnivore _carnivore;
15 |
16 | public AnimalWorld(ContinentFactory factory)
17 | {
18 | _carnivore = factory.CreateCarnivore();
19 | _herbivor = factory.CreateHerbivore();
20 | }
21 |
22 | public void RunFoodChain()
23 | {
24 | _carnivore.Eat(_herbivor);
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/IncomeVisitor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | ///
9 | /// A 'ConcreteVisitor' class
10 | ///
11 | class IncomeVisitor : IVisitor
12 | {
13 | public void Visit(Element element)
14 | {
15 | Employee employee = element as Employee;
16 |
17 | // Provide 10% pay raise
18 | employee.Income *= 1.10;
19 | Console.WriteLine("{0} {1}'s new income: {2:C}",
20 | employee.GetType().Name, employee.Name,
21 | employee.Income);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/AbstractFactory/AnimalWorld.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace AbstractFactory
7 | {
8 | ///
9 | /// client
10 | ///
11 | class AnimalWorld
12 | {
13 | private Herbivor _herbivor;
14 | private Carnivore _carnivore;
15 |
16 | public AnimalWorld(ContinentFactory factory)
17 | {
18 | _carnivore = factory.CreateCarnivore();
19 | _herbivor = factory.CreateHerbivore();
20 | }
21 |
22 | public void RunFoodChain()
23 | {
24 | _carnivore.Eat(_herbivor);
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/TenExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Ten checks for X, XL, L and XC
12 | ///
13 | ///
14 | class TenExpression : Expression
15 | {
16 | public override string One() { return "X"; }
17 | public override string Four() { return "XL"; }
18 | public override string Five() { return "L"; }
19 | public override string Nine() { return "XC"; }
20 | public override int Multiplier() { return 10; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/gomysqltest/mymysql/mymysql_test.go:
--------------------------------------------------------------------------------
1 | package mymysql
2 |
3 | import(
4 | "testing"
5 | )
6 |
7 | func Test_getAdmin(t *testing.T) {
8 | username, _ := getAdmin(1)
9 |
10 | if (username != "admin") {
11 | t.Error("getAdmin get data error")
12 | }
13 | }
14 |
15 |
16 | func Test_insertAdmin(t *testing.T) {
17 | username2 := "admin2"
18 | password2 := "password2"
19 |
20 | insertAdmin(username2, password2);
21 | }
22 |
23 | func Test_updateAdmin(t *testing.T) {
24 | adminid := 1
25 | password2 := "password2"
26 |
27 | updateAdmin(adminid, password2)
28 |
29 | _, password := getAdmin(adminid)
30 | if (password != password2) {
31 | t.Error("updateAdmin error")
32 | }
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/TenExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Ten checks for X, XL, L and XC
12 | ///
13 | ///
14 | class TenExpression : Expression
15 | {
16 | public override string One() { return "X"; }
17 | public override string Four() { return "XL"; }
18 | public override string Five() { return "L"; }
19 | public override string Nine() { return "XC"; }
20 | public override int Multiplier() { return 10; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/HundredExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Hundred checks C, CD, D or CM
12 | ///
13 | ///
14 | class HundredExpression : Expression
15 | {
16 | public override string One() { return "C"; }
17 | public override string Four() { return "CD"; }
18 | public override string Five() { return "D"; }
19 | public override string Nine() { return "CM"; }
20 | public override int Multiplier() { return 100; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/HundredExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Hundred checks C, CD, D or CM
12 | ///
13 | ///
14 | class HundredExpression : Expression
15 | {
16 | public override string One() { return "C"; }
17 | public override string Four() { return "CD"; }
18 | public override string Five() { return "D"; }
19 | public override string Nine() { return "CM"; }
20 | public override int Multiplier() { return 100; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/gomysqltest/gomysqldriver/gomysqldriver_test.go:
--------------------------------------------------------------------------------
1 | package gomysqldriver
2 |
3 | import(
4 | "testing"
5 | )
6 |
7 | func Test_getAdmin(t *testing.T) {
8 | username, _ := getAdmin(1)
9 |
10 | if (username != "admin") {
11 | t.Error("getAdmin get data error")
12 | }
13 | }
14 |
15 |
16 | func Test_insertAdmin(t *testing.T) {
17 | username2 := "admin2"
18 | password2 := "password2"
19 |
20 | insertAdmin(username2, password2);
21 | }
22 |
23 | func Test_updateAdmin(t *testing.T) {
24 | adminid := 1
25 | password2 := "password2"
26 |
27 | updateAdmin(adminid, password2)
28 |
29 | _, password := getAdmin(adminid)
30 | if (password != password2) {
31 | t.Error("updateAdmin error")
32 | }
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/DesignPattern/Adapter/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Adapter
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | Compound unknown = new Compound("Unknown");
13 | unknown.Display();
14 |
15 | Compound water = new RichCompound("Water");
16 | water.Display();
17 |
18 | Compound benzene = new RichCompound("Benzene");
19 | benzene.Display();
20 |
21 | Compound ethanol = new RichCompound("Ethanol");
22 | ethanol.Display();
23 |
24 | Console.ReadKey();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/OneExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 | ///
8 | /// A 'TerminalExpression' class
9 | ///
10 | /// One checks for I, II, III, IV, V, VI, VI, VII, VIII, IX
11 | ///
12 | ///
13 | class OneExpression : Expression
14 | {
15 | public override string One() { return "I"; }
16 | public override string Four() { return "IV"; }
17 | public override string Five() { return "V"; }
18 | public override string Nine() { return "IX"; }
19 | public override int Multiplier() { return 1; }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/ThousandExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Thousand checks for the Roman Numeral M
12 | ///
13 | ///
14 | class ThousandExpression : Expression
15 | {
16 | public override string One() { return "M"; }
17 | public override string Four() { return " "; }
18 | public override string Five() { return " "; }
19 | public override string Nine() { return " "; }
20 | public override int Multiplier() { return 1000; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Adapter/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Adapter
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | Compound unknown = new Compound("Unknown");
13 | unknown.Display();
14 |
15 | Compound water = new RichCompound("Water");
16 | water.Display();
17 |
18 | Compound benzene = new RichCompound("Benzene");
19 | benzene.Display();
20 |
21 | Compound ethanol = new RichCompound("Ethanol");
22 | ethanol.Display();
23 |
24 | Console.ReadKey();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/OneExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 | ///
8 | /// A 'TerminalExpression' class
9 | ///
10 | /// One checks for I, II, III, IV, V, VI, VI, VII, VIII, IX
11 | ///
12 | ///
13 | class OneExpression : Expression
14 | {
15 | public override string One() { return "I"; }
16 | public override string Four() { return "IV"; }
17 | public override string Five() { return "V"; }
18 | public override string Nine() { return "IX"; }
19 | public override int Multiplier() { return 1; }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/ThousandExpression.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 |
8 | ///
9 | /// A 'TerminalExpression' class
10 | ///
11 | /// Thousand checks for the Roman Numeral M
12 | ///
13 | ///
14 | class ThousandExpression : Expression
15 | {
16 | public override string One() { return "M"; }
17 | public override string Four() { return " "; }
18 | public override string Five() { return " "; }
19 | public override string Nine() { return " "; }
20 | public override int Multiplier() { return 1000; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/DesignPattern/Bridge/Customers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Bridge
7 | {
8 | ///
9 | /// The 'RefinedAbstraction' class
10 | ///
11 | class Customers:CustomersBase
12 | {
13 | // Constructor
14 | public Customers(string group)
15 | : base(group)
16 | {
17 | }
18 |
19 | public override void ShowAll()
20 | {
21 | // Add separator lines
22 | Console.WriteLine();
23 | Console.WriteLine("------------------------");
24 | base.ShowAll();
25 | Console.WriteLine("------------------------");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Bridge/Customers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Bridge
7 | {
8 | ///
9 | /// The 'RefinedAbstraction' class
10 | ///
11 | class Customers:CustomersBase
12 | {
13 | // Constructor
14 | public Customers(string group)
15 | : base(group)
16 | {
17 | }
18 |
19 | public override void ShowAll()
20 | {
21 | // Add separator lines
22 | Console.WriteLine();
23 | Console.WriteLine("------------------------");
24 | base.ShowAll();
25 | Console.WriteLine("------------------------");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/gomysqltest/mymysql/mymysql_b_test.go:
--------------------------------------------------------------------------------
1 | package mymysql
2 |
3 | import (
4 | "testing"
5 | "fmt"
6 | )
7 |
8 | func Benchmark_getAdmin(b *testing.B){
9 | for i := 0; i < b.N; i++ { //use b.N for looping
10 | getAdmin(1)
11 | }
12 | }
13 |
14 | func Benchmark_insertAdmin(b *testing.B) {
15 | var username string
16 | var password string
17 | var adminid int
18 | for i := 0; i < b.N; i++ {
19 | username = fmt.Sprintf("admin%v", adminid)
20 | password = fmt.Sprintf("password%v", adminid)
21 | insertAdmin(username, password)
22 | }
23 | }
24 |
25 | func Benchmark_updateAdmin(b *testing.B) {
26 | var password string
27 | for i := 0; i < b.N; i++ {
28 | password = fmt.Sprintf("password%v", i+2)
29 | updateAdmin(1, password)
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/osxair/src/code.google.com/p/go.net/websocket/examplehandler_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package websocket_test
6 |
7 | import (
8 | "io"
9 | "net/http"
10 |
11 | "code.google.com/p/go.net/websocket"
12 | )
13 |
14 | // Echo the data received on the WebSocket.
15 | func EchoServer(ws *websocket.Conn) {
16 | io.Copy(ws, ws)
17 | }
18 |
19 | // This example demonstrates a trivial echo server.
20 | func ExampleHandler() {
21 | http.Handle("/echo", websocket.Handler(EchoServer))
22 | err := http.ListenAndServe(":12345", nil)
23 | if err != nil {
24 | panic("ListenAndServe: " + err.Error())
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/Director.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Chain_of_Responsibility
6 | {
7 | ///
8 | /// The 'ConcreteHandler' class
9 | ///
10 | class Director : Approver
11 | {
12 | public override void ProcessRequest(Purchase purchase)
13 | {
14 | if (purchase.Amount < 10000.0)
15 | {
16 | Console.WriteLine("{0} approved request# {1}",
17 | this.GetType().Name, purchase.Number);
18 | }
19 | else if (successor != null)
20 | {
21 | successor.ProcessRequest(purchase);
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/gomysqltest/gomysqldriver/gomysqldriver_b_test.go:
--------------------------------------------------------------------------------
1 | package gomysqldriver
2 |
3 | import (
4 | "testing"
5 | "fmt"
6 | )
7 |
8 | func Benchmark_getAdmin(b *testing.B){
9 | for i := 0; i < b.N; i++ { //use b.N for looping
10 | getAdmin(1)
11 | }
12 | }
13 |
14 | func Benchmark_insertAdmin(b *testing.B) {
15 | var username string
16 | var password string
17 | var adminid int
18 | for i := 0; i < b.N; i++ {
19 | username = fmt.Sprintf("admin%v", adminid)
20 | password = fmt.Sprintf("password%v", adminid)
21 | insertAdmin(username, password)
22 | }
23 | }
24 |
25 | func Benchmark_updateAdmin(b *testing.B) {
26 | var password string
27 | for i := 0; i < b.N; i++ {
28 | password = fmt.Sprintf("password%v", i+2)
29 | updateAdmin(1, password)
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/employee types.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | // Three employee types
9 |
10 | class Clerk : Employee
11 | {
12 | // Constructor
13 | public Clerk()
14 | : base("Hank", 25000.0, 14)
15 | {
16 | }
17 | }
18 |
19 | class Director : Employee
20 | {
21 | // Constructor
22 | public Director()
23 | : base("Elly", 35000.0, 16)
24 | {
25 | }
26 | }
27 |
28 | class President : Employee
29 | {
30 | // Constructor
31 | public President()
32 | : base("Dick", 45000.0, 21)
33 | {
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/osxair/src/osxair_web/public/js/websocket.js:
--------------------------------------------------------------------------------
1 | var socket;
2 |
3 | socket = new WebSocket("ws://" + window.location.hostname + ":3201");
4 |
5 | socket.onopen = function() {
6 | alert("websocket on onpen")
7 | }
8 |
9 | socket.onmessage = function(msg) {
10 | alert("websocket on message:" + msg.data)
11 | }
12 |
13 | socket.onclose = function() {
14 | alert("websocket on close")
15 | }
16 |
17 | $("input[data-type=websocket-action]").click(function(event){
18 | event.preventDefault();
19 | var target = event.target;
20 | var action = $(target).attr("websocket-action");
21 | var params = $(target).attr("websocket-params");
22 |
23 | var request = {}
24 | request.action = action;
25 | request.params = params;
26 | socket.send(JSON.stringify(request));
27 | })
--------------------------------------------------------------------------------
/DesignPattern/Backup/Chain of Responsibility/Director.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Chain_of_Responsibility
6 | {
7 | ///
8 | /// The 'ConcreteHandler' class
9 | ///
10 | class Director : Approver
11 | {
12 | public override void ProcessRequest(Purchase purchase)
13 | {
14 | if (purchase.Amount < 10000.0)
15 | {
16 | Console.WriteLine("{0} approved request# {1}",
17 | this.GetType().Name, purchase.Number);
18 | }
19 | else if (successor != null)
20 | {
21 | successor.ProcessRequest(purchase);
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/employee types.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | // Three employee types
9 |
10 | class Clerk : Employee
11 | {
12 | // Constructor
13 | public Clerk()
14 | : base("Hank", 25000.0, 14)
15 | {
16 | }
17 | }
18 |
19 | class Director : Employee
20 | {
21 | // Constructor
22 | public Director()
23 | : base("Elly", 35000.0, 16)
24 | {
25 | }
26 | }
27 |
28 | class President : Employee
29 | {
30 | // Constructor
31 | public President()
32 | : base("Dick", 45000.0, 21)
33 | {
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/DesignPattern/Adapter/Compound.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Adapter
7 | {
8 | ///
9 | /// The 'Target' class
10 | ///
11 | class Compound
12 | {
13 | protected string _chemical;
14 | protected float _boilingPoint;
15 | protected float _meltingPoint;
16 | protected double _molecularWeight;
17 | protected string _molecularFormula;
18 |
19 |
20 | public Compound(string chemical)
21 | {
22 | this._chemical = chemical;
23 | }
24 |
25 | public virtual void Display()
26 | {
27 | Console.WriteLine("\nCompound: {0} ------ ", _chemical);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Adapter/Compound.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Adapter
7 | {
8 | ///
9 | /// The 'Target' class
10 | ///
11 | class Compound
12 | {
13 | protected string _chemical;
14 | protected float _boilingPoint;
15 | protected float _meltingPoint;
16 | protected double _molecularWeight;
17 | protected string _molecularFormula;
18 |
19 |
20 | public Compound(string chemical)
21 | {
22 | this._chemical = chemical;
23 | }
24 |
25 | public virtual void Display()
26 | {
27 | Console.WriteLine("\nCompound: {0} ------ ", _chemical);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Prototype/Color.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | class Color : ColorPrototype
9 | {
10 | private int _red;
11 | private int _green;
12 | private int _blue;
13 |
14 | //Constructor
15 | public Color(int red, int green, int blue)
16 | {
17 | this._red = red;
18 | this._green = green;
19 | this._blue = blue;
20 | }
21 |
22 | public override ColorPrototype Clone()
23 | {
24 | Console.WriteLine("Cloning color RGB: {0,3},{1,3},{2,3}", _red, _green, _blue);
25 |
26 | return this.MemberwiseClone() as ColorPrototype;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Prototype/Color.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Prototype
7 | {
8 | class Color : ColorPrototype
9 | {
10 | private int _red;
11 | private int _green;
12 | private int _blue;
13 |
14 | //Constructor
15 | public Color(int red, int green, int blue)
16 | {
17 | this._red = red;
18 | this._green = green;
19 | this._blue = blue;
20 | }
21 |
22 | public override ColorPrototype Clone()
23 | {
24 | Console.WriteLine("Cloning color RGB: {0,3},{1,3},{2,3}", _red, _green, _blue);
25 |
26 | return this.MemberwiseClone() as ColorPrototype;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | // Setup employee collection
15 | Employees e = new Employees();
16 | e.Attach(new Clerk());
17 | e.Attach(new Director());
18 | e.Attach(new President());
19 |
20 | // Employees are 'visited'
21 | e.Accept(new IncomeVisitor());
22 | e.Accept(new VacationVisitor());
23 |
24 | // Wait for user
25 | Console.ReadKey();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | // Setup employee collection
15 | Employees e = new Employees();
16 | e.Attach(new Clerk());
17 | e.Attach(new Director());
18 | e.Attach(new President());
19 |
20 | // Employees are 'visited'
21 | e.Accept(new IncomeVisitor());
22 | e.Accept(new VacationVisitor());
23 |
24 | // Wait for user
25 | Console.ReadKey();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | VehicleBuilder builder;
13 |
14 | Shop shop = new Shop();
15 |
16 | builder = new ScooterBuilder();
17 | shop.Construct(builder);
18 | builder.Vehicle.Show();
19 |
20 | builder = new MotorCycleBuilder();
21 | shop.Construct(builder);
22 | builder.Vehicle.Show();
23 |
24 | builder = new CarBuilder();
25 | shop.Construct(builder);
26 | builder.Vehicle.Show();
27 |
28 | Console.ReadKey();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/CharacterA.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterA : Character
12 | {
13 | // Constructor
14 | public CharacterA()
15 | {
16 | this.symbol = 'A';
17 | this.height = 100;
18 | this.width = 120;
19 | this.ascent = 70;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | VehicleBuilder builder;
13 |
14 | Shop shop = new Shop();
15 |
16 | builder = new ScooterBuilder();
17 | shop.Construct(builder);
18 | builder.Vehicle.Show();
19 |
20 | builder = new MotorCycleBuilder();
21 | shop.Construct(builder);
22 | builder.Vehicle.Show();
23 |
24 | builder = new CarBuilder();
25 | shop.Construct(builder);
26 | builder.Vehicle.Show();
27 |
28 | Console.ReadKey();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Flyweight/CharacterA.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterA : Character
12 | {
13 | // Constructor
14 | public CharacterA()
15 | {
16 | this.symbol = 'A';
17 | this.height = 100;
18 | this.width = 120;
19 | this.ascent = 70;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/CharacterB.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterB : Character
12 | {
13 | // Constructor
14 | public CharacterB()
15 | {
16 | this.symbol = 'B';
17 | this.height = 100;
18 | this.width = 140;
19 | this.ascent = 72;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Flyweight/CharacterZ.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterZ : Character
12 | {
13 | // Constructor
14 | public CharacterZ()
15 | {
16 | this.symbol = 'Z';
17 | this.height = 100;
18 | this.width = 100;
19 | this.ascent = 68;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Flyweight/CharacterB.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterB : Character
12 | {
13 | // Constructor
14 | public CharacterB()
15 | {
16 | this.symbol = 'B';
17 | this.height = 100;
18 | this.width = 140;
19 | this.ascent = 72;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Flyweight/CharacterZ.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Flyweight
7 | {
8 | ///
9 | /// A 'ConcreteFlyweight' class
10 | ///
11 | class CharacterZ : Character
12 | {
13 | // Constructor
14 | public CharacterZ()
15 | {
16 | this.symbol = 'Z';
17 | this.height = 100;
18 | this.width = 100;
19 | this.ascent = 68;
20 | this.descent = 0;
21 | }
22 |
23 | public override void Display(int pointSize)
24 | {
25 | this.pointSize = pointSize;
26 | Console.WriteLine(this.symbol +
27 | " (pointsize " + this.pointSize + ")");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Factory Method/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | Document[] documents = new Document[2];
13 | documents[0] = new Resume();
14 | documents[1] = new Report();
15 |
16 | foreach (Document document in documents)
17 | {
18 | Console.WriteLine("\n" + document.GetType().Name + "--");
19 | foreach (Page page in document.Pages)
20 | {
21 | Console.WriteLine("" + page.GetType().Name);
22 | }
23 | }
24 |
25 | Console.ReadKey();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/MathProxy.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'Proxy Object' class
10 | ///
11 | class MathProxy : IMath
12 | {
13 | private Math _math = new Math();
14 |
15 | public double Add(double x, double y)
16 | {
17 | return _math.Add(x, y);
18 | }
19 | public double Sub(double x, double y)
20 | {
21 | return _math.Sub(x, y);
22 | }
23 | public double Mul(double x, double y)
24 | {
25 | return _math.Mul(x, y);
26 | }
27 | public double Div(double x, double y)
28 | {
29 | return _math.Div(x, y);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Proxy/MathProxy.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | ///
9 | /// The 'Proxy Object' class
10 | ///
11 | class MathProxy : IMath
12 | {
13 | private Math _math = new Math();
14 |
15 | public double Add(double x, double y)
16 | {
17 | return _math.Add(x, y);
18 | }
19 | public double Sub(double x, double y)
20 | {
21 | return _math.Sub(x, y);
22 | }
23 | public double Mul(double x, double y)
24 | {
25 | return _math.Mul(x, y);
26 | }
27 | public double Div(double x, double y)
28 | {
29 | return _math.Div(x, y);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Factory Method/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Factory_Method
7 | {
8 | class Program
9 | {
10 | static void Main(string[] args)
11 | {
12 | Document[] documents = new Document[2];
13 | documents[0] = new Resume();
14 | documents[1] = new Report();
15 |
16 | foreach (Document document in documents)
17 | {
18 | Console.WriteLine("\n" + document.GetType().Name + "--");
19 | foreach (Page page in document.Pages)
20 | {
21 | Console.WriteLine("" + page.GetType().Name);
22 | }
23 | }
24 |
25 | Console.ReadKey();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/CarBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class CarBuilder:VehicleBuilder
9 | {
10 | public CarBuilder()
11 | {
12 | vehicle = new Vehicle("Car");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "Car Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "2500 CC";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "4";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "4";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Proxy/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | class Program
9 | {
10 |
11 | ///
12 | /// Entry point into console application.
13 | ///
14 | static void Main()
15 | {
16 | // Create math proxy
17 | MathProxy proxy = new MathProxy();
18 |
19 | // Do the math
20 | Console.WriteLine("4 + 2 = " + proxy.Add(4, 2));
21 | Console.WriteLine("4 - 2 = " + proxy.Sub(4, 2));
22 | Console.WriteLine("4 * 2 = " + proxy.Mul(4, 2));
23 | Console.WriteLine("4 / 2 = " + proxy.Div(4, 2));
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/State/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace State
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | // Open a new account
15 | Account account = new Account("Jim Johnson");
16 |
17 | // Apply financial transactions
18 | account.Deposit(500.0);
19 | account.Deposit(300.0);
20 | account.Deposit(550.0);
21 | account.PayInterest();
22 | account.Withdraw(2000.00);
23 | account.Withdraw(1100.00);
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/CarBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class CarBuilder:VehicleBuilder
9 | {
10 | public CarBuilder()
11 | {
12 | vehicle = new Vehicle("Car");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "Car Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "2500 CC";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "4";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "4";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Proxy/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Proxy
7 | {
8 | class Program
9 | {
10 |
11 | ///
12 | /// Entry point into console application.
13 | ///
14 | static void Main()
15 | {
16 | // Create math proxy
17 | MathProxy proxy = new MathProxy();
18 |
19 | // Do the math
20 | Console.WriteLine("4 + 2 = " + proxy.Add(4, 2));
21 | Console.WriteLine("4 - 2 = " + proxy.Sub(4, 2));
22 | Console.WriteLine("4 * 2 = " + proxy.Mul(4, 2));
23 | Console.WriteLine("4 / 2 = " + proxy.Div(4, 2));
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/State/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace State
6 | {
7 | class Program
8 | {
9 | ///
10 | /// Entry point into console application.
11 | ///
12 | static void Main()
13 | {
14 | // Open a new account
15 | Account account = new Account("Jim Johnson");
16 |
17 | // Apply financial transactions
18 | account.Deposit(500.0);
19 | account.Deposit(300.0);
20 | account.Deposit(550.0);
21 | account.PayInterest();
22 | account.Withdraw(2000.00);
23 | account.Withdraw(1100.00);
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/President.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Chain_of_Responsibility
6 | {
7 | ///
8 | /// The 'ConcreteHandler' class
9 | ///
10 | class President : Approver
11 | {
12 | public override void ProcessRequest(Purchase purchase)
13 | {
14 | if (purchase.Amount < 100000.0)
15 | {
16 | Console.WriteLine("{0} approved request# {1}",
17 | this.GetType().Name, purchase.Number);
18 | }
19 | else
20 | {
21 | Console.WriteLine(
22 | "Request# {0} requires an executive meeting!",
23 | purchase.Number);
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/ScooterBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class ScooterBuilder:VehicleBuilder
9 | {
10 | public ScooterBuilder()
11 | {
12 | vehicle = new Vehicle("Scooter");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "Scooter Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "50 cc";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "2";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "0";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Chain of Responsibility/President.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Chain_of_Responsibility
6 | {
7 | ///
8 | /// The 'ConcreteHandler' class
9 | ///
10 | class President : Approver
11 | {
12 | public override void ProcessRequest(Purchase purchase)
13 | {
14 | if (purchase.Amount < 100000.0)
15 | {
16 | Console.WriteLine("{0} approved request# {1}",
17 | this.GetType().Name, purchase.Number);
18 | }
19 | else
20 | {
21 | Console.WriteLine(
22 | "Request# {0} requires an executive meeting!",
23 | purchase.Number);
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SocketIM/SocketIM/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace SocketIM
10 | {
11 | public partial class MainForm : Form
12 | {
13 | public MainForm()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | private void button1_Click(object sender, EventArgs e)
19 | {
20 | IM im = new IM(8000, 8001);
21 | im.Show();
22 | this.button1.Enabled = false;
23 | }
24 |
25 | private void button2_Click(object sender, EventArgs e)
26 | {
27 | IM im = new IM(8001, 8000);
28 | im.Show();
29 | this.button2.Enabled = false;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/ScooterBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class ScooterBuilder:VehicleBuilder
9 | {
10 | public ScooterBuilder()
11 | {
12 | vehicle = new Vehicle("Scooter");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "Scooter Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "50 cc";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "2";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "0";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Command/Calculator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Command
6 | {
7 |
8 | ///
9 | /// The 'Receiver' class
10 | ///
11 | class Calculator
12 | {
13 | private int _curr = 0;
14 |
15 | public void Operation(char @operator, int operand)
16 | {
17 | switch (@operator)
18 | {
19 | case '+': _curr += operand; break;
20 | case '-': _curr -= operand; break;
21 | case '*': _curr *= operand; break;
22 | case '/': _curr /= operand; break;
23 | }
24 | Console.WriteLine(
25 | "Current value = {0,3} (following {1} {2})",
26 | _curr, @operator, operand);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Interpreter/Context.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 | ///
8 | /// The 'Context' class
9 | ///
10 | class Context
11 | {
12 | private string _input;
13 | private int _output;
14 |
15 | // Constructor
16 | public Context(string input)
17 | {
18 | this._input = input;
19 | }
20 |
21 | // Gets or sets input
22 | public string Input
23 | {
24 | get { return _input; }
25 | set { _input = value; }
26 | }
27 |
28 | // Gets or sets output
29 | public int Output
30 | {
31 | get { return _output; }
32 | set { _output = value; }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Command/Calculator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Command
6 | {
7 |
8 | ///
9 | /// The 'Receiver' class
10 | ///
11 | class Calculator
12 | {
13 | private int _curr = 0;
14 |
15 | public void Operation(char @operator, int operand)
16 | {
17 | switch (@operator)
18 | {
19 | case '+': _curr += operand; break;
20 | case '-': _curr -= operand; break;
21 | case '*': _curr *= operand; break;
22 | case '/': _curr /= operand; break;
23 | }
24 | Console.WriteLine(
25 | "Current value = {0,3} (following {1} {2})",
26 | _curr, @operator, operand);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Interpreter/Context.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Interpreter
6 | {
7 | ///
8 | /// The 'Context' class
9 | ///
10 | class Context
11 | {
12 | private string _input;
13 | private int _output;
14 |
15 | // Constructor
16 | public Context(string input)
17 | {
18 | this._input = input;
19 | }
20 |
21 | // Gets or sets input
22 | public string Input
23 | {
24 | get { return _input; }
25 | set { _input = value; }
26 | }
27 |
28 | // Gets or sets output
29 | public int Output
30 | {
31 | get { return _output; }
32 | set { _output = value; }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Facade/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | class Program
9 | {
10 | ///
11 | /// Entry point into console application.
12 | ///
13 | static void Main()
14 | {
15 | // Facade
16 | Mortgage mortgage = new Mortgage();
17 |
18 | // Evaluate mortgage eligibility for customer
19 | Customer customer = new Customer("Ann McKinsey");
20 | bool eligible = mortgage.IsEligible(customer, 125000);
21 |
22 | Console.WriteLine("\n" + customer.Name +
23 | " has been " + (eligible ? "Approved" : "Rejected"));
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Iterator/Collection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Collections;
6 | namespace Iterator
7 | {
8 |
9 | ///
10 | /// The 'ConcreteAggregate' class
11 | ///
12 | class Collection : IAbstractCollection
13 | {
14 | private ArrayList _items = new ArrayList();
15 |
16 | public Iterator CreateIterator()
17 | {
18 | return new Iterator(this);
19 | }
20 |
21 | // Gets item count
22 | public int Count
23 | {
24 | get { return _items.Count; }
25 | }
26 |
27 | // Indexer
28 | public object this[int index]
29 | {
30 | get { return _items[index]; }
31 | set { _items.Add(value); }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/piccheck/checkrole.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "encoding/csv"
5 | "os"
6 | "fmt"
7 | "io"
8 | "strings"
9 | )
10 |
11 | func main() {
12 | filecsv := `C:\Users\yejianfeng\Desktop\mxm\role.csv`
13 | file, err := os.Open(filecsv)
14 | if err != nil {
15 | panic(err)
16 | }
17 | defer file.Close()
18 |
19 | reader := csv.NewReader(file)
20 | roleFolder := `C:\Users\yejianfeng\Desktop\mxm\role\`
21 | reader.Read()
22 | for {
23 | fields, err := reader.Read()
24 | if err == io.EOF {
25 | break;
26 | }
27 |
28 | picurl := fields[19]
29 | // PET/petic/41.png
30 | picnames := strings.Split(picurl, "/")
31 | picurl = roleFolder + picnames[2]
32 |
33 | _, err = os.Open(picurl)
34 | if err == nil || os.IsExist(err) {
35 | continue
36 | }
37 |
38 | fmt.Println(fields[0])
39 | fmt.Println(fields[19])
40 | }
41 |
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Facade/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Facade
7 | {
8 | class Program
9 | {
10 | ///
11 | /// Entry point into console application.
12 | ///
13 | static void Main()
14 | {
15 | // Facade
16 | Mortgage mortgage = new Mortgage();
17 |
18 | // Evaluate mortgage eligibility for customer
19 | Customer customer = new Customer("Ann McKinsey");
20 | bool eligible = mortgage.IsEligible(customer, 125000);
21 |
22 | Console.WriteLine("\n" + customer.Name +
23 | " has been " + (eligible ? "Approved" : "Rejected"));
24 |
25 | // Wait for user
26 | Console.ReadKey();
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Iterator/Collection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Collections;
6 | namespace Iterator
7 | {
8 |
9 | ///
10 | /// The 'ConcreteAggregate' class
11 | ///
12 | class Collection : IAbstractCollection
13 | {
14 | private ArrayList _items = new ArrayList();
15 |
16 | public Iterator CreateIterator()
17 | {
18 | return new Iterator(this);
19 | }
20 |
21 | // Gets item count
22 | public int Count
23 | {
24 | get { return _items.Count; }
25 | }
26 |
27 | // Indexer
28 | public object this[int index]
29 | {
30 | get { return _items[index]; }
31 | set { _items.Add(value); }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/DesignPattern/Visitor/Employees.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | ///
9 | /// The 'ObjectStructure' class
10 | ///
11 | class Employees
12 | {
13 | private List _employees = new List();
14 |
15 | public void Attach(Employee employee)
16 | {
17 | _employees.Add(employee);
18 | }
19 |
20 | public void Detach(Employee employee)
21 | {
22 | _employees.Remove(employee);
23 | }
24 |
25 | public void Accept(IVisitor visitor)
26 | {
27 | foreach (Employee e in _employees)
28 | {
29 | e.Accept(visitor);
30 | }
31 | Console.WriteLine();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/DesignPattern/Observer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 | class Program
8 | {
9 |
10 | ///
11 | /// Entry point into console application.
12 | ///
13 | static void Main()
14 | {
15 | // Create IBM stock and attach investors
16 | IBM ibm = new IBM("IBM", 120.00);
17 | ibm.Attach(new Investor("Sorros"));
18 | ibm.Attach(new Investor("Berkshire"));
19 |
20 | // Fluctuating prices will notify investors
21 | ibm.Price = 120.10;
22 | ibm.Price = 121.00;
23 | ibm.Price = 120.50;
24 | ibm.Price = 120.75;
25 |
26 | // Wait for user
27 | Console.ReadKey();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/osxair/src/code.google.com/p/go.net/websocket/exampledial_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package websocket_test
6 |
7 | import (
8 | "fmt"
9 | "log"
10 |
11 | "code.google.com/p/go.net/websocket"
12 | )
13 |
14 | // This example demonstrates a trivial client.
15 | func ExampleDial() {
16 | origin := "http://localhost/"
17 | url := "ws://localhost:12345/ws"
18 | ws, err := websocket.Dial(url, "", origin)
19 | if err != nil {
20 | log.Fatal(err)
21 | }
22 | if _, err := ws.Write([]byte("hello, world!\n")); err != nil {
23 | log.Fatal(err)
24 | }
25 | var msg = make([]byte, 512)
26 | var n int
27 | if n, err = ws.Read(msg); err != nil {
28 | log.Fatal(err)
29 | }
30 | fmt.Printf("Received: %s.\n", msg[:n])
31 | }
32 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Observer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Observer
6 | {
7 | class Program
8 | {
9 |
10 | ///
11 | /// Entry point into console application.
12 | ///
13 | static void Main()
14 | {
15 | // Create IBM stock and attach investors
16 | IBM ibm = new IBM("IBM", 120.00);
17 | ibm.Attach(new Investor("Sorros"));
18 | ibm.Attach(new Investor("Berkshire"));
19 |
20 | // Fluctuating prices will notify investors
21 | ibm.Price = 120.10;
22 | ibm.Price = 121.00;
23 | ibm.Price = 120.50;
24 | ibm.Price = 120.75;
25 |
26 | // Wait for user
27 | Console.ReadKey();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Visitor/Employees.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | namespace Visitor
6 | {
7 |
8 | ///
9 | /// The 'ObjectStructure' class
10 | ///
11 | class Employees
12 | {
13 | private List _employees = new List();
14 |
15 | public void Attach(Employee employee)
16 | {
17 | _employees.Add(employee);
18 | }
19 |
20 | public void Detach(Employee employee)
21 | {
22 | _employees.Remove(employee);
23 | }
24 |
25 | public void Accept(IVisitor visitor)
26 | {
27 | foreach (Employee e in _employees)
28 | {
29 | e.Accept(visitor);
30 | }
31 | Console.WriteLine();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/DesignPattern/Builder/MotorCycleBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class MotorCycleBuilder:VehicleBuilder
9 | {
10 | public MotorCycleBuilder()
11 | {
12 | vehicle = new Vehicle("MotorCycle");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "MotorCycle Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "MotorCycle Engine";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "2";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "0";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/piccheck/checkskill.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import(
4 | "encoding/csv"
5 | "os"
6 | "fmt"
7 | "io"
8 | )
9 |
10 | func main() {
11 | filecsv := `C:\Users\yejianfeng\Desktop\mxm\skill.csv`
12 | file, err := os.Open(filecsv)
13 | if err != nil {
14 | panic(err)
15 | }
16 | defer file.Close()
17 |
18 | reader := csv.NewReader(file)
19 | roleFolder := `C:\Users\yejianfeng\Desktop\mxm\skill\`
20 | reader.Read()
21 | for {
22 | fields, err := reader.Read()
23 | if err == io.EOF {
24 | break;
25 | }
26 |
27 | picurl := fields[15]
28 |
29 | jpg := roleFolder + picurl + ".jpg"
30 | _, err = os.Open(jpg)
31 | if err == nil || os.IsExist(err) {
32 | continue
33 | }
34 |
35 | png := roleFolder + picurl + ".png"
36 | _, err = os.Open(png)
37 | if err == nil || os.IsExist(err) {
38 | continue
39 | }
40 |
41 | fmt.Println(fields[0])
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/DesignPattern/Backup/Builder/MotorCycleBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Builder
7 | {
8 | class MotorCycleBuilder:VehicleBuilder
9 | {
10 | public MotorCycleBuilder()
11 | {
12 | vehicle = new Vehicle("MotorCycle");
13 | }
14 |
15 | public override void BuildFrame()
16 | {
17 | vehicle["frame"] = "MotorCycle Frame";
18 | }
19 |
20 | public override void BuildEngine()
21 | {
22 | vehicle["engine"] = "MotorCycle Engine";
23 | }
24 |
25 | public override void BuildWheel()
26 | {
27 | vehicle["wheel"] = "2";
28 | }
29 |
30 | public override void BuildDoors()
31 | {
32 | vehicle["doors"] = "0";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/DesignPattern/Chain of Responsibility/VicePresident.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Chain_of_Responsibility
7 | {
8 |
9 |
10 | ///
11 |
12 | /// The 'ConcreteHandler' class
13 |
14 | ///
15 |
16 | class VicePresident : Approver
17 | {
18 |
19 | public override void ProcessRequest(Purchase purchase)
20 | {
21 |
22 | if (purchase.Amount < 25000.0)
23 | {
24 |
25 | Console.WriteLine("{0} approved request# {1}",
26 |
27 | this.GetType().Name, purchase.Number);
28 |
29 | }
30 |
31 | else if (successor != null)
32 | {
33 |
34 | successor.ProcessRequest(purchase);
35 |
36 | }
37 |
38 | }
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------