It wants me to explain!
employee_id = fields.Field(
attribute="employee",
column_name="employee_id",
widget=ForeignKeyWidget(Employee, field='employee_id')
)
public List<Comment> getProductComments(Product product) { | |
// The app contains its own singleton service to hold one instance | |
// of the LaunchDarkly client. | |
ldClient = LaunchDarklyService.getClient(); | |
ldUser = LaunchDarklyService.getUserFromContext(context); | |
boolean showFeature = ldClient.boolVariation("show-comments", user, false); | |
// If the feature is turned off, just return an empty list of comments | |
If (!showFeature) { | |
return Collections.emptyList(); | |
} |
MacBook-Pro-2:peops yoz$ npx jest --config=jest-pytest.json --listTests --debug | |
{ | |
"configs": [ | |
{ | |
"automock": false, | |
"browser": false, | |
"cache": true, | |
"cacheDirectory": "/var/folders/2d/nvqrl0yj67n7dztl2j609_v80000gn/T/jest_dx", | |
"clearMocks": false, | |
"coveragePathIgnorePatterns": [ |
Here's an example of the kind of GraphQL query that Code.gov might submit to the GitHub GraphQL endpoint. It also explains why the switch to using GraphQL (in GitHub API version 4) makes things a ton easier than all the REST calls we were doing before (in GitHub API version 3).
require 'csv' | |
class AdminController < ApplicationController | |
layout 'dashboard' | |
before_filter :require_admin! | |
def index | |
@applications = Doorkeeper::Application.includes(:authorizations) |
I hereby claim:
To claim this, I am signing this object:
yoz@pdp35:~/node/persevere$ bin/node-persvr example/ | |
example/ | |
(node) process.compile should not be used. Use require('vm').runInThisContext instead. | |
Downloading http://github.com/miksago/node-websocket-server/zipball/v1.4.01 | |
Downloading https://github.com/miksago/node-websocket-server/zipball/v1.4.01 | |
node.js:116 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Error: 400 |
/** | |
* sandbox.js - create a single sandbox object with exposed functions and services | |
* | |
* by [email protected] | |
* | |
* | |
**/ | |
// Started doing this with proper constructors and stuff. Javascript Patterns | |
// book has a good Sandbox pattern. However, didn't have time to do that |