http://plnkr.co/edit/2aIgMzUx7XgZe9EA6upB?p=preview&open=app%2Fapp.component.ts
http://plnkr.co/edit/EIsS2pFsDwATaq1Ibxvb?p=preview
http://plnkr.co/edit/hCCEtt1SVohWN80s0ej8?p=preview&open=app%2Fapp.component.ts
| codecov: | |
| token: uuid # Your private repository token | |
| url: "http" # for Codecov Enterprise customers | |
| slug: "owner/repo" # for Codecov Enterprise customers | |
| branch: master # override the default branch | |
| bot: username # set user whom will be the consumer of oauth requests | |
| ci: # Custom CI domains if Codecov does not identify them automatically | |
| - ci.domain.com | |
| - !provider # ignore these providers when checking if CI passed | |
| # ex. You may test on Travis, Circle, and AppVeyor, but only need |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => { | |
| return [1, 2, 3]; |
I hereby claim:
To claim this, I am signing this object:
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| // Functions to help figure out whether elements are in the viewport | |
| // and lazy-load their content if so. | |
| // Implemented as jQuery plugins. | |
| (function() { | |
| $.fn.inView = function(nearThreshold) { | |
| var $elem = $(this); | |
| // Checks if its visible, CSS-wise | |
| if (!$elem.is(":visible")) { | |
| return false; |
| <?php | |
| namespace jojo\tests\cases\extensions\util; | |
| use lithium\util\Validator; | |
| class ValidatorTest extends \lithium\test\Unit { | |
| public function setUp() { | |
| } |
| <?php | |
| namespace app\models; | |
| class BaseModel extends \lithium\data\Model { | |
| public function save($entity, $data = null, array $options = []) { | |
| $now = new DateTime(); | |
| if (!$entity->exists()) { | |
| $entity->created = $now; | |
| } | |
| $entity->updated = $now; |
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| library model; | |
| import 'package:polymer/polymer.dart'; | |
| final appModel = new AppModel._(); |
| { | |
| "name": "http-server", | |
| "preferGlobal": true, | |
| "version": "0.3.0", | |
| "author": "Nodejitsu <[email protected]>", | |
| "description": "a simple zero-configuration command-line http server", | |
| "contributors": [ | |
| { | |
| "name": "Marak Squires", | |
| "email": "[email protected]" |