Skip to content

Instantly share code, notes, and snippets.

chai = require 'chai'
spies = require 'chai-spies'
chai.use spies
CommandQueue = require '../../src/CommandQueueForNemoApps'
MockCommand = require '../mocks/MockCommandForCommandQueueSpec'
describe 'Выполнение команд', ->
it 'Execute отрабатывает один раз', (specDone) ->
@_popupManager.showPopup
content: "Для просмотра «#{model.get 'name'}» приобретите пакет «#{tariffName}»"
buttons: [
{caption: 'Перейти'}
{caption: 'Отказаться'}
]
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package com.example.vkulibaba.smartnemotv;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
package com.example.vkulibaba.smartnemotv;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
var fs = require('fs');
var path = require('path');
var filePath = path.normalize('./node_modules/gulp-browserify/node_modules/browserify/node_modules/module-deps/index.js');
fs.readFile(filePath, 'utf8', function (err,data) {
if (err) return console.error(err);
var result = data.replace(/var isTopLevel =/g, 'var isTopLevel = true; var spike = ');
fs.writeFile(filePath, result, 'utf8', function (err) {
@bespechnost
bespechnost / watchers.xml
Created March 3, 2015 10:34
CoffeeLint watcher for Idea
<?xml version="1.0" encoding="UTF-8"?>
<TaskOptions>
<TaskOptions>
<option name="arguments" value="-f /Users/b.shabanov/projects/coffeescript-style-guide/coffeelint.json $FilePath$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="" />
<option name="exitCodeBehavior" value="ALWAYS" />
<option name="fileExtension" value="coffee" />
<option name="immediateSync" value="true" />
<option name="name" value="CoffeeLint" />
myTeleportal.Device.Board = {};
(function (board) {
'use strict';
console.info('initialize device board');
_.extend (board, Backbone.Events);
var keyCodes = {
class ApplicationController < ActionController::Base
protect_from_forgery
layout :layout_by_resource
def layout_by_resource
if devise_controller?
'no_body'
else
'application'