Winston is a logging library that supports multiple transports (output destinations) for logs. It allows adding or removing transports, instantiating custom loggers, and logging string messages with optional metadata. Winston also supports profiling, string interpolation, handling uncaught exceptions, querying logs, and adding filters and rewriters to modify log content.
This document discusses various techniques for working with strings and text files in PowerShell including:
1. Creating strings using single or double quotes, and using backticks to span strings across multiple lines.
2. Reading and writing content from text files using Get-Content and Set-Content, including joining lines with newlines and extracting numbers using regular expressions.
3. Finding strings within multiple text files using Select-String and filtering results.
Ken - caman.js,SoundManager2.js,CSS3 AnimationsLearningTech
CamanJS is a JavaScript library for advanced image editing and manipulation directly in the browser. It allows resizing, applying filters like brightness and effects, and reverting changes. SoundManager2 makes playing audio easier by providing a single API that supports both HTML5 audio and Flash fallback. CSS3 animations allow animating elements without JavaScript through properties like keyframes and background positioning.
The document discusses format files in SQL Server, which store formatting information needed to bulk import or export data between a data file and database table. Format files are required when the data file and table schemas differ, such as having different column orders or a mismatched number of fields and columns. The document describes creating XML and non-XML format files using the bcp utility and includes details on format file structure and data type mappings.
The Builder design pattern separates the construction of a complex object from its representation, allowing the same construction process to create different representations. It defines a Builder interface for creating parts of a Product object, with ConcreteBuilders constructing and assembling parts by implementing the Builder interface. A Director constructs the object by using the Builder interface without knowing what object is being built.
Cocos2d-JS is the JavaScript version of Cocos2d-x, a popular game engine. It allows developers to write games using JavaScript that can run on mobile, desktop, and web platforms. Cocos2d-JS provides the full functionality of Cocos2d-x through a simplified JavaScript API. The cocos command line tool is used to create, compile, deploy, and run Cocos2d-JS projects, and requires Python 2.7.5 or later. Project configuration and settings are defined in a project.json file.
The document discusses several AngularJS modules:
- ngAnimate provides support for CSS and JavaScript animations.
- ngAria adds ARIA attributes to improve accessibility of custom directives.
- ngCookies provides services to read and write browser cookies.
- ngMessages displays validation messages in templates without complex logic.
- ngSanitize sanitizes HTML to prevent XSS attacks.
- ngTouch provides touch events and helpers for touchscreens.
This document discusses the jQueryUI dialog component which allows creating customizable dialog windows. It lists some configuration options for dialogs like height, width, whether it can be resized, and which buttons to include. It also mentions some methods like destroy and events like close that are part of the dialog functionality.
SignalR is an ASP.NET library that allows adding real-time web functionality to applications by enabling server code to push content to clients instantly as it becomes available rather than waiting for a client to request new data. It can be used to create a chat hub that allows clients connected via SignalR to send and receive messages in real-time. The example shows setting up a chat hub class and client that uses SignalR to add new chat messages as they are received from the server.
This document discusses how to use enums in PowerShell. It explains that enums represent a fixed set of known values and shows how to access the DayOfWeek enum. It also demonstrates defining a new enum type using Add-Type and setting explicit integer values for each enum member. Finally, it discusses using the [Flags] attribute to allow bitwise combinations of enum values.
R is a free and open-source programming language and software environment for statistical analysis, graphics, and statistical computing. It was originally developed in the 1990s at Bell Laboratories by statisticians John Chambers and colleagues. Key points about R include that it is an interpreted language, supports functional programming, and is object-oriented. R can be used for tasks like statistical analysis, data visualization, and machine learning. It has a large community of users and developers contributing packages for specialized analysis techniques.
Winston is a logging library that supports multiple transports (output destinations) for logs. It allows adding or removing transports, instantiating custom loggers, and logging string messages with optional metadata. Winston also supports profiling, string interpolation, handling uncaught exceptions, querying logs, and adding filters and rewriters to modify log content.
This document discusses various techniques for working with strings and text files in PowerShell including:
1. Creating strings using single or double quotes, and using backticks to span strings across multiple lines.
2. Reading and writing content from text files using Get-Content and Set-Content, including joining lines with newlines and extracting numbers using regular expressions.
3. Finding strings within multiple text files using Select-String and filtering results.
Ken - caman.js,SoundManager2.js,CSS3 AnimationsLearningTech
CamanJS is a JavaScript library for advanced image editing and manipulation directly in the browser. It allows resizing, applying filters like brightness and effects, and reverting changes. SoundManager2 makes playing audio easier by providing a single API that supports both HTML5 audio and Flash fallback. CSS3 animations allow animating elements without JavaScript through properties like keyframes and background positioning.
The document discusses format files in SQL Server, which store formatting information needed to bulk import or export data between a data file and database table. Format files are required when the data file and table schemas differ, such as having different column orders or a mismatched number of fields and columns. The document describes creating XML and non-XML format files using the bcp utility and includes details on format file structure and data type mappings.
The Builder design pattern separates the construction of a complex object from its representation, allowing the same construction process to create different representations. It defines a Builder interface for creating parts of a Product object, with ConcreteBuilders constructing and assembling parts by implementing the Builder interface. A Director constructs the object by using the Builder interface without knowing what object is being built.
Cocos2d-JS is the JavaScript version of Cocos2d-x, a popular game engine. It allows developers to write games using JavaScript that can run on mobile, desktop, and web platforms. Cocos2d-JS provides the full functionality of Cocos2d-x through a simplified JavaScript API. The cocos command line tool is used to create, compile, deploy, and run Cocos2d-JS projects, and requires Python 2.7.5 or later. Project configuration and settings are defined in a project.json file.
The document discusses several AngularJS modules:
- ngAnimate provides support for CSS and JavaScript animations.
- ngAria adds ARIA attributes to improve accessibility of custom directives.
- ngCookies provides services to read and write browser cookies.
- ngMessages displays validation messages in templates without complex logic.
- ngSanitize sanitizes HTML to prevent XSS attacks.
- ngTouch provides touch events and helpers for touchscreens.
This document discusses the jQueryUI dialog component which allows creating customizable dialog windows. It lists some configuration options for dialogs like height, width, whether it can be resized, and which buttons to include. It also mentions some methods like destroy and events like close that are part of the dialog functionality.
SignalR is an ASP.NET library that allows adding real-time web functionality to applications by enabling server code to push content to clients instantly as it becomes available rather than waiting for a client to request new data. It can be used to create a chat hub that allows clients connected via SignalR to send and receive messages in real-time. The example shows setting up a chat hub class and client that uses SignalR to add new chat messages as they are received from the server.
This document discusses how to use enums in PowerShell. It explains that enums represent a fixed set of known values and shows how to access the DayOfWeek enum. It also demonstrates defining a new enum type using Add-Type and setting explicit integer values for each enum member. Finally, it discusses using the [Flags] attribute to allow bitwise combinations of enum values.
R is a free and open-source programming language and software environment for statistical analysis, graphics, and statistical computing. It was originally developed in the 1990s at Bell Laboratories by statisticians John Chambers and colleagues. Key points about R include that it is an interpreted language, supports functional programming, and is object-oriented. R can be used for tasks like statistical analysis, data visualization, and machine learning. It has a large community of users and developers contributing packages for specialized analysis techniques.
The document discusses the basics of using the Vim text editor. It provides an overview of Vim's modes including normal mode commands like h, j, k, l for movement and dd for deleting lines. It also covers insert mode, command mode, and combining commands with quantities. Examples are given for deleting text ranges and repeating commands. The document recommends resources for learning more about Vim.
PostCSS is a tool for transforming CSS with JS plugins. It allows you to write CSS and use future CSS syntax now through plugins like Autoprefixer (which adds vendor prefixes), CSSnext (which supports CSS variables and mixins), and PreCSS (which allows Sass-like syntax). Other PostCSS plugins include postcss-sorting (to sort CSS rules), postcss-sprites (to generate image spritesheets), and CSS Modules (to scope CSS to components).
This document is a tutorial on React js that covers getting started with React, creating components, composing components with properties, adding Markdown, and hooking up components to a data model. It includes sections on your first component, React developer tools, using component properties, adding Markdown, and connecting components to data through multiple steps. The tutorial aims to teach developers how to build React applications.
Docker is an open platform for developing, shipping, and running applications. It enables separating applications from infrastructure so software can be delivered quickly. Docker uses features of the Linux kernel like namespaces and cgroups to deliver functionality. Containers are more lightweight than virtual machines, using less disk space and starting faster, while still providing isolation. Docker uses images and repositories to package and distribute applications. The Dockerfile defines how to build images from a base image and run commands.
Semantic UI is a front-end framework started in 2013 that helps create beautiful and responsive layouts using human-friendly HTML. It treats words and classes as exchangeable concepts, using syntax from natural languages for intuitive class names. Semantic UI includes tools for simplified debugging, intuitive JavaScript behaviors, and customizable themes through an installation process involving Node.js, Gulp, and included files. It has a folder structure for component types and supports custom themes, sitewide defaults, component defaults, and overrides.
The document discusses four categories of errors in Node.js - standard JavaScript errors, system errors from underlying OS constraints, user-specified errors from application code, and assertion errors from logic violations. It also covers how errors propagate and can be intercepted using try/catch blocks, callbacks, and EventEmitter events. Errors are handled asynchronously in Node.js and the Error class can be used to create new error objects.
The document discusses process control in Node.js using state machines, promises, and generators. It covers using EventEmitter to create a state machine that emits events. It explains how promises are used to handle asynchronous operations and avoid callback hell. Generators are used to pause and resume functions through the yield keyword.
Expression trees represent code in a tree-like data structure where each node is an expression. This enables dynamic modification of executable code, execution of LINQ queries in various databases, and creation of dynamic queries. Expression trees can be compiled into executable code using the Expression<TDelegate>.Compile() method.
CSS Flex Box Layout is a CSS3 web layout model that allows elements within a container to be automatically arranged and resized depending on screen size. It defines flex containers and flex items, with properties that control alignment, order, sizing, and distribution of space. Common flex properties include flex-direction, flex-wrap, justify-content, align-items, and properties for individual flex items like order, flex-grow, and align-self. Flexbox provides more flexible layout options compared to traditional CSS box model properties.
The child_process module provides several methods for spawning child processes from Node.js applications including exec, execFile, spawn, and fork. exec spawns a shell and runs a command, passing stdout and stderr to a callback. execFile is similar but spawns directly without a shell. spawn spawns a process and returns a ChildProcess object for sending/receiving messages. fork spawns a new Node.js process and allows sending messages between parent and child.
This document discusses ShowModalDialog for Chrome, which is a library that aims to provide modal dialog functionality for Chrome similar to IE's ShowModalDialog method. It covers Chrome and IE compatibility issues with modal dialogs and provides examples of using ShowModalDialog for Chrome, including customizing select options and accessing event handlers via jQuery. It also demonstrates using eval() to evaluate JavaScript expressions and executing code on document ready.
The document discusses Elasticsearch concepts and operations including:
1. Field datatypes in Elasticsearch including simple, hierarchical, and specialized types.
2. Search operations using GET and POST, and query syntax including query_string, bool, date range, and nested queries.
3. Additional query parameters like size, from, sort, filter, and aggregations to customize search results.
4. The scan and scroll API for efficiently retrieving large result sets.
Expression trees represent code in a tree-like data structure where each node is an expression. This enables dynamic modification of executable code, execution of LINQ queries in various databases, and creation of dynamic queries. Expression trees can be compiled into executable code using the Expression<TDelegate>.Compile() method.
D3.js is a JavaScript library for manipulating documents based on data. It allows binding data to the DOM and applying data-driven transformations. The document discusses using D3.js to create force-directed graphs by binding data to SVG elements like paths, circles, and text. Key aspects covered include the D3 force layout to simulate physical forces on nodes, and SVG attributes to define paths, circles, text position and styling.
This document provides information on various Git commands including git init, git config, git add, git reset, git commit, git log, git branch, git checkout, git merge, and others. It explains what each command does, such as git init creating an empty Git repository, git config setting user information, git add staging files, and git commit permanently storing file changes. It also covers basic branching and merging workflows.
7. How to use AutoFac ?
使用方式:
要定義類別的 Interface
public class SomeType : IService
{
}
8. How to use AutoFac ?
建立 ContainerBuilder 來註冊 IoC 的類別
// Create your builder.
var builder = new ContainerBuilder();
// Usually you're only interested in exposing the type
// via its interface:
builder.RegisterType<SomeType>().As<IService>();
// However, if you want BOTH services (not as common)
// you can say so:
builder.RegisterType<SomeType>().AsSelf().As<IService>();