text
stringlengths
3
181k
src
stringlengths
5
1.02k
var searchData= [ ['sdesip',['sDesIP',['../structstListContainer.html#ab4fde5a0381565943612e2e672b02513',1,'stListContainer']]], ['sdesnwadress',['sDesNWAdress',['../structstListContainer.html#ae886a76fb72d96cbc124544538905ef8',1,'stListContainer']]], ['shostip',['sHostIP',['../structstRoutetable.html#a5cdcd38c1c8a9fd2bb7a34b5550a5f8c',1,'stRoutetable']]], ['shostname',['sHostName',['../structstRoutetable.html#a7e4e8ff4c0d99dde9f168795056ae06c',1,'stRoutetable']]], ['shostport',['sHostPort',['../structstRoutetable.html#a48bafcc14c088a68e976dd9a260dd6dd',1,'stRoutetable']]], ['sinterface',['sInterface',['../structstRoutetable.html#a02604c87af267a30c992c3c8f8e8366a',1,'stRoutetable']]], ['smask',['sMask',['../structstRoutetable.html#a14f14d5a55c22279a8cfb7452c6e1148',1,'stRoutetable']]], ['snetworkaddress',['sNetworkAddress',['../structstRoutetable.html#af2c8c267f263fa0065ea71714550e846',1,'stRoutetable']]], ['sremoteabip',['sRemoteABIP',['../structstListContainer.html#a2d926770549c1af0e1282f20cdc241e5',1,'stListContainer']]], ['sremoteablocalip',['sRemoteABLocalIP',['../structstListContainer.html#a661224bc268bac73ea4c4f179626f04b',1,'stListContainer']]], ['sremoteablocalport',['sRemoteABLocalPort',['../structstListContainer.html#aeadf64994288c18847cb1b9fc244922f',1,'stListContainer']]], ['sremoteabport',['sRemoteABPort',['../structstListContainer.html#ad2a9d2c715866e4fe3a2c588ab3105f0',1,'stListContainer']]], ['stime',['sTime',['../structstListContainer.html#acec007ec5b8190c8bf0242980b0b7528',1,'stListContainer']]] ];
abysmli/Axxel-Discovery-Protocol-doxygen/html/search/variables_73.js
#ifndef _CAMERA_INFO_IMX073MIPIRAW_MT6575_H #define _CAMERA_INFO_IMX073MIPIRAW_MT6575_H /******************************************************************************* * Configuration ********************************************************************************/ #define SENSOR_ID IMX073_SENSOR_ID #define SENSOR_DRVNAME SENSOR_DRVNAME_IMX073_MIPI_RAW #define INCLUDE_FILENAME_ISP_REGS_PARAM "camera_isp_regs_imx073mipiraw_mt6575.h" #define INCLUDE_FILENAME_ISP_PCA_PARAM "camera_isp_pca_imx073mipiraw_mt6575.h" /******************************************************************************* * ********************************************************************************/ #if defined(ISP_SUPPORT) #define IMX073MIPIRAW_CAMERA_AUTO_DSC CAM_AUTO_DSC #define IMX073MIPIRAW_CAMERA_PORTRAIT CAM_PORTRAIT #define IMX073MIPIRAW_CAMERA_LANDSCAPE CAM_LANDSCAPE #define IMX073MIPIRAW_CAMERA_SPORT CAM_SPORT #define IMX073MIPIRAW_CAMERA_FLOWER CAM_FLOWER #define IMX073MIPIRAW_CAMERA_NIGHTSCENE CAM_NIGHTSCENE #define IMX073MIPIRAW_CAMERA_DOCUMENT CAM_DOCUMENT #define IMX073MIPIRAW_CAMERA_ISO_ANTI_HAND_SHAKE CAM_ISO_ANTI_HAND_SHAKE #define IMX073MIPIRAW_CAMERA_ISO100 CAM_ISO100 #define IMX073MIPIRAW_CAMERA_ISO200 CAM_ISO200 #define IMX073MIPIRAW_CAMERA_ISO400 CAM_ISO400 #define IMX073MIPIRAW_CAMERA_ISO800 CAM_ISO800 #define IMX073MIPIRAW_CAMERA_ISO1600 CAM_ISO1600 #define IMX073MIPIRAW_CAMERA_VIDEO_AUTO CAM_VIDEO_AUTO #define IMX073MIPIRAW_CAMERA_VIDEO_NIGHT CAM_VIDEO_NIGHT #define IMX073MIPIRAW_CAMERA_NO_OF_SCENE_MODE CAM_NO_OF_SCENE_MODE #endif #endif
skritchz/android_kernel_wiko_peaxjb-mediatek/custom/common/hal/imgsensor/imx073_mipi_raw/camera_info_imx073mipiraw_mt6575.h
require_relative 'helper' require_relative '../lib/month' ############################################# # Unit tests for Month class ############################################# class TestMonth < Minitest::Test def test_initializing_a_month_saves_values m = Month.new(05, 2015) assert_equal 05, m.month assert_equal 2015, m.year end def test_name_for_march m = Month.new(03, 2015) assert_equal m.name, "March" end def test_day_count_for_march m = Month.new(03, 2015) assert_equal m.day_count, 31 end def test_day_count_for_feb_non_leap m = Month.new(02, 2015) assert_equal m.day_count, 28 end def test_day_count_for_feb_leap m = Month.new(02, 2016) assert_equal m.day_count, 29 end def test_to_s_method_starting_on_sunday m = Month.new(03, 2015) expected = <<EOS March 2015 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 EOS assert_equal expected, m.to_s end def test_to_s_method_starting_on_saturday m = Month.new(03, 3000) expected = <<EOS March 3000 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 EOS assert_equal expected, m.to_s end def test_to_s_method_feb_2009 m = Month.new(02, 2009) expected = <<EOS February 2009 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 EOS assert_equal expected, m.to_s end end
higgintop/cal-test/test_month.rb
var getMeshMixin = require('../getMeshMixin'); var registerPrimitive = require('../primitives').registerPrimitive; var utils = require('../../../utils/'); registerPrimitive('a-collada-model', utils.extendDeep({}, getMeshMixin(), { mappings: { src: 'collada-model' } }));
DanielDanielDanielDanielDaniel/tvhackday-src/extras/primitives/primitives/a-collada-model.js
# In the decomposition reaction, 1 mole of water (MW = 18.015 g/mol) was produced In the decomposition reaction, 1 mole of water (MW = 18.015 g/mol) was produced for every mole of CuO (MW = 79.545 g/mol) produced. Given that 3.327 g of CuO was produced during the reaction, how many grams of water were released as water vapor? (number of moles = mass (g) / molar mass (g/mol)).
finemath-3plus
import BackoffFactory, { Backoff, BackoffOpts, isBackoffOpts } from './backoff' import { EndeavourCallback } from './runnable' export interface EndeavourOpts extends BackoffOpts { retries?: number forever?: boolean } /** * Typeguard for asseting some arg is of the EndeavourOpts * type */ function isEndeavourOpts(arg: any): arg is EndeavourOpts { return ( typeof arg === 'object' && (typeof arg.retries === 'number' || typeof arg.forever === 'boolean' || isBackoffOpts(arg)) ) } export function getEndeavourArgs( this: any, optsOrCtx: any = {}, ctx?: any ): { operationCtx: any; opts: any; backoff: Backoff } { let opts: any = { retries: 10, forever: false } let operationCtx: any let backoff: Backoff if (isEndeavourOpts(optsOrCtx)) { opts = { ...opts, ...optsOrCtx } operationCtx = ctx // If no options are passed into endeavour() optsOrCtx is an empty // object. When this is the case the ctx is just set to "this" in endeavour } else if (optsOrCtx instanceof Object && Object.keys(optsOrCtx).length) { operationCtx = optsOrCtx } backoff = BackoffFactory(opts) return { opts, operationCtx, backoff } } export function getRunnableArgs( args: Array<any> ): { interceptArgs: Array<any>; intercept: Function | undefined } { let interceptArgs = [] let intercept if (args[0] instanceof Array) { interceptArgs = args[0] } else if (typeof args[0] === 'function') { intercept = args[0] } if (typeof args[1] === 'function') { intercept = args[1] } return { interceptArgs, intercept } }
TobyColeman/endeavour-src/config.ts
package org.cloudcoder.analysis.features.java; public class Course { private String name=""; private String title=""; private String credit=""; private String foundation=""; private String faculty=""; private String period=""; private String days=""; private String building=""; private String room=""; private String diversity="---"; private String writing="---"; private String speaking="---"; private String prereqs="none"; private String myClass = ""; @Override public String toString() { return name+"\t"+title+"\t"+credit+"\t"+ foundation+"\t"+diversity+"\t"+writing+"\t"+speaking+"\t"+ prereqs+"\t"+faculty+"\t"+ period+"\t"+days+"\t"+building+"\t"+room+"\t"; } public static String td(String data,String myClass) { if(myClass != ""){ return "<td class=\""+myClass+"\">"+data+"</td>"; } else { return "<td>"+data+"</td>"; } } public String toRow() { return "<tr>"+ td(name,myClass)+ td(title,myClass)+ td(credit,myClass)+ td(foundation,myClass)+td(diversity,myClass)+td(writing,myClass)+td(speaking,myClass)+ td(prereqs,myClass)+td(faculty,myClass)+ td(period,myClass)+td(days,myClass)+td(building,myClass)+td(room,myClass)+ "</tr>"; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getCredit() { return credit; } public void setCredit(String credit) { this.credit = credit; } public String getFoundation() { return foundation; } public void setFoundation(String foundation) { this.foundation = foundation; } public String getFaculty() { return faculty; } public void setFaculty(String faculty) { this.faculty = faculty; } public String getPeriod() { return period; } public void setPeriod(String period) { this.period = period; } public String getDays() { return days; } public void setDays(String days) { this.days = days; } public String getBuilding() { return building; } public void setBuilding(String building) { this.building = building; } public String getRoom() { return room; } public void setRoom(String room) { this.room = room; } public String getDiversity() { return diversity; } public void setDiversity(String diversity) { this.diversity = diversity; } public String getWriting() { return writing; } public void setWriting(String writing) { this.writing = writing; } public String getSpeaking() { return speaking; } public void setSpeaking(String speaking) { this.speaking = speaking; } public String getPrereqs() { return prereqs; } public void setPrereqs(String prereqs) { this.prereqs = prereqs; } public void setClass(String c){ myClass = c; } }
cloudcoderdotorg/CloudCoder-CloudCoderAnalysis/src/org/cloudcoder/analysis/features/java/Course.java
module.exports = function(sequelize, DataTypes){ //tables var Supplier = sequelize.define('supplier', { supplier_id: { type:DataTypes.STRING, primarykey:true, allowNull:false }, supplierName:{ type:DataTypes.STRING, defaulvalue:null, allowNull:false }, current_location:{ type:DataTypes.STRING, defaulvalue:null }, phone_number:{ type:DataTypes.STRING, defaulvalue:null } }); var Purchase_Order = sequelize.define('purchase_order', { purchase_order_id:{ type:DataTypes.INTEGER, primarykey:true, allowNull:false }, supplier_id:{ type:DataTypes.STRING, defaulvalue:null, allowNull:false }, date:{ type:DataTypes.DATE, defaulvalue:null }, recievedDate:{ type:DataTypes.DATE, defaulvalue:null }, status:{ type:DataTypes.STRING, defaulvalue:null } }); var Purchase_Requisition = sequelize.define('purchase_requisition', { purchase_requisition_id:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, supplier_id:{ type:DataTypes.STRING, defaulvalue:null, allowNull:false }, date:{ type:DataTypes.STRING, defaulvalue:null }, status:{ type:DataTypes.STRING, defaulvalue:null }, }); var GRN = sequelize.define('grn', { grnid:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, supplier_id:{ type:DataTypes.STRING, defaulvalue:null, allowNull:false }, date:{ type:DataTypes.STRING, defaulvalue:null } }); var Inventory_Item = sequelize.define('inventory', { item_id:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, item_name:{ type:DataTypes.STRING, defaulvalue:null }, date:{ type:DataTypes.STRING, defaulvalue:null } }); var Purchase_OrderDetails = sequelize.define('purchase_orderDetails', { itemNo:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, itemDes:{ type:DataTypes.STRING, allowNull:false }, qty:{ type:DataTypes.STRING, defaulvalue:null }, unitPrice:{ type:DataTypes.STRING, defaulvalue:null }, total:{ type:DataTypes.STRING, defaulvalue:null } }); var GRN_Details = sequelize.define('grnDetails', { grnid:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, itemNo:{ type:DataTypes.STRING, primarykey:true, allowNull:false }, description:{ type:DataTypes.STRING, primarykey:true, }, qty:{ type:DataTypes.STRING, defaulvalue:null }, inspected:{ type:DataTypes.STRING, defaulvalue:null }, rejected:{ type:DataTypes.STRING, defaulvalue:null }, balance:{ type:DataTypes.STRING, defaulvalue:null } }); Purchase_Order.hasOne(Purchase_OrderDetails,{ foreignKey: 'purchase_order_id' }); //array return [Supplier,Purchase_Order,Purchase_Requisition,GRN,Inventory_Item,Purchase_OrderDetails,GRN_Details]; }
sayanuIT/teds2-server/database/Db object/purchase.js
module F3LAE where import Prelude hiding (lookup) -- | Several type synonymous to improve readability type Name = String type FormalArg = String type Id = String -- | A type for representing function declaration data FunDec = FunDec Name FormalArg Exp deriving(Show, Eq) -- | The abstract syntax of F3LAE data Exp = Num Integer | Add Exp Exp | Sub Exp Exp | Let Id Exp Exp | Ref Id | App Name Exp | Lambda FormalArg Exp | LambdaApp Exp Exp deriving(Show, Eq) -- | The environment with the list of deferred substitutions. type DefrdSub = [(Id, Value)] -- | The value data type. -- -- In this language (F3LAE), an expression -- is reduced to a value: either a number or -- a closure. A closure is a lambda expression -- that *closes* together its definition with the -- pending substitutions at definition time. -- data Value = NumValue Integer | Closure FormalArg Exp DefrdSub deriving(Show, Eq) -- | The interpreter function \0/ interp :: Exp -> DefrdSub -> [FunDec] -> Value -- the simple interpreter for numbers. interp (Num n) ds decs = NumValue n -- the interpreter for an add expression. interp (Add e1 e2) ds decs = NumValue (v1 + v2) where NumValue v1 = interp e1 ds decs NumValue v2 = interp e2 ds decs -- the interpreter for a sub expression. interp (Sub e1 e2) ds decs = NumValue (v1 - v2) where NumValue v1 = interp e1 ds decs NumValue v2 = interp e2 ds decs -- the interpreter for a let expression. -- note here that, to improve reuse, we actually -- convert a let exprssion in the equivalent -- lambda application (ela), and then interpret it. interp (Let v e1 e2) ds decs = interp ela ds decs where ela = (LambdaApp (Lambda v e2) e1) -- the interpreter for a reference to a variable. -- here, we make a lookup for the reference, in the -- list of deferred substitutions. interp (Ref v) ds decs = let res = lookup v fst ds in case res of (Nothing) -> error $ "variable " ++ v ++ " not found" (Just (_, value)) -> value -- the interpreter for a function application. -- here, we first make a lookup for the function declaration, -- evaluates the actual argument (leading to the parameter pmt), -- and then we interpret the function body in a new "local" environment -- (env). interp (App n a) ds decs = let res = lookup n (\(FunDec n _ _) -> n) decs in case res of (Nothing) -> error $ "funtion " ++ n ++ " not found" (Just (FunDec _ farg body)) -> interp body env decs where pmt = interp a ds decs env = [(farg, pmt)] -- the interpreter for a lambda abstraction. -- that is the most interesting case (IMO). it -- just returns a closure! interp (Lambda farg body) ds decs = Closure farg body ds -- the interpreter for a lambda application. -- plese, infer what is going on here in this -- case interp (LambdaApp e1 e2) ds decs = interp body env decs -- we interpret considering the new environment where Closure farg body ds0 = interp e1 ds decs -- we expect e1 to evaluate to a closure. pmt = interp e2 ds decs -- ds0 is the deferred substitutions at the lambda declaration env = (farg, pmt):ds0 -- env is the original environment (ds0) + a new mapping -- a new lookup function. lookup :: Id -> (a -> String) -> [a] -> Maybe a lookup _ f [] = Nothing lookup v f (x:xs) | v == f x = Just x | otherwise = lookup v f xs
rodrigofegui/UnB-2017.2/Linguagens de Programação/short-plai_Trab 2/c3/F3LAE.hs
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax --crankshaft // The Crankshaft fast case for String.fromCharCode used to unconditionally // deoptimize on non int32 indices. function foo(i) { return String.fromCharCode(i); } foo(33); foo(33); %OptimizeFunctionOnNextCall(foo); foo(33.3); assertOptimized(foo);
RPGOne/Skynet-node-master/deps/v8/test/mjsunit/regress/regress-crbug-587068.js
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v13.1.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var grid_1 = require("../grid"); function initialiseAgGridWithAngular1(angular) { var angularModule = angular.module("agGrid", []); angularModule.directive("agGrid", function () { return { restrict: "A", controller: ['$element', '$scope', '$compile', '$attrs', AngularDirectiveController], scope: true }; }); } exports.initialiseAgGridWithAngular1 = initialiseAgGridWithAngular1; function AngularDirectiveController($element, $scope, $compile, $attrs) { var gridOptions; var quickFilterOnScope; var keyOfGridInScope = $attrs.agGrid; quickFilterOnScope = keyOfGridInScope + '.quickFilterText'; gridOptions = $scope.$eval(keyOfGridInScope); if (!gridOptions) { console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope"); return; } var eGridDiv = $element[0]; var gridParams = { $scope: $scope, $compile: $compile, quickFilterOnScope: quickFilterOnScope }; var grid = new grid_1.Grid(eGridDiv, gridOptions, gridParams); $scope.$on("$destroy", function () { grid.destroy(); }); }
joeyparrish/cdnjs-ajax/libs/ag-grid/13.1.0/lib/components/agGridNg1.js
package com.oocl.mnlbc.entity; import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; @Entity @Table(name = "teacher") public class Teacher{ @Id @Column(name = "teacher_id") private String tid; @Column(name = "teacher_name") private String tname; @Column(name = "teacher_school_name") private String tschoolname; @OneToMany(cascade = CascadeType.ALL, mappedBy = "stteacherid", fetch = FetchType.LAZY) private List<Student> studentList; public List<Student> getStudentList() { return studentList; } public void setStudentList(List<Student> studentList) { this.studentList = studentList; } public String getTid() { return tid; } public void setTid(String tid) { this.tid = tid; } public String getTname() { return tname; } public void setTname(String tname) { this.tname = tname; } public String getTschoolname() { return tschoolname; } public void setTschoolname(String tschoolname) { this.tschoolname = tschoolname; } }
MNLBC/Group2Projects-4. Meynard Denoyo/W6D1_Homework/Number 1/src/main/java/com/oocl/mnlbc/entity/Teacher.java
var total_image; var i; var t; var image,transition_flag=1; function initialization() { i=1; total_image = document.getElementById("total_image").innerHTML; t= setTimeout("fading()",3000); image = 'url("'+document.getElementById("filename_1").innerHTML+'")'; } function fading() { clearTimeout(t); transition_flag=0; $("#background-back").animate({"opacity":"1"},3000); $("#background-front").animate({"opacity":"0"},3000,function() { transition_flag=1; //alert(image); $("#background-front").css({"background-image":image}); //document.getElementById("background-link").src = document.getElementById("link_"+i).innerHTML; $("#background-front").css({"opacity":"1"}); $("#background-back").css({"opacity":"0"}); if (i<(total_image-1)) { i++; } else { i=0; } image = 'url("'+document.getElementById("filename_"+i).innerHTML+'")'; $("#background-back").css({"background-image":image}); t= setTimeout("fading()",3000); }); } function next(){ if(transition_flag==1){ transition_flag=0; clearTimeout(t); if (i<(total_image-1)) { i++; } else { i=0; } image = 'url("'+document.getElementById("filename_"+i).innerHTML+'")'; $("#background-back").css({"background-image":image}); $("#background-back").animate({"opacity":"1"},3000); $("#background-front").animate({"opacity":"0"},3000,function() { transition_flag=1; $("#background-front").css({"background-image":image}); //document.getElementById("background-link").src = document.getElementById("link_"+i).innerHTML; $("#background-front").css({"opacity":"1"}); $("#background-back").css({"opacity":"0"}); if (i<(total_image-1)) { i++; } else { i=0; } image = 'url("'+document.getElementById("filename_"+i).innerHTML+'")'; $("#background-back").css({"background-image":image}); t= setTimeout("fading()",3000); }); } } function prev(){ if(transition_flag==1){ transition_flag=0; clearTimeout(t); if (i>1) { i=i-2; } else if (i==1){ i=total_image-1; } else { i=total_image-2; } image = 'url("'+document.getElementById("filename_"+i).innerHTML+'")'; $("#background-back").css({"background-image":image}); $("#background-back").animate({"opacity":"1"},3000); $("#background-front").animate({"opacity":"0"},3000,function() { transition_flag=1; $("#background-front").css({"background-image":image}); //document.getElementById("background-link").src = document.getElementById("link_"+i).innerHTML; $("#background-front").css({"opacity":"1"}); $("#background-back").css({"opacity":"0"}); if (i<(total_image-1)) { i++; } else { i=0; } image = 'url("'+document.getElementById("filename_"+i).innerHTML+'")'; $("#background-back").css({"background-image":image}); t= setTimeout("fading()",3000); }); } }
masmomo/islandcreamery-js/home.js
def main(): x = "ほげ" y = 123 concat(x, y) def concat(a, b): try: return a + b except: return a(str) + b(str) if __name__ == '__main__': main()
ekazyam/study-パーフェクトPython/pp_061_明示的型変換.py
import java.util.EventObject; public class ServiceMyEventThread extends MyEventListener { private int counter; /** * Constructor with delay to add the listener. * @param delay */ public ServiceMyEventThread(int delay) { addEventListener(delay); counter = 0; } /** * Default constructor */ public ServiceMyEventThread() { } public void addEventListener(int delay) { // Create a new MyEventClass MyEventSource myEvent = new MyEventSource(delay); myEvent.addEventListener(this); this.setShowDialog(false); this.start(); } @Override public void handleMyEventClassEvent(EventObject e) { this.setShowDialog(true); } @Override protected void executeEvent() { //JOptionPane.showMessageDialog(null, "A custom event occurred", //"Message Dialog", JOptionPane.PLAIN_MESSAGE); counter++; MyGUI.setAlertLabel("Alert " + counter); } }
gnu-user/distributed-systems-labs/lab_2/Lab2part3/ServiceMyEventThread.java
import applyFactory from './applyFactory'; /* eslint-disable no-plusplus */ /* Sorry for imperative style, the goal is performance */ export default function imposeAssembler(stock) { const state = {}; applyFactory( stock, { state, }, ); return state; } /* eslint-enable */
morulus/recreator-src/impose.js
Pan.bg 07 окт 2010 | 22:31 (9936) (0) 7 ГОДИНИ БЕЗ ПОЛК. АТАНАС АТАНАСОВ, КОМАНДИР НА ВВС:… 0 2502 Български орли: 73 години от бомбардировките над София… 0 3160 96 години от рождението на полковник Розев, един от… 0 5545 57На линия в момента 2451Посещения Днес 26377Посещения тази седмица 248403Посещения този месец
c4-bg
import * as actions from './actions'; import reducers from './reducers'; import sagas from './sagas'; import * as selectors from './selectors'; export default { actions, reducers, sagas, selectors };
DAppx/SharpReact-src/shared/universal/modules/common/index.js
#ifndef ALPHA_BOX2_HEADER #define ALPHA_BOX2_HEADER #include <cmath> namespace nt { /** * A 2-dimensional bounding box. */ template <typename Scalar> class Box2 { Scalar _left; Scalar _right; Scalar _top; Scalar _bottom; public: Box2( const Scalar& left, const Scalar& right, const Scalar& top, const Scalar& bottom) : _left(left), _right(right), _top(top), _bottom(bottom) {} Box2() : _left(), _right(), _top(), _bottom() {} const Scalar& left() const; const Scalar& right() const; const Scalar& top() const; const Scalar& bottom() const; const Scalar width() const; const Scalar height() const; void set(const Scalar& left, const Scalar& right, const Scalar& top, const Scalar& bottom); void setVertical(const Scalar& left, const Scalar& right); void setHorizontal(const Scalar& left, const Scalar& right); void setLeft(const Scalar& left); void setRight(const Scalar& right); void setTop(const Scalar& top); void setBottom(const Scalar& bottom); void clear(); }; template <typename Scalar> const Scalar& Box2<Scalar>::left() const { return _left; } template <typename Scalar> const Scalar& Box2<Scalar>::right() const { return _right; } template <typename Scalar> const Scalar& Box2<Scalar>::top() const { return _top; } template <typename Scalar> const Scalar& Box2<Scalar>::bottom() const { return _bottom; } template <typename Scalar> const Scalar Box2<Scalar>::width() const { return std::abs(right() - left()); } template <typename Scalar> const Scalar Box2<Scalar>::height() const { return std::abs(bottom() - top()); } template <typename Scalar> void Box2<Scalar>::setVertical(const Scalar& top, const Scalar& bottom) { setTop(top); setBottom(bottom); } template <typename Scalar> void Box2<Scalar>::setHorizontal(const Scalar& left, const Scalar& right) { setLeft(left); setRight(right); } template <typename Scalar> void Box2<Scalar>::setLeft(const Scalar& left) { _left = left; } template <typename Scalar> void Box2<Scalar>::setRight(const Scalar& right) { _right = right; } template <typename Scalar> void Box2<Scalar>::setTop(const Scalar& top) { _top = top; }; template <typename Scalar> void Box2<Scalar>::setBottom(const Scalar& bottom) { _bottom = bottom; }; template <typename Scalar> void Box2<Scalar>::clear() { set(0, 0, 0, 0); } } // namespace nt #endif // ALPHA_BOX2_HEADER
dafrito/alpha-include/Box2.hpp
import traceback import subprocess import sublime import sublime_plugin class TestCommand(sublime_plugin.TextCommand): def run(self, edit): print("Hello SubNote!") self.caller() print("Bye SubNote") def caller(self): command = ["python", "./evernote_test/evernote_test.py"] try: err_file = open("error.log", 'w') output = subprocess.check_output(command, universal_newlines=True, stderr=err_file) except: traceback.print_exc(file=sys.stdout) output = "Error Occured." print(output)
ravitkhurana/SubNote-SubNote.py
// // MainViewController.h /* Smart Animal Training Systems, LLC Pet Tutor Demo for iOS Coder: David Nelson Contact: [email protected] Modified Date: 7/1/2015 Copyright (c) 2015 Smart Animal Training Systems, LLC. All rights reserved. License: This software is provided to you through the The MIT License (MIT) Copyright (c) 2015 Smart Animal Training Systems, LLC 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 Software. 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. */ #import <UIKit/UIKit.h> #import <PTDBeanManager.h> @interface DevicesTableViewController : UITableViewController <PTDBeanDelegate, PTDBeanManagerDelegate> // we need a bean manager to manage connections to the devices @property (nonatomic, retain) PTDBeanManager *mBeanManager; // we use a mutable array to store all available devices @property (nonatomic, retain) NSMutableArray *mPTDevices; // we send our connected bean forward to the next view so we store it here @property (nonatomic, retain) PTDBean *selectedBean; @end
PetTutor/PetTutor-SDK-Demos-iOS/PetTutorDemo/PetTutorDemo/DevicesTableViewController.h
exports.run = async (client, message, cmd, args, level) => { try { // If no specific command is called, show all filtered commands if (!args[0]) { // Filter all commands by which are available for the user's level, using the <Collection>.filter() method. const myCommands = message.guild ? client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level && cmd.conf.enabled) : client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level && cmd.conf.guildOnly !== true && cmd.conf.enabled); let currentCategory = ""; let output = `**__COMMAND LIST__**\nUse \`${message.settings.prefix}help <command-name>\` for details\n`; const sorted = myCommands.array().sort((p, c) => p.help.category > c.help.category ? 1 : p.help.name > c.help.name && p.help.category === c.help.category ? 1 : -1 ); sorted.forEach( c => { const cat = c.help.category.toProperCase(); if (currentCategory !== cat) { output += `\n**${cat.toUpperCase()}:**\n`; currentCategory = cat; } output += `**\`${message.settings.prefix}${c.help.name}\`** - ${c.help.description}\n`; }); await message.channel.send(output); await message.channel.send("Visit the User Guide for more info: <https://rmgirardin.gitbooks.io/mouse-bot-user-manual/>"); } // If command is specified, show the command details else { const commandName = args[0]; if (client.commands.has(commandName) || client.commands.get(client.aliases.get(commandName))) { const command = client.commands.get(commandName) || client.commands.get(client.aliases.get(commandName)); if (level < client.levelCache[command.conf.permLevel]) return await message.channel.send(`${message.author}, you don't have the permissions to use that command.`); if (!command.conf.enabled) return await message.channel.send(`${message.author}, I can't find that command.`); let output = `Command: **__${command.help.name}__** Description: **${command.help.description}** Permission: **${command.conf.permLevel.replace("User", "Everyone")}**`; if (command.conf.aliases.length >= 1) output += `\nAliases: **${command.conf.aliases.join(", ")}**`; if (command.conf.arguments.length >= 1) output += `\nOptional Arguments: **${command.conf.arguments.join(", ")}**`; output += `\n\nUsage:\`\`\`${message.settings.prefix}${command.help.usage}\n\`\`\` Examples:\`\`\`\n${message.settings.prefix}${command.help.examples.join(`\n${message.settings.prefix}`)}\n\`\`\` <https://rmgirardin.gitbooks.io/mouse-bot-user-manual/content/${command.help.name}.html>`; await message.channel.send(output); } else return await message.channel.send(`${message.author}, I can't find that command.`); } } catch (error) { client.errlog(cmd, message, level, error); client.logger.error(client, `help command failure:\n${error.stack}`); client.codeError(message); } }; exports.conf = { enabled: true, guildOnly: false, aliases: ["h", "halp"], arguments: [], permLevel: "User" }; exports.help = { name: "help", category: "System", description: "Help command gives help", usage: "help [command-name]", examples: ["help", "help halp", "help convert"] };
rmgirardin/mouse-bot-commands/help.js
package org.softuni; import java.util.Random; import java.util.Scanner; public class _07_RandomizeNumbersFromNtoM { public static void main(String[] args) { Scanner in = new Scanner(System.in); Random RNG = new Random(); System.out.print("N M = "); Integer N = in.nextInt(); Integer M = in.nextInt(); Integer min = Math.min(N, M); Integer max = Math.max(N, M); for (int i = 0; i <= Math.abs(N - M) ; i++) { System.out.printf("%d ", RNG.nextInt((max - min) + 1) + min); } } }
sholev/SoftUni-Fundamentals-2.0/JavaFundamentals/Homework/JavaSyntax/src/org/softuni/_07_RandomizeNumbersFromNtoM.java
using UnityEngine; using System.Collections; public class AttackingMonster : MonoBehaviour { Animator anim; GameObject building; public float rotationSpeed = 2.0f; // Use this for initialization void Start () { anim = GetComponent<Animator>(); //Now cast a ray from the computed position downwards and find the highest hit Vector3 newPosition = transform.position; RaycastHit[] hits = Physics.RaycastAll(new Ray(newPosition, Vector3.down)); newPosition.y = -100f; foreach(RaycastHit hit in hits){ if (!hit.transform.IsChildOf(transform)){ newPosition.y = Mathf.Max(newPosition.y, hit.point.y); } } transform.position = newPosition; pickNewBuilding(); anim.SetBool("Walk", true); } void Update() { if(building == null) pickNewBuilding(); Vector3 direction = (building.transform.position - transform.position).normalized; Quaternion lookRotation = Quaternion.LookRotation(direction); transform.rotation = Quaternion.Slerp(transform.rotation, lookRotation, Time.deltaTime * rotationSpeed); } void OnCollisionEnter(Collision other){ if(other.gameObject.tag == "Player"){ GameObject menuObject = GameObject.FindGameObjectWithTag("Menu"); MainMenu menu = menuObject.GetComponent<MainMenu>(); menu.EndGame(); } else if(other.gameObject.tag == "Building"){ if(other.gameObject == building){ pickNewBuilding(); } } } void pickNewBuilding(){ GameObject[] buildings = GameObject.FindGameObjectsWithTag("Building"); if(buildings.Length != 0){ int bNum = Random.Range(0, buildings.Length); GameObject newBuilding = buildings[bNum]; building = newBuilding; } } }
bpgabin/kaiju-Assets/Scripts/AttackingMonster.cs
আবাহনীর শীর্ষস্থান অক্ষুণ্ন | | BD Sports 24 আবাহনীর শীর্ষস্থান অক্ষুণ্ন – BD Sports 24 আবাহনীর শীর্ষস্থান অক্ষুণ্ন ফতুল্লা (নারায়ণগঞ্জ), ১৮ মার্চ: ঢাকা প্রিমিয়ার ডিভিশন ক্রিকেট লিগে নিজেদের ১১তম ম্যাচে শাইনপুকুর ক্রিকেট ক্লাবকে ৫৬ রানের বড় ব্যবধানে পরাজিত করেছে ঢাকা আবাহনী। এর ফলে অষ্টম জয়ে ১৬ পয়েন্ট নিয়ে শীর্ষস্থান অক্ষুণ্ন রেখেছে ঢাকা আবাহনী। টস হেরে প্রথমে ব্যাট করতে নেমে নাজমুল হোসেন শান্তর অপরাজিত ১৫০ রান এবং সাইফ হাসানের ৯৪ রানের উপর ভর করে ৪ উইকেটে ৩৩৫ রানের বড় স্কোর গড়ে আবাহনী। নাজমুল হোসেন শান্ত ১২০ বলে ৯ চার ও ৯ ছক্কায় ১৫০ রানে অপরাজিত থাকেন। সাইফ হাসান ১১৪ বলে করেন ৯৪ রান। অধিনায়ক নাসির হোসেন ২৪ বলে ৪ বাউন্ডারি ও ৩ ছক্কায় করেন ৪৫ রান। শাইনপুকুরের বোলারদের মধ্যে মোহাম্মদ সাইফুদ্দিন ও নাইম ইসলাম জুনিয়র দুটি করে উইকেট নেন। ৩২৫ রানে জয়ের লক্ষ্যে ব্যাট করতে নেমে শাইনপুকুর ৩ উইকেটে ২৭৯ রানের বেশি এগুতে না পারায় ৫৬ রানে জিতে যায় আবাহনী। শাইনপুকুরের ওপেনার ফারদিন হাসান অনি ১০৪ রান করে রিটায়ার্ড আউট হন। এছাড়া সাদমান ইসলাম ৫৬ ও তৌহিদ হৃদয় ৭২ বলে ৮৩ রান করেন। আবাহনীর মাশরাফি বিন মর্তুজা নেন ২ উইকেট্ ম্যাচসেরা হন আবাহনীর নাজমুল হোসেন শান্ত। এ ম্যাচ হেরে যাওয়ায় ১১ খেলায় শাইনপুকুরের সংগ্রহ ১০ পয়েন্ট।
c4-bn
[MISSING_PAGE_FAIL:1] [MISSING_PAGE_FAIL:2] semidefinite program. Importantly, it also leads to a closed-form embedding by a spectral method. For better visualization, however, we map the final embedded points to the Poincare model via the stereographic projection, see Sections 2.1.2 and 4. #### 2.1.1. 'Loid Model Let \(x\) and \(y\) be vectors in \(\mathbb{R}^{d+1}\) with \(d\geq 1\). The Lorentzian inner product of \(x\) and \(y\) is defined as \[[x,y]=x^{\top}Hy, \tag{1}\] where \[H=\begin{pmatrix}-1&0^{\top}\\ 0&I\end{pmatrix}\in\mathbb{R}^{(d+1)\times(d+1)}. \tag{2}\] This is an indefinite inner product on \(\mathbb{R}^{d+1}\). The Lorentzian inner product has almost all the properties of ordinary inner products, except that \[\|x\|_{H}^{2}\overset{\text{def}}{=}[x,x] \tag{3}\] can be positive, zero, or negative. The vector space \(\mathbb{R}^{d+1}\) equipped with the Lorentzian inner product (1) is called a Lorentzian \((d+1)\)-space, and is denoted by \(\mathbb{R}^{1,d}\). In a Lorentzian space we can define notions similar to the Gram matrix, adjoint, and unitary matrices known from Euclidean spaces as follows. Definition 1 (H-adjoint [23]).: _The \(H\)-adjoint \(R^{[*]}\) of an arbitrary matrix \(R\in\mathbb{R}^{(d+1)\times(d+1)}\) is characterized by_ \[[Rx,y]=[x,R^{[*]}y],\ \forall x,y\in\mathbb{R}^{d+1}. \tag{4}\] _Equivalently,_ \[R^{[*]}=H^{-1}R^{\top}H. \tag{5}\] Definition 2 (H-unitary matrix [23]).: _An invertible matrix \(R\) is called \(H\)-unitary if \(\mathbb{R}^{[*]}=R^{-1}\)._ The 'Loid model of \(d\)-dimensional hyperbolic space is a Riemannian manifold \(\mathcal{L}^{d}=(\mathbb{L}^{d},(g_{x})_{x})\), where \[\mathbb{L}^{d}=\left\{x\in\mathbb{R}^{d+1}:\|x\|_{H}^{2}=-1,x_{0}>0\right\} \tag{6}\] and \(g_{x}=H\) is the Riemannian metric. Definition 3 (Lorentz Gramian, H-Gramian).: _Let the columns of \(X=[x_{1},x_{2},\cdots,x_{N}]\) be the positions of \(N\) points in \(\mathbb{R}^{d+1}\) (resp. \(\mathbb{L}^{d}\)). We define their corresponding Lorentz Gramian (resp. H-Gramian) as_ \[G =\left(\left[x_{i},x_{j}\right]\right)_{i,j\in[N]}\] \[=X^{\top}HX \tag{7}\] _where \(H\) is the indefinite matrix given by (2)._ The subtle difference between the Lorentz Gramian (defined for points in \(\mathbb{R}^{d+1}\)) and the H-Gramian (defined only on \(\mathbb{L}^{d}\subset\mathbb{R}^{d+1}\)) will be important for the low-rank projection and the spectral factorization steps in Section 3. The indefinite inner product (1) also determines the distance between \(x,y\in\mathbb{L}^{d}\), as \[d(x,y)=\operatorname{acosh}(-[x,y]). \tag{8}\] #### 2.1.2. Poincare Model In the Poincare model (\(\mathbb{I}^{d}\)), the points reside in the unit \(d\)-dimensional Euclidean ball. The distance between \(x,y\in\mathbb{I}^{d}\) is given by \[d(x,y)=\operatorname{acosh}\Bigl{(}1+2\frac{\|x-y\|^{2}}{(1-\|x\|^{2})(1-\|y \|^{2})}\Bigr{)}. \tag{9}\] The isometry between the 'Loid and the Poincare model, \(h:\mathbb{L}^{d}\rightarrow\mathbb{I}^{d}\) is called the _stereographic projection_. For \(y=h(x)\), we have \[y_{i}=\frac{x_{i+1}}{x_{0}+1}, \tag{10}\] The inverse of stereographic projection is given by \[x=h^{-1}\left(y\right)=\frac{1}{1-\|y\|^{2}}\left[\begin{array}{c}1+\|y\|^ {2}\\ 2y\end{array}\right]. \tag{11}\] The isometry between the 'Loid and Poincare models makes them equivalent in their embedding capabilities. However, the Poincare model facilitates visualization of the embedded points in a bounded disk, whereas the 'Loid model is an unbounded space.
2005.08672v2.mmd
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // 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 // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.flows; import static com.google.common.base.MoreObjects.toStringHelper; import static com.google.common.base.Preconditions.checkNotNull; import static google.registry.util.CollectionUtils.nullToEmpty; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableSet; import java.util.Set; /** A read-only {@link SessionMetadata} that doesn't support login/logout. */ public class StatelessRequestSessionMetadata implements SessionMetadata { private final String registrarId; private final ImmutableSet<String> serviceExtensionUris; public StatelessRequestSessionMetadata( String registrarId, ImmutableSet<String> serviceExtensionUris) { this.registrarId = checkNotNull(registrarId); this.serviceExtensionUris = checkNotNull(serviceExtensionUris); } @Override public void invalidate() { throw new UnsupportedOperationException(); } @Override public String getRegistrarId() { return registrarId; } @Override public Set<String> getServiceExtensionUris() { return serviceExtensionUris; } @Override public int getFailedLoginAttempts() { return 0; } @Override public void setRegistrarId(String registrarId) { throw new UnsupportedOperationException(); } @Override public void setServiceExtensionUris(Set<String> serviceExtensionUris) { throw new UnsupportedOperationException(); } @Override public void incrementFailedLoginAttempts() { throw new UnsupportedOperationException(); } @Override public void resetFailedLoginAttempts() { throw new UnsupportedOperationException(); } @Override public String toString() { return toStringHelper(getClass()) .add("clientId", getRegistrarId()) .add("failedLoginAttempts", getFailedLoginAttempts()) .add("serviceExtensionUris", Joiner.on('.').join(nullToEmpty(getServiceExtensionUris()))) .toString(); } }
google/nomulus-core/src/main/java/google/registry/flows/StatelessRequestSessionMetadata.java
Seals Bay - Wikipedia Tiganos: 31°14′29″N 81°49′59″W / 31.24134°N 81.83317°V / 31.24134; -81.83317 31°14′29″N 81°49′59″W / 31.24134°N 81.83317°V / 31.24134; -81.83317 4221826 Luuk ang Seals Bay sa Tinipong Bansa.[1] Ang Seals Bay nahimutang sa kondado sa Brantley County ug estado sa Georgia, sa habagatan-sidlakang bahin sa nasod, 1,000 km sa habagatan sa ulohang dakbayan Washington, D.C. Ang klima umogon ug subtropikal.[2] Ang kasarangang giiniton 18 °C. Ang kinainitan nga bulan Hunyo, sa 24 °C, ug ang kinabugnawan Enero, sa 10 °C.[3] Ang kasarangang pag-ulan 1,435 milimetro matag tuig. Ang kinabasaan nga bulan Hunyo, sa 242 milimetro nga ulan, ug ang kinaugahan Oktubre, sa 45 milimetro.[4] Nahimutangan sa Seals Bay sa Tinipong Bansa. ↑ Seals Bay sa Geonames.org (cc-by); post updated 2010-02-15; database download sa 2017-02-28 Gikuha gikan sa "https://ceb.wikipedia.org/w/index.php?title=Seals_Bay&oldid=28590651" Kining maong panid kataposang giusab niadtong 27 Agosto 2019 sa 14:02.
c4-ceb
Check GMAT Club Decision Tracker for the Latest School Decision Releases https://gmatclub.com/AppTrack It is currently 28 Apr 2017, 07:04 ### GMAT Club Daily Prep #### Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email. Customized for You we will pick new questions that match your level based on your Timer History Track every week, we’ll send you an estimated GMAT score based on your performance Practice Pays we will pick new questions that match your level based on your Timer History # Events & Promotions ###### Events & Promotions in June Open Detailed Calendar # Got Started. Have queries Author Message Intern Joined: 05 May 2004 Posts: 3 Location: New Delhi, India Followers: 0 Kudos [?]: 0 [0], given: 0 ### Show Tags 07 Aug 2004, 04:35 Hi Just started preparing for GMAT, finally! I downloaded the powerprep software from the mba.com website & started working on it. Tried the quantitative questions & they were pretty easy. I did two sets of Problem Solving & 1 Set for DS. They were really easy! How close are the powerprep questions in terms of level of difficulty? Also I do not want too much of material to work with. The 10th Edition of ETS is not available in Delhi right now. What do you guys suggest as an alternative - Princeton or Kaplan to begin with. I should get the book in the next fortnight. Plan to give the exam September last week. A question to all the folks in India -- Does it make sense to Quant from IMS CAT package for GMAT? If yes what sets. Thanks for the help. Do reply. Kaplan GMAT Prep Discount Codes Optimus Prep Discount Codes Jamboree Discount Codes Manager Joined: 28 Jun 2004 Posts: 90 Followers: 1 Kudos [?]: 75 [0], given: 0 ### Show Tags 17 Aug 2004, 07:03 I am actually doing the math/DS from the Brilliant tutorials. They have hard questions and lots of formulas. After doing those, I hope that actual GMAT quant is easy. Intern Joined: 30 Jun 2004 Posts: 21 Followers: 0 Kudos [?]: 0 [0], given: 0 ### Show Tags 17 Aug 2004, 07:57 Powerprep is great prep but they haven't updated it in a while and GMAT math has gotten harder. Kaplan math is reputed to be very hard - I'd get that. 17 Aug 2004, 07:57 Similar topics Replies Last post Similar Topics: Do I have to register again as I got a new passport. 4 30 Jun 2015, 14:50 Got a 680. Have to retake. 1 month strategy? 0 30 Sep 2014, 07:55 Query 1 27 Nov 2013, 07:33 query 1 30 Apr 2011, 07:05 I have started my prep :) 5 14 Aug 2009, 05:47 Display posts from previous: Sort by # Got Started. Have queries Moderator: HiLine Powered by phpBB © phpBB Group and phpBB SEO Kindly note that the GMAT® test is a registered trademark of the Graduate Management Admission Council®, and this site has neither been reviewed nor endorsed by GMAC®.
finemath-3plus
//Pseudomonas Bakteriler.push({ AileAdi: "Pseudomonadaceae", CinsAdi: "Pseudomonas", TurAdi: "aeruginosa", Gram: "Negative", Shape: "Basil", Solunum: "Aerob", Enzimler: ["Katalaz","Oksidaz","Beta Hemoliz"], Hareket: "Hareketli", //Antijenler: [], KulturOrtami: [{ Name: "MacConkey Agar", Gorunus: ["Sari Yesil"], //Aciklama: [] }], Direnc : ["C390","Vankomisin"], Duyarlilik: ["Kolistin","Kotrimoksazol"], VirualanFaktorler: [Aciklamali("Flagella","Unipolar")], Aciklama : ["Fluoresent Grup","Firsatci Patojendirler"], });
occ55/Mikrobiyoloji-Bakteriler/Pseudomonadaceae.js
(function () { 'use strict'; angular.module('ElgeaApp') .controller('RecetteDialogEtalementController', ['$rootScope', '$mdDialog', 'parentScope', function($rootScope, $mdDialog, parentScope) { var vm = this, seperateRecette, _init, _toDateStringFormat, _decorateNewRecettes, _mergeRecette; vm.parentScope = parentScope; vm.group = parentScope.group; vm.recette = parentScope.recette; vm.month = new Date(parentScope.month); vm.value = parentScope.value; vm.fois = parentScope.fois; vm.newRecettes = []; _init = function() { var i; for (i = 0; i < vm.fois; i++) { var object = { percentage: 50, value: vm.value/2, month: new Date(vm.month.getFullYear(), vm.month.getMonth() + i, vm.month.getDate()) } vm.newRecettes.push(object); } }; // format: "2015-06" _toDateStringFormat = function(date) { var month, year; if (angular.isUndefined(date)) { return null; } year = date.getFullYear().toString(); month = ('0' + (date.getMonth() + 1)).slice(-2).toString(); return year + '-' + month; }; _decorateNewRecettes = function(lists){ lists.forEach(function(item) { item.month = _toDateStringFormat(item.month); }); var result = lists.reduce(function(map, obj) { if(angular.isUndefined(map[obj.month])){ map[obj.month] = 0 }; map[obj.month] += obj.value; return map; }, {}); return result }; _mergeRecette = function(){ var dateString, isContain; dateString = _toDateStringFormat(vm.month); isContain = 0; angular.forEach(vm.newRecettes, function(value1, key1) { angular.forEach(vm.recette.months, function(value2, key2) { if (key1 == key2) { if (key1 == dateString) { vm.recette.months[key2] = (value1 ? value1 : 0); isContain = 1; } else{ vm.recette.months[key2] = (value1 ? value1 : 0) + (value2 ? value2 : 0); }; }; }); }); if (isContain == 0) { var obj = {} obj[dateString] = 0 vm.newRecettes[dateString] = 0 angular.extend(vm.recette.months, obj); }; $rootScope.$broadcast('updateRecettes', vm.newRecettes, vm.recette); }; vm.cancel = function() { $mdDialog.hide(); } vm.updateRecetteValue = function(recette, index) { recette.value = (recette.percentage * vm.value)/100 } vm.updateRecettePercentage = function(recette, index) { recette.percentage = (recette.value / vm.value)*100 } vm.submit = function() { var totalEtalement; totalEtalement = _.pluck(vm.newRecettes, 'value').reduce((a, b) => a + b) if (totalEtalement == vm.value) { vm.newRecettes = _decorateNewRecettes(vm.newRecettes); _mergeRecette(); $mdDialog.hide(); } else { vm.errorForm = "Total amount is not valid." }; } _init(); } ]); })();
kimsrung/AngularJs-app/assets/javascripts/controllers/recette_etalement_dialog_controller.js
package com.unnsvc.rhena.common.lifecycle; public interface IGenerator extends IProcessor { }
unnservice/com.unnsvc.rhena-com.unnsvc.rhena.common/src/main/java/com/unnsvc/rhena/common/lifecycle/IGenerator.java
import java.util.Scanner; public class Functions { public static char menu() { char a; System.out.println("-------------------------------------------------------------------"); System.out.println("Menu"); System.out.println("1.Operation on array"); System.out.println("2.Operation on string"); System.out.println("3.Operation on case"); System.out.println("4.Close program"); System.out.println("-------------------------------------------------------------------"); Scanner ret = new Scanner(System.in); a = ret.next().charAt(0); return a; } public static void arrays() { int [] tab= new int [8]; System.out.println("Give 8 numbers"); Scanner rnum = new Scanner(System.in); for (int i=0;i<8;i++) { int k = rnum.nextInt(); tab[i]=k; } System.out.println("The fifth number was:"+tab[5]); } public static void strings() { char[] tabs = new char [8]; Scanner rr =new Scanner(System.in); System.out.println("Choose word which have 8 letters and write them but singly"); for (int j=0;j<8;j++) { char st=rr.next().charAt(0); tabs[j]=st; } String whatstr = new String(tabs); System.out.println(whatstr); int len = whatstr.length(); System.out.println( "String Length is : " + len ); System.out.println("This word: " + whatstr + " is briliant"); } public static void casse() { System.out.println("Choose number which represents your " + "lucky day and you will now what will happend in this day:\n1.Monday" + "\n2.Tuesday \n3.Wednesday \n4.Thursday \n5.Friday \n6.Saturday \n7.Sunday"); Scanner ns = new Scanner(System.in); int number = ns.nextInt(); switch(number) { case 1: System.out.println("Somebody will help you a lot today."); break; case 2: System.out.println("Someone will invite you for a dinner"); break; case 3: System.out.println("This will be your best day ever."); break; case 4: System.out.println("You will be looking amazing this day."); break; case 5: System.out.println("It is almost weekend, party time;)"); break; case 6: System.out.println("You will go to cinema with your friends."); break; case 7: System.out.println("Funday:D you will have lots of fun;)"); break; default: System.out.println("Nothing will happened because you didnt choose correct."); } } public static void main(String[]args) { char z; do{ z = menu(); if(z =='1') { arrays(); } else if(z=='2') { strings(); } else if(z=='3') { casse(); } else if(z=='4') { System.out.println("Goodby"); } else { System.out.println("Choose one more time"); } }while(z!='4'); } }
AgaPlum/BiHealthy-Exercises/Functions.java
import { customerSaveCompleted } from './customerSaveCompleted'; import { customerFormValidation } from '../components/sampleForm/validations/customerFormValidation'; export function customerSaveStart(viewModel) { return (dispatcher) => { customerFormValidation.validateForm(viewModel).then( (formValidationResult) => { if (formValidationResult.succeeded) { // Call here the async call to save // additional logic or actions to be added on a real case console.log("Save Completed"); } dispatcher(customerSaveCompleted(formValidationResult)); } ); } }
Lemoncode/lcFormValidation-samples/react/es6/00 SimpleForm/src/actions/customerSaveStart.js
/* bootstd.h: Bootloader system call interface * * (c) 1999, Rt-Control, Inc. */ #ifndef __BOOTSTD_H__ #define __BOOTSTD_H__ #define NR_BSC 21 /* last used bootloader system call */ #define __BN_reset 0 /* reset and start the bootloader */ #define __BN_test 1 /* tests the system call interface */ #define __BN_exec 2 /* executes a bootloader image */ #define __BN_exit 3 /* terminates a bootloader image */ #define __BN_program 4 /* program FLASH from a chain */ #define __BN_erase 5 /* erase sector(s) of FLASH */ #define __BN_open 6 #define __BN_write 7 #define __BN_read 8 #define __BN_close 9 #define __BN_mmap 10 /* map a file descriptor into memory */ #define __BN_munmap 11 /* remove a file to memory mapping */ #define __BN_gethwaddr 12 /* get the hardware address of my interfaces */ #define __BN_getserialnum 13 /* get the serial number of this board */ #define __BN_getbenv 14 /* get a bootloader envvar */ #define __BN_setbenv 15 /* get a bootloader envvar */ #define __BN_setpmask 16 /* set the protection mask */ #define __BN_readenv 17 /* read environment variables */ #define __BN_flash_chattr_range 18 #define __BN_flash_erase_range 19 #define __BN_flash_write_range 20 /* Calling conventions compatible to (uC)linux/68k * We use simmilar macros to call into the bootloader as for uClinux */ #define __bsc_return(type, res) \ do { \ if ((unsigned long)(res) >= (unsigned long)(-64)) { \ /* let errno be a function, preserve res in %d0 */ \ int __err = -(res); \ errno = __err; \ res = -1; \ } \ return (type)(res); \ } while (0) #define _bsc0(type,name) \ type name(void) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res) \ : "%d0"); \ __bsc_return(type,__res); \ } #define _bsc1(type,name,atype,a) \ type name(atype a) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ register long __a __asm__ ("%d1") = (long)a; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res), "d" (__a) \ : "%d0"); \ __bsc_return(type,__res); \ } #define _bsc2(type,name,atype,a,btype,b) \ type name(atype a, btype b) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ register long __a __asm__ ("%d1") = (long)a; \ register long __b __asm__ ("%d2") = (long)b; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res), "d" (__a), "d" (__b) \ : "%d0"); \ __bsc_return(type,__res); \ } #define _bsc3(type,name,atype,a,btype,b,ctype,c) \ type name(atype a, btype b, ctype c) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ register long __a __asm__ ("%d1") = (long)a; \ register long __b __asm__ ("%d2") = (long)b; \ register long __c __asm__ ("%d3") = (long)c; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res), "d" (__a), "d" (__b), \ "d" (__c) \ : "%d0"); \ __bsc_return(type,__res); \ } #define _bsc4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ type name(atype a, btype b, ctype c, dtype d) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ register long __a __asm__ ("%d1") = (long)a; \ register long __b __asm__ ("%d2") = (long)b; \ register long __c __asm__ ("%d3") = (long)c; \ register long __d __asm__ ("%d4") = (long)d; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res), "d" (__a), "d" (__b), \ "d" (__c), "d" (__d) \ : "%d0"); \ __bsc_return(type,__res); \ } #define _bsc5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ type name(atype a, btype b, ctype c, dtype d, etype e) \ { \ register long __res __asm__ ("%d0") = __BN_##name; \ register long __a __asm__ ("%d1") = (long)a; \ register long __b __asm__ ("%d2") = (long)b; \ register long __c __asm__ ("%d3") = (long)c; \ register long __d __asm__ ("%d4") = (long)d; \ register long __e __asm__ ("%d5") = (long)e; \ __asm__ __volatile__ ("trap #2" \ : "=g" (__res) \ : "0" (__res), "d" (__a), "d" (__b), \ "d" (__c), "d" (__d), "d" (__e) \ : "%d0"); \ __bsc_return(type,__res); \ } #endif /* __BOOTSTD_H__ */
cipibad/openrtd_2012-toolchain_mipsel/include/asm-m68knommu/bootstd.h
KeywordSpy currently operates in USA, United Kingdom, Australia & Canada Through this keyword tool, you can perform advanced keyword research and keyword tracking to study what your competitors have been advertising in Adwords & Other PPC campaigns to improve your own PPC campaign. Finally with this keyword software, you can now get Adwords tips and a complete in-depth analysis, stats, budget, affiliates & ad copies of your competitors. We track over 30 million domains such as ebay.com, amazon.com, bomeca.it and others.
c4-en
define([ './treeTag.directive' // , './topic.service' ], function () { 'use strict'; });
ace-han/onedegree-admin/static/admin/tag/directives/_index.js
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. -- -- Nicolas Casalini "DarkGod" -- [email protected] newEntity{ define_as = "BASE_CLOTH_ARMOR", slot = "BODY", type = "armor", subtype="cloth", add_name = " (#ARMOR#)", display = "[", color=colors.SLATE, image = resolvers.image_material("robe", "cloth"), moddable_tile = resolvers.moddable_tile("robe"), encumber = 2, rarity = 5, desc = [[A cloth vestment. It offers no intrinsic protection but can be enchanted.]], randart_able = "/data/general/objects/random-artifacts/generic.lua", egos = "/data/general/objects/egos/robe.lua", egos_chance = { prefix=resolvers.mbonus(30, 15), suffix=resolvers.mbonus(30, 15) }, } newEntity{ base = "BASE_CLOTH_ARMOR", name = "linen robe", short_name = "linen", level_range = {1, 10}, cost = 0.5, material_level = 1, } newEntity{ base = "BASE_CLOTH_ARMOR", name = "woollen robe", short_name = "woollen", level_range = {10, 20}, cost = 1.5, material_level = 2, } newEntity{ base = "BASE_CLOTH_ARMOR", name = "cashmere robe", short_name = "cashmere", level_range = {20, 30}, cost = 2.5, material_level = 3, wielder = { combat_def = 2, }, } newEntity{ base = "BASE_CLOTH_ARMOR", name = "silk robe", short_name = "silk", level_range = {30, 40}, cost = 3.5, material_level = 4, wielder = { combat_def = 3, }, } newEntity{ base = "BASE_CLOTH_ARMOR", name = "elven-silk robe", short_name = "e.silk", level_range = {40, 50}, cost = 5.5, material_level = 5, wielder = { combat_def = 5, }, }
festevezga/ToME---t-engine4-game/modules/tome/data/general/objects/cloth-armors.lua
const {replace, when, verify, matchers: { anything, contains, argThat }} = require('testdouble') , URL = require('url') , {API_VERSION, API_HOST} = require('./../src/defaults'); require('chai').use(require('chai-as-promised')).should(); // aliases to verify and when with the ignoreExtraArgs config option set to true const looseWhen = fakeInvocation => when(fakeInvocation, {ignoreExtraArgs: true}); const looseVerify = fakeInvocation => verify(fakeInvocation, {ignoreExtraArgs: true}); describe('api', () => { let http, createApi, validators; beforeEach(() => { http = replace('./../src/http'); validators = replace('./../src/validators'); createApi = require('./../src/api').create; // validation invocations pass by default looseWhen(validators.isValidOffset()) .thenReturn(true); looseWhen(validators.isValidApiKey()) .thenReturn(true); }); describe('create()', () => { it( "sets .key to the given key", () => createApi('SOME_KEY').key.should.equal('SOME_KEY') ); it('throws with an invalid key', () => { when(validators.isValidApiKey(anything())) .thenReturn(false); (() => createApi()) .should.throw(Error, 'Received invalid API key:'); }); }); describe('.get()', () => { let api; beforeEach(() => { api = createApi('SOME_KEY'); looseWhen(http.get()) .thenResolve({}); }); it("sets the 'X-API-Key' header with the given key", () => { return api.get('some/endpoint') .then(() => verify(http.get( anything(), contains({headers: {'X-API-Key': 'SOME_KEY'}}) ))); }); it("expects a JSON response", () => { return api.get('some/endpoint') .then(() => verify(http.get( anything(), contains({json: true}) ))); }); it("sets an offset from the second argument", () => { return api.get('some/endpoint', 20) .then(() => verify(http.get( anything(), contains({query: {offset: 20}}) ))); }); it("performs the request to the ProPublica API host", () => { return api.get('some/endpoint') .then(() => looseVerify(http.get( argThat(url => url.indexOf(API_HOST) === 0) ))); }); it("performs the request to version 1 of ProPublica's Congress API", () => { return api.get('some/endpoint') .then(() => looseVerify(http.get( argThat(url => URL.parse(url).path.indexOf(`/congress/v${API_VERSION}/`) === 0) ))); }); it("performs the request to the JSON variant of the endpoint", () => { return api.get('some/endpoint') .then(() => looseVerify(http.get( argThat(url => url.substr(-'some/endpoint.json'.length) === 'some/endpoint.json') ))); }); it('rejects if given an invalid offset value', () => { when(validators.isValidOffset('an invalid offset')) .thenReturn(false); return api.get('some/endpoint', 'an invalid offset') .should.be.rejectedWith(Error, 'Received invalid offset:'); }); it("resolves to the value of the 'body' key", () => { looseWhen(http.get()) .thenResolve({body: 'some body data'}); return api.get('some/endpoint').should.become('some body data'); }); }); });
markalexandercastillo/propublica-congress-test/api.js
/** * Perfutil -- https://github.com/dzhaughnroth/Dzh-perfutil * (C) 2011 John Charles Roth * * Perfutil is free software, licensed under the terms of the GNU GPL * Version 2 or, at your option, any later version. You should have * received a copy of the license with this file. See the above web address * for more information, or contact the Free Software Foundation, Boston, MA. * It is distributed WITHOUT WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ package com.johncroth.userload; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; public class JavaUtilActionSequenceExecutor extends ActionSequenceExecutor { public JavaUtilActionSequenceExecutor( ScheduledExecutorService service ) { this.service = service; } ScheduledExecutorService service; public ScheduledExecutorService getService() { return service; } protected void schedule( Runnable r, long delay, TimeUnit unit ) { service.schedule( r, delay, TimeUnit.MILLISECONDS ); } @Override public void shutdown() { super.shutdown(); service.shutdown(); } @Override public boolean isShutdown() { super.isShutdown(); return service.isShutdown(); } }
dzhaughnroth/Dzh-perfutil-userload/src/main/java/com/johncroth/userload/JavaUtilActionSequenceExecutor.java
/* ChannelBar.h Copyright (c) 2008, 2009 Matt Wright, 2008 Nils Hjelte. MacIrssi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #import <Cocoa/Cocoa.h> #import "common.h" #import "ChannelBarCell.h" @interface ChannelBar : NSView { //NSString *name; NSMutableArray *channelBarCells; float totalStringWidth; float totalWidth; ChannelBarCell *activeCell; } - (void)addChannel:(WINDOW_REC *)rec; - (void)moveChannel:(WINDOW_REC *)rec fromRefNum:(int)refNum toRefNum:(int)toRefNum; - (void)removeChannel:(WINDOW_REC *)rec; - (void)fitCells; - (void)drawRect:(NSRect)rect; - (void)selectCell:(ChannelBarCell *)cell; - (void)selectCellWithWindowRec:(WINDOW_REC *)rec; @end
MacIrssi/MacIrssi-Source/Custom Views/ChannelBar.h
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; public interface AsyncBatchAnnotateFilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) com.google.protobuf.MessageOrBuilder { /** * * * <pre> * Required. Individual async file annotation requests for this batch. * </pre> * * <code> * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; * </code> */ java.util.List<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest> getRequestsList(); /** * * * <pre> * Required. Individual async file annotation requests for this batch. * </pre> * * <code> * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; * </code> */ com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); /** * * * <pre> * Required. Individual async file annotation requests for this batch. * </pre> * * <code> * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; * </code> */ int getRequestsCount(); /** * * * <pre> * Required. Individual async file annotation requests for this batch. * </pre> * * <code> * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; * </code> */ java.util.List<? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> getRequestsOrBuilderList(); /** * * * <pre> * Required. Individual async file annotation requests for this batch. * </pre> * * <code> * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; * </code> */ com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index); }
googleapis/java-vision-proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java
// // MTLPropertyAttributes.h // Mantle // // Created by Zach Waldowski on 11/8/13. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> /** * Describes the memory management policy of a property. */ typedef NS_ENUM(int16_t, MTLPropertyMemoryPolicy) { /** * The value is assigned. */ MTLPropertyMemoryPolicyAssign = 0, /** * The value is retained. */ MTLPropertyMemoryPolicyRetain, /** * The value is copied. */ MTLPropertyMemoryPolicyCopy, /** * The value is a zeroing weak reference. */ MTLPropertyMemoryPolicyWeak }; /** * Describes the attributes and type information of an Objective-C property. */ @interface MTLPropertyAttributes : NSObject /** Checks all properties of the given class' hierarchy, starting at the given class, and continuing up until (but not including) a given class, for validity against a given block. The given block will be invoked multiple times for any properties declared on multiple classes in the hierarchy. */ + (NSSet *)namesOfPropertiesInClassHierarchy:(Class)cls untilClass:(Class)endCls passingTest:(BOOL (^)(MTLPropertyAttributes *attributes))block; /** Enumerates given property attributes for the given class. */ + (void)enumeratePropertiesOfClass:(Class)cls named:(id <NSFastEnumeration>)propertyNames usingBlock:(void (^)(MTLPropertyAttributes *attributes))block; /** Enumerates properties for the given protocol's hierarchy, starting at the given protocol, and continuing up until (but not including) a given protocol. Protocols can comform to many other protocols. This method will recursively follow the protocol chain up until the given protocol, or NSObject if the protocol's tree does not include the given protocol. The given block will be invoked multiple times for anally properties declared on protocols in the hierarchy. */ + (void)enumeratePropertiesInProtocolHierarchy:(Protocol *)proto untilProtocol:(Protocol *)endProto usingBlock:(void (^)(MTLPropertyAttributes *attributes))block; /** Returns property attributes for a given property on a given class. */ + (instancetype)propertyOfClass:(Class)cls named:(NSString *)propertyName; /** Returns property attributes for a given property on a given protocol. */ + (instancetype)propertyOfProtocol:(Protocol *)proto named:(NSString *)propertyName; /** * The name of this property. */ @property (nonatomic, copy, readonly) NSString *name; /** * Whether this property was declared with the \c readonly attribute. */ @property (nonatomic, readonly, getter = isReadonly) BOOL readonly; /** * Whether this property was declared with the \c nonatomic attribute. */ @property (nonatomic, readonly, getter = isNonatomic) BOOL nonatomic; /** * Whether this property is defined with \c \@dynamic. */ @property (nonatomic, readonly, getter = isDynamic) BOOL dynamic; /** * The memory management policy for this property. This will always be * #mtl_propertyMemoryManagementPolicyAssign if #readonly is \c YES. */ @property (nonatomic, readonly) MTLPropertyMemoryPolicy memoryPolicy; /** * The selector for the getter of this property. This will reflect any * custom \c getter= attribute provided in the property declaration, or the * inferred getter name otherwise. */ @property (nonatomic, readonly) SEL getter; /** * The selector for the setter of this property. This will reflect any * custom \c setter= attribute provided in the property declaration, or the * inferred setter name otherwise. * * @note If #readonly is \c YES, this value will represent what the setter * \e would be, if the property were writable. */ @property (nonatomic, readonly) SEL setter; /** * The backing instance variable for this property, or \c NULL if \c * \c @synthesize was not used, and therefore no instance variable exists. This * would also be the case if the property is implemented dynamically. */ @property (nonatomic, readonly) const char *ivar; /** * If this property is defined as being an instance of a specific class, * this will be the class object representing it. * * This will be \c nil if the property was defined as type \c id, if the * property is not of an object type, or if the class could not be found at * runtime. */ @property (nonatomic, readonly) Class objectClass; /** * The type encoding for the value of this property. This is the type as it * would be returned by the \c \@encode() directive. */ @property (nonatomic, readonly) const char *type; @end
CanIFuckYou/AirTouch-AirTouch/Framework/Enrollment/Core/Mantle/Mantle/MTLPropertyAttributes.h
function tocGenerator(container){ function initHeading() { var h2 = []; var h3 = []; var h2index = 0; $.each($('.entry h2, .entry h3'), function(index, item) { if (item.tagName.toLowerCase() == 'h2') { var h2item = {}; h2item.name = $(item).text(); h2item.id = 'menuIndex' + index; h2.push(h2item); h2index++; } else { var h3item = {}; h3item.name = $(item).text(); h3item.id = 'menuIndex' + index; if (!h3[h2index - 1]) { h3[h2index - 1] = []; } h3[h2index - 1].push(h3item); } item.id = 'menuIndex' + index; }); return { h2: h2, h3: h3 } } function genTmpl(heading) { var h1txt = $('h1').text(); var tmpl = '<ul><li class="h1" id="toc-title"><a href="'+ container + ' "data-dismiss="modal">' + h1txt + '</a></li>'; var heading = initHeading(); var h2 = heading.h2; var h3 = heading.h3; for (var i = 0; i < h2.length; i++) { tmpl += '<li class="toc-h2"><a href="' + container + '"data-dismiss="modal" data-id="' + h2[i].id + '">⌬ ' + h2[i].name + '</a></li>'; if (h3[i]) { for (var j = 0; j < h3[i].length; j++) { tmpl += '<li class="toc-h3"><a href="' + container + '"data-dismiss="modal" data-id="' + h3[i][j].id + '"> ↪ ' + h3[i][j].name + '</a></li>'; } } } tmpl += '</ul>'; return tmpl; } (function genIndex() { var tmpl = genTmpl(); if($(container).has('#top-toc-table').length > 0){ return; }else{ var indexCon = '<div id="top-toc-table" class="top-nav"></div>'; $(container).append(indexCon); $('#top-toc-table') .append($(tmpl)) .delegate('a', 'click', function(e) { e.preventDefault(); $('#myNavbar').removeClass('in'); var selector = $(this).attr('data-id') ? '#' + $(this).attr('data-id') : 'h1' var scrollNum = $(selector).offset().top; var narrow_screen = $(this).width() < 1025 ? true : false; if(narrow_screen){ v_offset = 60; } else{ v_offset = 30; } $('body, html').animate({ scrollTop: scrollNum - v_offset }, 400, 'swing'); }); } })(); var waitForFinalEvent = (function() { var timers = {}; return function(callback, ms, uniqueId) { if (!uniqueId) { uniqueId = "Don't call this twice without a uniqueId"; } if (timers[uniqueId]) { clearTimeout(timers[uniqueId]); } timers[uniqueId] = setTimeout(callback, ms); }; })(); }
LanternD/lanternd.github.io-js/topnav-toc-gen.js
define( //begin v1.x content { "field-second-relative+0": "الآن", "field-weekday": "اليوم", "field-wed-relative+0": "الأربعاء الحالي", "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "field-tue-relative+-1": "الثلاثاء الماضي", "dateFormat-long": "d MMMM، y G", "field-fri-relative+-1": "الجمعة الماضية", "field-wed-relative+-1": "الأربعاء الماضي", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", "dateFormat-full": "EEEE، d MMMM، y G", "dateFormatItem-yyyyMEd": "E، d/‏M/‏y G", "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/‏M", "field-era": "العصر", "field-year": "السنة", "dateFormatItem-yyyyMMMM": "MMMM، y G", "field-hour": "الساعات", "field-sat-relative+0": "السبت الحالي", "field-sat-relative+1": "السبت التالي", "field-day-relative+0": "اليوم", "field-day-relative+1": "غدًا", "field-thu-relative+0": "الخميس الحالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "field-thu-relative+1": "الخميس التالي", "dateFormatItem-H": "HH", "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", "dateFormatItem-M": "L", "dateFormatItem-yyyyMMM": "MMM، y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "field-sun-relative+0": "الأحد الحالي", "dateFormatItem-Hm": "HH:mm", "field-sun-relative+1": "الأحد التالي", "field-minute": "الدقائق", "field-dayperiod": "ص/م", "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "أمس", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", "dateTimeFormat-full": "{1} {0}", "field-fri-relative+0": "الجمعة الحالية", "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "field-zone": "التوقيت", "dateFormatItem-y": "y G", "field-year-relative+-1": "السنة الماضية", "field-month-relative+-1": "الشهر الماضي", "dateFormatItem-hm": "h:mm a", "dateFormatItem-yyyyMd": "d‏/M‏/y G", "field-month": "الشهر", "dateFormatItem-MMM": "LLL", "field-tue-relative+0": "الثلاثاء الحالي", "field-tue-relative+1": "الثلاثاء التالي", "field-mon-relative+0": "الاثنين الحالي", "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d‏/M‏/y GGGGG", "field-second": "الثواني", "field-sat-relative+-1": "السبت الماضي", "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", "field-week": "الأسبوع", "dateFormat-medium": "dd‏/MM‏/y G", "field-year-relative+0": "هذه السنة", "field-week-relative+-1": "الأسبوع الماضي", "dateFormatItem-yyyyM": "M‏/y G", "field-year-relative+1": "السنة التالية", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" } //end v1.x content );
avz-cmf/zaboy-middleware-www/js/dojo/cldr/nls/ar/generic.js
// Copyright (c) Microsoft and contributors. All rights reserved. // // 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 // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // // See the License for the specific language governing permissions and // limitations under the License. using System; using System.Threading; namespace Microsoft.Azure.Batch { /// <summary> /// Stores options that configure the operation of methods on Batch client parallel operations. /// </summary> public class BatchClientParallelOptions { private int _maxDegreeOfParallelism; /// <summary> /// Gets or sets the maximum number of concurrent tasks enabled by this <see cref="BatchClientParallelOptions"/> instance. /// The default value is 1. /// </summary> public int MaxDegreeOfParallelism { get { return this._maxDegreeOfParallelism; } set { if (value > 0) { this._maxDegreeOfParallelism = value; } else { throw new ArgumentOutOfRangeException("value"); } } } /// <summary> /// Gets or sets the <see cref=" System.Threading.CancellationToken"/> associated with this <see cref="BatchClientParallelOptions"/> instance. /// The default is <see cref=" System.Threading.CancellationToken.None"/>. /// </summary> public CancellationToken CancellationToken { get; set; } /// <summary> /// Initializes a new instance of the <see cref="BatchClientParallelOptions"/> class. /// </summary> public BatchClientParallelOptions() { this.MaxDegreeOfParallelism = 1; } } }
smithab/azure-sdk-for-net-src/Batch/Client/Src/BatchClientParallelOptions.cs
class Admin::ChannelsController < ApplicationController resources_controller_for :channels before_filter :admin_required layout 'bare' response_for :create do |format| format.html do if resource_saved? flash[:success] = "Success!" redirect_to admin_channels_path else render :action => 'new' end end end response_for :update do |format| format.html do if resource_saved? flash[:success] = "Success!" redirect_to admin_channels_path else render :action => 'edit' end end end def show @channel = Channel.find(params[:id]) @selectable_pitches = Pitch.browsable - @channel.pitches end def add_pitch @pitch = Pitch.find(params[:pitch_id]) @channel = Channel.find(params[:id]) @channel.pitches << @pitch # add relation for channel/network if available cn = ChannelsNetwork.find_by_network_id_and_channel_id(@pitch.network_id, @channel.id) unless cn cn = ChannelsNetwork.new cn.network_id = @pitch.network_id cn.channel_id = @channel.id cn.save end redirect_to admin_channel_path(@channel) end def remove_pitch @pitch = Pitch.find(params[:pitch_id]) @channel = Channel.find(params[:id]) @channel.pitches.delete(@pitch) pitches = @channel.pitches.find(:all, :conditions => { :network_id => @pitch.network_id }) ChannelsNetwork.delete_all(["network_id=? and channel_id=?", @pitch.network_id, @channel.id]) if pitches.empty? redirect_to admin_channel_path(@channel) end end
spot-us/spot-us-app/controllers/admin/channels_controller.rb
OnestepcheckoutShipment = Class.create(); OnestepcheckoutShipment.prototype = { initialize: function(config) { this.container = $$(config.containerSelector).first(); this.switchMethodInputs = $$(config.switchMethodInputsSelector); this.saveShipmentUrl = config.saveShipmentUrl; this.init(); this.initObservers(); }, init: function() { var me = this; this.switchMethodInputs.each(function(element) { var methodCode = element.value; if (element.checked) { me.currentMethod = methodCode; } }); }, initObservers: function() { var me = this; this.switchMethodInputs.each(function(element) { if (element.checked) { me.switchToMethod(element.value); } element.observe('click', function(e) { me.switchToMethod(element.value); }); }) }, switchToMethod: function(methodCode) { if (this.currentMethod !== methodCode) { OnestepcheckoutCore.updater.startRequest(this.saveShipmentUrl, { method: 'post', parameters: Form.serialize(this.container.id, true) }); this.currentMethod = methodCode; } } };
jrohde/magento-onestepcheckout-skin/frontend/base/default/onestepcheckout/js/shipment.js
#ifndef OPTIONAL_H #define OPTIONAL_H #include <algorithm> namespace Common { template <class Type> class Optional { public: Optional(Type &&val) : used(true), value(std::move(val)) {} Optional(Optional &&other) { *this = std::move(other); } Optional() : used(false) {} ~Optional() { if (used) value.~Type(); } Optional &operator=(Optional &&other) { used = other.used; if (used) value = std::move(other.value); return *this; } Optional &operator=(Type &&val) { if (!used) { used = true; new (&value) Type(move(val)); } else { value = std::move(val); } return *this; } bool operator==(const Optional &other) const { if (used == false) return other.used == false; else if (other.used == false) return false; else return take() == other.take(); } explicit operator bool() const { return used; } bool operator !() const { return !used; } Type &take() { return value; } const Type &take() const { return value; } bool used; union { char unused; Type value; }; }; } #endif /* OPTIONAL_H */
SCMapsAndMods/teippi-src/common/optional.h
/*jslint vars: true */ /*global define, $, brackets, window, console */ define(function (require, exports, module) { 'use strict'; var packageString = 'useStrictJS.' exports.ENABLE_STRICT = packageString + 'enableStrict'; exports.ENABLE_STRICT_ON_SAVE = packageString + 'enableStrictOnSave'; });
szdc/brackets-use-strict-js-modules/commands.js
'use strict'; module.exports = { up: function(queryInterface, Sequelize) { return queryInterface.createTable('taskStatusLogs', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, projectId: { allowNull: false, type: Sequelize.STRING }, taskId: { allowNull: false, type: Sequelize.STRING }, stageId: { allowNull: false, type: Sequelize.STRING }, userId: { type: Sequelize.STRING }, createdAt: { allowNull: false, type: Sequelize.DATE }, updatedAt: { allowNull: false, type: Sequelize.DATE } }, { engine: process.env.NODE_ENV === 'test' ? 'MYISAM' : 'InnoDB', }); }, down: function(queryInterface, Sequelize) { return queryInterface.dropTable('taskStatusLogs'); } };
Kait-tt/tacowasa-migrations/20160926065228-create-task-status-log.js
12_noisex # 12_noisex - Noise Models COMP344 COMP344 Noise Models... This preview shows pages 1–6. Sign up to view the full content. This preview has intentionally blurred sections. Sign up to view the full version. View Full Document This preview has intentionally blurred sections. Sign up to view the full version. View Full Document This preview has intentionally blurred sections. Sign up to view the full version. View Full Document This is the end of the preview. Sign up to access the rest of the document. Unformatted text preview: Noise Models COMP344 COMP344 Noise Models Probability Density Functions The statistical behavior of the gray-level values in the noise component can be described by some probability density functions p ( x ) ≥ 0 for all x R ∞-∞ p ( x ) dx = 1 (the total area under the graph is 1) for any two numbers a and b , the probability of the interval [ a , b ] is given by Z b a p ( x ) dx COMP344 Noise Models Probability Density Functions... Mean (aka expected value or expectation ) E ( X ) = Z ∞-∞ xp ( x ) dx r th Moment : E ( X r ) mean μ = E ( X ): 1st moment r th Central Moment : μ r = E [( X- μ ) r ] μ = 1 ,μ 1 = 0 ,μ 2 = variance COMP344 Noise Models Gaussian Noise p ( z ) = 1 √ 2 πσ e- ( z- μ ) 2 2 σ 2 z : random variable μ : mean ; σ : standard derivation e.g., electronic circuit noise and sensor noise due to poor illumination and/or high temperature COMP344 Noise Models Rayleigh Noise p ( z ) = 2 b ( z- a ) e- ( z- a ) 2 / b z ≥ a z < a mean: μ = a + q π b 4 ; variance:... View Full Document {[ snackBarMessage ]} ### Page1 / 15 12_noisex - Noise Models COMP344 COMP344 Noise Models... This preview shows document pages 1 - 6. Sign up to view the full document. View Full Document Ask a homework question - tutors are online
finemath-3plus
import {findNode, processNode} from 'utils/common'; import {setFileInputData, initSearch, sendReceipt} from 'utils/engines'; const engine = 'tmview'; async function search({session, search, image, storageIds}) { // previous search may be cached processNode( '.image-remove button', function (node) { if (node && !document.querySelector('.area-selection')) { node.click(); } }, {throwError: false} ); const inputSelector = 'input[type=file]'; const input = await findNode(inputSelector); await setFileInputData(inputSelector, input, image); input.dispatchEvent(new Event('change', {bubbles: true})); await findNode('.image-tools'); await sendReceipt(storageIds); (await findNode('button[data-test-id=search-button]')).click(); } function init() { initSearch(search, engine, taskId); } init();
dessant/search-by-image-src/engines/tmview.js
#ifndef _IDEMM_WRAP_INIT_H #define _IDEMM_WRAP_INIT_H /* wrap_init.h * * Copyright (C) 2016 Marcin Kolny <[email protected]> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ namespace Ide { void wrap_init(); } // namespace Ide #endif /* _IDEMM_WRAP_INIT_H */
mwleeds/gnome-builder-libidemm/idemm/wrap_init.h
const App = (props) => ( <h1>Howdy!</h1> ); export default App;
ericclemmons/react-transform-functional-hmr-example/src/components/App.js
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-22 20:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('players', '0001_initial'), ] operations = [ migrations.CreateModel( name='Match', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('player_1_score', models.PositiveIntegerField(blank=True, null=True)), ('player_2_score', models.PositiveIntegerField(blank=True, null=True)), ('player_1_init', models.ForeignKey(blank=True, help_text='Set for first round matches', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='home_game_match', to='players.Player')), ('player_2_init', models.ForeignKey(blank=True, help_text='Set for first round matches', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='away_game_match', to='players.Player')), ('previous_match_1', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subsequent_match_1', to='matches.Match')), ('previous_match_2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subsequent_match_2', to='matches.Match')), ], ), ]
kevinharvey/django-tourney-tourney/matches/migrations/0001_initial.py
#!/usr/bin/env python3 import sys import datetime import re CHANGELOG_FORMAT = """ {version} ({date}) ---------------------- {description} """ TIXURL = "https://github.com/hsoft/moneyguru/issues/{}" def tixgen(tixurl): """This is a filter *generator*. tixurl is a url pattern for the tix with a {0} placeholder for the tix # """ urlpattern = tixurl.format('\\1') # will be replaced buy the content of the first group in re R = re.compile(r'#(\d+)') repl = '`#\\1 <{}>`__'.format(urlpattern) return lambda text: R.sub(repl, text) re_changelog_header = re.compile(r'=== ([\d.b]*) \(([\d\-]*)\)') def read_changelog_file(filename): def iter_by_three(it): while True: version = next(it) date = next(it) description = next(it) yield version, date, description with open(filename, 'rt', encoding='utf-8') as fp: contents = fp.read() splitted = re_changelog_header.split(contents)[1:] # the first item is empty # splitted = [version1, date1, desc1, version2, date2, ...] result = [] for version, date_str, description in iter_by_three(iter(splitted)): date = datetime.datetime.strptime(date_str, '%Y-%m-%d').date() d = {'date': date, 'date_str': date_str, 'version': version, 'description': description.strip()} result.append(d) return result def changelog_to_rst(changelogpath): changelog = read_changelog_file(changelogpath) tix = tixgen(TIXURL) for log in changelog: description = tix(log['description']) # The format of the changelog descriptions is in markdown, but since we only use bulled list # and links, it's not worth depending on the markdown package. A simple regexp suffice. description = re.sub(r'\[(.*?)\]\((.*?)\)', '`\\1 <\\2>`__', description) rendered = CHANGELOG_FORMAT.format( version=log['version'], date=log['date_str'], description=description) print(rendered) if __name__ == '__main__': changelog_to_rst(sys.argv[1])
brownnrl/moneyguru-support/genchangelog.py
/* * Copyright (c) 2014-2022 The Voxie Authors * * 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 Software. * * 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. */ // This file was automatically generated by tools/update-node-prototypes.py // All changes to this file will be lost #pragma once namespace vx { inline namespace visualizer_prop { class TomographyRawDataPropertiesEntry; class TomographyRawDataPropertiesBase; class TomographyRawDataPropertiesCopy; class TomographyRawDataProperties; } // namespace visualizer_prop } // namespace vx
voxie-viewer/voxie-src/PluginVisRaw/Prototypes.forward.hpp
using UnityEngine; using System.Collections; public class GeneradorAsteroides : MonoBehaviour { public Rigidbody2D asteroideG1; public Rigidbody2D asteroideG2; public Rigidbody2D asteroideG3; public Rigidbody2D asteroideM; public GameObject marcador; // Para controlar el tiempo entre cada asteroide generado private float intervalo; private int ptos; //private static int ptos; void Start(){ marcador=GameObject.Find ("Marcador"); ptos = marcador.GetComponent<ControlMarcador> ().puntos; } void GenerarAsteroide () { // Calculamos una posición inicial para el asteroide de forma aleatoria Vector2 posicionInicial = new Vector2 (transform.position.x + ((Random.value * 50f) - 25f), transform.position.y); //GameObject marcador=GameObject.Find("Marcador"); //marcador.GetComponent<script>(). // Clonamos el objeto de uno de los cuatro tipos int tipoAsteroide = Random.Range (0, 4); Rigidbody2D asteroide = null; switch (tipoAsteroide) { case 0: asteroide = (Rigidbody2D)Instantiate (asteroideG1, posicionInicial, transform.rotation); break; case 1: asteroide = (Rigidbody2D)Instantiate (asteroideG2, posicionInicial, transform.rotation); break; case 2: asteroide = (Rigidbody2D)Instantiate (asteroideG3, posicionInicial, transform.rotation); break; case 3: asteroide = (Rigidbody2D)Instantiate (asteroideM, posicionInicial, transform.rotation); asteroide.GetComponent<ControlAsteroide>().puntos = 500; break; } // Le damos rotación y lo escalamos un poco para que parezcan diferentes asteroide.AddTorque (Random.value * 100f); float escala = Random.Range (.5f, 1); asteroide.transform.localScale = new Vector3 (escala, escala, escala); } void Update () { if (Time.time > intervalo) { GenerarAsteroide (); intervalo += Random.Range (.25f, 1f); } switch (ptos) { case 100: if (Time.time > intervalo) { GenerarAsteroide (); intervalo += Random.Range (.25f, 0.1f); } break; } } }
alb1122/spaceshooterFinal-SpaceshipShooter/Assets/GeneradorAsteroides.cs
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_1149 { }
lesaint/experimenting-annotation-processing-experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_1149.java
# Average Collection Period The normal amount of time that passes before a company collects its accounts receivables Over 1.8 million professionals use CFI to learn accounting, financial analysis, modeling and more. Start with a free account to explore 20+ always-free courses and hundreds of finance templates and cheat sheets. ## What is the Average Collection Period? The average collection period amount of time that passes before a company collects its accounts receivable (AR). In other words, it refers to the time it takes, on average, for the company to receive payments it is owed from clients or customers. The average collection period must be monitored to ensure a company has enough cash available to take care of its near-term financial responsibilities. To be clear, the average collection period – as the name indicates – is a calculation of the average number of days between the date a sale is made (on credit) and the date that the buyer submits the payment or the date that the company receives the payment from the buyer. ### Summary • The average collection period is the length of time – on average – it takes a company to receive payments in the form of accounts receivable. • Calculating the average collection period for any company is important because it helps the company better understand how efficiently it’s collecting the money it needs to cover its expenditures. • The average collection period is calculated by dividing a company’s yearly accounts receivable balance by its yearly total net sales; this number is then multiplied by 365 to generate a number in days. ### Importance of the Average Collection Period #### 1. Maintain liquidity Clearly, it is crucial for a company to receive payment for goods or services rendered in a timely manner. It enables the company to maintain a level of liquidity, which allows it to pay for immediate expenses and to get a general idea of when it may be capable of making larger purchases. #### 2. Plan for future costs and schedule potential expenditures The average collection period figure is also important from a timing perspective to help a company prepare an effective plan for covering costs and scheduling potential expenditures to further growth. For obvious reasons, the smaller the average collection period is, the better it is for the company. It means that a company’s clients take less time to pay their bills. Another way to look at it is that a lower average collection period means the company collects payment faster. A fast collection period may not always be beneficial as it simply could mean that the company has strict payment rules in place. The rules may work for some clients. However, stricter collection requirements can end up turning some customers away, sending them to look for companies with the same goods or services and more lenient payment rules or better payment options. ### Average Collection Period Formula Let’s talk about how a company calculates its average collection period. Generally, the average collection period is calculated in days. The company must calculate its average balance of accounts receivable for the year and divide it by total net sales for the year. The formula looks like the one below: To better show the formula in action, consider the following example. Let’s say that Company ABC recorded a yearly accounts receivable balance of \$25,000. In the same year, the company logged \$200,000 in total net sales. The first step to determining the company’s average collection period is to divide \$25,000 by \$200,000. The quotient, then, must be multiplied by 365 because the calculation is to determine the average collection period for the year. For our example, the average collection period calculation looks like the one below: #### (25,000 / 200,000) x 365 = 45.6 It means that Company ABC’s average collection period for the year is about 46 days. It is slightly high when you consider that most companies try to collect payments within 30 days. For the company, its average collection period figure can mean a few things. It may mean that the company isn’t as efficient as it needs to be when staying on top of collecting accounts receivable. However, the figure can also represent that the company offers more flexible payment terms when it comes to outstanding payments.
finemath-3plus
شاهد حركات العملات اليوم موضوع: شاهد حركات العملات اليوم الإثنين أبريل 29, 2013 6:11 pm ثبات الزوج فوق مؤشرات الانحدار الخطي و فوق مستوى تصحيح% 61.8 عند سعر 1.0295، أسباب تدفعنا لتوقع مزيد من الاتجاه الصاعد هذا الأسبوع، و يبقى احتمال ذلك قائماً بالثبات فوق مستوى 1.0215. لكن، يجب أن نشير إلى أن اختراق سعر 1.0350 ضروري لدعم الموجة الصاعدة و امتداداها نحو مستويات أكثر ارتفاعاً . مستويات التداول لهذا الأسبوع قد تكون بين مستوى الدعم 1.0180 و مستوى المقاومة 1.0560 الاتجاه قصير الأمد المتوقع هابط نحو الأسفل بثبات الإغلاق اليومي دون مستويات 1.0710 ، والأهداف عند 0.9400. شراء الزوج فوق 1.0295 و جني الربح على مراحل عند 1.0355 و 1.0405 و 1.0440 و إيقاف الخسارة بإغلاق أربع ساعات تحت 1.0215 قد يكون مناسباً. استقرت تداولات زوج الدولار الأمريكي مقابل الدولار الكندي دون المتوسط المتحرك 50، ليقع السعر تحت مزيد من الضغط السلبي الذي يجعلنا نرجح انخفاضاً على المدى اللحظي، بدعم من نموذج القمة المزدوجة الذي تشكّل بعد تسجيل مستوى قمة منخفض نشير إلى أن شروط تحقيق الانخفاض المتوقع تتمثل بكسر مستوى 1.0130 إلى جانب الثبات دون 1.0200 ونلاحظ ايضاا نطاق التداول المتوقع لهذا اليوم ما بين: الدعم 1.0030 والمقاومة 1.0235 استمرار تأثير الميل الهابط يجعلنا توقع ملامسة السعر لمستوى الدعم المذكور خلال الفترة القريبة كهدف أول للتداولات الهابطة, الجدير بالذكر ان استمرار ضغط الميل الهابط على تداولات لزوج قد يجعل من السعر كسر مستوى الدعم لتقديم إشارات هابطة مجددا للوصل إلى 125.00 مؤشر ستوكاستيك يستقر حول مستوى 20 داعما للنظرة الهابطة المتوقعة, يشترط للاستمرار بالميل الهابط ثبات مستوى 128.20 أمام التداولات لهذا اليوم. نلاحظ ان هبوط سعر الزوج بعد أن كسر مستوى دعم المثلث المتصاعد والذي يقدم لنا إشارة سلبية خلال الفترة القريبة ليصبح الهدف الرئيسي أمام التداولات الهابطة نحو 149.30 نلاحظ استقرار المتوسط المتحرك 55 حول المستوى المكسور مما يدعم النظرة الهابطة خلال الفترة القادمة, لذلك فإن ثبات التداولات أسفل مستوى المثلث المتصاعد يجعل من السعر السير بجانبية إلى حين أعادة اختبار هذا النموذج ثم التوجه نحو الهدف المذكور. نطاق التداول المتوقع ما بين 152.20 و 149.30 الموضوع الأصلي : شاهد حركات العملات اليوم // المصدر : mytiger // الكاتب:UTC Broker شاهد حركات العملات اليوم , شاهد حركات العملات اليوم , شاهد حركات العملات اليوم ,شاهد حركات العملات اليوم ,شاهد حركات العملات اليوم , شاهد حركات العملات اليوم إذا وجدت وصلات لاتعمل في الموضوع او أن الموضوع [ شاهد حركات العملات اليوم ] مخالف ,, من فضلك راسل الإدارة من هنا
c4-ar