Skip to content

Instantly share code, notes, and snippets.

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
@rapzo
rapzo / destructuring.js
Created February 23, 2016 12:25 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring.
// === 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];

Keybase proof

I hereby claim:

  • I am rapzo on github.
  • I am rui (https://keybase.io/rui) on keybase.
  • I have a public key whose fingerprint is 5672 0990 E473 384F 8BD7 5229 C51D 2852 345D EC23

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]"