Skip to content

Instantly share code, notes, and snippets.

View freetonik's full-sized avatar

Rakhim Davletkaliyev freetonik

View GitHub Profile
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Lesson schema",
"type": "object",
"required": ["name", "language", "mission", "audience", "units"],
"properties": {
"name": {
"type": "string",
"description": "Name of the lesson"
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Theory unit schema",
"type": "object",
"required": ["video"],
"properties": {
"video": {
"type": "string",
"description": "YouTube video id"
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Quiz schema",
"type": "object",
"properties": {
"items": {
"type": "object",
"patternProperties": {
"[A-Za-z0-9_-]" : {
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Theory unit schema",
"type": "object",
"required": ["name", "description", "exercise_files"],
"properties": {
"name": {
"type": "string",
"description": "Name of the task"
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Theory unit schema",
"type": "object",
"properties": {
"items": {
"type": "object",
"patternProperties": {
"[A-Za-z0-9_-]" : {
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Theory unit schema",
"type": "object",
"properties": {
"items": {
"type": "object",
"patternProperties": {
"[A-Za-z0-9_-]" : {
$ pip uninstall hexlet
$ echo export PATH='/usr/local/bin:$PATH' >> ~/.zshrc
$ brew update
$ brew doctor
$ brew uninstall python
$ brew install python --build-from-source
$ pip install --upgrade pip
$ pip install hexlet
it("updates stock market table when user configuration changes", function() {
config.setStartingBalance(...);
var expectedTable = <StockMarketTable stockMarketProjection={projectionFor(config)} />;
var actualTable = TestUtils.findRenderedComponentWithType(app, StockMarketTable);
// Но как делать сравнение?
});
function checkComponent(actual, expected) {
var actualRendering = React.renderComponentToStaticMarkup(actual._descriptor);
var expectedRendering = React.renderComponentToStaticMarkup(expected);
expect(actualRendering).to.equal(expectedRendering);
}
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.dmuth.ipfw</string>
<key>Program</key>
<string>/sbin/ipfw</string>
<key>ProgramArguments</key>
<array>