text
stringlengths
18
215k
b'What is -2 + (3 - 3) - (-18 + 24 + -18)?\n'
b'-24 + (-2 - -13) + (-9 - -5)\n'
/*The MIT License (MIT) Copyright (c) 2016 Muhammad Hammad Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Sogiftware. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/ package org.dvare.annotations; import org.dvare.expression.datatype.DataType; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface Type { DataType dataType(); }
import _curry2 from "./_curry2"; /** * Accepts an object and build a function expecting a key to create a "pair" with the key * and its value. * @private * @function * @param {Object} obj * @returns {Function} */ var _keyToPairIn = _curry2(function (obj, key) { return [key, obj[key]]; }); export default _keyToPairIn;
b'13 + (-8 - (-7 + -11) - 8)\n'
b'(22 - -2 - (27 - 24)) + -8\n'
b'What is -5 + (-2 - (-12 + -6)) - (-2 - -4)?\n'
<!DOCTYPE html> <html lang="en" ng-app="App"> <head> <meta charset="UTF-8"> <title>form</title> <link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css"> <style> .container { margin-top: 30px; } </style> </head> <body ng-controller="MyCtrl"> <div class="container"> <div class="row"> <div class="col-md-12"> <form class="form-horizontal" role="form"> <div class="form-group"> <div class="col-sm-2">honors</div> <div class="col-sm-8"> <!-- 从默认数据 model.setting.honors 里面读值 --> <div ng-repeat="honor in model.setting.honors" class="checkbox"> <label> <!-- 被选中的复选框的值(boolean)会直接赋给 model.postData.honors --> <input ng-model="model.postData.honors[$index].value" ng-checked="model.postData.honors[$index].value" ng-value="honor.value" type="checkbox">{{ honor.name }} </label> </div> <p class="small">{{ model.postData.honors }}</p> </div> </div> </form> </div> </div> </div> <script src="../../js/lib/jquery/dist/jquery.min.js"></script> <script src="../../js/lib/bootstrap/dist/js/bootstrap.min.js"></script> <script src="../../js/lib/angular-v1.4.8/angular.min.js"></script> <script> var app = angular.module('App', []); app .controller('MyCtrl', function($scope){ var vm = $scope; vm.model = { setting: { honors: [ { name: 'AllStar', value: 0 },{ name: 'Champion', value: 1 },{ name: 'FMVP', value: 2 } ] }, postData: { // honors: null, honors: [ {value: false}, {value: true}, {value: true} ] } }; }); </script> </body> </html>
# CMAKE generated file: DO NOT EDIT! # Generated by "MinGW Makefiles" Generator, CMake Version 2.8 # Relative path conversion top directories. SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "D:/lang/OpenCV-2.2.0") SET(CMAKE_RELATIVE_PATH_TOP_BINARY "D:/lang/OpenCV-2.2.0/dbg-w32") # Force unix paths in dependencies. SET(CMAKE_FORCE_UNIX_PATHS 1) # The C and CXX include file search paths: SET(CMAKE_C_INCLUDE_PATH "../." "." "../include" "../include/opencv" "../modules/haartraining" "../modules/core/include" "../modules/imgproc/include" "../modules/objdetect/include" "../modules/ml/include" "../modules/highgui/include" "../modules/video/include" "../modules/features2d/include" "../modules/flann/include" "../modules/calib3d/include" "../modules/legacy/include" ) SET(CMAKE_CXX_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH}) SET(CMAKE_Fortran_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH}) # The C and CXX include file regular expressions for this directory. SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
/** * Angular 2 decorators and services */ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { environment } from 'environments/environment'; import { AppState } from './app.service'; /** * App Component * Top Level Component */ @Component({ selector: 'my-app', encapsulation: ViewEncapsulation.None, template: ` <nav> <a [routerLink]=" ['./'] " routerLinkActive="active" [routerLinkActiveOptions]= "{exact: true}"> Index </a> </nav> <main> <router-outlet></router-outlet> </main> <pre class="app-state">this.appState.state = {{ appState.state | json }}</pre> <footer> <span>Angular Starter by <a [href]="twitter">@gdi2290</a></span> <div> <a [href]="url"> <img [src]="tipe" width="25%"> </a> </div> </footer> ` }) export class AppComponent implements OnInit { public name = 'Angular Starter'; public tipe = 'assets/img/tipe.png'; public twitter = 'https://twitter.com/gdi2290'; public url = 'https://tipe.io'; public showDevModule: boolean = environment.showDevModule; constructor( public appState: AppState ) {} public ngOnInit() { console.log('Initial App State', this.appState.state); } } /** * Please review the https://github.com/AngularClass/angular2-examples/ repo for * more angular app examples that you may copy/paste * (The examples may not be updated as quickly. Please open an issue on github for us to update it) * For help or questions please contact us at @AngularClass on twitter * or our chat on Slack at https://AngularClass.com/slack-join */
package sysadmin import org.scalatest._ import scalikejdbc._ import scalikejdbc.scalatest.AutoRollback import skinny.logging.Logging import skinny.test.FactoryGirl class userAdminSpec extends fixture.FunSpec with Matchers with Connection with CreateTables with AutoRollback with Logging { override def db(): DB = NamedDB('sysadmin).toDB() describe("factory.conf") { it("should be available") { implicit session => val user = FactoryGirl(User).create() user.os should equal("Windows 8") user.java should equal("6") user.user should equal("sera") } } describe("with os/java/user attributes") { it("should be available") { implicit session => val user = FactoryGirl(User).withAttributes('os -> "MacOS X", 'java -> "8", 'user -> "sera").create() user.os should equal("MacOS X") user.java should equal("8") user.user should equal("sera") } } }
b'Calculate -7 + (0 - -3) + 0 + 4 + 7.\n'