Skip to content

Instantly share code, notes, and snippets.

View JimmyLv's full-sized avatar
🎯
Focusing

JimmyLv_吕立青 JimmyLv

🎯
Focusing
View GitHub Profile
@JimmyLv
JimmyLv / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@JimmyLv
JimmyLv / javascript_resources.md
Last active August 29, 2015 14:22 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@JimmyLv
JimmyLv / python_resources.md
Last active August 29, 2015 14:22 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

print "I am here!"
@JimmyLv
JimmyLv / Migrating from 1.4 to 1.5: Introduction of New Features by Examples.md
Created February 18, 2016 09:03
Migrating from 1.4 to 1.5: Introduction of New Features by Examples

Migrating from 1.4 to 1.5: Introduction of New Features by Examples

  • angular.component(): Introducing "components", a special sort of directive that are easy to configure and promote best practices, bring Angular 1 applications closer to Angular 2's style of architecture. Angular 1.5 takes a big step towards preparing developers for a smoother transition to Angular 2 in the future.
  • Multi-slot transclusion: Enabling the design of more powerful and complex UI elements with a much simpler configuration and reduced boilerplate.

angular.component()

There is nothing component() can do but directive() can not do.

@JimmyLv
JimmyLv / beautiful font.md
Last active March 9, 2016 13:56
一个收集漂亮字体的列表。
  • Trebuchet MS (Calibri)

VMs VS Containers & Docker - the open-source application container engine:

  • The key difference between containers and VMs is that while the hypervisor abstracts an entire device, containers just abstract the operating system kernel.
  • Hypervisors can do that containers can’t is to use different operating systems or kernels; With Docker, all containers must use the same operating system and kernel.
  • Couldn't care less about running multiple operating system VMs. Getting more applications running on the same hardware can save a data center or cloud provider tens-of-millions of dollars annually in power and hardware costs.
  • Much easier and safer to deploy and use than previous approaches, with the other container powers, including Canonical, Google, Red Hat, and Parallels.
  • Developers can use Docker to pack, ship, and run any application as a lightweight, portable, self sufficien
@JimmyLv
JimmyLv / OrganismsHeader.jsx
Last active September 26, 2016 09:17
前端架构篇之 Atomic Design —— 论如何组织和维护 UI 组件
/** @jsx React.DOM */
var React = require('react');
var Logo = require('../atoms/logo');
var PrimaryNav = require('../molecules/primary-nav');
var Search = require('../molecules/search');
var OrganismsHeader = React.createClass({
render: function () {
return
<header>
<Logo/>