Install node-repl-promised:
npm install -g repl-promised
Use the repl to list all users
$ node-promised
> var app = require('./app');
undefined
> var Bookshelf = app.get('bookshelf');
undefined
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| using UnityEngine; | |
| using System; | |
| // Finds the slope/grade/incline angle of ground underneath a CharacterController | |
| public class GroundChecker : MonoBehaviour { | |
| [Header("Results")] | |
| public float groundSlopeAngle = 0f; // Angle of the slope in degrees | |
| public Vector3 groundSlopeDir = Vector3.zero; // The calculated slope as a vector |
| // ------------ | |
| // counterStore.js | |
| // ------------ | |
| import { | |
| INCREMENT_COUNTER, | |
| DECREMENT_COUNTER | |
| } from '../constants/ActionTypes'; | |
| const initialState = { counter: 0 }; |
| 'use strict'; | |
| var fs = require('fs'); | |
| var ReactTools = require('react-tools'); | |
| var fn = module.exports = function () { | |
| require.extensions['.js'] = function (module, filename) { | |
| module._compile( | |
| ReactTools.transform( | |
| fs.readFileSync(filename, 'utf8'), | |
| {stripTypes: true, harmony: true}), |
| import UIKit | |
| class MsgVC: JSQMessagesViewController { | |
| var msg:JSQMessage! | |
| var outBubble:JSQMessageBubbleImageDataSource! | |
| override func viewDidLoad() { | |
| initThisView() | |
| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
| closely match default behavior on Windows systems. This makes the Command key | |
| behave like Windows Control key. To use Control instead of Command, either swap | |
| Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
| or replace @ with ^ in this file. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers |
| var path = require('path'); | |
| var Nightmare = require('nightmare'); | |
| var should = require('chai').should(); | |
| describe('Nightmare demo', function () { | |
| this.timeout(15000); // Set timeout to 15 seconds, instead of the original 2 seconds | |
| var url = 'http://localhost:3000'; | |
| describe('Start page', function () { |
Install node-repl-promised:
npm install -g repl-promised
Use the repl to list all users
$ node-promised
> var app = require('./app');
undefined
> var Bookshelf = app.get('bookshelf');
undefined
| # /tmp/test = EBS-SSD | |
| # /mnt/test = instance-store | |
| root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test | |
| 256+0 records in | |
| 256+0 records out | |
| 268435456 bytes (268 MB) copied, 3.26957 s, 82.1 MB/s | |
| root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test | |
| 256+0 records in | |
| 256+0 records out |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |