hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
4bcbb632f6324fbe7ce6c2ef672b0177ef75303e
2,745
h
C
NeoGPS Library/src/Garmin/GrmNMEA.h
arobinson-oce/LoRa_Drifter
e578d7616dfae894cce6f3fc11bbb0f9fada5dd3
[ "MIT" ]
1
2021-12-05T07:46:23.000Z
2021-12-05T07:46:23.000Z
NeoGPS Library/src/Garmin/GrmNMEA.h
arobinson-oce/LoRa_Drifter
e578d7616dfae894cce6f3fc11bbb0f9fada5dd3
[ "MIT" ]
1
2019-05-19T11:26:14.000Z
2019-05-19T11:26:14.000Z
NeoGPS Library/src/Garmin/GrmNMEA.h
arobinson-oce/LoRa_Drifter
e578d7616dfae894cce6f3fc11bbb0f9fada5dd3
[ "MIT" ]
1
2021-08-29T23:28:35.000Z
2021-08-29T23:28:35.000Z
#ifndef _GRMNMEA_H_ #define _GRMNMEA_H_ // Copyright (C) 2014-2017, SlashDevin // // This file is part of NeoGPS // // NeoGPS 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. // // NeoGPS 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 NeoGPS. If not, see <http://www.gnu.org/licenses/>. #include "NMEAGPS_cfg.h" // Disable the entire file if derived types are not allowed. #ifdef NMEAGPS_DERIVED_TYPES #include "NMEAGPS.h" #include "Garmin/PGRM_cfg.h" #if !defined(GARMINGPS_PARSE_F) // No Garmin Proprietary messages defined, ignore rest of file. #else #if !defined(NMEAGPS_PARSE_PROPRIETARY) #error NMEAGPS_PARSE_PROPRIETARY must be defined in NMEAGPS_cfg.h in order to parse PGRM messages! #endif #if !defined(NMEAGPS_PARSE_MFR_ID) #error NMEAGPS_PARSE_MFR_ID must be defined in NMEAGPS_cfg.h in order to parse PGRM messages! #endif //============================================================= // NMEA 0183 Parser for Garmin GPS Modules. // // @section Limitations // Very limited support for Garmin proprietary NMEA messages. // Only NMEA messages of types F are parsed (i.e., $PGRMF). // class GarminNMEA : public NMEAGPS { GarminNMEA( const GarminNMEA & ); public: GarminNMEA() {}; /** Garmin proprietary NMEA message types. */ enum grm_msg_t { PGRM_BEGIN = NMEA_LAST_MSG, #if defined(GARMINGPS_PARSE_F) | defined(NMEAGPS_RECOGNIZE_ALL) PGRMF, #endif PGRM_END }; static const nmea_msg_t PGRM_FIRST_MSG = (nmea_msg_t) (PGRM_BEGIN+1); static const nmea_msg_t PGRM_LAST_MSG = (nmea_msg_t) (PGRM_END -1); protected: bool parseField( char chr ); bool parseMfrID( char chr ) { bool ok; switch (chrCount) { case 1: ok = (chr == 'G'); break; case 2: ok = (chr == 'R'); break; case 3: ok = (chr == 'M'); break; default: ok = false; } return ok; }; bool parseF( char chr ); bool parseLeapSeconds( char chr ); static const msg_table_t garmin_msg_table __PROGMEM; NMEAGPS_VIRTUAL const msg_table_t *msg_table() const { return &garmin_msg_table; }; } NEOGPS_PACKED; #endif // at least one GRM message enabled #endif // NMEAGPS_DERIVED_TYPES enabled #endif
27.178218
102
0.67031
036c7766d9da481b6f75c9910d1ba3d54131d3a6
2,923
swift
Swift
AEPServices/Tests/utility/PrettyDictionaryTests.swift
atishay/aepsdk-core-ios
3dc2d88787db4829f1a15244b7fa2692a0e62fba
[ "Apache-2.0" ]
6
2021-06-17T21:23:39.000Z
2022-02-05T01:06:15.000Z
AEPServices/Tests/utility/PrettyDictionaryTests.swift
atishay/aepsdk-core-ios
3dc2d88787db4829f1a15244b7fa2692a0e62fba
[ "Apache-2.0" ]
407
2020-09-25T18:03:22.000Z
2022-03-31T22:21:42.000Z
AEPServices/Tests/utility/PrettyDictionaryTests.swift
atishay/aepsdk-core-ios
3dc2d88787db4829f1a15244b7fa2692a0e62fba
[ "Apache-2.0" ]
29
2020-09-25T18:02:45.000Z
2022-03-14T12:07:10.000Z
/* Copyright 2021 Adobe. All rights reserved. This file is licensed to you 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 REPRESENTATIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import Foundation @testable import AEPServices import XCTest class PrettyDictionaryTests: XCTestCase { func testPrintEventData_as_AnyObject() throws { var eventData = [String: Any]() eventData = [ "a": "13435454", "b":[ "b1": 1235566, "b2": LogLevel.debug ] ] let output = "\(PrettyDictionary.prettify(eventData))" let expected = """ { a = 13435454; b = { b1 = 1235566; b2 = "AEPServices.LogLevel"; }; } """ print(output) print(expected) XCTAssert(output.contains("13435454;")) XCTAssert(output.contains("AEPServices.LogLevel")) } func testPrintEventData_as_AnyObjectWithNil() throws { var eventData = [String: Any?]() eventData = [ "a": "13435454", "b":[ "b1": 1235566, "b2": LogLevel.debug ], "c": nil ] let output = "\(PrettyDictionary.prettify(eventData))" let expected = """ { a = 13435454; b = { b1 = 1235566; b2 = "AEPServices.LogLevel"; }; } """ print(output) print(expected) XCTAssert(output.contains("13435454;")) XCTAssert(output.contains("AEPServices.LogLevel")) XCTAssert(output.contains("null")) } func testPrintEventData_with_prettifiedJsonString() throws { var eventData = [String: Any]() eventData = [ "a": "13435454", "b":[ "b1": 1235566, "b2": "12.45" ] ] let output = "\(PrettyDictionary.prettify(eventData))" let expected = """ { "a" : "13435454", "b" : { "b1" : 1235566, "b2" : "12.45" } } """ print(output) print(expected) XCTAssert(output.contains(": \"13435454\"")) XCTAssert(output.contains(": 1235566")) } func testPrintEventData_with_nil_data() throws { let output = "\(PrettyDictionary.prettify(nil))" XCTAssertTrue(output.isEmpty) } }
28.940594
87
0.535067
e3bc455eedafde8d792fd9864e2818517c6f8073
629
dart
Dart
lib/screens/splash.dart
muhjamie/tailor_measurement_app
8c9d62fa812ffb9480aec055016751905722200d
[ "MIT" ]
null
null
null
lib/screens/splash.dart
muhjamie/tailor_measurement_app
8c9d62fa812ffb9480aec055016751905722200d
[ "MIT" ]
null
null
null
lib/screens/splash.dart
muhjamie/tailor_measurement_app
8c9d62fa812ffb9480aec055016751905722200d
[ "MIT" ]
null
null
null
import 'package:daas/helpers/style.dart'; import 'package:daas/widgets/custom_text.dart'; import 'package:daas/widgets/loading.dart'; import 'package:flutter/material.dart'; class Splash extends StatefulWidget { @override _SplashState createState() => _SplashState(); } class _SplashState extends State<Splash> { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: white, body:Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ CustomText(text: "Loading"), Loading(), ], ) ); } }
24.192308
54
0.656598
dccefc32a10cf56bd57bba13a101a2232540701d
2,702
sql
SQL
services/service-core-db/migrations/2017-11-24-000237_add_sopes_to_scoped_user_token/up.sql
jermiy/services-core
d1dace6a978d901da9566763d568623242ca6d8a
[ "MIT" ]
56
2018-09-27T01:40:09.000Z
2022-03-24T13:08:15.000Z
services/service-core-db/migrations/2017-11-24-000237_add_sopes_to_scoped_user_token/up.sql
jermiy/services-core
d1dace6a978d901da9566763d568623242ca6d8a
[ "MIT" ]
344
2018-08-29T10:15:13.000Z
2022-03-30T14:24:21.000Z
services/service-core-db/migrations/2017-11-24-000237_add_sopes_to_scoped_user_token/up.sql
jermiy/services-core
d1dace6a978d901da9566763d568623242ca6d8a
[ "MIT" ]
41
2018-08-24T15:30:58.000Z
2022-03-11T19:14:43.000Z
-- Your SQL goes here create type community_service.user_roles_enum as enum ( 'admin', 'financial' ); create table community_service.user_roles ( id uuid not null primary key default public.uuid_generate_v4(), platform_id uuid not null references platform_service.platforms(id), user_id uuid not null references community_service.users(id), role_name community_service.user_roles_enum not null, constraint uniq_platform_user_id_role_name unique (platform_id, user_id, role_name) ); CREATE OR REPLACE FUNCTION community_service_api.create_scoped_user_session(id uuid) RETURNS json LANGUAGE plpgsql STABLE AS $function$ declare _platform platform_service.platforms; _user community_service.users; _jwt text; _result json; _scopes text[]; begin -- ensure that roles come from any permitted perform core.force_any_of_roles('{platform_user}'); select * from community_service.users cu where cu.platform_id = core.current_platform_id() and cu.id = $1 into _user; if _user is null then raise exception 'invalid user id'; end if; select array_agg(role_name) from community_service.user_roles where user_id = _user.id and platform_id = core.current_platform_id() into _scopes; select token from core.gen_jwt_token(json_build_object( 'role', 'scoped_user', 'user_id', _user.id, 'platform_token', core.current_platform_token(), 'exp', extract(epoch from now())::integer + (60*60)*2, 'iat', extract(epoch from now())::integer, 'scopes', coalesce(_scopes, '{}'::text[]) )) into _jwt; select json_build_object( 'token', _jwt ) into _result; return _result; end; $function$; grant select on community_service.user_roles to platform_user, scoped_user, anonymous; CREATE OR REPLACE FUNCTION core.current_user_scopes() RETURNS jsonb LANGUAGE plpgsql STABLE AS $function$ BEGIN RETURN nullif(current_setting('request.jwt.claim.scopes'), '{}')jsonb; EXCEPTION WHEN others THEN RETURN '{}'::jsonb; END $function$ ; CREATE OR REPLACE FUNCTION core.is_owner_or_admin(uuid) RETURNS boolean LANGUAGE sql STABLE AS $function$ SELECT core.current_user_id() = $1 OR current_user = 'platform_user' OR (coalesce(core.current_user_scopes(), '{}'::jsonb)) ? 'admin'; $function$ ;
31.418605
87
0.629904
77f52971ccd0e94398961a87dc7abac3862bf693
101
sql
SQL
framework/resources/Functional/filter/pushdown/item_star_operator/drill_6118_filter_push_down_with_subqueries.sql
aravi5/drill-test-framework
7bf960cbe1697c8086a880661a361e8991a73107
[ "Apache-2.0" ]
null
null
null
framework/resources/Functional/filter/pushdown/item_star_operator/drill_6118_filter_push_down_with_subqueries.sql
aravi5/drill-test-framework
7bf960cbe1697c8086a880661a361e8991a73107
[ "Apache-2.0" ]
null
null
null
framework/resources/Functional/filter/pushdown/item_star_operator/drill_6118_filter_push_down_with_subqueries.sql
aravi5/drill-test-framework
7bf960cbe1697c8086a880661a361e8991a73107
[ "Apache-2.0" ]
null
null
null
select * from (select * from `filter/pushdown/DRILL_6118_parquet_partitioned_by_folders`) where c1>2;
101
101
0.821782
2368f81619ce8771900dba473f7ca604adc1e5a0
200,312
css
CSS
update/temp/0.0.8/www/res/css/ormwidget.css
JaneJingtian/JSweetWeb
0029db009d48c633c2167459871c36e9106fca3f
[ "MIT" ]
1
2019-09-19T19:31:19.000Z
2019-09-19T19:31:19.000Z
WebContent/www/res/css/ormwidget.css
JaneJingtian/JSweetWeb
0029db009d48c633c2167459871c36e9106fca3f
[ "MIT" ]
5
2020-03-04T23:33:56.000Z
2021-12-09T21:34:15.000Z
update/temp/0.0.8/www/res/css/ormwidget.css
JaneJingtian/JSweetWeb
0029db009d48c633c2167459871c36e9106fca3f
[ "MIT" ]
null
null
null
@import url(../../rxm/Font-Awesome/css/font-awesome.min.css); @import url(../../rxm/bootstrap/plugins/datetimepicker/css/datetimepicker.min.css); .rxm-font-tabActive { color: #4d8dff; font-size: 0.88rem; font-weight: 400; } .rxm-font-tabInactive { color: #666666; font-size: 0.88rem; font-weight: 400; } .rxm-font-pageTitle { color: #333; font-size: 1.12rem; font-weight: 400; } .rxm-font-ListTitle { color: #333; font-size: 0.96rem; font-weight: 400; } .rxm-font-content { color: #666666; font-size: 0.8rem; font-weight: 400; } .rxm-font-time { color: #888888; font-size: 0.64rem; font-weight: 400; } .rxm-font-unimportant { color: #666666; font-size: 0.56rem; font-weight: 400; } .rxm-font-inputName { color: #666666; font-size: 0.8rem; font-weight: 400; } .rxm-font-inputCue { color: #666666; font-size: 0.8rem; font-weight: 400; } .rxm-font-inputWrong { color: #fa5555; font-size: 0.56rem; font-weight: 400; } .rxm-font-inputContent { color: #666666; font-size: 0.8rem; font-weight: 700; } .rxm-padding-container { padding: 0.8rem; box-sizing: border-box; } .rxm-margin-iconText-TB { margin-top: 0.3rem; } .rxm-margin-iconText-LR { margin-left: 0.3rem; } .rxm-margin-titleContent { margin-bottom: 0.8rem; } .rxm-link-default { color: #666666; } .rxm-link-hover { color: #4d8dff; } .rxm-link-visited { color: #999999; } .rxm-link-active { color: #4d8dff; } .rxm-btnM-solidDefault { font-size: 0.88rem; color: #fff; background-color: #4d8dff; height: 2.5em; border-radius: 0.4em; text-align: center; line-height: 2.5em; box-sizing: border-box; outline: none; border: 0; } .rxm-btnM-solidInactive { font-size: 0.88rem; color: #fff; background-color: #dce9ff; height: 2.5em; border-radius: 0.4em; text-align: center; line-height: 2.5em; box-sizing: border-box; outline: none; border: 0; } .rxm-btnM-hollowDefault { font-size: 0.88rem; color: #4d8dff; border: solid 1px #4d8dff; height: 2.5em; border-radius: 0.4em; text-align: center; line-height: 2.5em; box-sizing: border-box; } .rxm-btnM-hollowInactive { font-size: 0.88rem; color: #666666; border: solid 1px #666666; height: 2.5em; border-radius: 0.4em; text-align: center; line-height: 2.5em; box-sizing: border-box; } /*定义圆角 https://www.cnblogs.com/RuMengkai/p/6502057.html @radius 圆角大小 */ /* 例如 .round7{ .rxm-round(7px); }* /* 盒子阴影 @right_left 右边阴影为正数 左边负数 @bottom_top 下边阴影为正数 上边负数 @box 阴影大小 @box_color 阴影颜色 */ /* 加载等待样式 */ /*html,body ,及全局 样式123*/ html { width: 100%; height: 100%; font-size: 20px; box-sizing: border-box; position: relative; } /*以下为老的遗留,适当的时候去掉*/ body.rxm-mobile, body.rxm-desktop { margin: 0; padding: 0; background: #fff; font-size: 13px; color: #000000; font-weight: 400; overflow: hidden; -webkit-user-select: none; -webkit-touch-callout: none; width: 100%; height: 100%; box-sizing: border-box; } body.rxm-mobile *, body.rxm-desktop * { margin: 0; padding: 0; border: 0; font-size: inherit; font-weight: normal; margin-inline-end: 0px; padding-inline-start: 0px; } iframe { height: 100%; width: 100%; } .rxm-fl, .fl { float: left; } .rxm-fr, .fr { float: right; } .rxm-display-none, .dn { display: none; } .rxm-block { display: block; } .rxm-auto { overflow: auto !important; } /**home.css*/ .gray { -webkit-filter: grayscale(1); -webkit-filter: grayscale(100%); -moz-filter: grayscale(1); -moz-filter: grayscale(100%); -ms-filter: grayscale(1); -ms-filter: grayscale(100%); filter: grayscale(1); filter: gray; } .center { margin: 0 auto; } /**/ footer { position: absolute; bottom: 0px; width: 100%; padding-top: 4px; border-top: 1px solid #dddddd; background-color: #f2f2f2; } footer .footer-item { height: 48px; display: block; float: left; position: relative; margin: 1px 0px 0px 0px; border-radius: 2px; /*background-color:gainsboro*/ } footer .footer-item:hover, footer .footer-item:hover .tab-text { /*background-color:aquamarine*/ text-decoration: none; color: #0f17b6; } .widget-icon { display: block; width: 24px; height: 24px; margin: 2px auto; background-repeat: no-repeat; background: url(../img/mailMsg.png); background-size: 100%; } /* *18-07-12 * 王勇 */ /* #rxm_content, div.rxm-content{ //visibility:hidden; position: relative; width:100%; height:100%; overflow: auto; margin: 0px; padding: @rxm-content-pading; } */ /*created by wangyong */ /*--button--*/ div.rxm-widget-title-btnbar { float: right; padding-right: 1px; background-color: transparent; } button.rxm-widget-close-btn { background-color: transparent; border: none 0px; } /* */ div.orm-form-btnbar { margin-top: 15px; border-top: solid 1px #dddddd; padding-top: 20px; padding-right: 50px; padding-left: 50px; width: 100%; } .orm-form-btnbar button { float: right; } /*�ύ*/ button.rxm-submit-btn, button.rxm-cancel-btn, button.rxm-reset-btn, button.rxm-custom-btn { float: left; background-color: transparent; border: none 0px; } .rxm-submit-btn:hover, .rxm-cancel-btn:hover, .rxm-reset-btn:hover, .rxm-custom-btn:hover { /*border:solid 1px #ff9c9c;*/ border-style: outset; } /*widgetcss 迁移保留*/ a.item-one { float: left; overflow: hidden; text-align: center; } /** created by wangyong */ @media (min-width: 300px) { .rxm-form-horizontal .rxm-control-label { padding-top: 7px; margin-bottom: 0; text-align: right; } } form.rxmdk-layout-btstrp-form { padding-top: 10px; max-height: 600px; } .rxm-required { color: #CD0000; } .rxm-file-padding { padding: 7px; } .file { position: relative; display: inline-block; background: #337ab7; border: 1px solid #99D3F5; border-radius: 4px; padding: 4px 12px; overflow: hidden; color: white; text-decoration: none; text-indent: 0; line-height: 20px; } .file input { position: absolute; font-size: 100px; right: 0; top: 0; opacity: 0; cursor: pointer; } .file:hover { background: #AADFFD; border-color: #78C3F3; color: #004974; text-decoration: none; cursor: pointer; } .rxm-fieldset { min-height: 2.5rem; width: auto; } .rxm-mobile .rxm-form-horizontal .rxmm-width-5pt { width: 5%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-10pt { width: 10%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-15pt { width: 15%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-20pt { width: 20%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-25pt { width: 25%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-30pt { width: 30%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-35pt { width: 35%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-40pt { width: 40%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-45pt { width: 45%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-50pt { width: 50%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-55pt { width: 55%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-60pt { width: 60%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-65pt { width: 65%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-70pt { width: 70%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-75pt { width: 75%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-80pt { width: 80%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-85pt { width: 85%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-90pt { width: 90%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-95pt { width: 95%; } .rxm-mobile .rxm-form-horizontal .rxmm-width-100pt { width: 100%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-5pt { width: 5%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-10pt { width: 10%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-15pt { width: 15%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-20pt { width: 20%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-25pt { width: 25%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-30pt { width: 30%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-35pt { width: 35%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-40pt { width: 40%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-45pt { width: 45%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-50pt { width: 50%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-55pt { width: 55%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-60pt { width: 60%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-65pt { width: 65%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-70pt { width: 70%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-75pt { width: 75%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-80pt { width: 80%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-85pt { width: 85%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-90pt { width: 90%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-95pt { width: 95%; } .rxm-desktop .rxm-form-horizontal .rxmd-width-100pt { width: 100%; } /*created by wangyong*/ iframe.orm-home { min-width: 100%; width: 100px; height: 100%; } div.scroll_frame { overflow: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; width: 100%; height: 100%; } div.orm-frame { display: block; width: 100%; border: 0; visibility: visible; position: absolute; top: 0; left: 0; } div.orm-frame-hidden { /*display:none;*/ visibility: hidden; } /* ================================== 移动端专用样式 ======================================================== */ /*表格控制*/ .rxm-mobile .rxm-grid-mobile.rxm-s-grid a, .rxm-desktop .rxm-grid-mobile.rxm-s-grid a, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid a { cursor: pointer; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid table, .rxm-desktop .rxm-grid-mobile.rxm-s-grid table, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid table { width: 100%; margin-bottom: 0; font-size: 13px; font-family: Microsoft yahei, "宋体"; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-table, .rxm-desktop .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-table, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-table { overflow-y: hidden; overflow-x: auto; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table table, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table table, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table table { table-layout: fixed; word-break: break-all; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table div, .rxm-desktop .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table div, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table div, .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th { /* height: 39px; */ -ms-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-desktop .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th { /* height: 39px; */ -ms-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-desktop .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-mobile .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix, .rxm-desktop .rxm-grid-mobile.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix { width: 70px; -ms-text-overflow: clip; text-overflow: clip; overflow: visible; white-space: normal; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table table th, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table table th { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; white-space: nowrap; } .rxm-mobile .rxm-grid-mobile .rxm-table-body, .rxm-desktop .rxm-grid-mobile .rxm-table-body, .rxm-mobile .rxm-grid-mobile-desktop .rxm-table-body { padding: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body thead th, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body thead th, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body thead th { height: 0; padding-top: 0; padding-bottom: 0; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body td.rxmindex, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body td.rxmindex, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body td.rxmindex { padding: 0; padding-top: 11px; padding-left: 6px; font-size: 12px; text-align: center; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .fix, .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body td.fix, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .fix, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-body td.fix, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .fix, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body td.fix { padding-left: 6px; padding-right: 0; text-align: center; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head { position: relative; background-color: #f9f9f9; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head thead, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head thead, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead { background-color: #f9f9f9; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head thead th, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head thead th, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead th { height: 36px; cursor: default; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .dragTrigger, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table .rxm-table-head .dragTrigger, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .dragTrigger { position: absolute; display: none; left: 0; top: 0; padding: 0 4px; height: 100%; cursor: col-resize; } /*表格标题*/ .rxm-mobile .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar, .rxm-desktop .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-titlebar { position: relative; z-index: 1; height: 50px; line-height: 50px; text-align: center; overflow: hidden; font-size: 16px; font-weight: bold; font-family: Arial, "微软雅黑", "宋体", Tahoma, Helvetica, sans-serif; background-color: #dddddd; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar i:last-child, .rxm-desktop .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar i:last-child, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-titlebar i:last-child { padding: 3px; cursor: pointer; color: #BDB4B4; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar i:last-child:hover, .rxm-desktop .rxm-grid-mobile.rxm-s-grid .rxm-s-grid-titlebar i:last-child:hover, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-titlebar i:last-child:hover { color: #2898e0; } /*表格搜索栏*/ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-searchbar, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-searchbar, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-searchbar { position: relative; z-index: 1; height: 50px; padding-top: 10px; background-color: #fff; } /* 表格操作栏*/ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar { display: none; position: relative; z-index: 1; height: 50px; font-size: 14px; font-weight: normal; padding: 0 10px 0 10px; background-color: #fff; overflow-x: auto; /* float:left; text-align: center; width:60%; */ } /* 表格操作栏-悬浮工具栏 */ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar.rxm-floated { position: absolute; top: 100px; height: 2.1rem; z-index: 1; font-size: 10px; left: 20px; border: 1px solid #cec2c2; border-radius: 5px; font-weight: normal; padding: 0 10px 0 10px; background-color: #464343; overflow-x: auto; } /* 表格操作栏-悬浮工具栏 li样式 */ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated ul li, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated ul li, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar.rxm-floated ul li { line-height: 2.1rem; list-style-type: none; text-align: left; display: inline; padding-left: 10px; padding-right: 10px; border-right: 1px solid #a1cef4; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated ul li a, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar.rxm-floated ul li a, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar.rxm-floated ul li a { text-decoration: none; color: #fff !important; font-size: 14px !important; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar ul li, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar ul li, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li { line-height: 50px; list-style-type: none; text-align: left; display: inline; padding-left: 10px; padding-right: 10px; border-right: 1px solid #a1cef4; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar ul li i, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar ul li i, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li i { margin-right: 4px; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-toolbar ul li a, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-toolbar ul li a, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li a { text-decoration: none; color: #333333 !important; font-size: 14px !important; } /*表格操作栏(改)*/ /* .rxm-content .rxm-s-grid-toolbar,.rxm-content .rxm-s-grid-toolbar,.rxm-content .rxm-s-grid-toolbar{ position:relative; z-index:1; height: 50px; font-size:14px; font-weight:normal; padding: 0 10px 0 10px; background-color: #fff; overflow-x:auto; } .rxm-content .rxm-s-grid-toolbar ul li, .rxm-content .rxm-s-grid-toolbar ul li, .rxm-content .rxm-s-grid-toolbar ul li { line-height: 50px; list-style-type: none; text-align: left; display: inline; padding-left: 10px; padding-right: 10px; border-right:1px solid #a1cef4; } .rxm-content .rxm-s-grid-toolbar ul li i,.rxm-content .rxm-s-grid-toolbar ul li i,.rxm-content .rxm-s-grid-toolbar ul li i{ margin-right:4px; } .rxm-content .rxm-s-grid-toolbar ul li a,.rxm-content .rxm-s-grid-toolbar ul li a,.rxm-content .rxm-s-grid-toolbar ul li a{ text-decoration:none; } */ /*表格顶部刷新栏*/ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-topRefreshbar, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-topRefreshbar, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-topRefreshbar { position: relative; text-align: center; color: #717171; font-size: 14px; font-family: "微软雅黑"; height: 40px; line-height: 40px; } .rxm-mobile .rxm-grid-mobile .rxm-top-loading-img, .rxm-desktop .rxm-grid-mobile .rxm-top-loading-img, .rxm-mobile .rxm-grid-mobile-desktop .rxm-top-loading-img { width: 18px; height: 18px; vertical-align: middle; } .rxm-mobile .rxm-grid-mobile .rxm-top-loading-arrow, .rxm-desktop .rxm-grid-mobile .rxm-top-loading-arrow, .rxm-mobile .rxm-grid-mobile-desktop .rxm-top-loading-arrow { width: 18px; height: 18px; vertical-align: middle; } /*表格底部刷新栏*/ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-bottomRefreshbar, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-bottomRefreshbar, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-bottomRefreshbar { position: relative; z-index: 0; text-align: center; bottom: 45px; color: #717171; font-size: 14px; font-family: "微软雅黑"; background-color: #fff; height: 45px; line-height: 45px; } .rxm-mobile .rxm-grid-mobile .rxm-bottom-loading-img, .rxm-desktop .rxm-grid-mobile .rxm-bottom-loading-img, .rxm-mobile .rxm-grid-mobile-desktop .rxm-bottom-loading-img { width: 20px; height: 20px; vertical-align: middle; } .rxm-mobile .rxm-grid-mobile .rxm-grid-loading, .rxm-desktop .rxm-grid-mobile .rxm-grid-loading, .rxm-mobile .rxm-grid-mobile-desktop .rxm-grid-loading { display: inline-block; height: 15px; width: 15px; border-radius: 100%; margin: 6px; border: 2px solid #666; border-bottom-color: transparent; vertical-align: middle; -webkit-animation: rotate 0.75s linear infinite; animation: rotate 0.75s linear infinite; } @-webkit-keyframes rotate { 0% { -webkit-transform: rotate(0deg); } 50% { -webkit-transform: rotate(180deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes rotate { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } } /*表格操作栏-取消全选*/ .rxm-mobile .rxm-grid-mobile .rxm-toolbar-cancelbtn, .rxm-desktop .rxm-grid-mobile .rxm-toolbar-cancelbtn, .rxm-mobile .rxm-grid-mobile-desktop .rxm-toolbar-cancelbtn { display: block; float: left; text-align: center; font-size: 12px; line-height: 41px; margin-left: 10px; } /*表格操作栏-全选*/ .rxm-mobile .rxm-grid-mobile .rxm-toolbar-allselbtn, .rxm-desktop .rxm-grid-mobile .rxm-toolbar-allselbtn, .rxm-mobile .rxm-grid-mobile-desktop .rxm-toolbar-allselbtn { display: block; float: right; text-align: center; font-size: 12px; line-height: 41px; margin-right: 10px; } /*表格搜索框*/ .rxm-mobile .rxm-grid-mobile .rxm-searchbar-btnsub, .rxm-desktop .rxm-grid-mobile .rxm-searchbar-btnsub, .rxm-mobile .rxm-grid-mobile-desktop .rxm-searchbar-btnsub { border-top-right-radius: 0px; border-top-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; border-right: 0px; } /*表格标题排序样式*/ .rxm-mobile .rxm-grid-mobile.rxm-s-grid thead tr, .rxm-desktop .rxm-grid-mobile.rxm-s-grid thead tr, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid thead tr { background-image: none; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid thead tr i, .rxm-desktop .rxm-grid-mobile.rxm-s-grid thead tr i, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid thead tr i { margin-left: 4px; color: #307ECC; cursor: pointer; } .rxm-mobile .rxm-grid-mobile.rxm-s-grid table tr th, .rxm-desktop .rxm-grid-mobile.rxm-s-grid table tr th, .rxm-mobile .rxm-grid-mobile-desktop.rxm-s-grid table tr th { color: #a8a8a8; font-weight: normal; } /* 导航栏定位处理 */ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-content, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-content, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-content { position: relative; z-index: 0; margin: 0px 10px 0 10px; background-color: #fff; } .rxm-mobile .rxm-grid-mobile .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container { min-width: 100% !important; } .rxm-mobile .rxm-grid-mobile .table > tbody > tr > td, .rxm-desktop .rxm-grid-mobile .table > tbody > tr > td, .rxm-mobile .rxm-grid-mobile-desktop .table > tbody > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: middle; border-bottom: 1px solid #ddd; border-top: 0px; } .rxm-mobile .rxm-grid-mobile .rxm-td-icon, .rxm-desktop .rxm-grid-mobile .rxm-td-icon, .rxm-mobile .rxm-grid-mobile-desktop .rxm-td-icon { width: 55px; vertical-align: middle; } .rxm-mobile .rxm-grid-mobile .rxm-td-arrow, .rxm-desktop .rxm-grid-mobile .rxm-td-arrow, .rxm-mobile .rxm-grid-mobile-desktop .rxm-td-arrow { width: 50px; vertical-align: middle; } .rxm-mobile .rxm-grid-mobile .rxm-td-arrow > img, .rxm-desktop .rxm-grid-mobile .rxm-td-arrow > img, .rxm-mobile .rxm-grid-mobile-desktop .rxm-td-arrow > img { width: 40px; height: 40px; } .rxm-mobile .rxm-grid-mobile .rxm-td-checkbox, .rxm-desktop .rxm-grid-mobile .rxm-td-checkbox, .rxm-mobile .rxm-grid-mobile-desktop .rxm-td-checkbox { width: 70px; } .rxm-mobile .rxm-grid-mobile .rxm-col-name, .rxm-desktop .rxm-grid-mobile .rxm-col-name, .rxm-mobile .rxm-grid-mobile-desktop .rxm-col-name { font: 14px 微软雅黑; color: #717171; } .rxm-mobile .rxm-grid-mobile .rxm-col-value, .rxm-desktop .rxm-grid-mobile .rxm-col-value, .rxm-mobile .rxm-grid-mobile-desktop .rxm-col-value { font: 14px 微软雅黑; color: #000000; } .rxm-mobile .rxm-grid-mobile .rxm-nodata-tip, .rxm-desktop .rxm-grid-mobile .rxm-nodata-tip, .rxm-mobile .rxm-grid-mobile-desktop .rxm-nodata-tip { height: 30px; line-height: 30px; } /* 左滑菜单 */ .rxm-slide-wrapper { overflow: hidden; width: 100%; } .slide-scroll-wrapper { overflow: hidden; width: 100%; } .rxm-icon-div { width: 55px; vertical-align: middle; text-align: center; float: left; height: 100%; } .rxm-data-div { float: left; margin: 8px 0px 8px 0px; } .rxm-slide-btn-div { float: left; } .rxm-slide-btn { float: left; height: 100%; } .rxm-slide-btn div { width: 60px; height: 100%; text-align: center; background: #e6423f; border: none; font-size: 18px; font-family: 'Microsoft Yahei'; color: #fff; outline: none; } /*隐藏桌面版表格每列title行*/ .rxm-mobile .rxm-grid-mobile .rxm-table-head, .rxm-desktop .rxm-grid-mobile .rxm-table-head, .rxm-mobile .rxm-grid-mobile-desktop .rxm-table-head { display: none; } /*隐藏桌面版表格分页区域*/ .rxm-mobile .rxm-grid-mobile .rxm-s-grid-pagination, .rxm-desktop .rxm-grid-mobile .rxm-s-grid-pagination, .rxm-mobile .rxm-grid-mobile-desktop .rxm-s-grid-pagination { display: none; } /*隐藏桌面版表格tbody上面的thead*/ .rxm-mobile .rxm-grid-mobile .rxm-table-hover thead, .rxm-desktop .rxm-grid-mobile .rxm-table-hover thead, .rxm-mobile .rxm-grid-mobile-desktop .rxm-table-hover thead { display: none; } /* 此样式为Grid插件样例中移动端隐藏桌面端行数据样式 */ .rxm-mobile .rxm-grid-mobile .table > tbody > tr.desktop-grid-tr, .rxm-desktop .rxm-grid-mobile .table > tbody > tr.desktop-grid-tr, .rxm-mobile .rxm-grid-mobile-desktop .table > tbody > tr.desktop-grid-tr { display: none; } /* ================================== 桌面端专用样式 ======================================================== */ /*表格控制*/ .rxm-desktop .rxm-grid-desktop.rxm-s-grid a, .rxm-mobile .rxm-grid-desktop.rxm-s-grid a, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid a { cursor: pointer; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid a:hover, .rxm-mobile .rxm-grid-desktop.rxm-s-grid a:hover, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid a:hover { text-decoration: underline; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid table, .rxm-mobile .rxm-grid-desktop.rxm-s-grid table, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid table { width: 100%; margin-bottom: 0; font-size: 13px; font-family: Microsoft yahei, "宋体"; border-spacing: 0px; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid .rxm-s-grid-table, .rxm-mobile .rxm-grid-desktop.rxm-s-grid .rxm-s-grid-table, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-table { border: 1px solid #ddd; overflow-y: hidden; overflow-x: auto; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table table, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table table, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table table { table-layout: fixed; word-break: break-all; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-desktop .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th { padding: 9px; height: 40px; -ms-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-desktop .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-mobile .rxm-grid-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table td.fix, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid-ellipsis .rxm-s-grid-table table th.fix { -ms-text-overflow: clip; text-overflow: clip; overflow: visible; white-space: normal; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table table th, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table table th, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table table th { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table table th.rxm-grid-column, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table table th.rxm-grid-column, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table table th.rxm-grid-column { padding: 9px; height: 40px; text-align: left; } .rxm-desktop .rxm-grid-desktop .rxm-table-body, .rxm-mobile .rxm-grid-desktop .rxm-table-body, .rxm-desktop .rxm-grid-mobile-desktop .rxm-table-body { overflow: visible; position: relative; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body thead th, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body thead th, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body thead th { height: 0; padding-top: 0; padding-bottom: 0; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body td.rxmindex, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body td.rxmindex, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .rxmindex, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body td.rxmindex { padding: 9px 2px; text-align: center; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .fix, .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body td.fix, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .fix, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-body td.fix, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .fix, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-body td.fix { padding-left: 0px; padding-right: 0; text-align: center; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head { position: relative; background-color: #f9f9f9; margin-bottom: -1px; border-bottom: 1px solid #dddddd; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead { background-color: #f9f9f9; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead th { /*height: 36px;*/ font-weight: normal; border-top: 0px; border-right: 1px solid #ddd; cursor: default; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th.rxm-column-hidden, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th.rxm-column-hidden, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead th.rxm-column-hidden { /*height: 36px;*/ display: none; font-weight: normal; border-top: 0px; border-right: 1px solid #ddd; cursor: default; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th.noDrag, .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th:last-child, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th.noDrag, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head thead th:last-child, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead th.noDrag, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head thead th:last-child { border-right: none; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .dragTrigger, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table .rxm-table-head .dragTrigger, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table .rxm-table-head .dragTrigger { position: absolute; display: none; left: 0; top: 0; padding: 0 4px; height: 100%; cursor: col-resize; } /*表格标题*/ .rxm-desktop .rxm-grid-desktop.rxm-s-grid .rxm-s-grid-titlebar, .rxm-mobile .rxm-grid-desktop.rxm-s-grid .rxm-s-grid-titlebar, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid .rxm-s-grid-titlebar { padding: 0px 5px 5px 5px; overflow: hidden; font-size: 15px; font-family: Arial, "微软雅黑", "宋体", Tahoma, Helvetica, sans-serif; } /*表格操作栏*/ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar { overflow: hidden; border: 1px solid #ddd; border-bottom: none; background-color: #f9f9f9; height: 34px; padding: 0px; } /*表格操作栏*/ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar.rxmmview, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar.rxmmview, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar.rxmmview { display: none; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul:not(.rxm-cmd-btnbar), .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul:not(.rxm-cmd-btnbar), .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul:not(.rxm-cmd-btnbar) { list-style: none; float: left; margin: 10px 0; padding: 0; } /*表格按钮栏 调整为标准插件样式 使用 .rxm-cmd-btnbar*/ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul.rxm-cmd-btnbar, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul.rxm-cmd-btnbar, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul.rxm-cmd-btnbar { list-style: none; height: 100%; line-height: 33px; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul li:first-child, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul li:first-child, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li:first-child { border-left: 0; } /*表格按钮 调整为标准插件样式 排除.rxm-cmd-btn*/ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul li:not(.rxm-cmd-btn), .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul li:not(.rxm-cmd-btn), .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li:not(.rxm-cmd-btn) { float: left; font-size: 13px; line-height: 12px; border-left: 1px solid #c9c9c9; padding: 0 7px; border-right: 0px; /*font-family: Arial, "微软雅黑", "宋体", Tahoma, Helvetica, sans-serif;*/ } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul li a, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul li a, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li a { padding: 3px 7px; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul li a .fa, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul li a .fa, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li a .fa { margin-right: 4px; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-toolbar ul li a:hover, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-toolbar ul li a:hover, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-toolbar ul li a:hover { background-color: #2898e0 !important; text-decoration: none; border-radius: 3px; color: #fff; } /*表格标题排序样式*/ .rxm-desktop .rxm-grid-desktop.rxm-s-grid thead tr, .rxm-mobile .rxm-grid-desktop.rxm-s-grid thead tr, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid thead tr { background-image: none; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid thead tr i, .rxm-mobile .rxm-grid-desktop.rxm-s-grid thead tr i, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid thead tr i { margin-left: 4px; color: #307ECC; cursor: pointer; } .rxm-desktop .rxm-grid-desktop.rxm-s-grid table tr th, .rxm-mobile .rxm-grid-desktop.rxm-s-grid table tr th, .rxm-desktop .rxm-grid-mobile-desktop.rxm-s-grid table tr th { border-bottom: none; border-top: 1px solid #ddd; /*color: #a8a8a8;*/ font-weight: bold; } /* 导航栏定位处理 */ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-content, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-content, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-content { position: relative; /*margin-bottom: 40px;*/ } /* 表格中字段点击默认样式 */ .rxm-desktop .rxm-grid-desktop .rxm-click-style, .rxm-mobile .rxm-grid-desktop .rxm-click-style, .rxm-desktop .rxm-grid-mobile-desktop .rxm-click-style { color: #337ab7; cursor: pointer; } /*分页样式*/ .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination { /*position: absolute; bottom: -39px; left: 0;*/ border: #ddd 1px solid; border-top: 0; background-color: #f9f9f9; padding: 5px; height: 40px; line-height: 30px; width: 100%; overflow: hidden; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination a, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination a, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination a { border-radius: 1.0833em; border-style: solid; border-width: 1px; border-color: #818181; text-align: center; opacity: 0.7; width: 28px; height: 28px; line-height: 28px; display: block; float: left; margin-left: 5px; color: #818181; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; position: relative; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination a i, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination a i, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination a i { height: 50%; top: 0; bottom: 0; left: 0; right: 0; position: absolute; margin: auto; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination a.disable, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination a.disable, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination a.disable { color: #ccc !important; border-color: #ccc !important; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination a:hover, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination a:hover, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination a:hover { border-color: #337ab7; color: #337ab7; text-decoration: none; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination span, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination span, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination span { float: right; margin-left: 5px; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination span.rxm-cur-page { float: left; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page input, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page input, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination span.rxm-cur-page input { width: 28px; height: 28px; line-height: 28px; text-align: center; border: 1px solid #ccc; border-radius: 3px; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page input:focus, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination span.rxm-cur-page input:focus, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination span.rxm-cur-page input:focus { outline: 1px solid #c1c1c1; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination .rxm-page-size select, .rxm-desktop .rxm-grid-desktop .rxm-s-grid-pagination .rxm-data-count .rxm-num, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination .rxm-page-size select, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-pagination .rxm-data-count .rxm-num, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination .rxm-page-size select, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-pagination .rxm-data-count .rxm-num { margin: 0 3px; font-style: normal; } .rxm-desktop .rxm-grid-desktop .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container, .rxm-mobile .rxm-grid-desktop .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container, .rxm-desktop .rxm-grid-mobile-desktop .rxm-s-grid-table > .mCustomScrollBox > .mCSB-container { min-width: 100%!important; } /*此样式为bootstrap中的样式,添加此样式,避免ormwidget.css样式在bootstrap.min.css后面引用,然后对bootstrap.min.css相同样式进行覆盖*/ .rxm-desktop .rxm-grid-desktop .table > caption + thead > tr:first-child > td, .rxm-desktop .rxm-grid-desktop .table > caption + thead > tr:first-child > th, .rxm-desktop .rxm-grid-desktop .table > colgroup + thead > tr:first-child > td, .rxm-desktop .rxm-grid-desktop .table > colgroup + thead > tr:first-child > th, .rxm-desktop .rxm-grid-desktop .table > thead:first-child > tr:first-child > td, .rxm-desktop .rxm-grid-desktop .table > thead:first-child > tr:first-child > th, .rxm-mobile .rxm-grid-desktop .table > caption + thead > tr:first-child > td, .rxm-mobile .rxm-grid-desktop .table > caption + thead > tr:first-child > th, .rxm-mobile .rxm-grid-desktop .table > colgroup + thead > tr:first-child > td, .rxm-mobile .rxm-grid-desktop .table > colgroup + thead > tr:first-child > th, .rxm-mobile .rxm-grid-desktop .table > thead:first-child > tr:first-child > td, .rxm-mobile .rxm-grid-desktop .table > thead:first-child > tr:first-child > th, .rxm-desktop .rxm-grid-mobile-desktop .table > caption + thead > tr:first-child > td, .rxm-desktop .rxm-grid-mobile-desktop .table > caption + thead > tr:first-child > th, .rxm-desktop .rxm-grid-mobile-desktop .table > colgroup + thead > tr:first-child > td, .rxm-desktop .rxm-grid-mobile-desktop .table > colgroup + thead > tr:first-child > th, .rxm-desktop .rxm-grid-mobile-desktop .table > thead:first-child > tr:first-child > td, .rxm-desktop .rxm-grid-mobile-desktop .table > thead:first-child > tr:first-child > th { border-top: 0; } /*此样式为bootstrap中的样式,添加此样式,对bootstrap.min.css相同样式进行覆盖*/ .rxm-desktop .rxm-grid-desktop .table > tbody > tr > td, .rxm-desktop .rxm-grid-desktop .table > tbody > tr > th, .rxm-desktop .rxm-grid-desktop .table > tfoot > tr > td, .rxm-desktop .rxm-grid-desktop .table > tfoot > tr > th, .rxm-desktop .rxm-grid-desktop .table > thead > tr > td, .rxm-desktop .rxm-grid-desktop .table > thead > tr > th, .rxm-mobile .rxm-grid-desktop .table > tbody > tr > td, .rxm-mobile .rxm-grid-desktop .table > tbody > tr > th, .rxm-mobile .rxm-grid-desktop .table > tfoot > tr > td, .rxm-mobile .rxm-grid-desktop .table > tfoot > tr > th, .rxm-mobile .rxm-grid-desktop .table > thead > tr > td, .rxm-mobile .rxm-grid-desktop .table > thead > tr > th, .rxm-desktop .rxm-grid-mobile-desktop .table > tbody > tr > td, .rxm-desktop .rxm-grid-mobile-desktop .table > tbody > tr > th, .rxm-desktop .rxm-grid-mobile-desktop .table > tfoot > tr > td, .rxm-desktop .rxm-grid-mobile-desktop .table > tfoot > tr > th, .rxm-desktop .rxm-grid-mobile-desktop .table > thead > tr > td, .rxm-desktop .rxm-grid-mobile-desktop .table > thead > tr > th { padding: 8px; line-height: 1.42857143; vertical-align: middle; border-top: 1px solid #ddd; } /* 此样式为Grid插件样例中桌面端隐藏移动端行数据样式 */ .rxm-desktop .rxm-grid-desktop .table > tbody > tr.mobile-grid-tr, .rxm-mobile .rxm-grid-desktop .table > tbody > tr.mobile-grid-tr, .rxm-desktop .rxm-grid-mobile-desktop .table > tbody > tr.mobile-grid-tr { display: none; } .cs-loading { display: none; position: absolute; z-index: 11; white-space: nowrap; z-index: 2001; color: black; text-align: center; font-weight: bold; } .cs-loading-mask { display: none; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: #ccc; /* older safari/Chrome browsers */ -webkit-opacity: 0.4; /* Netscape and Older than Firefox 0.9 */ -moz-opacity: 0.4; /* Safari 1.x (pre WebKit!) 老式khtml内核的Safari浏览器*/ -khtml-opacity: 0.4; /* IE9 + etc...modern browsers */ opacity: 0.4; /* IE 4-9 */ filter: alpha(opacity=40); /*This works in IE 8 & 9 too*/ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); /*IE4-IE9*/ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); z-index: 2000; } .cs-loading-mask.fixed { position: fixed; } /*新的loading css*/ .rxm-loadEffect-1a { width: 60px; height: 60px; position: relative; margin: 0 auto!important; margin-top: 100px!important; } .rxm-loadEffect-1a span { display: inline-block; width: 20px; height: 6px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; background: gray; position: absolute; -webkit-animation: rxm_loadEffect_load 1.04s ease infinite; animation: rxm_loadEffect_load 1.04s ease infinite; } @-webkit-keyframes rxm_loadEffect_load { 0% { opacity: 1; } 100% { opacity: 0.2; } } @keyframes rxm_loadEffect_load { 0% { opacity: 1; } 100% { opacity: 0.2; } } .rxm-loadEffect-1a span:nth-child(1) { left: 0; top: 50%; margin-top: -3px; -webkit-animation-delay: 0.13s; animation-delay: 0.13s; } .rxm-loadEffect-1a span:nth-child(2) { left: 6px; top: 12px; -webkit-transform: rotate(45deg); transform: rotate(45deg); -webkit-animation-delay: 0.26s; animation-delay: 0.26s; } .rxm-loadEffect-1a span:nth-child(3) { left: 50%; top: 7px; margin-left: -10px; -webkit-transform: rotate(90deg); -webkit-animation-delay: 0.39s; transform: rotate(90deg); animation-delay: 0.39s; } .rxm-loadEffect-1a span:nth-child(4) { top: 12px; right: 6px; -webkit-transform: rotate(135deg); -webkit-animation-delay: 0.52s; transform: rotate(135deg); animation-delay: 0.52s; } .rxm-loadEffect-1a span:nth-child(5) { right: 0; top: 50%; margin-top: -3px; -webkit-transform: rotate(180deg); -webkit-animation-delay: 0.65s; transform: rotate(180deg); animation-delay: 0.65s; } .rxm-loadEffect-1a span:nth-child(6) { right: 6px; bottom: 12px; -webkit-transform: rotate(225deg); -webkit-animation-delay: 0.78s; transform: rotate(225deg); animation-delay: 0.78s; } .rxm-loadEffect-1a span:nth-child(7) { bottom: 7px; left: 50%; margin-left: -10px; -webkit-transform: rotate(270deg); -webkit-animation-delay: 0.91s; transform: rotate(270deg); animation-delay: 0.91s; } .rxm-loadEffect-1a span:nth-child(8) { bottom: 12px; left: 6px; -webkit-transform: rotate(315deg); -webkit-animation-delay: 1.04s; transform: rotate(315deg); animation-delay: 1.04s; } /**pageloading bgpanel*/ #rxm_loading, .rxm-loading { position: absolute; top: 0px; left: 0px; z-index: 3000; width: 100%; height: 100%; background-color: transparent; display: none; text-align: center; } .rxm-loading-show #rxm_loading, .rxm-loading-show .rxm-loading { display: block; } /*----------老的 gif- loading*/ .rxm-flower-gif { margin-top: 10rem; width: 100%; } .rxm-flower-gif > div { width: 1.2rem; height: 1.2rem; margin: 0px auto; margin-bottom: 10px; } .rxm-flower-gif > div img { width: 100%; height: 100%; } .rxm-flower-gif > span { vertical-align: middle; font-size: 0.5rem; } /*-------gradientsdotline--渐变点线-----*/ .rxm-gradients-dot-line { width: auto; height: 15px; margin: 0 auto; margin-top: 0px; background-color: translate; /* older safari/Chrome browsers */ -webkit-opacity: 1; /* Netscape and Older than Firefox 0.9 */ -moz-opacity: 1; /* Safari 1.x (pre WebKit!) 老式khtml内核的Safari浏览器*/ -khtml-opacity: 1; /* IE9 + etc...modern browsers */ opacity: 1; /* IE 4-9 */ filter: alpha(opacity=100); /*This works in IE 8 & 9 too*/ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); /*IE4-IE9*/ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); } .rxm-gradients-dot-line span { display: inline-block; width: 15px; height: 100%; margin-right: 5px; border-radius: 50%; font-size: 0.55rem; background-color: #4d8dff; -webkit-animation: gradientsdotlineload 2s ease infinite; animation: gradientsdotlineload 2s ease infinite; } .rxm-gradients-dot-line span:last-child { margin-right: 0px; } @-webkit-keyframes gradientsdotlineload { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes gradientsdotlineload { 0% { opacity: 1; } 100% { opacity: 0; } } .rxm-gradients-dot-line span:nth-child(1) { -webkit-animation-delay: 0.15s; animation-delay: 0.15s; } .rxm-gradients-dot-line span:nth-child(2) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .rxm-gradients-dot-line span:nth-child(3) { -webkit-animation-delay: 0.45s; animation-delay: 0.45s; } .rxm-gradients-dot-line span:nth-child(4) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .rxm-gradients-dot-line span:nth-child(5) { -webkit-animation-delay: 0.75s; animation-delay: 0.75s; } .rxm-gradients-dot-line span:nth-child(6) { -webkit-animation-delay: 0.9s; animation-delay: 0.9s; } .rxm-gradients-dot-line span:nth-child(7) { -webkit-animation-delay: 1.05s; animation-delay: 1.05s; } .rxm-gradients-dot-line span:nth-child(8) { -webkit-animation-delay: 1.3s; } .rxm-gradients-dot-line span:nth-child(9) { -webkit-animation-delay: 1.45s; animation-delay: 1.45s; } .rxm-gradients-dot-line span:nth-child(10) { -webkit-animation-delay: 1.6s; animation-delay: 1.6s; } /* 渐变直线 */ .rxm-line-loading { width: 100%; height: auto; } .rxm-line-loading .loading { width: auto; height: 4.2px; border-radius: 4px; margin: 0 auto; position: relative; background: skyblue; overflow: hidden; } .rxm-line-loading .loading span { display: block; width: 100%; height: 100%; border-radius: 3px; background: #38b3fb; -webkit-animation: changePosition 5s linear infinite; } @-webkit-keyframes changePosition { /* 反复形式 */ 0% { -webkit-transform: translate(-100%); } 50% { -webkit-transform: translate(0); } 100% { -webkit-transform: translate(100%); } /* 来回形式 */ } /* 圆圈点 */ .rxm-circle-spot { width: 72px; height: 72px; position: relative; margin: 0 auto!important; margin-top: 100px!important; } .rxm-circle-spot span { display: inline-block; opacity: 0.5; width: 10px; height: 10px; border-radius: 8px; background: gray; position: absolute; -webkit-animation: rxm_circle_spot_load 1.54s ease infinite; animation: rxm_circle_spot_load 1.54s ease infinite; } @-webkit-keyframes rxm_circle_spot_load { 0% { opacity: 1; -webkit-transform: scale(1.5); } 25% { opacity: 0.75; -webkit-transform: scale(1.4); } 50% { opacity: 0.5; -webkit-transform: scale(1.3); } 75% { opacity: 0.25; -webkit-transform: scale(1.2); } 100% { opacity: 0.2; -webkit-transform: scale(1); } } @keyframes rxm_circle_spot_load { 0% { opacity: 1; -webkit-transform: scale(1.5); } 25% { opacity: 0.75; -webkit-transform: scale(1.4); } 50% { opacity: 0.5; -webkit-transform: scale(1.3); } 75% { opacity: 0.25; -webkit-transform: scale(1.2); } 100% { opacity: 0.2; -webkit-transform: scale(1); } } .rxm-circle-spot span:nth-child(1) { left: 0px; top: 36px; margin-top: -3px; -webkit-animation-delay: 0.13s; animation-delay: 0.13s; } .rxm-circle-spot span:nth-child(2) { left: 4px; top: 17px; -webkit-animation-delay: 0.26s; animation-delay: 0.26s; } .rxm-circle-spot span:nth-child(3) { left: 26px; top: 5px; margin-left: -10px; -webkit-animation-delay: 0.39s; animation-delay: 0.39s; } .rxm-circle-spot span:nth-child(4) { left: 32px; top: 0px; -webkit-animation-delay: 0.52s; animation-delay: 0.52s; } .rxm-circle-spot span:nth-child(5) { right: 14px; top: 8px; margin-top: -3px; -webkit-animation-delay: 0.65s; animation-delay: 0.65s; } .rxm-circle-spot span:nth-child(6) { right: 2px; top: 16px; -webkit-animation-delay: 0.78s; animation-delay: 0.78s; } .rxm-circle-spot span:nth-child(7) { right: 0; top: 31px; margin-left: -10px; -webkit-animation-delay: 0.91s; animation-delay: 0.91s; } .rxm-circle-spot span:nth-child(8) { bottom: 14px; right: 4px; -webkit-animation-delay: 1.04s; animation-delay: 1.04s; } .rxm-circle-spot span:nth-child(9) { bottom: 4px; right: 15px; -webkit-animation-delay: 1.17s; animation-delay: 1.17s; } .rxm-circle-spot span:nth-child(10) { bottom: 0px; right: 30px; -webkit-animation-delay: 1.3s; animation-delay: 1.3s; } .rxm-circle-spot span:nth-child(11) { left: 16px; bottom: 4px; -webkit-animation-delay: 1.43s; animation-delay: 1.43s; } .rxm-circle-spot span:nth-child(12) { bottom: 13px; left: 4px; -webkit-animation-delay: 1.56s; animation-delay: 1.56s; } .tabpage-header { width: 100%; height: 50px; position: relative; overflow: hidden; border-bottom: 1px solid #ddd; } .tabpage-header .tabpage-header-tabs { position: relative; display: block; white-space: nowrap; overflow-x: auto; height: 50px; line-height: 50px; -webkit-overflow-scrolling: touch; } .tabpage-header .tabpage-header-tabs .active { color: #00e5ee; } .tabpage-header .tabpage-header-tabs::-webkit-scrollbar { display: none; } .tabpage-header .tabpage-header-tabs .tabpage-header-tabline { width: 100px; position: absolute; bottom: 0; left: 30px; overflow: hidden; } .tabpage-header .tabpage-header-tabs .tabpage-header-tabline .tabline-line { width: 10px; color: #00e5ee; border: 2px solid #00e5ee; border-radius: 2px; margin: 0 auto; } .tabpage-header .tabpage-header-tabs .tab-link { padding: 0px 20px; height: 50px; display: inline-block; cursor: pointer; } .tabpage-content { width: 100%; height: 300px; position: relative; overflow: hidden; } .tabpage-content .tabpage-content-tabs { display: block; overflow: visible; height: 300px; position: relative; width: 100%; -webkit-overflow-scrolling: touch; } .tabpage-content .tabpage-content-tabs .tab { width: 100%; height: 100%; position: absolute; top: 0px; } /*作为老的项目的保留,没有找到相应的widget对象*/ div.tab-text { font-family: 'Microsoft YaHei'; font-size: 9px; line-height: 14px; text-align: center; display: block; text-decoration: none; color: #313131; } /* 侧边栏样式 */ .cs-slidebar { position: fixed; display: none; opacity: 0; /*top: 50px;*/ width: auto; top: 0; bottom: 0; background: #fff; overflow: hidden; border: 1px solid #ccc; z-index: 1041; box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.3); /* -webkit-transition: right .3s ease-out; -o-transition: right .3s ease-out; transition: right .3s ease-out; */ } .cs-slidebar.open { display: block; } @media (min-width: 768px) { .cs-slidebar { width: 500px; } .cs-slidebar.sm { width: 300px; } .cs-slidebar.lg { width: 700px; } } @media (max-width: 767px) { .cs-slidebar { left: 0px; } } @media (min-width: 900px) { .cs-slidebar.lg { width: 800px; } } .cs-slidebar-content { position: absolute; top: 0; bottom: 0; left: 35px; right: 0; padding: 0 10px 0 0; overflow-x: hidden; overflow-y: auto; } .cs-slidebar-left { position: absolute; bottom: 0; top: 0; left: 0; width: 30px; } .cs-slidebar-left:hover { background-color: #E9E9E9; cursor: pointer; } .cs-slidebar-close { color: #428BCA; position: absolute; top: 50%; width: 100%; text-align: center; font-size: 20px; } .cs-slidebar-open { overflow: hidden; } div.listview-text { font-family: 'Microsoft YaHei'; font-size: 9px; line-height: 14px; text-align: center; display: block; text-decoration: none; color: #808080; } a.listview-item { float: left; overflow: hidden; text-align: center; } a.detail-view-item { width: 100%; border-bottom: 1px solid #e2e0e0; display: block; min-height: 42px; } div.detail-view-text { display: block; float: left; } div.detail-view-title { font-family: 'Microsoft YaHei'; font-size: 10px; color: #000000; font-weight: bold; } div.detail-view-description { font-family: 'Microsoft YaHei'; font-size: 8px; color: #808080; } .detail-view-item img { display: inline-block; margin: 2px 2px; float: left; } /**保留老的对话框*/ .dialog-btn { display: inline-block; border-right: 1px solid #eff3f8; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 3.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border-radius: 0px; } .modal div.modal-footer { padding: 0px; background-color: none; overflow: hidden; } div.rxm-modal-panel { background-color: transparent; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1045; height: 100%; margin: 0,0; padding: 0,0; border: none; overflow: hidden; -webkit-overflow-scrolling: touch; visibility: visible; } .rxm-alert-frame, .rxm-confirm-frame, .rxm-dlg-frame { display: block; position: relative; box-shadow: 5px 4px 6px #ccc, -3px -2px 6px #ccc; } .rxm-loading-frame { width: 100%; height: auto; padding-top: 100px; } .rxm-title.rxm-dlg-title, .rxm-title.rxm-alert-title, .rxm-title.rxm-confirm-title { padding-left: 0.5rem; } .rxm-confirm-content, .rxm-dialog-content, .rxm-alert-content { min-height: 3rem; margin: 0.5rem 1rem; border-bottom: 0px solid #fbfbfb; } .rxm-confirm-foot, .rxm-alert-foot, .rxm-dlg-foot { width: auto; position: relative; height: 2.5rem; padding: 1rem; } .rxm-confirm-foot .rxm-cmd-btnbar, .rxm-alert-foot .rxm-cmd-btnbar, .rxm-dlg-foot .rxm-cmd-btnbar { position: relative; right: 0px; bottom: 0px; float: right; } .rxm-confirm-foot [rxmcmdid*=rxm_dlg_cmd], .rxm-alert-foot [rxmcmdid*=rxm_dlg_cmd], .rxm-dlg-foot [rxmcmdid*=rxm_dlg_cmd] { height: inherit; background-color: inherit; -webkit-appearance: button; cursor: pointer; margin-right: 0.1rem; margin-left: 0.4rem; width: 3.5rem; border-radius: 5px; height: 1.6rem; line-height: 1.6rem; } .rxm-confirm-foot [rxmcmdid*=rxm_dlg_cmd]:focus, .rxm-alert-foot [rxmcmdid*=rxm_dlg_cmd]:focus, .rxm-dlg-foot [rxmcmdid*=rxm_dlg_cmd]:focus, .rxm-confirm-foot [rxmcmdid*=rxm_dlg_cmd]:hover, .rxm-alert-foot [rxmcmdid*=rxm_dlg_cmd]:hover, .rxm-dlg-foot [rxmcmdid*=rxm_dlg_cmd]:hover { background-color: #4d8dff; color: #fff; box-shadow: 0px 0px; outline: none; } .rxm-dlg-foot .rxm-cmd-btnbar > button { height: inherit; background-color: inherit; -webkit-appearance: button; cursor: pointer; margin-right: 0.1rem; margin-left: 0.4rem; width: 3.5rem; border-radius: 5px; height: 1.6rem; line-height: 1.6rem; } .rxm-dlg-foot .rxm-cmd-btnbar > button:focus, .rxm-dlg-foot .rxm-cmd-btnbar > button:hover { background-color: #4d8dff; color: #fff; box-shadow: 0px 0px; outline: none; } .rxm-alert-frame .rxm-alert-foot { /* width:auto; position: relative; height: 2.5rem; padding:1.0rem; [rxmcmdid*=rxm_dlg_cmd]{ //border: 0px solid ; height:inherit; background-color: inherit; -webkit-appearance: button; cursor: pointer; //margin-right: 0.4rem; margin-left:0; margin-right:0; width:3.5rem; border-radius: 5px; }; [rxmcmdid*=rxm_dlg_cmd]:focus,[rxmcmdid*=rxm_dlg_cmd]:hover{ background-color: @rxm-brand-bgcolor; //前景色 字体颜色,字体类图标颜色 color:@rxm-brand-fgcolor; box-shadow: 0px 0px; outline: none; //border: 1px solid red ; } */ } .rxm-alert-frame .rxm-alert-foot .rxm-cmd-btnbar { text-align: center; width: 100%; } .rxm-modal-panel.rxm-alert-background, .rxm-modal-panel.rxm-dialog-background, .rxm-modal-panel.rxm-confirm-background, .rxm-modal-panel.rxm-toast-background { background-color: #f2f2f2; } .rxm-modal-panel.rxm-loading-background { background-color: transparent; } .rxm-dlg-xs-center { width: 280px; margin: 0px auto!important; margin-top: 100px!important; } .rxm-dlg-sm-center { width: 380px; margin: 0px auto!important; margin-top: 60px!important; } .rxm-dlg-md-center { width: 550px; margin: 0px auto!important; margin-top: 60px!important; } .rxm-dlg-lg-center { width: 680px; margin: 0px auto!important; margin-top: 60px!important; } .rxm-ldng-title { margin-top: 20px; text-align: center; } .rxm-desktop .rxm-search, .rxm-mobile .rxm-search { padding: 0.1rem; } .rxm-desktop .rxm-search .rxm-search-submit, .rxm-mobile .rxm-search .rxm-search-submit { width: 100%; height: 1.6rem; line-height: 1.6rem; text-align: center; background: #2898e0; font-size: 0.7rem; color: #fff; border: 0 none; outline: 0 none; cursor: pointer; } .rxm-desktop .rxm-search .rxm-search-submit-div a, .rxm-mobile .rxm-search .rxm-search-submit-div a { display: block; } .rxm-desktop .rxm-search .rxm-search-submit-div, .rxm-mobile .rxm-search .rxm-search-submit-div { padding: 0.2rem 0.175rem 0.2rem 0.175rem; } .rxm-desktop .rxm-search .rxm-search-div, .rxm-mobile .rxm-search .rxm-search-div { width: 100%; display: inline-block; padding: 0.2rem 0.175rem 0.2rem 0.175rem; background-color: #eeeeee; } .rxm-desktop .rxm-search .rxm-search-input, .rxm-mobile .rxm-search .rxm-search-input { margin-top: 1px; width: 100% !important; border-radius: 0.2rem; border: 0.05rem solid #fff; height: 1.4rem; font-size: 0.65rem; float: left; background-image: url("/www/rxm/utils/img/search.png"); background-repeat: no-repeat; background-size: 0.8rem; background-position: 0.25rem center; padding: 0 0 0 1.25rem; } /* 容器样式 */ .pd-search-container { padding: 0px; box-shadow: none; margin: 3px 0; border: 1px solid #ddd; } /* 标题样式 */ .pd-search-title { -webkit-user-select: none; box-sizing: content-box; position: relative; min-height: 22px; background: #f9f9f9; /*background-image: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee 100%); background-image: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%); background-repeat: repeat-x;*/ border-bottom: 1px solid #DDD; color: #1d75b3; font-size: 13px; font-family: Arial, "微软雅黑", "宋体", Tahoma, Helvetica, sans-serif; padding: 5px 12px; } .pd-expandMode .pd-search-title { border-bottom-width: 1px; } .pd-collapseMode .pd-search-title { border-bottom-width: 0px; } /* 主体部分样式*/ .pd-search-body { white-space: nowrap; margin: 8px 0px; } /* 展开、折叠样式 */ .pd-search-click { display: inline-block; padding: 0 10px; line-height: 21px; float: right; position: relative; cursor: hand; } .rxm-icon-list-container { position: relative; min-height: 200px; width: auto; margin-left: 5px; margin-right: 10px; background-color: #fff; } .rxm-icon-list-container .rxm-icon-list-editpanel { height: 2rem; padding: 0.5rem 0rem; } .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-editpanel-title { float: left; height: 1rem; line-height: 1rem; padding: 0px 0.5rem; } .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-editpanel-icons { float: left; height: 1rem; line-height: 1rem; } .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-editpanel-button, .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-deletepanel-button { float: left; border: 1px solid #62adfb; padding: 0px 0.5rem; background-color: #e5f2ff; margin: 0px 0.5rem; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-editpanel-button:hover, .rxm-icon-list-container .rxm-icon-list-editpanel .rxm-icon-list-deletepanel-button:hover { background-color: #9eceff; } .rxm-icon-list-container .rxm-icon-list-row { position: relative; clear: both; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-header { padding: 15px 0px 15px 10px; font-size: 0.65rem; letter-spacing: 1px; background: #fbfbfb; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-header .rxm-icon-list-expand { color: #000; position: absolute; right: 30px; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-around; width: 100%; padding: 0px; border-bottom: 10px solid #EEE; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item { flex-basis: 4rem; list-style: none; text-align: center; padding: 15px 0px; position: relative; /* top left*/ /* top right*/ } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item img { width: 2rem; height: 2rem; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item i { font-size: 45px; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item span { margin: 5px 0px 5px 0px; display: block; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item.is-empty { height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item.active { background-color: #eee; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon { width: 15px; height: 15px; overflow: hidden; position: absolute; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon::before, .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon::after { position: absolute; z-index: -1; content: ''; display: block; border: 5px solid #4d8dff; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon span { position: absolute; display: block; width: 225px; padding: 13px 0; background-color: #4d8dff; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); color: #fff; font: 700 18px/1 'Lato', sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); text-transform: uppercase; text-align: center; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left { top: -10px; left: -10px; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left::before, .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left::after { border-top-color: transparent; border-left-color: transparent; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left::before { top: 0; right: 0; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left::after { bottom: 0; left: 0; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-left span { right: -25px; top: 30px; transform: rotate(-45deg); } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right { top: 0px; right: 0px; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right::before, .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right::after { border-top-color: transparent; border-right-color: transparent; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right::before { top: 0; left: 0; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right::after { bottom: 0; right: 0; } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item .ribbon-top-right span { left: -25px; top: 30px; transform: rotate(45deg); } .rxm-icon-list-container .rxm-icon-list-row .rxm-icon-list-content .rxm-icon-list-item-hoverDefault:hover { background-color: #eee; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item { height: 30px; width: 100%; cursor: pointer; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item .rxm-icon-list-desktop-leftColumnSection { line-height: 30px; display: inline-block; width: 40%; padding: 0px 10px; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item .rxm-icon-list-desktop-leftColumnSection .rxm-icon-list-desktop-title, .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item .rxm-icon-list-desktop-leftColumnSection .rxm-icon-list-desktop-icon { display: inline-block; vertical-align: middle; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item .rxm-icon-list-desktop-rightColumnSection { line-height: 30px; display: inline-block; width: 57%; padding: 0px 10px; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item .rxm-icon-list-desktop-rightColumnSection .rxm-icon-list-desktop-category { display: inline-block; vertical-align: middle; } .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item:hover, .rxm-icon-list-container .rxm-icon-list-desktop .rxm-icon-list-item.active { background-color: #c4def5; border: 1px solid #54a8f1; } .rxm-icon-list-container .rxm-icon-list-header-container { position: fixed; background-color: #FFF; } .rxm-icon-list-container .rxm-icon-list-header-container .rxm-icon-list-header { display: inline-block; padding: 5px 10px; border-right: 1px solid #eee; } .rxm-icon-list-container .rxm-icon-list-header-container .rxm-icon-list-col40 { width: 40%; } .container { margin-right: auto; margin-left: auto; padding-left: 0.75rem; padding-right: 0.75rem; } @media (min-width: 768px) { .container { width: 721.5px; } } @media (min-width: 992px) { .container { width: 941.5px; } } @media (min-width: 1200px) { .container { width: 1141.5px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 0.75rem; padding-right: 0.75rem; } .rxm-col-xs-1, .rxm-col-sm-1, .rxm-col-md-1, .rxm-col-lg-1, .rxm-col-xs-2, .rxm-col-sm-2, .rxm-col-md-2, .rxm-col-lg-2, .rxm-col-xs-3, .rxm-col-sm-3, .rxm-col-md-3, .rxm-col-lg-3, .rxm-col-xs-4, .rxm-col-sm-4, .rxm-col-md-4, .rxm-col-lg-4, .rxm-col-xs-5, .rxm-col-sm-5, .rxm-col-md-5, .rxm-col-lg-5, .rxm-col-xs-6, .rxm-col-sm-6, .rxm-col-md-6, .rxm-col-lg-6, .rxm-col-xs-7, .rxm-col-sm-7, .rxm-col-md-7, .rxm-col-lg-7, .rxm-col-xs-8, .rxm-col-sm-8, .rxm-col-md-8, .rxm-col-lg-8, .rxm-col-xs-9, .rxm-col-sm-9, .rxm-col-md-9, .rxm-col-lg-9, .rxm-col-xs-10, .rxm-col-sm-10, .rxm-col-md-10, .rxm-col-lg-10, .rxm-col-xs-11, .rxm-col-sm-11, .rxm-col-md-11, .rxm-col-lg-11, .rxm-col-xs-12, .rxm-col-sm-12, .rxm-col-md-12, .rxm-col-lg-12 { position: relative; min-height: 0.05rem; padding-left: 0.75rem; padding-right: 0.75rem; } .rxm-col-xs-1, .rxm-col-xs-2, .rxm-col-xs-3, .rxm-col-xs-4, .rxm-col-xs-5, .rxm-col-xs-6, .rxm-col-xs-7, .rxm-col-xs-8, .rxm-col-xs-9, .rxm-col-xs-10, .rxm-col-xs-11, .rxm-col-xs-12 { float: left; } .rxm-col-xs-12 { width: 100%; } .rxm-col-xs-11 { width: 91.66666667%; } .rxm-col-xs-10 { width: 83.33333333%; } .rxm-col-xs-9 { width: 75%; } .rxm-col-xs-8 { width: 66.66666667%; } .rxm-col-xs-7 { width: 58.33333333%; } .rxm-col-xs-6 { width: 50%; } .rxm-col-xs-5 { width: 41.66666667%; } .rxm-col-xs-4 { width: 33.33333333%; } .rxm-col-xs-3 { width: 25%; } .rxm-col-xs-2 { width: 16.66666667%; } .rxm-col-xs-1 { width: 8.33333333%; } .rxm-col-xs-12 { display: inline; } .rxm-col-xs-11 { display: inline; } .rxm-col-xs-10 { display: inline; } .rxm-col-xs-9 { display: inline; } .rxm-col-xs-8 { display: inline; } .rxm-col-xs-7 { display: inline; } .rxm-col-xs-6 { display: inline; } .rxm-col-xs-5 { display: inline; } .rxm-col-xs-4 { display: inline; } .rxm-col-xs-3 { display: inline; } .rxm-col-xs-2 { display: inline; } .rxm-col-xs-1 { display: inline; } .rxm-col-xs-pull-12 { right: 100%; } .rxm-col-xs-pull-11 { right: 91.66666667%; } .rxm-col-xs-pull-10 { right: 83.33333333%; } .rxm-col-xs-pull-9 { right: 75%; } .rxm-col-xs-pull-8 { right: 66.66666667%; } .rxm-col-xs-pull-7 { right: 58.33333333%; } .rxm-col-xs-pull-6 { right: 50%; } .rxm-col-xs-pull-5 { right: 41.66666667%; } .rxm-col-xs-pull-4 { right: 33.33333333%; } .rxm-col-xs-pull-3 { right: 25%; } .rxm-col-xs-pull-2 { right: 16.66666667%; } .rxm-col-xs-pull-1 { right: 8.33333333%; } .rxm-col-xs-pull-0 { right: auto; } .rxm-col-xs-push-12 { left: 100%; } .rxm-col-xs-push-11 { left: 91.66666667%; } .rxm-col-xs-push-10 { left: 83.33333333%; } .rxm-col-xs-push-9 { left: 75%; } .rxm-col-xs-push-8 { left: 66.66666667%; } .rxm-col-xs-push-7 { left: 58.33333333%; } .rxm-col-xs-push-6 { left: 50%; } .rxm-col-xs-push-5 { left: 41.66666667%; } .rxm-col-xs-push-4 { left: 33.33333333%; } .rxm-col-xs-push-3 { left: 25%; } .rxm-col-xs-push-2 { left: 16.66666667%; } .rxm-col-xs-push-1 { left: 8.33333333%; } .rxm-col-xs-push-0 { left: auto; } .rxm-col-xs-offset-12 { margin-left: 100%; } .rxm-col-xs-offset-11 { margin-left: 91.66666667%; } .rxm-col-xs-offset-10 { margin-left: 83.33333333%; } .rxm-col-xs-offset-9 { margin-left: 75%; } .rxm-col-xs-offset-8 { margin-left: 66.66666667%; } .rxm-col-xs-offset-7 { margin-left: 58.33333333%; } .rxm-col-xs-offset-6 { margin-left: 50%; } .rxm-col-xs-offset-5 { margin-left: 41.66666667%; } .rxm-col-xs-offset-4 { margin-left: 33.33333333%; } .rxm-col-xs-offset-3 { margin-left: 25%; } .rxm-col-xs-offset-2 { margin-left: 16.66666667%; } .rxm-col-xs-offset-1 { margin-left: 8.33333333%; } .rxm-col-xs-offset-0 { margin-left: 0%; } .rxm-col-xs-0 { display: none; } @media (min-width: 768px) { .rxm-col-sm-1, .rxm-col-sm-2, .rxm-col-sm-3, .rxm-col-sm-4, .rxm-col-sm-5, .rxm-col-sm-6, .rxm-col-sm-7, .rxm-col-sm-8, .rxm-col-sm-9, .rxm-col-sm-10, .rxm-col-sm-11, .rxm-col-sm-12 { float: left; } .rxm-col-sm-12 { width: 100%; } .rxm-col-sm-11 { width: 91.66666667%; } .rxm-col-sm-10 { width: 83.33333333%; } .rxm-col-sm-9 { width: 75%; } .rxm-col-sm-8 { width: 66.66666667%; } .rxm-col-sm-7 { width: 58.33333333%; } .rxm-col-sm-6 { width: 50%; } .rxm-col-sm-5 { width: 41.66666667%; } .rxm-col-sm-4 { width: 33.33333333%; } .rxm-col-sm-3 { width: 25%; } .rxm-col-sm-2 { width: 16.66666667%; } .rxm-col-sm-1 { width: 8.33333333%; } .rxm-col-sm-12 { display: inline; } .rxm-col-sm-11 { display: inline; } .rxm-col-sm-10 { display: inline; } .rxm-col-sm-9 { display: inline; } .rxm-col-sm-8 { display: inline; } .rxm-col-sm-7 { display: inline; } .rxm-col-sm-6 { display: inline; } .rxm-col-sm-5 { display: inline; } .rxm-col-sm-4 { display: inline; } .rxm-col-sm-3 { display: inline; } .rxm-col-sm-2 { display: inline; } .rxm-col-sm-1 { display: inline; } .rxm-col-sm-pull-12 { right: 100%; } .rxm-col-sm-pull-11 { right: 91.66666667%; } .rxm-col-sm-pull-10 { right: 83.33333333%; } .rxm-col-sm-pull-9 { right: 75%; } .rxm-col-sm-pull-8 { right: 66.66666667%; } .rxm-col-sm-pull-7 { right: 58.33333333%; } .rxm-col-sm-pull-6 { right: 50%; } .rxm-col-sm-pull-5 { right: 41.66666667%; } .rxm-col-sm-pull-4 { right: 33.33333333%; } .rxm-col-sm-pull-3 { right: 25%; } .rxm-col-sm-pull-2 { right: 16.66666667%; } .rxm-col-sm-pull-1 { right: 8.33333333%; } .rxm-col-sm-pull-0 { right: auto; } .rxm-col-sm-push-12 { left: 100%; } .rxm-col-sm-push-11 { left: 91.66666667%; } .rxm-col-sm-push-10 { left: 83.33333333%; } .rxm-col-sm-push-9 { left: 75%; } .rxm-col-sm-push-8 { left: 66.66666667%; } .rxm-col-sm-push-7 { left: 58.33333333%; } .rxm-col-sm-push-6 { left: 50%; } .rxm-col-sm-push-5 { left: 41.66666667%; } .rxm-col-sm-push-4 { left: 33.33333333%; } .rxm-col-sm-push-3 { left: 25%; } .rxm-col-sm-push-2 { left: 16.66666667%; } .rxm-col-sm-push-1 { left: 8.33333333%; } .rxm-col-sm-push-0 { left: auto; } .rxm-col-sm-offset-12 { margin-left: 100%; } .rxm-col-sm-offset-11 { margin-left: 91.66666667%; } .rxm-col-sm-offset-10 { margin-left: 83.33333333%; } .rxm-col-sm-offset-9 { margin-left: 75%; } .rxm-col-sm-offset-8 { margin-left: 66.66666667%; } .rxm-col-sm-offset-7 { margin-left: 58.33333333%; } .rxm-col-sm-offset-6 { margin-left: 50%; } .rxm-col-sm-offset-5 { margin-left: 41.66666667%; } .rxm-col-sm-offset-4 { margin-left: 33.33333333%; } .rxm-col-sm-offset-3 { margin-left: 25%; } .rxm-col-sm-offset-2 { margin-left: 16.66666667%; } .rxm-col-sm-offset-1 { margin-left: 8.33333333%; } .rxm-col-sm-offset-0 { margin-left: 0%; } .rxm-col-sm-0 { display: none; } } @media (min-width: 992px) { .rxm-col-md-1, .rxm-col-md-2, .rxm-col-md-3, .rxm-col-md-4, .rxm-col-md-5, .rxm-col-md-6, .rxm-col-md-7, .rxm-col-md-8, .rxm-col-md-9, .rxm-col-md-10, .rxm-col-md-11, .rxm-col-md-12 { float: left; } .rxm-col-md-12 { width: 100%; } .rxm-col-md-11 { width: 91.66666667%; } .rxm-col-md-10 { width: 83.33333333%; } .rxm-col-md-9 { width: 75%; } .rxm-col-md-8 { width: 66.66666667%; } .rxm-col-md-7 { width: 58.33333333%; } .rxm-col-md-6 { width: 50%; } .rxm-col-md-5 { width: 41.66666667%; } .rxm-col-md-4 { width: 33.33333333%; } .rxm-col-md-3 { width: 25%; } .rxm-col-md-2 { width: 16.66666667%; } .rxm-col-md-1 { width: 8.33333333%; } .rxm-col-md-12 { display: inline; } .rxm-col-md-11 { display: inline; } .rxm-col-md-10 { display: inline; } .rxm-col-md-9 { display: inline; } .rxm-col-md-8 { display: inline; } .rxm-col-md-7 { display: inline; } .rxm-col-md-6 { display: inline; } .rxm-col-md-5 { display: inline; } .rxm-col-md-4 { display: inline; } .rxm-col-md-3 { display: inline; } .rxm-col-md-2 { display: inline; } .rxm-col-md-1 { display: inline; } .rxm-col-md-pull-12 { right: 100%; } .rxm-col-md-pull-11 { right: 91.66666667%; } .rxm-col-md-pull-10 { right: 83.33333333%; } .rxm-col-md-pull-9 { right: 75%; } .rxm-col-md-pull-8 { right: 66.66666667%; } .rxm-col-md-pull-7 { right: 58.33333333%; } .rxm-col-md-pull-6 { right: 50%; } .rxm-col-md-pull-5 { right: 41.66666667%; } .rxm-col-md-pull-4 { right: 33.33333333%; } .rxm-col-md-pull-3 { right: 25%; } .rxm-col-md-pull-2 { right: 16.66666667%; } .rxm-col-md-pull-1 { right: 8.33333333%; } .rxm-col-md-pull-0 { right: auto; } .rxm-col-md-push-12 { left: 100%; } .rxm-col-md-push-11 { left: 91.66666667%; } .rxm-col-md-push-10 { left: 83.33333333%; } .rxm-col-md-push-9 { left: 75%; } .rxm-col-md-push-8 { left: 66.66666667%; } .rxm-col-md-push-7 { left: 58.33333333%; } .rxm-col-md-push-6 { left: 50%; } .rxm-col-md-push-5 { left: 41.66666667%; } .rxm-col-md-push-4 { left: 33.33333333%; } .rxm-col-md-push-3 { left: 25%; } .rxm-col-md-push-2 { left: 16.66666667%; } .rxm-col-md-push-1 { left: 8.33333333%; } .rxm-col-md-push-0 { left: auto; } .rxm-col-md-offset-12 { margin-left: 100%; } .rxm-col-md-offset-11 { margin-left: 91.66666667%; } .rxm-col-md-offset-10 { margin-left: 83.33333333%; } .rxm-col-md-offset-9 { margin-left: 75%; } .rxm-col-md-offset-8 { margin-left: 66.66666667%; } .rxm-col-md-offset-7 { margin-left: 58.33333333%; } .rxm-col-md-offset-6 { margin-left: 50%; } .rxm-col-md-offset-5 { margin-left: 41.66666667%; } .rxm-col-md-offset-4 { margin-left: 33.33333333%; } .rxm-col-md-offset-3 { margin-left: 25%; } .rxm-col-md-offset-2 { margin-left: 16.66666667%; } .rxm-col-md-offset-1 { margin-left: 8.33333333%; } .rxm-col-md-offset-0 { margin-left: 0%; } .rxm-col-md-0 { display: none; } } @media (min-width: 1200px) { .rxm-col-lg-1, .rxm-col-lg-2, .rxm-col-lg-3, .rxm-col-lg-4, .rxm-col-lg-5, .rxm-col-lg-6, .rxm-col-lg-7, .rxm-col-lg-8, .rxm-col-lg-9, .rxm-col-lg-10, .rxm-col-lg-11, .rxm-col-lg-12 { float: left; } .rxm-col-lg-12 { width: 100%; } .rxm-col-lg-11 { width: 91.66666667%; } .rxm-col-lg-10 { width: 83.33333333%; } .rxm-col-lg-9 { width: 75%; } .rxm-col-lg-8 { width: 66.66666667%; } .rxm-col-lg-7 { width: 58.33333333%; } .rxm-col-lg-6 { width: 50%; } .rxm-col-lg-5 { width: 41.66666667%; } .rxm-col-lg-4 { width: 33.33333333%; } .rxm-col-lg-3 { width: 25%; } .rxm-col-lg-2 { width: 16.66666667%; } .rxm-col-lg-1 { width: 8.33333333%; } .rxm-col-lg-12 { display: inline; } .rxm-col-lg-11 { display: inline; } .rxm-col-lg-10 { display: inline; } .rxm-col-lg-9 { display: inline; } .rxm-col-lg-8 { display: inline; } .rxm-col-lg-7 { display: inline; } .rxm-col-lg-6 { display: inline; } .rxm-col-lg-5 { display: inline; } .rxm-col-lg-4 { display: inline; } .rxm-col-lg-3 { display: inline; } .rxm-col-lg-2 { display: inline; } .rxm-col-lg-1 { display: inline; } .rxm-col-lg-pull-12 { right: 100%; } .rxm-col-lg-pull-11 { right: 91.66666667%; } .rxm-col-lg-pull-10 { right: 83.33333333%; } .rxm-col-lg-pull-9 { right: 75%; } .rxm-col-lg-pull-8 { right: 66.66666667%; } .rxm-col-lg-pull-7 { right: 58.33333333%; } .rxm-col-lg-pull-6 { right: 50%; } .rxm-col-lg-pull-5 { right: 41.66666667%; } .rxm-col-lg-pull-4 { right: 33.33333333%; } .rxm-col-lg-pull-3 { right: 25%; } .rxm-col-lg-pull-2 { right: 16.66666667%; } .rxm-col-lg-pull-1 { right: 8.33333333%; } .rxm-col-lg-pull-0 { right: auto; } .rxm-col-lg-push-12 { left: 100%; } .rxm-col-lg-push-11 { left: 91.66666667%; } .rxm-col-lg-push-10 { left: 83.33333333%; } .rxm-col-lg-push-9 { left: 75%; } .rxm-col-lg-push-8 { left: 66.66666667%; } .rxm-col-lg-push-7 { left: 58.33333333%; } .rxm-col-lg-push-6 { left: 50%; } .rxm-col-lg-push-5 { left: 41.66666667%; } .rxm-col-lg-push-4 { left: 33.33333333%; } .rxm-col-lg-push-3 { left: 25%; } .rxm-col-lg-push-2 { left: 16.66666667%; } .rxm-col-lg-push-1 { left: 8.33333333%; } .rxm-col-lg-push-0 { left: auto; } .rxm-col-lg-offset-12 { margin-left: 100%; } .rxm-col-lg-offset-11 { margin-left: 91.66666667%; } .rxm-col-lg-offset-10 { margin-left: 83.33333333%; } .rxm-col-lg-offset-9 { margin-left: 75%; } .rxm-col-lg-offset-8 { margin-left: 66.66666667%; } .rxm-col-lg-offset-7 { margin-left: 58.33333333%; } .rxm-col-lg-offset-6 { margin-left: 50%; } .rxm-col-lg-offset-5 { margin-left: 41.66666667%; } .rxm-col-lg-offset-4 { margin-left: 33.33333333%; } .rxm-col-lg-offset-3 { margin-left: 25%; } .rxm-col-lg-offset-2 { margin-left: 16.66666667%; } .rxm-col-lg-offset-1 { margin-left: 8.33333333%; } .rxm-col-lg-offset-0 { margin-left: 0%; } .rxm-col-lg-0 { display: none; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .clearfix:before, .clearfix:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .rxm-row:before, .rxm-row:after, .rxm-desktop .rxm-form-horizontal .rxm-form-group:before, .rxm-desktop .rxm-form-horizontal .rxm-form-group:after, .rxm-mobile .rxm-form-horizontal .rxm-form-group:before, .rxm-mobile .rxm-form-horizontal .rxm-form-group:after, .rxm-desktop .rxm-nav:before, .rxm-desktop .rxm-nav:after, .rxm-mobile .rxm-nav:before, .rxm-mobile .rxm-nav:after { content: " "; display: table; } .clearfix:after, .container:after, .container-fluid:after, .rxm-row:after, .rxm-desktop .rxm-form-horizontal .rxm-form-group:after, .rxm-mobile .rxm-form-horizontal .rxm-form-group:after, .rxm-desktop .rxm-nav:after, .rxm-mobile .rxm-nav:after { clear: both; } .rxm-mobile .rxm-form-horizontal { padding: 0 !important; margin: 0 !important; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset { border-bottom: 1px solid #f2f2f2 !important; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset .rxm-fieldset-title { width: 100% !important; height: 2rem !important; line-height: 2rem !important; background-color: #f2f2f2 !important; color: #333 !important; font-size: 0.93333333rem !important; padding-left: 0.8rem !important; margin-bottom: 0 !important; border-bottom: 1px solid #f2f2f2 !important; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div { border-bottom: 1px solid #f7f7f7; padding: 0.7rem 0.8rem; margin-bottom: 0 !important; position: relative; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input::-webkit-input-placeholder { color: #b2b2b2; opacity: 1; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input::-webkit-datetime-edit { padding: 0; margin: 0; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input[type="range"] { width: 85%; margin: 10px 0 12px 16px; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div input.rxm-file-uploader { background-color: transparent !important; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div select { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div select:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div select::-webkit-select-placeholder { color: #b2b2b2; opacity: 1; } .rxm-mobile .rxm-form-horizontal .rxm-fieldset > div select:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal > div { border-bottom: 1px solid #f7f7f7; padding: 0.7rem 0.8rem; margin-bottom: 0 !important; position: relative; } .rxm-mobile .rxm-form-horizontal > div input { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal > div input:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .rxm-mobile .rxm-form-horizontal > div input::-webkit-input-placeholder { color: #b2b2b2; opacity: 1; } .rxm-mobile .rxm-form-horizontal > div input:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal > div input::-webkit-datetime-edit { padding: 0; margin: 0; } .rxm-mobile .rxm-form-horizontal > div input[type="range"] { width: 85%; margin: 10px 0 12px 16px; } .rxm-mobile .rxm-form-horizontal > div input.rxm-file-uploader { background-color: transparent !important; } .rxm-mobile .rxm-form-horizontal > div select { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .rxm-mobile .rxm-form-horizontal > div select:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .rxm-mobile .rxm-form-horizontal > div select::-webkit-select-placeholder { color: #b2b2b2; opacity: 1; } .rxm-mobile .rxm-form-horizontal > div select:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .form-div { border-bottom: 1px solid #f7f7f7; padding: 0.7rem 0.8rem; margin-bottom: 0 !important; position: relative; } .form-div input { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .form-div input:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .form-div input::-webkit-input-placeholder { color: #b2b2b2; opacity: 1; } .form-div input:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .form-div input::-webkit-datetime-edit { padding: 0; margin: 0; } .form-div input[type="range"] { width: 85%; margin: 10px 0 12px 16px; } .form-div input.rxm-file-uploader { background-color: transparent !important; } .form-div select { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .form-div select:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .form-div select::-webkit-select-placeholder { color: #b2b2b2; opacity: 1; } .form-div select:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .input-basic { color: #333 !important; outline: medium; border: none; box-shadow: 0 0 rgba(255, 255, 255, 0); } .input-basic:-webkit-autofill { transition: background-color 5000s ease-in-out 0s; -webkit-text-fill-color: #333; } .input-basic::-webkit-input-placeholder { color: #b2b2b2; opacity: 1; } .input-basic:focus { box-shadow: 0 0 3px rgba(255, 255, 255, 0); } .input-basic::-webkit-datetime-edit { padding: 0; margin: 0; } .rxm-desktop .rxm-form-horizontal input[type="range"], .rxm-mobile .rxm-form-horizontal input[type="range"] { -webkit-appearance: none; height: 10px; margin: 10px 0; outline: 0; background: -webkit-linear-gradient(#38b3fb, #38b3fb) no-repeat, #ccc; background-size: 10% 100%; padding: 0; } .rxm-desktop .rxm-form-horizontal input[type="range"]::-webkit-slider-thumb, .rxm-mobile .rxm-form-horizontal input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; position: relative; height: 20px; width: 20px; border: 0; background: url(../img/bar.png); background-size: 100%; cursor: pointer; } .rxm-desktop .circleProgress_wrapper, .rxm-mobile .circleProgress_wrapper { display: none; width: 30px; height: 30px; position: relative; right: -160px; top: -30px; background: transparent; } .rxm-desktop .circleProgress_wrapper > span, .rxm-mobile .circleProgress_wrapper > span { font-size: 12px; color: #333; text-align: center; position: absolute; top: 7px; right: 5px; } .rxm-desktop .circleProgress_wrapper > .wrapper, .rxm-mobile .circleProgress_wrapper > .wrapper { width: 40px; height: 40px; position: absolute; top: 0; overflow: hidden; background: transparent; } .rxm-desktop .circleProgress_wrapper > .wrapper > .circleProgress, .rxm-mobile .circleProgress_wrapper > .wrapper > .circleProgress { width: 32px; height: 32px; border: 2px solid #f7f7f7; border-radius: 50%; position: absolute; top: 0; -webkit-transform: rotate(45deg); background: transparent; } .rxm-desktop .circleProgress_wrapper > .wrapper > .rightcircle, .rxm-mobile .circleProgress_wrapper > .wrapper > .rightcircle { border-top: 2px solid #4d8dff; border-right: 2px solid #4d8dff; right: 0; -webkit-animation: circleProgressLoad_right 5s linear infinite; } .rxm-desktop .circleProgress_wrapper > .wrapper > .leftcircle, .rxm-mobile .circleProgress_wrapper > .wrapper > .leftcircle { border-bottom: 2px solid #4d8dff; border-left: 2px solid #4d8dff; left: 0; -webkit-animation: circleProgressLoad_left 5s linear infinite; } .rxm-desktop .circleProgress_wrapper > .right, .rxm-mobile .circleProgress_wrapper > .right { right: -1px; } .rxm-desktop .circleProgress_wrapper > .left, .rxm-mobile .circleProgress_wrapper > .left { left: -1px; } @-webkit-keyframes circleProgressLoad_right { 0% { border-top: 2px solid #f7f7f7; border-right: 2px solid #f7f7f7; -webkit-transform: rotate(45deg); } 50% { border-top: 2px solid #f7f7f7; border-right: 2px solid #f7f7f7; border-left: 2px solid #4d8dff; border-bottom: 2px solid #4d8dff; -webkit-transform: rotate(225deg); } 100% { border-left: 2px solid #4d8dff; border-bottom: 2px solid #4d8dff; -webkit-transform: rotate(225deg); } } @-webkit-keyframes circleProgressLoad_left { 0% { border-bottom: 2px solid #f7f7f7; border-left: 2px solid #f7f7f7; -webkit-transform: rotate(45deg); } 50% { border-bottom: 2px solid #f7f7f7; border-left: 2px solid #f7f7f7; border-top: 2px solid #4d8dff; border-right: 2px solid #4d8dff; -webkit-transform: rotate(45deg); } 100% { border-top: 2px solid #4d8dff; border-right: 2px solid #4d8dff; border-bottom: 2px solid #4d8dff; border-left: 2px solid #4d8dff; -webkit-transform: rotate(225deg); } } .rxm-desktop fieldset, .rxm-mobile fieldset { width: 100%; padding: 0; margin: 0; border: 0; min-width: 0; } .rxm-desktop legend, .rxm-mobile legend { display: block; width: 100%; padding: 0; margin-bottom: 0.9rem; font-size: 0.975rem; line-height: inherit; color: #333333; border: 0; border-bottom: 0.05rem solid #e5e5e5; } .rxm-desktop label, .rxm-mobile label { display: inline-block; max-width: 100%; margin-bottom: 0.25rem; font-weight: bold; color: #333; } .rxm-desktop input[type="search"], .rxm-mobile input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .rxm-desktop input[type="file"], .rxm-mobile input[type="file"] { display: block; } .rxm-desktop input[type="range"], .rxm-mobile input[type="range"] { display: block; width: 100%; } .rxm-desktop select[multiple], .rxm-mobile select[multiple], .rxm-desktop select[size], .rxm-mobile select[size] { height: auto; } .rxm-desktop input[type="file"]:focus, .rxm-mobile input[type="file"]:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .rxm-desktop output, .rxm-mobile output { display: block; padding-top: 0.35rem; font-size: 0.65rem; line-height: 1.42857143; color: #555555; } .rxm-desktop .rxm-form-control, .rxm-mobile .rxm-form-control { display: block; width: 100%; height: 1.6rem; padding: 0.3rem 0.6rem; font-size: 0.65rem; line-height: 1.42857143; color: #555555; background-color: #fff; background-image: none; border: 0.05rem solid #ccc; border-radius: 4px; -webkit-box-shadow: inset 0 0.05rem 0.05rem rgba(0, 0, 0, 0.075); box-shadow: inset 0 0.05rem 0.05rem rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .rxm-desktop .rxm-form-control:focus, .rxm-mobile .rxm-form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .rxm-desktop .rxm-form-control::-moz-placeholder, .rxm-mobile .rxm-form-control::-moz-placeholder { color: #999; opacity: 1; } .rxm-desktop .rxm-form-control:-ms-input-placeholder, .rxm-mobile .rxm-form-control:-ms-input-placeholder { color: #999; } .rxm-desktop .rxm-form-control::-webkit-input-placeholder, .rxm-mobile .rxm-form-control::-webkit-input-placeholder { color: #999; } .rxm-desktop .rxm-form-control::-ms-expand, .rxm-mobile .rxm-form-control::-ms-expand { border: 0; background-color: transparent; } .rxm-desktop .rxm-form-control[disabled], .rxm-mobile .rxm-form-control[disabled], .rxm-desktop .rxm-form-control[readonly], .rxm-mobile .rxm-form-control[readonly], fieldset[disabled] .rxm-desktop .rxm-form-control, fieldset[disabled] .rxm-mobile .rxm-form-control { background-color: #eeeeee; opacity: 1; } .rxm-desktop .rxm-form-control[disabled], .rxm-mobile .rxm-form-control[disabled], fieldset[disabled] .rxm-desktop .rxm-form-control, fieldset[disabled] .rxm-mobile .rxm-form-control { cursor: not-allowed; } .rxm-desktop textarea.rxm-form-control, .rxm-mobile textarea.rxm-form-control { height: auto; } .rxm-desktop input[type="search"], .rxm-mobile input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { .rxm-desktop input[type="date"].rxm-form-control, .rxm-mobile input[type="date"].rxm-form-control, .rxm-desktop input[type="time"].rxm-form-control, .rxm-mobile input[type="time"].rxm-form-control, .rxm-desktop input[type="datetime-local"].rxm-form-control, .rxm-mobile input[type="datetime-local"].rxm-form-control, .rxm-desktop input[type="month"].rxm-form-control, .rxm-mobile input[type="month"].rxm-form-control { line-height: 1.6rem; } .rxm-desktop input[type="date"].rxm-input-sm, .rxm-mobile input[type="date"].rxm-input-sm, .rxm-desktop input[type="time"].rxm-input-sm, .rxm-mobile input[type="time"].rxm-input-sm, .rxm-desktop input[type="datetime-local"].rxm-input-sm, .rxm-mobile input[type="datetime-local"].rxm-input-sm, .rxm-desktop input[type="month"].rxm-input-sm, .rxm-mobile input[type="month"].rxm-input-sm, .rxm-input-group-sm .rxm-desktop input[type="date"], .rxm-input-group-sm .rxm-mobile input[type="date"], .rxm-input-group-sm .rxm-desktop input[type="time"], .rxm-input-group-sm .rxm-mobile input[type="time"], .rxm-input-group-sm .rxm-desktop input[type="datetime-local"], .rxm-input-group-sm .rxm-mobile input[type="datetime-local"], .rxm-input-group-sm .rxm-desktop input[type="month"], .rxm-input-group-sm .rxm-mobile input[type="month"] { line-height: 1.5rem; } .rxm-desktop input[type="date"].rxm-input-lg, .rxm-mobile input[type="date"].rxm-input-lg, .rxm-desktop input[type="time"].rxm-input-lg, .rxm-mobile input[type="time"].rxm-input-lg, .rxm-desktop input[type="datetime-local"].rxm-input-lg, .rxm-mobile input[type="datetime-local"].rxm-input-lg, .rxm-desktop input[type="month"].rxm-input-lg, .rxm-mobile input[type="month"].rxm-input-lg, .rxm-input-group-lg .rxm-desktop input[type="date"], .rxm-input-group-lg .rxm-mobile input[type="date"], .rxm-input-group-lg .rxm-desktop input[type="time"], .rxm-input-group-lg .rxm-mobile input[type="time"], .rxm-input-group-lg .rxm-desktop input[type="datetime-local"], .rxm-input-group-lg .rxm-mobile input[type="datetime-local"], .rxm-input-group-lg .rxm-desktop input[type="month"], .rxm-input-group-lg .rxm-mobile input[type="month"] { line-height: 2.1rem; } } .rxm-desktop .rxm-form-group, .rxm-mobile .rxm-form-group { margin-bottom: 0.95rem; } .rxm-desktop .rxm-form-control-static, .rxm-mobile .rxm-form-control-static { padding-top: 0.35rem; padding-bottom: 0.35rem; margin-bottom: 0; min-height: 1.55rem; } .rxm-desktop .rxm-form-control-static.rxm-input-lg, .rxm-mobile .rxm-form-control-static.rxm-input-lg, .rxm-desktop .rxm-form-control-static.rxm-input-sm, .rxm-mobile .rxm-form-control-static.rxm-input-sm { padding-left: 0; padding-right: 0; } .rxm-desktop .rxm-input-sm, .rxm-mobile .rxm-input-sm { height: 1.5rem; padding: 0.25rem 0.5rem; font-size: 0.6rem; line-height: 1.5; border-radius: 3px; } select.rxm-desktop .rxm-input-sm, select.rxm-mobile .rxm-input-sm { height: 1.5rem; line-height: 1.5rem; } textarea.rxm-desktop .rxm-input-sm, textarea.rxm-mobile .rxm-input-sm, select[multiple].rxm-desktop .rxm-input-sm, select[multiple].rxm-mobile .rxm-input-sm { height: auto; } .rxm-desktop .rxm-form-group-sm .rxm-form-control, .rxm-mobile .rxm-form-group-sm .rxm-form-control { height: 1.5rem; padding: 0.25rem 0.5rem; font-size: 0.6rem; line-height: 1.5; border-radius: 3px; } .rxm-desktop .rxm-form-group-sm select.rxm-form-control, .rxm-mobile .rxm-form-group-sm select.rxm-form-control { height: 1.5rem; line-height: 1.5rem; } .rxm-desktop .rxm-form-group-sm textarea.rxm-form-control, .rxm-mobile .rxm-form-group-sm textarea.rxm-form-control, .rxm-desktop .rxm-form-group-sm select[multiple].rxm-form-control, .rxm-mobile .rxm-form-group-sm select[multiple].rxm-form-control { height: auto; } .rxm-desktop .rxm-form-group-sm .rxm-form-control-static, .rxm-mobile .rxm-form-group-sm .rxm-form-control-static { height: 1.5rem; min-height: 1.5rem; padding: 0.3rem 0.5rem; font-size: 0.6rem; line-height: 1.5; } .rxm-desktop .rxm-input-lg, .rxm-mobile .rxm-input-lg { height: 2.1rem; padding: 0.5rem 0.8rem; font-size: 0.7rem; line-height: 1.3333333; border-radius: 6px; } select.rxm-desktop .rxm-input-lg, select.rxm-mobile .rxm-input-lg { height: 2.1rem; line-height: 2.1rem; } textarea.rxm-desktop .rxm-input-lg, textarea.rxm-mobile .rxm-input-lg, select[multiple].rxm-desktop .rxm-input-lg, select[multiple].rxm-mobile .rxm-input-lg { height: auto; } .rxm-desktop .rxm-form-group-lg .rxm-form-control, .rxm-mobile .rxm-form-group-lg .rxm-form-control { height: 2.1rem; padding: 0.5rem 0.8rem; font-size: 0.7rem; line-height: 1.3333333; border-radius: 6px; } .rxm-desktop .rxm-form-group-lg select.rxm-form-control, .rxm-mobile .rxm-form-group-lg select.rxm-form-control { height: 2.1rem; line-height: 2.1rem; } .rxm-desktop .rxm-form-group-lg textarea.rxm-form-control, .rxm-mobile .rxm-form-group-lg textarea.rxm-form-control, .rxm-desktop .rxm-form-group-lg select[multiple].rxm-form-control, .rxm-mobile .rxm-form-group-lg select[multiple].rxm-form-control { height: auto; } .rxm-desktop .rxm-form-group-lg .rxm-form-control-static, .rxm-mobile .rxm-form-group-lg .rxm-form-control-static { height: 2.1rem; min-height: 1.6rem; padding: 0.55rem 0.8rem; font-size: 0.7rem; line-height: 1.3333333; } .rxm-desktop .rxm-has-feedback, .rxm-mobile .rxm-has-feedback { position: relative; } .rxm-desktop .rxm-has-feedback .rxm-form-control, .rxm-mobile .rxm-has-feedback .rxm-form-control { padding-right: 2rem; } .rxm-desktop .rxm-form-control-feedback, .rxm-mobile .rxm-form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; pointer-events: none; } .rxm-desktop .rxm-input-lg + .rxm-form-control-feedback, .rxm-mobile .rxm-input-lg + .rxm-form-control-feedback, .rxm-desktop .rxm-input-group-lg + .rxm-form-control-feedback, .rxm-mobile .rxm-input-group-lg + .rxm-form-control-feedback, .rxm-desktop .rxm-form-group-lg .rxm-form-control + .rxm-form-control-feedback, .rxm-mobile .rxm-form-group-lg .rxm-form-control + .rxm-form-control-feedback { width: 2.1rem; height: 2.1rem; line-height: 2.1rem; } .rxm-desktop .rxm-input-sm + .rxm-form-control-feedback, .rxm-mobile .rxm-input-sm + .rxm-form-control-feedback, .rxm-desktop .rxm-input-group-sm + .rxm-form-control-feedback, .rxm-mobile .rxm-input-group-sm + .rxm-form-control-feedback, .rxm-desktop .rxm-form-group-sm .rxm-form-control + .rxm-form-control-feedback, .rxm-mobile .rxm-form-group-sm .rxm-form-control + .rxm-form-control-feedback { width: 1.5rem; height: 1.5rem; line-height: 1.5rem; } .rxm-desktop .rxm-has-success .rxm-help-block, .rxm-mobile .rxm-has-success .rxm-help-block, .rxm-desktop .rxm-has-success .rxm-control-label, .rxm-mobile .rxm-has-success .rxm-control-label, .rxm-desktop .rxm-has-success .rxm-radio, .rxm-mobile .rxm-has-success .rxm-radio, .rxm-desktop .rxm-has-success .rxm-checkbox, .rxm-mobile .rxm-has-success .rxm-checkbox, .rxm-desktop .rxm-has-success .rxm-radio-inline, .rxm-mobile .rxm-has-success .rxm-radio-inline, .rxm-desktop .rxm-has-success .rxm-checkbox-inline, .rxm-mobile .rxm-has-success .rxm-checkbox-inline, .rxm-desktop .rxm-has-success.rxm-radio label, .rxm-mobile .rxm-has-success.rxm-radio label, .rxm-desktop .rxm-has-success.rxm-checkbox label, .rxm-mobile .rxm-has-success.rxm-checkbox label, .rxm-desktop .rxm-has-success.rxm-radio-inline label, .rxm-mobile .rxm-has-success.rxm-radio-inline label, .rxm-desktop .rxm-has-success.rxm-checkbox-inline label, .rxm-mobile .rxm-has-success.rxm-checkbox-inline label { color: #3c763d; } .rxm-desktop .rxm-has-success .rxm-form-control, .rxm-mobile .rxm-has-success .rxm-form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .rxm-desktop .rxm-has-success .rxm-form-control:focus, .rxm-mobile .rxm-has-success .rxm-form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; } .rxm-desktop .rxm-has-success .rxm-input-group-addon, .rxm-mobile .rxm-has-success .rxm-input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .rxm-desktop .rxm-has-success .rxm-form-control-feedback, .rxm-mobile .rxm-has-success .rxm-form-control-feedback { color: #3c763d; } .rxm-desktop .rxm-has-warning .rxm-help-block, .rxm-mobile .rxm-has-warning .rxm-help-block, .rxm-desktop .rxm-has-warning .rxm-control-label, .rxm-mobile .rxm-has-warning .rxm-control-label, .rxm-desktop .rxm-has-warning .rxm-radio, .rxm-mobile .rxm-has-warning .rxm-radio, .rxm-desktop .rxm-has-warning .rxm-checkbox, .rxm-mobile .rxm-has-warning .rxm-checkbox, .rxm-desktop .rxm-has-warning .rxm-radio-inline, .rxm-mobile .rxm-has-warning .rxm-radio-inline, .rxm-desktop .rxm-has-warning .rxm-checkbox-inline, .rxm-mobile .rxm-has-warning .rxm-checkbox-inline, .rxm-desktop .rxm-has-warning.rxm-radio label, .rxm-mobile .rxm-has-warning.rxm-radio label, .rxm-desktop .rxm-has-warning.rxm-checkbox label, .rxm-mobile .rxm-has-warning.rxm-checkbox label, .rxm-desktop .rxm-has-warning.rxm-radio-inline label, .rxm-mobile .rxm-has-warning.rxm-radio-inline label, .rxm-desktop .rxm-has-warning.rxm-checkbox-inline label, .rxm-mobile .rxm-has-warning.rxm-checkbox-inline label { color: #8a6d3b; } .rxm-desktop .rxm-has-warning .rxm-form-control, .rxm-mobile .rxm-has-warning .rxm-form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .rxm-desktop .rxm-has-warning .rxm-form-control:focus, .rxm-mobile .rxm-has-warning .rxm-form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } .rxm-desktop .rxm-has-warning .rxm-input-group-addon, .rxm-mobile .rxm-has-warning .rxm-input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .rxm-desktop .rxm-has-warning .rxm-form-control-feedback, .rxm-mobile .rxm-has-warning .rxm-form-control-feedback { color: #8a6d3b; } .rxm-desktop .rxm-has-error .rxm-help-block, .rxm-mobile .rxm-has-error .rxm-help-block, .rxm-desktop .rxm-has-error .rxm-control-label, .rxm-mobile .rxm-has-error .rxm-control-label, .rxm-desktop .rxm-has-error .rxm-radio, .rxm-mobile .rxm-has-error .rxm-radio, .rxm-desktop .rxm-has-error .rxm-checkbox, .rxm-mobile .rxm-has-error .rxm-checkbox, .rxm-desktop .rxm-has-error .rxm-radio-inline, .rxm-mobile .rxm-has-error .rxm-radio-inline, .rxm-desktop .rxm-has-error .rxm-checkbox-inline, .rxm-mobile .rxm-has-error .rxm-checkbox-inline, .rxm-desktop .rxm-has-error.rxm-radio label, .rxm-mobile .rxm-has-error.rxm-radio label, .rxm-desktop .rxm-has-error.rxm-checkbox label, .rxm-mobile .rxm-has-error.rxm-checkbox label, .rxm-desktop .rxm-has-error.rxm-radio-inline label, .rxm-mobile .rxm-has-error.rxm-radio-inline label, .rxm-desktop .rxm-has-error.rxm-checkbox-inline label, .rxm-mobile .rxm-has-error.rxm-checkbox-inline label { color: #a94442; } .rxm-desktop .rxm-has-error .rxm-form-control, .rxm-mobile .rxm-has-error .rxm-form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .rxm-desktop .rxm-has-error .rxm-form-control:focus, .rxm-mobile .rxm-has-error .rxm-form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; } .rxm-desktop .rxm-has-error .rxm-input-group-addon, .rxm-mobile .rxm-has-error .rxm-input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .rxm-desktop .rxm-has-error .rxm-form-control-feedback, .rxm-mobile .rxm-has-error .rxm-form-control-feedback { color: #a94442; } .rxm-desktop .rxm-has-feedback label ~ .rxm-form-control-feedback, .rxm-mobile .rxm-has-feedback label ~ .rxm-form-control-feedback { top: 5.9rem; } .rxm-desktop .rxm-has-feedback label.rxm-sr-only ~ .rxm-form-control-feedback, .rxm-mobile .rxm-has-feedback label.rxm-sr-only ~ .rxm-form-control-feedback { top: 0; } .rxm-desktop .rxm-help-block, .rxm-mobile .rxm-help-block { display: block; margin-top: 0.25rem; margin-bottom: 0.5rem; color: #737373; } @media (min-width: 768px) { .rxm-desktop .rxm-form-inline, .rxm-mobile .rxm-form-inline { /* .rxm-radio, .rxm-checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; label { padding-left: 0; } } .rxm-radio input[type="radio"], .rxm-checkbox input[type="checkbox"] { position: relative; margin-left: 0; } */ } .rxm-desktop .rxm-form-inline .rxm-form-group, .rxm-mobile .rxm-form-inline .rxm-form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .rxm-desktop .rxm-form-inline .rxm-form-control, .rxm-mobile .rxm-form-inline .rxm-form-control { display: inline-block; width: auto; vertical-align: middle; } .rxm-desktop .rxm-form-inline .rxm-form-control-static, .rxm-mobile .rxm-form-inline .rxm-form-control-static { display: inline-block; } .rxm-desktop .rxm-form-inline .rxm-input-group, .rxm-mobile .rxm-form-inline .rxm-input-group { display: inline-table; vertical-align: middle; } .rxm-desktop .rxm-form-inline .rxm-input-group .rxm-input-group-addon, .rxm-mobile .rxm-form-inline .rxm-input-group .rxm-input-group-addon, .rxm-desktop .rxm-form-inline .rxm-input-group .rxm-input-group-btn, .rxm-mobile .rxm-form-inline .rxm-input-group .rxm-input-group-btn, .rxm-desktop .rxm-form-inline .rxm-input-group .rxm-form-control, .rxm-mobile .rxm-form-inline .rxm-input-group .rxm-form-control { width: auto; } .rxm-desktop .rxm-form-inline .rxm-input-group > .rxm-form-control, .rxm-mobile .rxm-form-inline .rxm-input-group > .rxm-form-control { width: 100%; } .rxm-desktop .rxm-form-inline .rxm-control-label, .rxm-mobile .rxm-form-inline .rxm-control-label { margin-bottom: 0; vertical-align: middle; } .rxm-desktop .rxm-form-inline .rxm-has-feedback .rxm-form-control-feedback, .rxm-mobile .rxm-form-inline .rxm-has-feedback .rxm-form-control-feedback { top: 0; } } .rxm-desktop .rxm-form-horizontal, .rxm-mobile .rxm-form-horizontal { /* // Consistent vertical alignment of radios and checkboxes // // Labels also get some reset styles, but that is scoped to a media query below. .rxm-radio, .rxm-checkbox, .rxm-radio-inline, .rxm-checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: (@rxm-padding-base-vertical + @rxm-form-unit); // Default padding plus a border } // Account for padding we're adding to ensure the alignment and of help text // and other content below items .rxm-radio, .rxm-checkbox { min-height: (@rxm-lineheight-computed + (@rxm-padding-base-vertical + @rxm-form-unit)); } */ width: auto; min-height: 5rem; height: auto; overflow-y: hidden; overflow-x: hidden; padding-top: 0.5rem; margin-right: 0.5rem; margin-left: 0.5rem; } @media (min-width: 768px) { .rxm-desktop .rxm-form-horizontal .rxm-control-label, .rxm-mobile .rxm-form-horizontal .rxm-control-label { text-align: right; margin-bottom: 0; padding-top: 0.35rem; } } .rxm-desktop .rxm-form-horizontal .rxm-has-feedback .rxm-form-control-feedback, .rxm-mobile .rxm-form-horizontal .rxm-has-feedback .rxm-form-control-feedback { right: 0rem; } @media (min-width: 768px) { .rxm-desktop .rxm-form-horizontal .rxm-form-group-lg .rxm-control-label, .rxm-mobile .rxm-form-horizontal .rxm-form-group-lg .rxm-control-label { padding-top: 0.55rem; font-size: 0.7rem; } } @media (min-width: 768px) { .rxm-desktop .rxm-form-horizontal .rxm-form-group-sm .rxm-control-label, .rxm-mobile .rxm-form-horizontal .rxm-form-group-sm .rxm-control-label { padding-top: 0.3rem; font-size: 0.6rem; } } .rxm-desktop .rxm-form-horizontal .rxm-form-padding-l, .rxm-mobile .rxm-form-horizontal .rxm-form-padding-l { padding-left: 0.75rem; float: left; } .rxm-desktop .rxm-form-horizontal .rxm-form-padding-r, .rxm-mobile .rxm-form-horizontal .rxm-form-padding-r { padding-right: 0.75rem; float: left; } .rxm-desktop .rxm-form-horizontal .rxm-form-margin-top, .rxm-mobile .rxm-form-horizontal .rxm-form-margin-top { margin-top: 0.5rem !important; } .rxm-desktop .rxm-form-horizontal .rxm-form-label-center, .rxm-mobile .rxm-form-horizontal .rxm-form-label-center { text-align: center !important; } .rxm-desktop .rxm-form-horizontal .rxm-form-label-left, .rxm-mobile .rxm-form-horizontal .rxm-form-label-left { text-align: left !important; } .rxm-desktop .rxm-form-horizontal .rxm-form-label-right, .rxm-mobile .rxm-form-horizontal .rxm-form-label-right { text-align: right !important; } .rxm-desktop .rxm-form-requird { color: #CD0000; } .rxm-desktop .has-error .rxm-form-control { border-color: #CD0000; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .rxm-desktop .has-error label { color: #CD0000; } .rxm-desktop .rxm-warn-block { display: block; height: 18px; color: #CD0000; font-size: 0.6rem; } .rxm-desktop .has-error.rxm-validate { margin-bottom: 1px !important; } .rxm-mobile .rxm-form-requird { color: #4d8dff; } .rxm-mobile .has-error .rxm-form-control { border-color: #CD0000; } .rxm-mobile .has-error label { color: #4d8dff; } .rxm-mobile .rxm-warn-block { display: block; height: 18px; color: #4d8dff; font-size: 0.6rem; position: absolute; bottom: -0.8rem; left: 27px; } /* // Position radios and checkboxes better input[type="radio"], input[type="checkbox"] { margin: @rxm-radio-margin-left 0 0; margin-top: 1px \9; // IE8-9 line-height: normal; } // input[type="file"]:focus, // input[type="radio"]:focus, // input[type="checkbox"]:focus { // .tab-focus(); // } .rxm-radio, .rxm-checkbox { position: relative; display: block; margin-top: @rxm-radio-margin-top; margin-bottom: @rxm-radio-margin-bottom; label { min-height: @rxm-lineheight-computed; // Ensure the input doesn't jump when there is no text padding-left: @rxm-label-padding-left; margin-bottom: 0; font-weight: normal; cursor: pointer; } } // Checkboxes and radios // // .rxm-radio input[type="radio"], .rxm-radio-inline input[type="radio"], .rxm-checkbox input[type="checkbox"], .rxm-checkbox-inline input[type="checkbox"] { position: absolute; margin-left: @rxm-checkbox-margin-left; margin-top: 1px \9; } .rxm-radio + .rxm-radio, .rxm-checkbox + .rxm-checkbox { margin-top: @rxm-checkbox-margin-top; // Move up sibling radios or checkboxes for tighter spacing } // Radios and checkboxes on same line .rxm-radio-inline, .rxm-checkbox-inline { position: relative; display: inline-block; padding-left: @rxm-checkbox-inline-padding-left; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .rxm-radio-inline + .rxm-radio-inline, .rxm-checkbox-inline + .rxm-checkbox-inline { margin-top: 0; margin-left: @rxm-checkbox-inline-margin-left; // space out consecutive inline controls } // Apply same disabled cursor tweak as for inputs // Some special care is needed because <label>s don't inherit their parent's `cursor`. // // Note: Neither radios nor checkboxes can be readonly. input[type="radio"], input[type="checkbox"] { &[disabled], &.disabled, fieldset[disabled] & { cursor: @rxm-cursor-disabled; } } // These classes are used directly on <label>s .rxm-radio-inline, .rxm-checkbox-inline { &.disabled, fieldset[disabled] & { cursor: @rxm-cursor-disabled; } } // These classes are used on elements with <label> descendants .rxm-radio, .rxm-checkbox { &.disabled, fieldset[disabled] & { label { cursor: @rxm-cursor-disabled; } } } */ .rxm-desktop .rxm-input-group, .rxm-mobile .rxm-input-group { position: relative; display: table; border-collapse: separate; } .rxm-desktop .rxm-input-group[class*="col-"], .rxm-mobile .rxm-input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .rxm-desktop .rxm-input-group .rxm-form-control, .rxm-mobile .rxm-input-group .rxm-form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .rxm-desktop .rxm-input-group .rxm-form-control:focus, .rxm-mobile .rxm-input-group .rxm-form-control:focus { z-index: 3; } .rxm-desktop .rxm-input-group-lg > .rxm-form-control, .rxm-mobile .rxm-input-group-lg > .rxm-form-control, .rxm-desktop .rxm-input-group-lg > .rxm-input-group-addon, .rxm-mobile .rxm-input-group-lg > .rxm-input-group-addon, .rxm-desktop .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn, .rxm-mobile .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn { height: 2.1rem; padding: 0.5rem 0.8rem; font-size: 0.7rem; line-height: 1.3333333; border-radius: 6px; } select.rxm-desktop .rxm-input-group-lg > .rxm-form-control, select.rxm-mobile .rxm-input-group-lg > .rxm-form-control, select.rxm-desktop .rxm-input-group-lg > .rxm-input-group-addon, select.rxm-mobile .rxm-input-group-lg > .rxm-input-group-addon, select.rxm-desktop .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn, select.rxm-mobile .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn { height: 2.1rem; line-height: 2.1rem; } textarea.rxm-desktop .rxm-input-group-lg > .rxm-form-control, textarea.rxm-mobile .rxm-input-group-lg > .rxm-form-control, textarea.rxm-desktop .rxm-input-group-lg > .rxm-input-group-addon, textarea.rxm-mobile .rxm-input-group-lg > .rxm-input-group-addon, textarea.rxm-desktop .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn, textarea.rxm-mobile .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn, select[multiple].rxm-desktop .rxm-input-group-lg > .rxm-form-control, select[multiple].rxm-mobile .rxm-input-group-lg > .rxm-form-control, select[multiple].rxm-desktop .rxm-input-group-lg > .rxm-input-group-addon, select[multiple].rxm-mobile .rxm-input-group-lg > .rxm-input-group-addon, select[multiple].rxm-desktop .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn, select[multiple].rxm-mobile .rxm-input-group-lg > .rxm-input-group-btn > .rxm-btn { height: auto; } .rxm-desktop .rxm-input-group-sm > .rxm-form-control, .rxm-mobile .rxm-input-group-sm > .rxm-form-control, .rxm-desktop .rxm-input-group-sm > .rxm-input-group-addon, .rxm-mobile .rxm-input-group-sm > .rxm-input-group-addon, .rxm-desktop .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn, .rxm-mobile .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn { height: 1.5rem; padding: 0.25rem 0.5rem; font-size: 0.6rem; line-height: 1.5; border-radius: 3px; } select.rxm-desktop .rxm-input-group-sm > .rxm-form-control, select.rxm-mobile .rxm-input-group-sm > .rxm-form-control, select.rxm-desktop .rxm-input-group-sm > .rxm-input-group-addon, select.rxm-mobile .rxm-input-group-sm > .rxm-input-group-addon, select.rxm-desktop .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn, select.rxm-mobile .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn { height: 1.5rem; line-height: 1.5rem; } textarea.rxm-desktop .rxm-input-group-sm > .rxm-form-control, textarea.rxm-mobile .rxm-input-group-sm > .rxm-form-control, textarea.rxm-desktop .rxm-input-group-sm > .rxm-input-group-addon, textarea.rxm-mobile .rxm-input-group-sm > .rxm-input-group-addon, textarea.rxm-desktop .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn, textarea.rxm-mobile .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn, select[multiple].rxm-desktop .rxm-input-group-sm > .rxm-form-control, select[multiple].rxm-mobile .rxm-input-group-sm > .rxm-form-control, select[multiple].rxm-desktop .rxm-input-group-sm > .rxm-input-group-addon, select[multiple].rxm-mobile .rxm-input-group-sm > .rxm-input-group-addon, select[multiple].rxm-desktop .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn, select[multiple].rxm-mobile .rxm-input-group-sm > .rxm-input-group-btn > .rxm-btn { height: auto; } .rxm-desktop .rxm-input-group-addon, .rxm-mobile .rxm-input-group-addon, .rxm-desktop .rxm-input-group-btn, .rxm-mobile .rxm-input-group-btn, .rxm-desktop .rxm-input-group .rxm-form-control, .rxm-mobile .rxm-input-group .rxm-form-control { display: table-cell; } .rxm-desktop .rxm-input-group-addon:not(:first-child):not(:last-child), .rxm-mobile .rxm-input-group-addon:not(:first-child):not(:last-child), .rxm-desktop .rxm-input-group-btn:not(:first-child):not(:last-child), .rxm-mobile .rxm-input-group-btn:not(:first-child):not(:last-child), .rxm-desktop .rxm-input-group .rxm-form-control:not(:first-child):not(:last-child), .rxm-mobile .rxm-input-group .rxm-form-control:not(:first-child):not(:last-child) { border-radius: 0; } .rxm-desktop .rxm-input-group-addon, .rxm-mobile .rxm-input-group-addon, .rxm-desktop .rxm-input-group-btn, .rxm-mobile .rxm-input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .rxm-desktop .rxm-input-group-addon, .rxm-mobile .rxm-input-group-addon { padding: 0.3rem 0.6rem; font-size: 0.65rem; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #4d8dff; border-radius: 4px; } .rxm-desktop .rxm-input-group-addon.rxm-input-sm, .rxm-mobile .rxm-input-group-addon.rxm-input-sm { padding: 0.25rem 0.5rem; font-size: 0.6rem; border-radius: 3px; } .rxm-desktop .rxm-input-group-addon.rxm-input-lg, .rxm-mobile .rxm-input-group-addon.rxm-input-lg { padding: 0.5rem 0.8rem; font-size: 17px; border-radius: 6px; } .rxm-desktop .rxm-input-group-addon input[type="radio"], .rxm-mobile .rxm-input-group-addon input[type="radio"], .rxm-desktop .rxm-input-group-addon input[type="checkbox"], .rxm-mobile .rxm-input-group-addon input[type="checkbox"] { margin-top: 0; } .rxm-desktop .rxm-input-group .rxm-form-control:first-child, .rxm-mobile .rxm-input-group .rxm-form-control:first-child, .rxm-desktop .rxm-input-group-addon:first-child, .rxm-mobile .rxm-input-group-addon:first-child, .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn, .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn-group > .rxm-btn, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn-group > .rxm-btn, .rxm-desktop .rxm-input-group-btn:first-child > .rxm-dropdown-toggle, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-dropdown-toggle, .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn:not(:last-child):not(.dropdown-toggle), .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn:not(:last-child):not(.dropdown-toggle), .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn-group:not(:last-child) > .rxm-btn, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn-group:not(:last-child) > .rxm-btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .rxm-desktop .rxm-input-group-addon:first-child, .rxm-mobile .rxm-input-group-addon:first-child { border-right: 0; } .rxm-desktop .rxm-input-group .rxm-form-control:last-child, .rxm-mobile .rxm-input-group .rxm-form-control:last-child, .rxm-desktop .rxm-input-group-addon:last-child, .rxm-mobile .rxm-input-group-addon:last-child, .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn, .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn-group > .rxm-btn, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn-group > .rxm-btn, .rxm-desktop .rxm-input-group-btn:last-child > .rxm-dropdown-toggle, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-dropdown-toggle, .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn:not(:first-child), .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn:not(:first-child), .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn-group:not(:first-child) > .rxm-btn, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn-group:not(:first-child) > .rxm-btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .rxm-desktop .rxm-input-group-addon:last-child, .rxm-mobile .rxm-input-group-addon:last-child { border-left: 0; } .rxm-desktop .rxm-input-group-btn, .rxm-mobile .rxm-input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .rxm-desktop .rxm-input-group-btn > .rxm-btn, .rxm-mobile .rxm-input-group-btn > .rxm-btn { position: relative; } .rxm-desktop .rxm-input-group-btn > .rxm-btn + .rxm-btn, .rxm-mobile .rxm-input-group-btn > .rxm-btn + .rxm-btn { margin-left: -1px; } .rxm-desktop .rxm-input-group-btn > .rxm-btn:hover, .rxm-mobile .rxm-input-group-btn > .rxm-btn:hover, .rxm-desktop .rxm-input-group-btn > .rxm-btn:focus, .rxm-mobile .rxm-input-group-btn > .rxm-btn:focus, .rxm-desktop .rxm-input-group-btn > .rxm-btn:active, .rxm-mobile .rxm-input-group-btn > .rxm-btn:active { z-index: 2; } .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn, .rxm-desktop .rxm-input-group-btn:first-child > .rxm-btn-group, .rxm-mobile .rxm-input-group-btn:first-child > .rxm-btn-group { margin-right: -1px; } .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn, .rxm-desktop .rxm-input-group-btn:last-child > .rxm-btn-group, .rxm-mobile .rxm-input-group-btn:last-child > .rxm-btn-group { z-index: 2; margin-left: -1px; } /* ================================== 布局面板样式 ======================================================== */ .rxm-mobile .rxm-layout-slide-panel { width: 100%; height: 100%; list-style: none; overflow-x: scroll; overflow-y: hidden; display: inline-block; -webkit-overflow-scrolling: touch; } .rxm-mobile .rxm-layout-slide-panel::-webkit-scrollbar { display: none /* 隐藏滚动条,但依旧具备可以滚动的功能 */; } .rxm-mobile .rxm-layout-slide-panel > .rxm-slide-contents { width: 300%; height: 100%; overflow: hidden; display: inline-block; } .rxm-mobile .rxm-layout-slide-panel > .rxm-slide-contents > .rxm-slide-item { width: 33.1%; height: 100%; display: inline-block; } /* 页面模板基础布局 上中下布局 上下定高,中间自适应 默认山定高26px*/ .rxm-footer { position: relative ; width: 100%; left: 0px; bottom: 0px; } .rxm-attr-edit-sel { margin: 0 !important; } .rxm-left-panel { position: relative; left: 0px; display: block; height: 100%; width: 300px; background-color: #fff; } .rxm-right-panel { position: relative; right: 0px; top: 0px; width: 300px; display: block; height: 100%; float: right; width: 0px; /* border: 1px #eeeeee solid; */ background-color: #fff; } .rxm-top-panel { position: relative; display: block; left: 0px; width: 100%; height: 2.1rem; background-color: #fff; } .rxm-bottom-panel { position: relative; left: 0px; bottom: 0px; width: 100%; height: 2.1rem; /* border: 1px #eeeeee solid; */ background-color: #fff; } .rxm-content-panel, .rxm-content { margin: 0px; padding: 0px; border: 0px; display: block; width: auto; height: 100%; overflow: hidden; box-sizing: border-box; background-color: #fff; position: relative; } .rxm-content-panel.rxm-content-right, .rxm-content.rxm-content-right { margin-right: 300px; display: block; height: 100%; } .rxm-content-panel.rxm-content-right + .rxm-right-panel, .rxm-content.rxm-content-right + .rxm-right-panel, .rxm-content-panel.rxm-content-right + .rxm-left-panel + .rxm-right-panel, .rxm-content.rxm-content-right + .rxm-left-panel + .rxm-right-panel { width: 300px; top: -100%; } .rxm-content-panel.rxm-content-left, .rxm-content.rxm-content-left { margin-left: 300px; } .rxm-content-panel.rxm-content-left + .rxm-left-panel, .rxm-content.rxm-content-left + .rxm-left-panel { top: -100%; } .rxm-content-panel.rxm-content-top, .rxm-content.rxm-content-top { height: calc(100% - 2.1rem); } .rxm-content-panel.rxm-content-bottom, .rxm-content.rxm-content-bottom { height: calc(100% - 2.1rem); } .rxm-resize-panel { width: 100%; min-height: 1rem; max-height: 100%; } .rxm-resize-panel > object { position: absolute; height: 100%; width: 100%; display: block; z-index: -2; opacity: 0; } .rxm-desktop .rxm-row-panel, .rxm-mobile .rxm-row-panel { width: auto; height: auto; min-height: 2.1rem; overflow: hidden; } .rxm-desktop .rxm-form-horizontal .rxm-row-panel, .rxm-mobile .rxm-form-horizontal .rxm-row-panel { float: left; width: 100%; } body.rxm-mobile [rxmscroll=y], body.rxm-mobile [rxmscroll=xy] { overflow-y: auto; } body.rxm-mobile [rxmscroll=x], body.rxm-mobile [rxmscroll=xy] { overflow-x: auto; } body.rxm-mobile .rxm-col-panel, body.rxm-desktop .rxm-row-panel .rxm-col-panel { min-height: 2rem; height: auto; } .rxm-second .rxm-row-panel { color: #666666; background: #fbfbfb; } .rxm-row-panel.rxm-second { color: #666666; background: #fbfbfb; } .rxm-desktop.rxm-second .rxm-row-panel, .rxm-mobile.rxm-second .rxm-row-panel, .rxm-desktop .rxm-content-panel .rxm-row-panel, .rxm-mobile .rxm-content-panel .rxm-row-panel, .rxm-desktop .rxm-left-panel .rxm-row-panel, .rxm-mobile .rxm-left-panel .rxm-row-panel { color: #666666; background: #fbfbfb; } .rxm-desktop.rxm-second .rxm-second .rxm-row-panel, .rxm-mobile.rxm-second .rxm-second .rxm-row-panel, .rxm-desktop .rxm-content-panel .rxm-second .rxm-row-panel, .rxm-mobile .rxm-content-panel .rxm-second .rxm-row-panel, .rxm-desktop .rxm-left-panel .rxm-second .rxm-row-panel, .rxm-mobile .rxm-left-panel .rxm-second .rxm-row-panel { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-desktop.rxm-second .rxm-row-panel.rxm-primary, .rxm-mobile.rxm-second .rxm-row-panel.rxm-primary, .rxm-desktop .rxm-content-panel .rxm-row-panel.rxm-primary, .rxm-mobile .rxm-content-panel .rxm-row-panel.rxm-primary, .rxm-desktop .rxm-left-panel .rxm-row-panel.rxm-primary, .rxm-mobile .rxm-left-panel .rxm-row-panel.rxm-primary { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-upload-clearAllValue { display: block; position: absolute; right: 0; top: 0.4rem; cursor: pointer; } .rxm-upload-clearAllValue .fa { font-size: 0.8rem; } .rxm-upload-progress { display: none; } .rxm-upload-progress { overflow: hidden; height: 0.9rem; margin-bottom: 0.9rem; background-color: #fff; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .rxm-upload-progress-bar { float: left; width: 0%; height: 100%; font-size: 0.6rem; line-height: 0.9rem; color: #fff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.006s ease; -o-transition: width 0.006s ease; transition: width 0.006s ease; } /*================================================桌面端tab页签样式====================================================*/ .rxm-desktop .rxm-nav-wrap { height: 2.1rem; } .rxm-desktop .rxm-navcontent-warp { padding-top: 2.1rem; overflow: auto; } .rxm-desktop .rxm-nav { margin-bottom: 0; padding-left: 0; list-style: none; background-color: #fbfbfb; height: 2.1rem; } .rxm-desktop .rxm-nav > li { position: relative; display: inline-block; } .rxm-desktop .rxm-nav > li > a { cursor: pointer; position: relative; display: block; padding: 0.5rem 0.75rem; color: #666666; text-decoration: none; background-color: transparent; width: 100%; } .rxm-desktop .rxm-nav > li > a > span { font-size: 0.65rem; } .rxm-desktop .rxm-nav > li > a > i { margin-right: 5px; } .rxm-desktop .rxm-nav > li > a:hover, .rxm-desktop .rxm-nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .rxm-desktop .rxm-nav > li.disabled > a { color: #777777; } .rxm-desktop .rxm-nav > li.disabled > a:hover, .rxm-desktop .rxm-nav > li.disabled > a:focus { color: #777777; text-decoration: none; background-color: transparent; cursor: pointer; } .rxm-desktop .rxm-nav .open > a, .rxm-desktop .rxm-nav .open > a:hover, .rxm-desktop .rxm-nav .open > a:focus { background-color: #eeeeee; border-color: #337ab7; } .rxm-desktop .rxm-nav .rxm-nav-divider { height: 1px; margin: -0.55rem 0; overflow: hidden; background-color: #574848; } .rxm-desktop .rxm-nav > li > a > img { max-width: none; } .rxm-desktop .rxm-nav-tabs { border-bottom: 0.05rem solid #dddddd; white-space: nowrap; width: 100%; } .rxm-desktop .rxm-nav-tabs > li { margin-bottom: -1px; } .rxm-desktop .rxm-nav-tabs > li > a { padding-left: 1.13333333rem; padding-right: 1.13333333rem; box-sizing: border-box; line-height: 1.42857143; } .rxm-desktop .rxm-nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #ddd; } .rxm-desktop .rxm-nav-tabs > li.rxmactive > a, .rxm-desktop .rxm-nav-tabs > li.rxmactive > a:hover, .rxm-desktop .rxm-nav-tabs > li.rxmactive > a:focus { color: #4d8dff; background-color: #e4e9fc !important; cursor: default; } .rxm-desktop .rxm-nav-tabs > li.rxmactive > a > span, .rxm-desktop .rxm-nav-tabs > li.rxmactive > a:hover > span, .rxm-desktop .rxm-nav-tabs > li.rxmactive > a:focus > span { font-weight: bold; } .rxm-desktop .rxm-nav-tabs > li.rxmactive > a:after { content: ''; width: 100%; position: absolute; top: 0px; left: 0; right: 0; margin: auto; background: linear-gradient(to right, #4578ed, #38b3fb); height: 0.15rem; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified { width: 100%; border-bottom: 0; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li { float: none; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li > a { text-align: center; margin-bottom: 5px; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li { display: table-cell; width: 1%; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li > a { margin-bottom: 0; } } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li > a { margin-right: 0; border-radius: 4px; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a, .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:hover, .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a, .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:hover, .rxm-desktop .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:focus { border-bottom-color: #fff; } } .rxm-desktop .rxm-nav-pills > li { float: left; } .rxm-desktop .rxm-nav-pills > li > a { border-radius: 4px; } .rxm-desktop .rxm-nav-pills > li.rxmactive > a, .rxm-desktop .rxm-nav-pills > li.rxmactive > a:hover, .rxm-desktop .rxm-nav-pills > li.rxmactive > a:focus { color: #fff; background-color: #337ab7; } .rxm-desktop .rxm-nav-stacked > li { float: none; } .rxm-desktop .rxm-nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .rxm-desktop .rxm-nav-justified { width: 100%; } .rxm-desktop .rxm-nav-justified > li { float: none; } .rxm-desktop .rxm-nav-justified > li > a { text-align: center; margin-bottom: 5px; } .rxm-desktop .rxm-nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .rxm-desktop .rxm-nav-justified > li { display: table-cell; width: 1%; } .rxm-desktop .rxm-nav-justified > li > a { margin-bottom: 0; } } .rxm-desktop .rxm-nav-tabs-justified { border-bottom: 0; } .rxm-desktop .rxm-nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a, .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a:hover, .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .rxm-desktop .rxm-nav-tabs-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a, .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a:hover, .rxm-desktop .rxm-nav-tabs-justified > .rxmactive > a:focus { border-bottom-color: #fff; } } .rxm-desktop .rxm-tab-content .rxm-tab-panel { display: none; width: auto; height: 100%; } .rxm-desktop .rxm-tab-content .rxmactive { display: block; } .rxm-desktop .rxm-nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .rxm-desktop .rxm-scroll-left, .rxm-scroll-right { width: 5%; float: left; text-align: center; line-height: 2.1rem; display: none; cursor: pointer; } .rxm-desktop .rxm-tab-scroll { width: 90%; float: left; overflow: hidden; } /*================================================移动端tab页签样式====================================================*/ .rxm-mobile .rxm-nav-wrap { height: 2.1rem; } .rxm-mobile .rxm-navcontent-warp { padding-top: 2.1rem; overflow: auto; } .rxm-mobile .rxm-nav { margin-bottom: 0; padding-left: 0; list-style: none; height: 2.1rem; } .rxm-mobile .rxm-nav > li { position: relative; display: inline-block; } .rxm-mobile .rxm-nav > li > a { cursor: pointer; position: relative; display: block; padding: 0.5rem 0.75rem; color: #666666; text-decoration: none; background-color: transparent; } .rxm-mobile .rxm-nav > li > a > span { font-size: 0.65rem; } .rxm-mobile .rxm-nav > li > a > i { margin-right: 5px; } .rxm-mobile .rxm-nav > li > a:hover, .rxm-mobile .rxm-nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .rxm-mobile .rxm-nav > li.disabled > a { color: #777777; } .rxm-mobile .rxm-nav > li.disabled > a:hover, .rxm-mobile .rxm-nav > li.disabled > a:focus { color: #777777; text-decoration: none; background-color: transparent; cursor: pointer; } .rxm-mobile .rxm-nav .open > a, .rxm-mobile .rxm-nav .open > a:hover, .rxm-mobile .rxm-nav .open > a:focus { background-color: #eeeeee; border-color: #337ab7; } .rxm-mobile .rxm-nav .rxm-nav-divider { height: 1px; margin: -0.55rem 0; overflow: hidden; background-color: #574848; } .rxm-mobile .rxm-nav > li > a > img { max-width: none; } .rxm-mobile .rxm-nav-tabs { border-bottom: 1px solid #ddd; white-space: nowrap; width: 100%; } .rxm-mobile .rxm-nav-tabs > li { margin-bottom: -1px; } .rxm-mobile .rxm-nav-tabs > li > a { padding-left: 1.13333333rem; padding-right: 1.13333333rem; line-height: 1.42857143; border-radius: 4px; } .rxm-mobile .rxm-nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #ddd; } .rxm-mobile .rxm-nav-tabs > li.rxmactive > a, .rxm-mobile .rxm-nav-tabs > li.rxmactive > a:hover, .rxm-mobile .rxm-nav-tabs > li.rxmactive > a:focus { color: #4d8dff; background-color: #fff; cursor: pointer; } .rxm-mobile .rxm-nav-tabs > li.rxmactive > a > span, .rxm-mobile .rxm-nav-tabs > li.rxmactive > a:hover > span, .rxm-mobile .rxm-nav-tabs > li.rxmactive > a:focus > span { font-weight: bold; } .rxm-mobile .rxm-nav-tabs > li.rxmactive > a:after { content: ''; width: 1.33333333rem; position: absolute; top: -2px; left: 0; bottom: 0.2rem; right: 0; margin: auto; border-bottom-style: solid; border-bottom-color: #4d8dff; border-bottom-width: 0.15rem; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified { width: 100%; border-bottom: 0; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li { float: none; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li > a { text-align: center; margin-bottom: 5px; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li { display: table-cell; width: 1%; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li > a { margin-bottom: 0; } } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li > a { margin-right: 0; border-radius: 4px; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a, .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:hover, .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a, .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:hover, .rxm-mobile .rxm-nav-tabs.rxm-nav-justified > .rxmactive > a:focus { border-bottom-color: #fff; } } .rxm-mobile .rxm-nav-pills > li { float: left; } .rxm-mobile .rxm-nav-pills > li > a { border-radius: 4px; } .rxm-mobile .rxm-nav-pills > li + li { margin-left: 2px; } .rxm-mobile .rxm-nav-pills > li.rxmactive > a, .rxm-mobile .rxm-nav-pills > li.rxmactive > a:hover, .rxm-mobile .rxm-nav-pills > li.rxmactive > a:focus { color: #fff; background-color: #337ab7; } .rxm-mobile .rxm-nav-stacked > li { float: none; } .rxm-mobile .rxm-nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .rxm-mobile .rxm-nav-justified { width: 100%; } .rxm-mobile .rxm-nav-justified > li { float: none; } .rxm-mobile .rxm-nav-justified > li > a { text-align: center; margin-bottom: 5px; } .rxm-mobile .rxm-nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .rxm-mobile .rxm-nav-justified > li { display: table-cell; width: 1%; } .rxm-mobile .rxm-nav-justified > li > a { margin-bottom: 0; } } .rxm-mobile .rxm-nav-tabs-justified { border-bottom: 0; } .rxm-mobile .rxm-nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a, .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a:hover, .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .rxm-mobile .rxm-nav-tabs-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; } .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a, .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a:hover, .rxm-mobile .rxm-nav-tabs-justified > .rxmactive > a:focus { border-bottom-color: #fff; } } .rxm-mobile .rxm-tab-content .rxm-tab-panel { display: none; width: auto; min-height: 100%; height: auto; } .rxm-mobile .rxm-tab-content .rxmactive { display: block; } .rxm-mobile .rxm-nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .rxm-mobile .rxm-scroll-left, .rxm-scroll-right { width: 5%; float: left; text-align: center; line-height: 2.1rem; display: none; cursor: pointer; } .rxm-mobile .rxm-tab-scroll { width: 90%; float: left; overflow: hidden; } .rxm-slider { position: relative; width: 100%; height: 200px; } .rxm-slider .rxm-slider-inner { position: relative; width: 100%; height: 100%; overflow: hidden; } .rxm-slider .rxm-slider-item { position: relative; display: none; align-items: center; width: 100%; height: 100%; backface-visibility: hidden; perspective: 1000px; } .rxm-slider .rxm-slider-item.active, .rxm-slider .rxm-slider-item-next, .rxm-slider .rxm-slider-item-prev { display: block; transition: transform 0.6s ease; } .rxm-slider .rxm-slider-item-next, .rxm-slider .rxm-slider-item-prev { position: absolute; top: 0; } .rxm-slider .rxm-slider-item-next.rxm-slider-item-left, .rxm-slider .rxm-slider-item-prev.rxm-slider-item-right { transform: translateX(0); } @supports (transform-style: preserve-3d) { .rxm-slider .rxm-slider-item-next.rxm-slider-item-left, .rxm-slider .rxm-slider-item-prev.rxm-slider-item-right { transform: translate3d(0, 0, 0); } } .rxm-slider .rxm-slider-item-next, .rxm-slider .active.rxm-slider-item-right { transform: translateX(100%); } @supports (transform-style: preserve-3d) { .rxm-slider .rxm-slider-item-next, .rxm-slider .active.rxm-slider-item-right { transform: translate3d(100%, 0, 0); } } .rxm-slider .rxm-slider-item-prev, .rxm-slider .active.rxm-slider-item-left { transform: translateX(-100%); } @supports (transform-style: preserve-3d) { .rxm-slider .rxm-slider-item-prev, .rxm-slider .active.rxm-slider-item-left { transform: translate3d(-100%, 0, 0); } } .rxm-slider .rxm-slider-control-prev, .rxm-slider .rxm-slider-control-next { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 15%; color: white; text-align: center; opacity: 0.5; } .rxm-slider .rxm-slider-control-prev:hover, .rxm-slider .rxm-slider-control-next:hover, .rxm-slider .rxm-slider-control-prev:focus, .rxm-slider .rxm-slider-control-next:focus { color: white; text-decoration: none; outline: 0; opacity: 0.9; } .rxm-slider .rxm-slider-control-prev { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.001)); } .rxm-slider .rxm-slider-control-next { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.001)); } .rxm-slider .rxm-slider-control-prev-icon, .rxm-slider .rxm-slider-control-next-icon { display: inline-block; width: 20px; height: 20px; background: transparent no-repeat center center; background-size: 100% 100%; } .rxm-slider .rxm-slider-control-prev-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); } .rxm-slider .rxm-slider-control-next-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); } .rxm-slider .rxm-slider-indicators { position: absolute; right: 0; bottom: 10px; left: 0; z-index: 15; display: flex; justify-content: flex-end; padding-left: 0; margin-right: 10%; margin-left: 15%; list-style: none; } .rxm-slider .rxm-slider-indicators li { position: relative; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: rgba(255, 255, 255, 0.5); } .rxm-slider .rxm-slider-indicators li::before { position: absolute; top: -10px; left: 0; display: inline-block; width: 100%; height: 10px; content: ""; } .rxm-slider .rxm-slider-indicators li::after { position: absolute; bottom: -10px; left: 0; display: inline-block; width: 100%; height: 10px; content: ""; } .rxm-slider .rxm-slider-indicators .active { background-color: white; } .rxm-single-image { width: 100%; height: 200px; position: relative; } .rxm-single-image .rxm-single-image-title { position: absolute; bottom: 0px; background: #000; color: #FFF; opacity: 0.6; text-align: center; height: 1.5rem; width: 100%; line-height: 1.5rem; font-size: 1rem; } .rxm-desktop .rxm-radio-div, .rxm-mobile .rxm-radio-div { float: left; margin-right: 10px; min-height: 20px; margin-top: 7px; } .rxm-desktop .rxm-radio-div .rxm-radio-input, .rxm-mobile .rxm-radio-div .rxm-radio-input { position: absolute; opacity: 0; } .rxm-desktop .rxm-radio-div .radio-label, .rxm-mobile .rxm-radio-div .radio-label { color: black; font-weight: normal; } .rxm-desktop .rxm-radio-div .radio-label:before, .rxm-mobile .rxm-radio-div .radio-label:before { content: ''; background: #f4f4f4; border-radius: 100%; border: 1px solid #b4b4b4; display: inline-block; width: 16px; height: 16px; margin-right: 3px; position: relative; vertical-align: top; cursor: pointer; text-align: center; -webkit-transition: all 120ms ease; transition: all 120ms ease; } .rxm-desktop .rxm-radio-div .rxm-radio-input:checked + .radio-label:before, .rxm-mobile .rxm-radio-div .rxm-radio-input:checked + .radio-label:before { background-color: #3197EE; box-shadow: inset 0 0 0 3px #f4f4f4; } .rxm-desktop .rxm-radio-div .rxm-radio-input:focus + .radio-label:before, .rxm-mobile .rxm-radio-div .rxm-radio-input:focus + .radio-label:before { outline: none; border-color: #3197EE; } .rxm-desktop .rxm-radio-div .rxm-radio-input:disabled + .radio-label:before, .rxm-mobile .rxm-radio-div .rxm-radio-input:disabled + .radio-label:before { box-shadow: inset 0 0 0 4px #f4f4f4; border-color: #b4b4b4; background: #b4b4b4; } .rxm-desktop .rxm-radio-div .radio-label:empty:before, .rxm-mobile .rxm-radio-div .radio-label:empty:before { margin-right: 0; } .rxm-desktop .rxm-checkbox-div, .rxm-mobile .rxm-checkbox-div { float: left; margin-right: 3px; } .rxm-desktop .rxm-checkbox-div .rxm-checkbox-input, .rxm-mobile .rxm-checkbox-div .rxm-checkbox-input { /*去除浏览器默认样式*/ -webkit-appearance: listbox; -moz-appearance: listbox; appearance: listbox; /*checkbox样式*/ float: left; position: relative; width: 14px; height: 14px; background: transparent; border: 1px solid #0090ff; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 2px; outline: none; cursor: pointer; } .rxm-desktop .rxm-checkbox-div .rxm-checkbox-input:after, .rxm-mobile .rxm-checkbox-div .rxm-checkbox-input:after { content: ''; width: 11px; height: 5px; position: absolute; top: -2px; left: 0; bottom: 0; right: 0; margin: auto; border: 2px solid #0090ff; border-top: none; border-right: none; background: transparent; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transition: all ease-in-out 100ms; -moz-transition: all ease-in-out 100ms; transition: all ease-in-out 100ms; } .rxm-desktop .rxm-checkbox-div .rxm-checkbox-input:checked:after, .rxm-mobile .rxm-checkbox-div .rxm-checkbox-input:checked:after { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; opacity: 1; } .rxm-desktop .rxm-checkbox-div .checkbox-span, .rxm-mobile .rxm-checkbox-div .checkbox-span { float: left; margin-top: 8px; margin-left: 3px; } form.rxmdk-layout-btstrp-form { padding-top: 10px; max-height: 600px; } .rxm-desktop .rxm-title, .rxm-mobile .rxm-title, .rxm-desktop .rxm-title-bar, .rxm-mobile .rxm-title-bar { position: relative ; width: auto; height: 2.1rem; line-height: 2.1rem; padding: 0px 8px; top: 0px; left: 0px; border: none; color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); font-size: 0.65rem; font-weight: 400; } .rxm-desktop .rxm-title .rxm-title-name, .rxm-mobile .rxm-title .rxm-title-name, .rxm-desktop .rxm-title-bar .rxm-title-name, .rxm-mobile .rxm-title-bar .rxm-title-name, .rxm-desktop .rxm-title .rxm-title-icon, .rxm-mobile .rxm-title .rxm-title-icon, .rxm-desktop .rxm-title-bar .rxm-title-icon, .rxm-mobile .rxm-title-bar .rxm-title-icon { font-size: inherit; font-weight: inherit; } .rxm-desktop .rxm-second .rxm-title, .rxm-mobile .rxm-second .rxm-title, .rxm-desktop .rxm-second .rxm-title-bar, .rxm-mobile .rxm-second .rxm-title-bar { color: #666666; background: #fbfbfb; } .rxm-desktop .rxm-title.rxm-second, .rxm-mobile .rxm-title.rxm-second, .rxm-desktop .rxm-title-bar.rxm-second, .rxm-mobile .rxm-title-bar.rxm-second { color: #666666; background: #fbfbfb; } .rxm-title-content { margin-left: 1rem; } .rxm-desktop.rxm-second .rxm-title, .rxm-mobile.rxm-second .rxm-title, .rxm-desktop .rxm-content-panel .rxm-title, .rxm-mobile .rxm-content-panel .rxm-title, .rxm-desktop .rxm-left-panel .rxm-title, .rxm-mobile .rxm-left-panel .rxm-title, .rxm-desktop.rxm-second .rxm-title-bar, .rxm-mobile.rxm-second .rxm-title-bar, .rxm-desktop .rxm-content-panel .rxm-title-bar, .rxm-mobile .rxm-content-panel .rxm-title-bar, .rxm-desktop .rxm-left-panel .rxm-title-bar, .rxm-mobile .rxm-left-panel .rxm-title-bar { color: #666666; background: #fbfbfb; } .rxm-desktop.rxm-second .rxm-second .rxm-title, .rxm-mobile.rxm-second .rxm-second .rxm-title, .rxm-desktop .rxm-content-panel .rxm-second .rxm-title, .rxm-mobile .rxm-content-panel .rxm-second .rxm-title, .rxm-desktop .rxm-left-panel .rxm-second .rxm-title, .rxm-mobile .rxm-left-panel .rxm-second .rxm-title, .rxm-desktop.rxm-second .rxm-second .rxm-title-bar, .rxm-mobile.rxm-second .rxm-second .rxm-title-bar, .rxm-desktop .rxm-content-panel .rxm-second .rxm-title-bar, .rxm-mobile .rxm-content-panel .rxm-second .rxm-title-bar, .rxm-desktop .rxm-left-panel .rxm-second .rxm-title-bar, .rxm-mobile .rxm-left-panel .rxm-second .rxm-title-bar { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-desktop.rxm-second .rxm-title.rxm-primary, .rxm-mobile.rxm-second .rxm-title.rxm-primary, .rxm-desktop .rxm-content-panel .rxm-title.rxm-primary, .rxm-mobile .rxm-content-panel .rxm-title.rxm-primary, .rxm-desktop .rxm-left-panel .rxm-title.rxm-primary, .rxm-mobile .rxm-left-panel .rxm-title.rxm-primary, .rxm-desktop.rxm-second .rxm-title-bar.rxm-primary, .rxm-mobile.rxm-second .rxm-title-bar.rxm-primary, .rxm-desktop .rxm-content-panel .rxm-title-bar.rxm-primary, .rxm-mobile .rxm-content-panel .rxm-title-bar.rxm-primary, .rxm-desktop .rxm-left-panel .rxm-title-bar.rxm-primary, .rxm-mobile .rxm-left-panel .rxm-title-bar.rxm-primary { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-desktop .rxm-logo, .rxm-mobile .rxm-logo { float: left; } .rxm-desktop .rxm-logo > div, .rxm-mobile .rxm-logo > div { float: left; margin-top: 10px; margin-left: 20px; margin-right: 15px; } .rxm-desktop .rxm-logo > div > img, .rxm-mobile .rxm-logo > div > img { width: 48px; height: 48px; float: left; } .rxm-desktop .rxm-logo > h1, .rxm-mobile .rxm-logo > h1 { float: left; line-height: 3.25rem; font-size: 20px; font-family: Helvetica Neue; letter-spacing: 1px; } .rxm-desktop .rxm-cmd-toolbar, .rxm-mobile .rxm-cmd-toolbar { position: relative ; width: auto; height: 2.1rem; line-height: 2.1rem; padding: 0px 8px; top: 0px; left: 0px; border: none; color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); font-size: 0.65rem; font-weight: 400; } .rxm-desktop .rxm-second .rxm-cmd-toolbar, .rxm-mobile .rxm-second .rxm-cmd-toolbar { color: #666666; background: #fbfbfb; } .rxm-desktop .rxm-cmd-toolbar.rxm-second, .rxm-mobile .rxm-cmd-toolbar.rxm-second { color: #666666; background: #fbfbfb; } .rxm-desktop.rxm-second .rxm-cmd-toolbar, .rxm-mobile.rxm-second .rxm-cmd-toolbar, .rxm-desktop .rxm-content-panel .rxm-cmd-toolbar, .rxm-mobile .rxm-content-panel .rxm-cmd-toolbar, .rxm-desktop .rxm-left-panel .rxm-cmd-toolbar, .rxm-mobile .rxm-left-panel .rxm-cmd-toolbar { color: #666666; background: #fbfbfb; } .rxm-desktop.rxm-second .rxm-second .rxm-cmd-toolbar, .rxm-mobile.rxm-second .rxm-second .rxm-cmd-toolbar, .rxm-desktop .rxm-content-panel .rxm-second .rxm-cmd-toolbar, .rxm-mobile .rxm-content-panel .rxm-second .rxm-cmd-toolbar, .rxm-desktop .rxm-left-panel .rxm-second .rxm-cmd-toolbar, .rxm-mobile .rxm-left-panel .rxm-second .rxm-cmd-toolbar { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-desktop.rxm-second .rxm-cmd-toolbar.rxm-primary, .rxm-mobile.rxm-second .rxm-cmd-toolbar.rxm-primary, .rxm-desktop .rxm-content-panel .rxm-cmd-toolbar.rxm-primary, .rxm-mobile .rxm-content-panel .rxm-cmd-toolbar.rxm-primary, .rxm-desktop .rxm-left-panel .rxm-cmd-toolbar.rxm-primary, .rxm-mobile .rxm-left-panel .rxm-cmd-toolbar.rxm-primary { color: #fff; background: linear-gradient(to right, #4578ed, #38b3fb); } .rxm-desktop .rxm-cmd-btnbar, .rxm-mobile .rxm-cmd-btnbar, .rxm-desktop .rxm-fl.rxm-cmd-btnbar, .rxm-mobile .rxm-fl.rxm-cmd-btnbar, .rxm-desktop .fl.rxm-cmd-btnbar, .rxm-mobile .fl.rxm-cmd-btnbar, .rxm-desktop .rxm-fl.rxm-btn-l.rxm-cmd-btnbar, .rxm-mobile .rxm-fl.rxm-btn-l.rxm-cmd-btnbar, .rxm-desktop .fl.rxm-btn-l.rxm-cmd-btnbar, .rxm-mobile .fl.rxm-btn-l.rxm-cmd-btnbar, .rxm-desktop .rxm-fr.rxm-btn-l.rxm-cmd-btnbar, .rxm-mobile .rxm-fr.rxm-btn-l.rxm-cmd-btnbar, .rxm-desktop .fr.rxm-btn-l.rxm-cmd-btnbar, .rxm-mobile .fr.rxm-btn-l.rxm-cmd-btnbar { text-align: left; } .rxm-desktop .rxm-cmd-btnbar.rxm-btn-r, .rxm-mobile .rxm-cmd-btnbar.rxm-btn-r, .rxm-desktop .rxm-fr.rxm-cmd-btnbar, .rxm-mobile .rxm-fr.rxm-cmd-btnbar, .rxm-desktop .fr.rxm-cmd-btnbar, .rxm-mobile .fr.rxm-cmd-btnbar, .rxm-desktop .rxm-fr.rxm-btn-r.rxm-cmd-btnbar, .rxm-mobile .rxm-fr.rxm-btn-r.rxm-cmd-btnbar, .rxm-desktop .fr.rxm-btn-r.rxm-cmd-btnbar, .rxm-mobile .fr.rxm-btn-r.rxm-cmd-btnbar, .rxm-desktop .rxm-fl.rxm-btn-r.rxm-cmd-btnbar, .rxm-mobile .rxm-fl.rxm-btn-r.rxm-cmd-btnbar, .rxm-desktop .fl.rxm-btn-r.rxm-cmd-btnbar, .rxm-mobile .fl.rxm-btn-r.rxm-cmd-btnbar { text-align: right; } .rxm-desktop .rxm-cmd-btnbar.rxm-btn-c, .rxm-mobile .rxm-cmd-btnbar.rxm-btn-c, .rxm-desktop .rxm-fl.rxm-cmd-btnbar.rxm-btn-c, .rxm-mobile .rxm-fl.rxm-cmd-btnbar.rxm-btn-c, .rxm-desktop .rxm-fr.rxm-cmd-btnbar.rxm-btn-c, .rxm-mobile .rxm-fr.rxm-cmd-btnbar.rxm-btn-c, .rxm-desktop .fl.rxm-cmd-btnbar.rxm-btn-c, .rxm-mobile .fl.rxm-cmd-btnbar.rxm-btn-c, .rxm-desktop .fr.rxm-cmd-btnbar.rxm-btn-c, .rxm-mobile .fr.rxm-cmd-btnbar.rxm-btn-c { text-align: center; } .rxm-desktop .rxm-cmd-btnbar, .rxm-mobile .rxm-cmd-btnbar { min-width: 15%; height: 2.1rem; line-height: 2.1rem; display: inline-block; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn { height: 100%; list-style: none; display: inline-block; margin-left: 0.15rem; margin-right: 0.15rem; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > a, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > a { cursor: pointer; outline: none; background: none; color: inherit; font-size: inherit; border: none; padding: 0.15rem 0.35rem; margin-top: 0.5rem; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button > .rxm-btn-contents, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button > .rxm-btn-contents, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > a > .rxm-btn-contents, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > a > .rxm-btn-contents { display: inline-block; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button > .rxm-btn-menu, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button > .rxm-btn-menu, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > a > .rxm-btn-menu, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > a > .rxm-btn-menu { display: inline-block; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button > i, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button > i, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > a > i, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > a > i { font-size: 0.65rem; margin-bottom: 0.1rem; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button { line-height: 0.8rem; } .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button:hover, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button:hover, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button:hover, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button:hover, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn > button:focus, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn > button:focus, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn > button:focus, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn > button:focus, .rxm-desktop .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-mobile .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-desktop .rxm-cmd-btnbar .rxm-dropmenu-btn .rxm-active, .rxm-mobile .rxm-cmd-btnbar .rxm-dropmenu-btn .rxm-active { color: #fff; background-color: #20437f; text-decoration: none; border-radius: 0.15rem; } .rxm-desktop .rxm-cmd-btnbar.rxm-vertical, .rxm-mobile .rxm-cmd-btnbar.rxm-vertical { line-height: 2.35rem; } .rxm-desktop .rxm-vertical .rxm-cmd-btn > button > i, .rxm-mobile .rxm-vertical .rxm-cmd-btn > button > i, .rxm-desktop .rxm-vertical .rxm-cmd-btn > a > i, .rxm-mobile .rxm-vertical .rxm-cmd-btn > a > i { font-size: 1rem; margin-bottom: 0.25rem; } .rxm-desktop .rxm-vertical .rxm-cmd-btn > button > span, .rxm-mobile .rxm-vertical .rxm-cmd-btn > button > span, .rxm-desktop .rxm-vertical .rxm-cmd-btn > a > span, .rxm-mobile .rxm-vertical .rxm-cmd-btn > a > span { display: block; } .rxm-desktop.rxm-second .rxm-cmd-btnbar, .rxm-mobile.rxm-second .rxm-cmd-btnbar, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar { background-color: transparent; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn { list-style: none; display: inline-block; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a { cursor: pointer; outline: none; background: none; color: inherit; font-size: inherit; border: none; padding: 0.15rem 0.35rem; margin-top: 0.5rem; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-contents, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-contents { display: inline-block; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > .rxm-btn-menu, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > .rxm-btn-menu { display: inline-block; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button > i, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > i, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > a > i { font-size: 0.65rem; margin-bottom: 0.1rem; } .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):hover, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):focus, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn > button:not(.rxm-disabled):active, .rxm-desktop.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-mobile.rxm-second .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-desktop .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-mobile .rxm-content-panel .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-desktop .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active, .rxm-mobile .rxm-left-panel .rxm-cmd-btnbar .rxm-cmd-btn .rxm-active { color: #eeeeee; background-color: #2898e0 !important; } /* .rxm-desktop,.rxm-mobile{ & .rxm-cmd-btn{ & .rxm-btn-menu{ display:inline-block; } & .rxm-caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: @caret-width-base/4*6 dashed; border-top: @caret-width-base/4*6 solid ~"\9"; // IE8 border-right: @caret-width-base/4*6 solid transparent; border-left: @caret-width-base/4*6 solid transparent; } & .rxm-caret:focus{ //background-color:red; & + .rxm-cmd-dropdown-btnbar{ display:block; } } } } */ .rxm-dropup, .rxm-dropdown { border: #eeeeee solid 1 px; padding: 0.6rem 0.3rem; border-radius: 4px; box-shadow: 0px 0px 5px 2px #777777; margin: 10px; position: relative; background: #eeeeee; display: inline-block; } .dropdown-toggle:focus { outline: 0; } ul.rxm-dropdown-menu { display: inline-block; min-width: 20px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 13px; text-align: left; background-color: #FFFFFF; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } ul.rxm-dropdown-menu.pull-right { right: 0; left: auto; } ul.rxm-dropdown-menu .rxm-divider { height: 1px; margin: -0.55rem 0; overflow: hidden; background-color: #e5e5e5; } ul.rxm-dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } ul.rxm-dropdown-menu > li > a:hover, ul.rxm-dropdown-menu > li > a:focus { text-decoration: none; color: #262626; background-color: #f5f5f5; } .rxm-dropdown-menu > .active > a, .rxm-dropdown-menu > .active > a:hover, .rxm-dropdown-menu > .active > a:focus { color: #fff; text-decoration: none; outline: 0; background-color: #337ab7; } .rxm-dropdown-menu > .disabled > a, .rxm-dropdown-menu > .disabled > a:hover, .rxm-dropdown-menu > .disabled > a:focus { color: #777777; } .rxm-dropdown-menu > .disabled > a:hover, .rxm-dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .rxm-open .rxm-dropup, .rxm-open .rxm-dropdown, .rxm-open .rxm-dropdown-menu { display: block; } .rxm-open > a { outline: 0; } .rxm-dropdown-menu-right { left: auto; right: 0; } .rxm-ropdown-menu-left { left: 0; right: auto; } .rxm-dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777777; white-space: nowrap; } .rxm-dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } .rxm-cmd-dropdown-btnbar { float: none; position: absolute; z-index: 2000; top: auto; left: auto; display: block; width: auto; text-align: left; list-style: none; background-color: #f0f0f0; color: #000000; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #cccccc; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; box-shadow: 0px 3px 6px #cccccc; -moz-box-shadow: 0px 3px 6px #cccccc; -webkit-box-shadow: 0px 3px 6px #cccccc; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn { display: list-item; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn.rxm-display-none { display: none; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button { color: inherit; cursor: pointer; color: #333333; background-color: #f0f0f0; border-color: #f0f0f0; line-height: 1.42857143; width: 100%; text-align: left; padding: 3px 10px; margin: 1px 0px; color: #000000; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.focus { color: #333333; background-color: #d6d6d6; border-color: #b0b0b0; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:hover { color: #333333; background-color: #d6d6d6; border-color: #d1d1d1; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:active, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.active { color: #333333; background-color: #d6d6d6; border-color: #d1d1d1; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:active:hover, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.active:hover, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:active:focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.active:focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:active.focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.active.focus { color: #333333; background-color: #c4c4c4; border-color: #b0b0b0; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:active, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.active { background-image: none; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.disabled:hover, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button[disabled]:hover, fieldset[disabled] .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:hover, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.disabled:focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button[disabled]:focus, fieldset[disabled] .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button:focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.disabled.focus, .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button[disabled].focus, fieldset[disabled] .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button.focus { background-color: #f0f0f0; border-color: #f0f0f0; } .rxm-cmd-dropdown-btnbar > .rxm-cmd-btn > button .badge { color: #f0f0f0; background-color: #333333; } .rxm-cmd-dropdown-btnbar .rxm-cmd-btn.rxm-display-none { display: none; } .rxm-display-none { display: none; } .rxm-visibility-hidden { visibility: hidden; } .rxm-desktop .rxm-split-bar, .rxm-mobile .rxm-split-bar { height: 100%; list-style: none; display: inline-block; vertical-align: middle; } .rxm-desktop .rxm-split-bar button, .rxm-mobile .rxm-split-bar button { height: 0.65rem; border-right: 0.05rem solid #c9c9c9; } .rxm-desktop .cs-combo-wrapper, .rxm-mobile .cs-combo-wrapper { position: relative; cursor: default; } .rxm-desktop .cs-combo-input, .rxm-mobile .cs-combo-input { padding-right: 26px; background: url("../img/selectIcon.png") no-repeat right center; cursor: inherit; } .rxm-desktop .cs-combo-content, .rxm-mobile .cs-combo-content { display: none; position: absolute; top: 0; left: 0; right: 25px; bottom: 0; overflow-x: hidden; overflow-y: auto; padding: 4px; line-height: 24px; white-space: normal; } .rxm-desktop .cs-combo-content-item, .rxm-mobile .cs-combo-content-item { padding: 1px 3px; margin-right: 4px; text-decoration: none; border: 1px solid #ddd; background-color: #eee; color: #333; cursor: default; border-radius: 3px; } .rxm-desktop .cs-combo-content-item .remove, .rxm-mobile .cs-combo-content-item .remove { cursor: pointer; margin-left: 4px; } .rxm-desktop .cs-combo-clear, .rxm-mobile .cs-combo-clear { display: none; position: absolute; right: 8px; top: 8px; cursor: pointer; font-size: 16px; } .rxm-desktop .cs-combo-placeholder, .rxm-mobile .cs-combo-placeholder { display: block; position: absolute; height: 100%; left: 10px; top: 0; color: #aaa; } .rxm-desktop .cs-combo-panel, .rxm-mobile .cs-combo-panel { display: none; position: absolute; background-color: #ffffff; border: 1px solid #ccc; font-size: 13px; overflow-y: auto; } .rxm-desktop .cs-combo-wrapper.hasValue .cs-combo-clear, .rxm-mobile .cs-combo-wrapper.hasValue .cs-combo-clear { display: block; } .rxm-desktop .cs-combo-wrapper.hasValue .cs-combo-placeholder, .rxm-mobile .cs-combo-wrapper.hasValue .cs-combo-placeholder { display: none; } .rxm-desktop .cs-combo-wrapper.hasValue .cs-combo-input, .rxm-mobile .cs-combo-wrapper.hasValue .cs-combo-input { background-image: none; } .rxm-desktop .cs-combo-wrapper.multi .cs-combo-input, .rxm-mobile .cs-combo-wrapper.multi .cs-combo-input { color: transparent; } .rxm-desktop .cs-combo-wrapper.multi .cs-combo-content, .rxm-mobile .cs-combo-wrapper.multi .cs-combo-content { display: block; } .rxm-desktop .cs-combotree, .rxm-mobile .cs-combotree { padding: 5px; } .rxm-desktop .cs-combotree-search, .rxm-mobile .cs-combotree-search { margin-bottom: 5px; } .rxm-desktop, .rxm-mobile { /* cs tree style */ /* 不显示子元素容器的线 */ /* 不显示节点图标 注:节点图标跟switch不是一回事,这里相当于用switch既用来当作switch又来当作图标 */ /* 自定义switch图标 */ /* 将所有情况的open的switch统一 */ /* 将所有情况的close的switch统一 */ /* 将所有情况的docu的switch统一 */ /* .ztree li > a > span{ -ms-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } */ } .rxm-desktop .rxm-tree, .rxm-mobile .rxm-tree { width: auto; height: 100%; } .rxm-desktop .ztree *, .rxm-mobile .ztree * { padding: 0; margin: 0; font-size: 12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif; } .rxm-desktop .ztree li, .rxm-mobile .ztree li { padding: 0; margin: 3px; list-style: none; line-height: 16px; text-align: left; white-space: nowrap; outline: 0; } .rxm-desktop .ztree li ul, .rxm-mobile .ztree li ul { margin: 0; padding: 0 0 0 18px; } .rxm-desktop .ztree li ul.line, .rxm-mobile .ztree li ul.line { background: url(img/line_conn.gif) 0 0 repeat-y; } .rxm-desktop .ztree li a, .rxm-mobile .ztree li a { padding: 1px 3px 0 0; margin: 0; cursor: pointer; height: 17px; color: #333; background-color: transparent; text-decoration: none; vertical-align: top; display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .rxm-desktop .ztree li a:hover, .rxm-mobile .ztree li a:hover { text-decoration: underline; } .rxm-desktop .ztree li a.curSelectedNode, .rxm-mobile .ztree li a.curSelectedNode { padding-top: 0px; background-color: #FFE6B0; color: black; height: 16px; border: 1px #FFB951 solid; opacity: 0.8; } .rxm-desktop .ztree li a.curSelectedNode_Edit, .rxm-mobile .ztree li a.curSelectedNode_Edit { padding-top: 0px; background-color: #FFE6B0; color: black; height: 16px; border: 1px #FFB951 solid; opacity: 0.8; } .rxm-desktop .ztree li a.tmpTargetNode_inner, .rxm-mobile .ztree li a.tmpTargetNode_inner { padding-top: 0px; background-color: #316AC5; color: white; height: 16px; border: 1px #316AC5 solid; opacity: 0.8; filter: alpha(opacity=80); } .rxm-desktop .ztree li a input.rename, .rxm-mobile .ztree li a input.rename { height: 14px; width: 80px; padding: 0; margin: 0; font-size: 12px; border: 1px #7EC4CC solid; *border: 0px; } .rxm-desktop .ztree li span, .rxm-mobile .ztree li span { line-height: 24px; margin-right: 2px; } .rxm-desktop .ztree li span.button, .rxm-mobile .ztree li span.button { line-height: 0; margin: 0; width: 16px; height: 16px; display: inline-block; vertical-align: middle; border: 0 none; cursor: pointer; outline: none; background-color: transparent; background-repeat: no-repeat; background-attachment: scroll; background-image: url("../../rxm/jquery/plugins/zTree/css/zTreeStyle/img/zTreeStandard.png"); *background-image: url("img/zTreeStandard.gif"); } .rxm-desktop .ztree li span.button.chk, .rxm-mobile .ztree li span.button.chk { width: 13px; height: 13px; margin: 0 3px 0 0; cursor: auto; } .rxm-desktop .ztree li span.button.chk.checkbox_false_full, .rxm-mobile .ztree li span.button.chk.checkbox_false_full { background-position: 0 0; margin-top: 3px; } .rxm-desktop .ztree li span.button.chk.checkbox_false_full_focus, .rxm-mobile .ztree li span.button.chk.checkbox_false_full_focus { background-position: 0 -14px; } .rxm-desktop .ztree li span.button.chk.checkbox_false_part, .rxm-mobile .ztree li span.button.chk.checkbox_false_part { background-position: 0 -28px; } .rxm-desktop .ztree li span.button.chk.checkbox_false_part_focus, .rxm-mobile .ztree li span.button.chk.checkbox_false_part_focus { background-position: 0 -42px; } .rxm-desktop .ztree li span.button.chk.checkbox_false_disable, .rxm-mobile .ztree li span.button.chk.checkbox_false_disable { background-position: 0 -56px; } .rxm-desktop .ztree li span.button.chk.checkbox_true_full, .rxm-mobile .ztree li span.button.chk.checkbox_true_full { background-position: -14px 0; } .rxm-desktop .ztree li span.button.chk.checkbox_true_full_focus, .rxm-mobile .ztree li span.button.chk.checkbox_true_full_focus { background-position: -14px -14px; } .rxm-desktop .ztree li span.button.chk.checkbox_true_part, .rxm-mobile .ztree li span.button.chk.checkbox_true_part { background-position: -14px -28px; } .rxm-desktop .ztree li span.button.chk.checkbox_true_part_focus, .rxm-mobile .ztree li span.button.chk.checkbox_true_part_focus { background-position: -14px -42px; } .rxm-desktop .ztree li span.button.chk.checkbox_true_disable, .rxm-mobile .ztree li span.button.chk.checkbox_true_disable { background-position: -14px -56px; } .rxm-desktop .ztree li span.button.chk.radio_false_full, .rxm-mobile .ztree li span.button.chk.radio_false_full { background-position: -28px 0; } .rxm-desktop .ztree li span.button.chk.radio_false_full_focus, .rxm-mobile .ztree li span.button.chk.radio_false_full_focus { background-position: -28px -14px; } .rxm-desktop .ztree li span.button.chk.radio_false_part, .rxm-mobile .ztree li span.button.chk.radio_false_part { background-position: -28px -28px; } .rxm-desktop .ztree li span.button.chk.radio_false_part_focus, .rxm-mobile .ztree li span.button.chk.radio_false_part_focus { background-position: -28px -42px; } .rxm-desktop .ztree li span.button.chk.radio_false_disable, .rxm-mobile .ztree li span.button.chk.radio_false_disable { background-position: -28px -56px; } .rxm-desktop .ztree li span.button.chk.radio_true_full, .rxm-mobile .ztree li span.button.chk.radio_true_full { background-position: -42px 0; } .rxm-desktop .ztree li span.button.chk.radio_true_full_focus, .rxm-mobile .ztree li span.button.chk.radio_true_full_focus { background-position: -42px -14px; } .rxm-desktop .ztree li span.button.chk.radio_true_part, .rxm-mobile .ztree li span.button.chk.radio_true_part { background-position: -42px -28px; } .rxm-desktop .ztree li span.button.chk.radio_true_part_focus, .rxm-mobile .ztree li span.button.chk.radio_true_part_focus { background-position: -42px -42px; } .rxm-desktop .ztree li span.button.chk.radio_true_disable, .rxm-mobile .ztree li span.button.chk.radio_true_disable { background-position: -42px -56px; } .rxm-desktop .ztree li span.button.switch, .rxm-mobile .ztree li span.button.switch { width: 18px; height: 18px; } .rxm-desktop .ztree li span.button.root_open, .rxm-mobile .ztree li span.button.root_open { background-position: -92px -54px; } .rxm-desktop .ztree li span.button.root_close, .rxm-mobile .ztree li span.button.root_close { background-position: -74px -54px; } .rxm-desktop .ztree li span.button.roots_open, .rxm-mobile .ztree li span.button.roots_open { background-position: -92px 0; } .rxm-desktop .ztree li span.button.roots_close, .rxm-mobile .ztree li span.button.roots_close { background-position: -74px 0; } .rxm-desktop .ztree li span.button.center_open, .rxm-mobile .ztree li span.button.center_open { background-position: -92px -18px; } .rxm-desktop .ztree li span.button.center_close, .rxm-mobile .ztree li span.button.center_close { background-position: -74px -18px; } .rxm-desktop .ztree li span.button.bottom_open, .rxm-mobile .ztree li span.button.bottom_open { background-position: -92px -36px; } .rxm-desktop .ztree li span.button.bottom_close, .rxm-mobile .ztree li span.button.bottom_close { background-position: -74px -36px; } .rxm-desktop .ztree li span.button.noline_open, .rxm-mobile .ztree li span.button.noline_open { background-position: -92px -72px; } .rxm-desktop .ztree li span.button.noline_close, .rxm-mobile .ztree li span.button.noline_close { background-position: -74px -72px; } .rxm-desktop .ztree li span.button.root_docu, .rxm-mobile .ztree li span.button.root_docu { background: none; } .rxm-desktop .ztree li span.button.roots_docu, .rxm-mobile .ztree li span.button.roots_docu { background-position: -56px 0; } .rxm-desktop .ztree li span.button.center_docu, .rxm-mobile .ztree li span.button.center_docu { background-position: -56px -18px; } .rxm-desktop .ztree li span.button.bottom_docu, .rxm-mobile .ztree li span.button.bottom_docu { background-position: -56px -36px; } .rxm-desktop .ztree li span.button.noline_docu, .rxm-mobile .ztree li span.button.noline_docu { background: none; } .rxm-desktop .ztree li span.button.ico_open, .rxm-mobile .ztree li span.button.ico_open { margin-right: 2px; background-position: -110px -16px; vertical-align: top; *vertical-align: middle; } .rxm-desktop .ztree li span.button.ico_close, .rxm-mobile .ztree li span.button.ico_close { margin-right: 2px; background-position: -110px 0; vertical-align: top; *vertical-align: middle; } .rxm-desktop .ztree li span.button.ico_docu, .rxm-mobile .ztree li span.button.ico_docu { margin-right: 2px; background-position: -110px -32px; vertical-align: top; *vertical-align: middle; } .rxm-desktop .ztree li span.button.edit, .rxm-mobile .ztree li span.button.edit { margin-right: 2px; background-position: -110px -48px; vertical-align: top; *vertical-align: middle; } .rxm-desktop .ztree li span.button.remove, .rxm-mobile .ztree li span.button.remove { margin-right: 2px; background-position: -110px -64px; vertical-align: top; *vertical-align: middle; } .rxm-desktop .ztree li span.button.ico_loading, .rxm-mobile .ztree li span.button.ico_loading { margin-right: 2px; background: url(img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align: top; *vertical-align: middle; } .rxm-desktop ul.tmpTargetzTree, .rxm-mobile ul.tmpTargetzTree { background-color: #FFE6B0; opacity: 0.8; filter: alpha(opacity=80); } .rxm-desktop span.tmpzTreeMove_arrow, .rxm-mobile span.tmpzTreeMove_arrow { width: 16px; height: 16px; display: inline-block; padding: 0; margin: 2px 0 0 1px; border: 0 none; position: absolute; background-color: transparent; background-repeat: no-repeat; background-attachment: scroll; background-position: -110px -80px; background-image: url("../../rxm/jquery/plugins/zTree/css/zTreeStyle/img/zTreeStandard.png"); *background-image: url("img/zTreeStandard.gif"); } .rxm-desktop ul.ztree.zTreeDragUL, .rxm-mobile ul.ztree.zTreeDragUL { margin: 0; padding: 0; position: absolute; width: auto; height: auto; overflow: hidden; background-color: #cfcfcf; border: 1px #00B83F dotted; opacity: 0.8; filter: alpha(opacity=80); } .rxm-desktop .zTreeMask, .rxm-mobile .zTreeMask { z-index: 10000; background-color: #cfcfcf; opacity: 0; filter: alpha(opacity=0); position: absolute; } .rxm-desktop .ztree, .rxm-mobile .ztree { margin: 0; /*padding:10px;*/ color: #333; } .rxm-desktop .ztree li ul.line, .rxm-mobile .ztree li ul.line { background: none; } .rxm-desktop .ztree li span, .rxm-mobile .ztree li span { vertical-align: middle; font-family: 'Times New Roman', Times, serif /* display: inline-block; font-size: 13px; font-family: Microsoft yahei,"宋体"; */; } .rxm-desktop .ztree li span.button, .rxm-mobile .ztree li span.button { vertical-align: middle; /* margin-right: 5px; display: inline-block; */ } .rxm-desktop .ztree li span.button[class*="ico_"], .rxm-mobile .ztree li span.button[class*="ico_"] { display: none; } .rxm-desktop .ztree li span.button.chk, .rxm-mobile .ztree li span.button.chk { margin: 1px 3px 0 0; } .rxm-desktop .ztree li span.button.switch, .rxm-mobile .ztree li span.button.switch { width: 20px; height: 20px; line-height: 20px; margin-right: 2px; display: inline-block; background: url("../../rxm/jquery/plugins/zTree/css/zTreeStyle/img/nodes.png") no-repeat; } .rxm-desktop .ztree li span.button.switch[class*="_open"], .rxm-mobile .ztree li span.button.switch[class*="_open"] { background-position: -21px -9px; } .rxm-desktop .ztree li span.button.switch[class*="_close"], .rxm-mobile .ztree li span.button.switch[class*="_close"] { background-position: 4px -9px; } .rxm-desktop .ztree li span.button.switch[class*="_docu"], .rxm-mobile .ztree li span.button.switch[class*="_docu"] { background-position: 4px -58px; } .rxm-desktop .ztree li a, .rxm-mobile .ztree li a { padding: 0; height: 22px!important; line-height: 22px!important; border-radius: 2px; vertical-align: middle; } .rxm-desktop .ztree li a.curSelectedNode, .rxm-mobile .ztree li a.curSelectedNode { border: none; background: #A0C4EB; } .rxm-desktop .ztree.hideNode li, .rxm-mobile .ztree.hideNode li { display: none; } .rxm-desktop .ztree.hideNode li.showNode, .rxm-mobile .ztree.hideNode li.showNode { display: block; } .rxm-desktop .rxm-edit-menubg, .rxm-mobile .rxm-edit-menubg { width: 100%; height: 100%; z-index: 100; } .rxm-desktop .rxm-edit-menubg .rxm-edit-menubg-ul, .rxm-mobile .rxm-edit-menubg .rxm-edit-menubg-ul { width: 120px; height: 160px; background-color: #f0f0f0; top: 0; bottom: 0; left: 0; right: 0; margin: auto; position: absolute; } .rxm-desktop .rxm-edit-menubg .rxm-edit-menubg-ul button, .rxm-mobile .rxm-edit-menubg .rxm-edit-menubg-ul button { text-align: center; } .rxm-desktop .rxm-dropmenu-btn, .rxm-mobile .rxm-dropmenu-btn { height: 100%; list-style: none; display: inline-block; margin-left: 0.15rem; margin-right: 0.15rem; } .rxm-desktop .rxm-dropmenu-btn > button, .rxm-mobile .rxm-dropmenu-btn > button { cursor: pointer; outline: none; background: none; color: inherit; font-size: inherit; border: none; padding: 0.15rem 0.35rem; line-height: 0.8rem; } .rxm-desktop .rxm-dropmenu-btn > button:hover, .rxm-mobile .rxm-dropmenu-btn > button:hover, .rxm-desktop .rxm-dropmenu-btn > button:focus, .rxm-mobile .rxm-dropmenu-btn > button:focus, .rxm-desktop .rxm-dropmenu-btn .rxm-active, .rxm-mobile .rxm-dropmenu-btn .rxm-active { color: #fff; background-color: #20437f; text-decoration: none; border-radius: 0.15rem; } .rxm-desktop .rxm-dropmenu-btn .rxm-caret, .rxm-mobile .rxm-dropmenu-btn .rxm-caret { cursor: pointer; display: inline-block; width: 0; height: 0; vertical-align: middle; border-top: 6px dashed; border-top: 6px solid \9; border-right: 6px solid transparent; border-left: 6px solid transparent; } .rxm-desktop .rxm-dropmenu-btn .rxm-caret:focus + .rxm-cmd-dropdown-btnbar, .rxm-mobile .rxm-dropmenu-btn .rxm-caret:focus + .rxm-cmd-dropdown-btnbar { display: block; } .rxm-desktop .rxm-dropmenu-btn:hover .rxm-cmd-dropdown-btnbar, .rxm-mobile .rxm-dropmenu-btn:hover .rxm-cmd-dropdown-btnbar { display: block; } .rxm-desktop .rxm-menu-item, .rxm-mobile .rxm-menu-item { display: block!important; text-align: center; height: 1.4rem !important; margin-left: 0!important; margin-right: 0!important; } .rxm-desktop .rxm-menu-item > button, .rxm-mobile .rxm-menu-item > button { cursor: pointer; background-color: #f0f0f0; border-color: #f0f0f0; line-height: 1.42857143; width: 100%!important; padding: 3px 10px!important; margin: 1px 0px!important; float: left!important; /* color: #000000; */ } .rxm-desktop .rxm-menu-item > button:hover, .rxm-mobile .rxm-menu-item > button:hover, .rxm-desktop .rxm-menu-item > button:focus, .rxm-mobile .rxm-menu-item > button:focus { color: #333333 !important; background-color: #d6d6d6 !important; border-color: #b0b0b0 !important; } .rxm-desktop .expression-check-form .expression-fieldset, .rxm-mobile .expression-check-form .expression-fieldset { width: 100%; display: block; margin-inline-start: 2px; margin-inline-end: 2px; padding-block-start: 0.35em; padding-inline-start: 0.75em; padding-inline-end: 0.75em; padding-block-end: 0.625em; min-inline-size: min-content; border-width: 2px; border-style: groove; border-image: initial; margin: 1.2rem 0; } .rxm-desktop .expression-check-form .delete-button, .rxm-mobile .expression-check-form .delete-button { display: inline-block; padding: 6px; margin-bottom: 0; font-size: 8px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 2px solid; border-radius: 4px; color: #333; background-color: #fff; border-color: #ccc; } .rxm-desktop .expression-check-form .expression-legend, .rxm-mobile .expression-check-form .expression-legend { display: block; padding-inline-start: 2px; padding-inline-end: 2px; border-width: initial; border-style: none; border-color: initial; border-image: initial; width: auto; font-size: 0.8rem; height: 2px; line-height: 2px; } .rxm-desktop .expression-check-form .check-option .check-option-button, .rxm-mobile .expression-check-form .check-option .check-option-button { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 2px solid; border-radius: 4px; color: #333; background-color: #fff; border-color: #ccc; margin: 0.4rem 0.8rem; } .rxm-desktop .expression-check-form .check-num .check-num-button, .rxm-mobile .expression-check-form .check-num .check-num-button { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 2px solid; border-radius: 4px; color: #333; background-color: #fff; border-color: #ccc; margin: 0.4rem 0.15rem; } .rxm-desktop .rxm-watermark, .rxm-mobile .rxm-watermark { width: 100%; height: inherit; overflow: hidden; margin: 0px; position: absolute!important; z-index: 100; top: 0px; left: 0px; background-color: white; -moz-opacity: 0.3; opacity: 0.3; color: White; pointer-events: none; } .rxm-desktop .rxm-watermark .rxm-watermark-line, .rxm-mobile .rxm-watermark .rxm-watermark-line { margin-top: 80px; opacity: 0.5; } .rxm-desktop .rxm-watermark .rxm-watermark-line .rxm-watermark-l, .rxm-mobile .rxm-watermark .rxm-watermark-line .rxm-watermark-l { font-size: 20px; color: black; transform: rotate(-9deg); -ms-transform: rotate(-9deg); -moz-transform: rotate(-9deg); -webkit-transform: rotate(-9deg); -o-transform: rotate(-9deg); display: block; text-align: left; margin-left: 10px; } .rxm-desktop .rxm-watermark .rxm-watermark-line .rxm-watermark-r, .rxm-mobile .rxm-watermark .rxm-watermark-line .rxm-watermark-r { font-size: 20px; color: black; transform: rotate(-9deg); -ms-transform: rotate(-9deg); -moz-transform: rotate(-9deg); -webkit-transform: rotate(-9deg); -o-transform: rotate(-9deg); display: block; text-align: right; margin-right: 10px; margin-top: 10px; }
27.365027
211
0.68279
586a63035358ef26f4611d0f05258980df4830a0
10,922
css
CSS
files/formalize/0.1/css/demo.css
isaackwan/jsdelivr
8fd58a1cad97aacc58f9723b81f06ff231ceed60
[ "MIT" ]
144
2015-01-05T22:24:16.000Z
2022-03-19T06:23:16.000Z
files/formalize/0.1/css/demo.css
isaackwan/jsdelivr
8fd58a1cad97aacc58f9723b81f06ff231ceed60
[ "MIT" ]
4
2015-02-05T23:09:24.000Z
2018-06-06T15:47:34.000Z
files/formalize/0.1/css/demo.css
isaackwan/jsdelivr
8fd58a1cad97aacc58f9723b81f06ff231ceed60
[ "MIT" ]
35
2015-02-06T00:18:47.000Z
2022-02-17T07:09:59.000Z
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, meter, nav, object, ol, output, p, pre, progress, q, rp, rt, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video, xmp { border: 0; margin: 0; padding: 0; font-size: 100%; } html, body { height: 100%; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } b, strong { font-weight: bold; } img { color: transparent; font-size: 0; vertical-align: middle; -ms-interpolation-mode: bicubic; } ul, ol { list-style: none; } li { display: list-item; } table { border-collapse: collapse; border-spacing: 0; } th, td, caption { font-weight: normal; vertical-align: top; text-align: left; } q { quotes: none; } q:before, q:after { content: ""; content: none; } sub, sup, small { font-size: 75%; } sub, sup { line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } svg { overflow: hidden; } body { font: 13px/1.5 "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif; } pre, code { font-family: "DejaVu Sans Mono", Monaco, Consolas, monospace; } hr { border: 0 #cccccc solid; border-top-width: 1px; clear: both; height: 0; } h1 { font-size: 25px; } h2 { font-size: 23px; } h3 { font-size: 21px; } h4 { font-size: 19px; } h5 { font-size: 17px; } h6 { font-size: 15px; } ol { list-style: decimal; } ul { list-style: disc; } li { margin-left: 30px; } p, dl, hr, h1, h2, h3, h4, h5, h6, ol, ul, pre, table, address, fieldset, figure { margin-bottom: 20px; } .input_tiny { width: 50px; } .input_small { width: 100px; } .input_medium { width: 150px; } .input_large { width: 200px; } .input_xlarge { width: 250px; } .input_xxlarge { width: 300px; } .input_full { width: 100%; } .input_full_wrap { display: block; padding-right: 8px; } input[type="search"]::-webkit-search-decoration { display: none; } input:invalid, button:invalid, a.button:invalid, select:invalid, textarea:invalid { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } input:focus, button:focus, a.button:focus, select:focus, textarea:focus { -webkit-box-shadow: #0066ff 0 0 5px 0; -moz-box-shadow: #0066ff 0 0 5px 0; box-shadow: #0066ff 0 0 5px 0; z-index: 1; } input[type="file"]:focus, input[type="file"]:active, input[type="radio"]:focus, input[type="radio"]:active, input[type="checkbox"]:focus, input[type="checkbox"]:active { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } button, a.button, input[type="reset"], input[type="submit"], input[type="button"] { -webkit-appearance: none; -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; background: #dddddd url('../images/button.png?1298351022') repeat-x; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #dddddd)); background-image: -webkit-linear-gradient(#ffffff, #dddddd); background-image: -moz-linear-gradient(#ffffff, #dddddd); background-image: -o-linear-gradient(#ffffff, #dddddd); background-image: -ms-linear-gradient(#ffffff, #dddddd); background-image: linear-gradient(#ffffff, #dddddd); border: 1px solid; border-color: #dddddd #bbbbbb #999999; cursor: pointer; color: #333333; display: inline-block; font: bold 12px/1.3 "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif; outline: 0; overflow: visible; margin: 0; padding: 3px 10px; text-shadow: white 0 1px 1px; text-decoration: none; vertical-align: top; width: auto; *padding-top: 2px; *padding-bottom: 0; } button:hover, a.button:hover, input[type="reset"]:hover, input[type="submit"]:hover, input[type="button"]:hover { background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #eeeeee), color-stop(100%, #cccccc)); background-image: -webkit-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); background-image: -moz-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); background-image: -o-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); background-image: -ms-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); background-image: linear-gradient(#ffffff, #eeeeee 1px, #cccccc); } button:active, a.button:active, input[type="reset"]:active, input[type="submit"]:active, input[type="button"]:active { background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #dddddd), color-stop(100%, #eeeeee)); background-image: -webkit-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); background-image: -moz-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); background-image: -o-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); background-image: -ms-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); background-image: linear-gradient(#ffffff, #dddddd 1px, #eeeeee); -webkit-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; -moz-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; border-color: #999999 #bbbbbb #dddddd; } button::-moz-focus-inner, a.button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner { border: 0; padding: 0; } a.button { *padding-bottom: 3px; } button { *padding-top: 1px; *padding-bottom: 1px; } textarea, select, input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; -o-border-radius: 0; border-radius: 0; -webkit-appearance: none; background-color: white; border: 1px solid; border-color: #848484 #c1c1c1 #e1e1e1; color: black; outline: 0; margin: 0; padding: 2px 3px; text-align: left; font-size: 13px; font-family: Arial, "Liberation Sans", FreeSans, sans-serif; height: 1.8em; vertical-align: top; *padding-top: 2px; *padding-bottom: 1px; *height: auto; } textarea[disabled], select[disabled], input[type="date"][disabled], input[type="datetime"][disabled], input[type="datetime-local"][disabled], input[type="email"][disabled], input[type="month"][disabled], input[type="number"][disabled], input[type="password"][disabled], input[type="search"][disabled], input[type="tel"][disabled], input[type="text"][disabled], input[type="time"][disabled], input[type="url"][disabled], input[type="week"][disabled] { background-color: #eeeeee; } button[disabled], input[disabled], select[disabled], select[disabled] option, select[disabled] optgroup, textarea[disabled], a.button_disabled { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -moz-user-select: -moz-none; -webkit-user-select: none; -khtml-user-select: none; user-select: none; color: #888888; cursor: default; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #888888; } input:-moz-placeholder, textarea:-moz-placeholder { color: #888888; } input.placeholder_text, textarea.placeholder_text { color: #888888; } textarea, select[size], select[multiple] { height: auto; } select[size="0"], select[size="1"] { height: 1.8em; *height: auto; } @media (-webkit-min-device-pixel-ratio: 0) { select[size], select[multiple], select[multiple][size] { background-image: none; padding-right: 3px; } select, select[size="0"], select[size="1"] { background-image: url(data:image/png;base64,R0lGODlhDQAEAIAAAAAAAP8A/yH5BAEHAAEALAAAAAANAAQAAAILhA+hG5jMDpxvhgIAOw==); background-repeat: no-repeat; background-position: right center; padding-right: 20px; } ::-webkit-validation-bubble-message { -webkit-box-shadow: none; box-shadow: none; background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666666), color-stop(1, black)); border: 1px solid; border-color: #747474 #5e5e5e #4f4f4f; color: white; font: 13px/17px "Lucida Grande", Arial, "Liberation Sans", FreeSans, sans-serif; overflow: hidden; padding: 15px 15px 17px; text-shadow: black 0 0 1px; height: 16px; } ::-webkit-validation-bubble-arrow, ::-webkit-validation-bubble-top-outer-arrow, ::-webkit-validation-bubble-top-inner-arrow { -webkit-box-shadow: none; box-shadow: none; background: #666666; border: 0; } } textarea { min-height: 40px; overflow: auto; resize: vertical; width: 100%; } optgroup { color: black; font-style: normal; font-weight: normal; font-family: Arial, "Liberation Sans", FreeSans, sans-serif; } optgroup::-moz-focus-inner { border: 0; padding: 0; } .ie6_button, * html button, * html a.button { background: #dddddd url('../images/button.png?1298351022') repeat-x; border: 1px solid; border-color: #dddddd #bbbbbb #999999; cursor: pointer; color: #333333; font: bold 12px/1.2 Arial, sans-serif; padding: 2px 10px 0px; text-decoration: none; overflow: visible; vertical-align: top; width: auto; } * html a.button { position: relative; top: 3px; padding-bottom: 2px; } * html button { padding-top: 1px; padding-bottom: 1px; } .ie6_input, * html textarea, * html select { background: white; border: 1px solid; border-color: #848484 #c1c1c1 #e1e1e1; color: black; padding: 2px 3px 1px; font-size: 13px; font-family: Arial, sans-serif; vertical-align: top; } * html select { margin-top: 1px; } .placeholder_text, .ie6_input_disabled, .ie6_button_disabled { color: #888888; } .ie6_input_disabled { background: #eeeeee; } body { background: white; color: black; } #wrapper { margin: 0 auto; padding: 20px; width: 800px; } label.error { background: #ffffcc; color: #cc0000; font-style: italic; } input.error, select.error, textarea.error { background-color: #ffeeee; } .horiz { margin-top: -20px; margin-left: -20px; } .horiz td { padding: 20px 0 0 20px; }
16.674809
141
0.671947
6b326e689ba4b994e89e491ad24560cd2ed37252
4,494
js
JavaScript
src/operator/binary-opr/radical.js
Inzaghi2012/formula
7c5930df0223f149ce6a374bd6dd1522900f37b9
[ "MIT" ]
1
2020-09-22T17:09:03.000Z
2020-09-22T17:09:03.000Z
src/operator/binary-opr/radical.js
Inzaghi2012/formula
7c5930df0223f149ce6a374bd6dd1522900f37b9
[ "MIT" ]
null
null
null
src/operator/binary-opr/radical.js
Inzaghi2012/formula
7c5930df0223f149ce6a374bd6dd1522900f37b9
[ "MIT" ]
null
null
null
/** * 开方操作符 */ define( function ( require, exports, modules ) { var kity = require( "kity" ), // 符号图形属性 // 线条宽度 SHAPE_DATA_WIDTH = 2, // 计算公式 radians = 2 * Math.PI / 360, sin10 = Math.sin( 10 * radians ), cos10 = Math.cos( 10 * radians ), sin20 = Math.sin( 20 * radians ), cos20 = Math.cos( 20 * radians ), tan20 = Math.tan( 20 * radians ); return kity.createClass( 'RadicalOperator', { base: require( "operator/binary" ), constructor: function () { this.callBase( "Radical" ); this.clearTransform(); }, applyOperand: function ( radicand, exponent ) { generateOperator.call( this, radicand, exponent ); } } ); // 根据给定的操作数生成操作符的pathData // radicand 表示被开方数 // exponent 表示指数 function generateOperator ( radicand, exponent ) { var decoration = generateDecoration(), vLine = generateVLine( radicand ), hLine = generateHLine( radicand ); this.addOperatorShape( decoration ); this.addOperatorShape( vLine ); this.addOperatorShape( hLine ); adjustmentPosition( mergeShape( decoration, vLine, hLine ), this.operatorShape, radicand, exponent ); adjustmentBox.call( this ); } // 生成根号中的左边装饰部分 function generateDecoration () { var shape = new kity.Path(), // 命名为a以便于精简表达式 a = SHAPE_DATA_WIDTH, drawer = shape.getDrawer(); // 根号尾部右上角开始 drawer.moveTo( cos10 * 7 * a, 0 ); drawer.lineTo( 0, sin10 * 7 * a ); drawer.lineBy( sin20 * a * 2, cos20 * a * 2 ); drawer.lineBy( cos10 * a * 3, -sin10 * a * 3 ); drawer.lineBy( sin20 * a * 14, cos20 * a * 14 ); drawer.lineBy( a * 2, 0 ); drawer.lineBy( 0, -a *2 / sin20 ); drawer.close(); return shape.fill( "black" ); } // 根据操作数生成根号的竖直线部分 function generateVLine ( operand ) { var shape = new kity.Path(), // 命名为a以便于精简表达式 a = SHAPE_DATA_WIDTH, // 表达式高度 h = operand.getHeight(), drawer = shape.getDrawer(); drawer.moveTo( tan20 * h, 0 ); drawer.lineTo( 0, h ); drawer.lineBy( sin20 * a * 3, cos20 * a * 3 ); drawer.lineBy( tan20 * h + sin20 * a * 3, -( h + 3 * a * cos20 ) ); drawer.close(); return shape.fill( "black" ); } // 根据操作数生成根号的水平线部分 function generateHLine ( operand ) { // 表达式宽度 var w = operand.getWidth() + 2 * SHAPE_DATA_WIDTH; return new kity.Rect( 0, 0, w, 2 * SHAPE_DATA_WIDTH ).fill( "black" ); } // 合并根号的各个部分, 并返回根号的关键点位置数据 function mergeShape ( decoration, vLine, hLine ) { var decoBox = decoration.getRenderBox(), vLineBox = vLine.getRenderBox(); vLine.translate( decoBox.width - SHAPE_DATA_WIDTH , 0 ); decoration.translate( 0, vLineBox.height - decoBox.height ); vLineBox = vLine.getRenderBox(); hLine.translate( vLineBox.x + vLineBox.width - SHAPE_DATA_WIDTH / cos20, 0 ); // 返回关键点数据 return { x: vLineBox.x + vLineBox.width - SHAPE_DATA_WIDTH / cos20, y: 0 }; } // 调整整个根号表达式的各个部分: 位置、操作符、被开方数、指数 function adjustmentPosition ( position, operator, radicand, exponent ) { var radicandBox = radicand.getRenderBox(), diff = 0, width = 0, exponentBox = null; // 调整被开方数和根号的相对位置 radicand.translate( position.x + SHAPE_DATA_WIDTH - radicandBox.x + 5, position.y + 2 * SHAPE_DATA_WIDTH + 5 ); operator.translate( 5, 5 ); if ( !exponent ) { return; } exponent.setAnchor( 0, 0 ); exponent.scale( 0.5 ); exponentBox = exponent.getRenderBox(); // width代表适合放置指数的最小宽度 width = exponentBox.width + exponentBox.height * tan20; // 指数宽度超过根号左边部分的宽度, 则移动根号和被开方数 if ( width > position.x ) { diff = width - position.x; operator.translate( diff + 5, 0 ); radicand.translate( diff + 5, 0 ); // 否则, 移动指数 } else { exponent.translate( position.x - width + 5, 0 ); } } // 调整整个边框的大小 function adjustmentBox () { this.setBoxSize( this.operatorShape.getWidth(), this.operatorShape.getHeight() + 10 ); } } );
24.966667
119
0.542501
8d6a0cff665a07c0d36644ed562c3e0cd10e47d0
1,433
c
C
03_Data Structure/Algorithms/List/mergeList.c
Robert-Stackflow/HUST-Courses
300752552e7af035b0e5c7663953850c81871242
[ "MIT" ]
4
2021-11-01T09:27:32.000Z
2022-03-07T14:24:10.000Z
03_Data Structure/Algorithms/List/mergeList.c
Robert-Stackflow/HUST-Courses
300752552e7af035b0e5c7663953850c81871242
[ "MIT" ]
null
null
null
03_Data Structure/Algorithms/List/mergeList.c
Robert-Stackflow/HUST-Courses
300752552e7af035b0e5c7663953850c81871242
[ "MIT" ]
null
null
null
#include <stdio.h> #include "list.h" llink merge_list(llink list1,llink list2){ llink cur1=list1,cur2=list2; llink selected,newlist=NULL,newlist_cur=NULL; while(list1 && list2){ if(list1->vertex<list2->vertex){ selected=list1; list1=list1->next; }else{ selected=list2; list2=list2->next; } if(!newlist){ newlist=selected; newlist_cur=newlist; }else{ newlist_cur->next=selected; newlist_cur=newlist_cur->next; } } if(list1){ if(!newlist_cur) newlist=list1; else newlist_cur->next=list1; } if(list2){ if(!newlist_cur) newlist=list2; else newlist_cur->next=list2; } return newlist; } llink merge_list_recursive(llink list1,llink list2){ if(list1 && list2){ if(list1->vertex<list2->vertex){ list1->next=merge_list_recursive(list1->next,list2); return list1; }else{ list2->next=merge_list_recursive(list1,list2->next); return list2; } } else if(list1) return list1; else return list2; } int main(int argc, char const *argv[]) { int data1[]={1,3,3,8,9,10}; int size1=sizeof(data1)/sizeof(int); int data2[]={2,3,6,7,8,9,12,13}; int size2=sizeof(data2)/sizeof(int); llink list1=NULL,list2=NULL; int i; for(i=0;i<size1;i++) insert_list(&list1,data1[i]); display_list(list1); for(i=0;i<size2;i++) insert_list(&list2,data2[i]); display_list(list2); llink list3=merge_list_recursive(list1,list2); display_list(list3); return 0; }
19.630137
55
0.682484
143f557a91cd09343ef43c2496d8cfe1c61e93c4
376
ts
TypeScript
src/lib/classes/integration-node/interfaces/integration-node-execution-result.interfaces.ts
ebot7/javascript-sdk
0394c1855cc06176253fdaba8d3eb533a813fc33
[ "MIT" ]
null
null
null
src/lib/classes/integration-node/interfaces/integration-node-execution-result.interfaces.ts
ebot7/javascript-sdk
0394c1855cc06176253fdaba8d3eb533a813fc33
[ "MIT" ]
54
2021-06-22T15:28:37.000Z
2022-03-28T08:01:25.000Z
src/lib/classes/integration-node/interfaces/integration-node-execution-result.interfaces.ts
ebot7/javascript-sdk
0394c1855cc06176253fdaba8d3eb533a813fc33
[ "MIT" ]
null
null
null
interface IntegrationNodeExecutionResultError { status: string; message: string; } interface IntegrationNodeExecutionResultResult { resultType: string; data: { [parameterId: string]: unknown }; } export interface IntegrationNodeExecutionResult { isSuccess: boolean; result?: IntegrationNodeExecutionResultResult; error?: IntegrationNodeExecutionResultError; }
23.5
49
0.800532
247c84888bddce76ed1cf2b99a16759da5a40196
6,504
lua
Lua
apisix/plugins/rocketmq-logger.lua
arabot777/apisix
9a1831d656b527fcb07ce5e556da0ccc502300bc
[ "Apache-2.0" ]
1
2021-12-16T10:59:19.000Z
2021-12-16T10:59:19.000Z
apisix/plugins/rocketmq-logger.lua
arabot777/apisix
9a1831d656b527fcb07ce5e556da0ccc502300bc
[ "Apache-2.0" ]
24
2021-05-12T06:10:45.000Z
2022-03-30T12:11:18.000Z
apisix/plugins/rocketmq-logger.lua
arabot777/apisix
9a1831d656b527fcb07ce5e556da0ccc502300bc
[ "Apache-2.0" ]
null
null
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- local core = require("apisix.core") local log_util = require("apisix.utils.log-util") local producer = require ("resty.rocketmq.producer") local acl_rpchook = require("resty.rocketmq.acl_rpchook") local bp_manager_mod = require("apisix.utils.batch-processor-manager") local plugin = require("apisix.plugin") local type = type local plugin_name = "rocketmq-logger" local batch_processor_manager = bp_manager_mod.new("rocketmq logger") local ngx = ngx local lrucache = core.lrucache.new({ type = "plugin", }) local schema = { type = "object", properties = { meta_format = { type = "string", default = "default", enum = {"default", "origin"}, }, nameserver_list = { type = "array", minItems = 1, items = { type = "string" } }, topic = {type = "string"}, key = {type = "string"}, tag = {type = "string"}, timeout = {type = "integer", minimum = 1, default = 3}, use_tls = {type = "boolean", default = false}, access_key = {type = "string", default = ""}, secret_key = {type = "string", default = ""}, include_req_body = {type = "boolean", default = false}, include_req_body_expr = { type = "array", minItems = 1, items = { type = "array", items = { type = "string" } } }, include_resp_body = {type = "boolean", default = false}, include_resp_body_expr = { type = "array", minItems = 1, items = { type = "array", items = { type = "string" } } }, }, required = {"nameserver_list", "topic"} } local metadata_schema = { type = "object", properties = { log_format = log_util.metadata_schema_log_format, }, } local _M = { version = 0.1, priority = 402, name = plugin_name, schema = batch_processor_manager:wrap_schema(schema), metadata_schema = metadata_schema, } function _M.check_schema(conf, schema_type) if schema_type == core.schema.TYPE_METADATA then return core.schema.check(metadata_schema, conf) end local ok, err = core.schema.check(schema, conf) if not ok then return nil, err end return log_util.check_log_schema(conf) end local function create_producer(nameserver_list, producer_config) core.log.info("create new rocketmq producer instance") local prod = producer.new(nameserver_list, "apisixLogProducer") if producer_config.use_tls then prod:setUseTLS(true) end if producer_config.access_key ~= '' then local aclHook = acl_rpchook.new(producer_config.access_key, producer_config.secret_key) prod:addRPCHook(aclHook) end prod:setTimeout(producer_config.timeout) return prod end local function send_rocketmq_data(conf, log_message, prod) local result, err = prod:send(conf.topic, log_message, conf.tag, conf.key) if not result then return false, "failed to send data to rocketmq topic: " .. err .. ", nameserver_list: " .. core.json.encode(conf.nameserver_list) end core.log.info("queue: ", result.sendResult.messageQueue.queueId) return true end function _M.body_filter(conf, ctx) log_util.collect_body(conf, ctx) end function _M.log(conf, ctx) local entry if conf.meta_format == "origin" then entry = log_util.get_req_original(ctx, conf) else local metadata = plugin.plugin_metadata(plugin_name) core.log.info("metadata: ", core.json.delay_encode(metadata)) if metadata and metadata.value.log_format and core.table.nkeys(metadata.value.log_format) > 0 then entry = log_util.get_custom_format_log(ctx, metadata.value.log_format) core.log.info("custom log format entry: ", core.json.delay_encode(entry)) else entry = log_util.get_full_log(ngx, conf) core.log.info("full log entry: ", core.json.delay_encode(entry)) end end if batch_processor_manager:add_entry(conf, entry) then return end -- reuse producer via lrucache to avoid unbalanced partitions of messages in rocketmq local producer_config = { timeout = conf.timeout * 1000, use_tls = conf.use_tls, access_key = conf.access_key, secret_key = conf.secret_key, } local prod, err = core.lrucache.plugin_ctx(lrucache, ctx, nil, create_producer, conf.nameserver_list, producer_config) if err then return nil, "failed to create the rocketmq producer: " .. err end core.log.info("rocketmq nameserver_list[1] port ", prod.client.nameservers[1].port) -- Generate a function to be executed by the batch processor local func = function(entries, batch_max_size) local data, err if batch_max_size == 1 then data = entries[1] if type(data) ~= "string" then data, err = core.json.encode(data) -- encode as single {} end else data, err = core.json.encode(entries) -- encode as array [{}] end if not data then return false, 'error occurred while encoding the data: ' .. err end core.log.info("send data to rocketmq: ", data) return send_rocketmq_data(conf, data, prod) end batch_processor_manager:add_entry_to_new_processor(conf, entry, ctx, func) end return _M
31.726829
95
0.623462
3ad5db40eaf72d3c164c7cda1cb6bb44ecb8da4c
634
go
Go
day3/recover/main.go
linnenn/go_deepstudy
c60d61519ce37d596edc150a3bcaabd78969d008
[ "MIT" ]
null
null
null
day3/recover/main.go
linnenn/go_deepstudy
c60d61519ce37d596edc150a3bcaabd78969d008
[ "MIT" ]
null
null
null
day3/recover/main.go
linnenn/go_deepstudy
c60d61519ce37d596edc150a3bcaabd78969d008
[ "MIT" ]
null
null
null
package main import ( "fmt" "math/rand" ) type divider struct { first int second int } func main() { var divd = make([]*divider,10,30) for i := 0;i<10;i++ { divd[i] = &divider{ first: rand.Intn(10)+20, second: 0, } } for _,record := range divd{ if result,err := record.f1(); err != nil { fmt.Println(result,err) } } } func (d *divider) f1() (a int, errs error) { //if d.second == 0 { // return 0, fmt.Errorf("被除数second=%v不能作为除数",d.second) //} defer func() { if err := recover();err != nil { fmt.Println(err) a = -1 //errs = errors.New("被除数不能作为除数") } }() return d.first / d.second,nil }
16.25641
55
0.570978
0d87fbdb6994b4b769d39135499e693165594022
972
rb
Ruby
lib/util.rb
ahmedtorgoman/vultest
eafdecaf04fb78859e90d508eb009e3fb3ab8ac8
[ "Apache-2.0" ]
6
2019-11-01T16:12:31.000Z
2021-03-09T06:19:15.000Z
lib/util.rb
ahmedtorgoman/vultest
eafdecaf04fb78859e90d508eb009e3fb3ab8ac8
[ "Apache-2.0" ]
37
2019-06-18T15:54:21.000Z
2020-10-21T08:03:07.000Z
lib/util.rb
uoanlab/vultest
ccc97cf5035fa5f4e27615fd446b72c39ab732b4
[ "Apache-2.0" ]
1
2020-10-16T11:16:03.000Z
2020-10-16T11:16:03.000Z
# Copyright [2020] [University of Aizu] # # 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. module Util class << self def create_dir(dir) path = '' path_elm = dir.split('/') path_elm.each_with_index do |elm, idx| path.concat('/') unless idx.zero? if elm[0] == '$' elm.slice!(0) ENV.key?(elm) ? path.concat(ENV[elm]) : path.concat(elm) else path.concat(elm) end end path end end end
29.454545
74
0.661523
f774fdf4d60e9a15f4bb6022fb7931f8780d6816
150
rb
Ruby
spec/factories/transactions.rb
deepaksalve/split-wisely
ea2cee91c4074cc14ea851f20c1ebfa010a6cf34
[ "MIT" ]
null
null
null
spec/factories/transactions.rb
deepaksalve/split-wisely
ea2cee91c4074cc14ea851f20c1ebfa010a6cf34
[ "MIT" ]
null
null
null
spec/factories/transactions.rb
deepaksalve/split-wisely
ea2cee91c4074cc14ea851f20c1ebfa010a6cf34
[ "MIT" ]
null
null
null
FactoryGirl.define do factory :transaction do group_id 1 user_id 1 date "2017-06-20" amount "9.99" amount_paid "9.99" end end
15
25
0.646667
daacf3a1d07c396b7071b73eed46cd285422f428
7,440
php
PHP
resources/views/Admin/payment.blade.php
HarsH-OhM/React-Laravel-E-ticket-Booking-Admin-portal-1.1-part-2-
75d8c44817753923ce2c69676797f78fc363784f
[ "MIT" ]
null
null
null
resources/views/Admin/payment.blade.php
HarsH-OhM/React-Laravel-E-ticket-Booking-Admin-portal-1.1-part-2-
75d8c44817753923ce2c69676797f78fc363784f
[ "MIT" ]
null
null
null
resources/views/Admin/payment.blade.php
HarsH-OhM/React-Laravel-E-ticket-Booking-Admin-portal-1.1-part-2-
75d8c44817753923ce2c69676797f78fc363784f
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0"> <link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico"> <title>E-Pass Admin Portal</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="assets/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" type="text/css" href="assets/css/style.css"> </head> <body> <div class="main-wrapper"> <div class="header"> <div class="header-left"> <a href="/index" class="logo"> <img src="assets/img/bookinglogo.png" width="35" height="35" alt=""> <span>E-Pass Admin Portal</span> </a> </div> <a id="toggle_btn" href="javascript:void(0);"><i class="fa fa-bars"></i></a> <a id="mobile_btn" class="mobile_btn float-left" href="#sidebar"><i class="fa fa-bars"></i></a> <ul class="nav user-menu float-right"> <li class="nav-item dropdown has-arrow"> <a href="#" class="dropdown-toggle nav-link user-link" data-toggle="dropdown"> <span class="user-img"> <img class="rounded-circle" src="assets/img/user.jpg" width="24" alt="Admin"> <span class="status online"></span> </span> <span>Admin</span> </a> <div class="dropdown-menu"> <!-- <a class="dropdown-item" href="/Doctorprofile">My Profile</a> <a class="dropdown-item" href="/editprofile">Edit Profile</a> --> <!-- <a class="dropdown-item" href="/login">Logout</a> --> @if(Auth::user()) <a class="dropdown-item" href="{{ url('logout')}}">Logout</a> <form id="logout-form" action="{{ url('logout') }}" method="POST" style="display: none;"> {{ csrf_field() }} </form> @endif </div> </li> </ul> </div> <div class="sidebar" id="sidebar"> <div class="sidebar-inner slimscroll"> <div id="sidebar-menu" class="sidebar-menu"> <ul> <li class="menu-title">Main Navigation</li> <li > <a href="/index"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a> </li> <li > <a href="/showdetails"><i class="fa fa-ticket"></i> <span>Booking</span></a> </li> <li class="active"> <a href="/payment"><i class="fa fa-user"></i> <span>Payment</span></a> </li> <!-- <li class="submenu"> <a href="#"><i class="fa fa-calendar-check-o"></i><span>Appointments</span> <span class="menu-arrow"></span></a> <ul style="display: none;"> <li><a href="/addappointment">Add Appointments</a></li> <li><a href="/updateappointment">Update Appointments</a></li> </ul> </li> --> </ul> </div> </div> </div> <div class="page-wrapper"> <div class="content"> <div class="row"> <div class="col-sm-6"> <h4 class="page-title">Payments</h4> </div> <div class="col-sm-6 text-right m-b-30"> <a href="/addpayment" class="btn btn-secondary btn-rounded"><i class="fa fa-plus"></i> Add Payment</a> </div> </div> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-striped custom-table datatable mb-0"> <thead> <tr> <th>Invoice ID</th> <th>Ticket ID</th> <th>Name</th> <th>Date Of Payment</th> <th>Paid Amount</th> </tr> </thead> <tbody> @foreach($users as $user) <tr> <td><a href="#">{{$user->Invoice_Id}}</a></td> <td><a>{{$user->TicketID}}</a></td> <td> <h2><a href="#">{{$user->Traveler_name}} </a></h2> </td> <td>{{$user->Paydate}}</td> <td>{{$user->Grand_total}}</td> </tr> @endforeach <!-- <tr> <td><a href="invoice-detail.html">#INV-0002</a></td> <td> <h2><a href="#">Denise Stevens</a></h2> </td> <td>8 Aug 2017</td> <td>$500</td> </tr> <tr> <td><a href="invoice-detail.html">#INV-0003</a></td> <td> <h2><a href="#">Dennis Salazar</a></h2> </td> <td>8 Aug 2017</td> <td>$500</td> </tr> --> </tbody> </table> </div> </div> </div> </div> </div> </div> <div class="sidebar-overlay" data-reff=""></div> <script src="assets/js/jquery-3.2.1.min.js"></script> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <script src="assets/js/select2.min.js"></script> <script src="assets/js/moment.min.js"></script> <script src="assets/js/jquery.dataTables.min.js"></script> <script src="assets/js/dataTables.bootstrap4.min.js"></script> <script src="assets/js/app.js"></script> </body> </html>
49.271523
140
0.380645
4ec76020918b18c57b42787ae0853c0828afe415
906
sh
Shell
recipes/ffmpeg/recipe.sh
snokaru/cookbook
73774f6ec68464a544a481012a4b3bcc31e2e47e
[ "MIT" ]
38
2016-10-31T17:20:02.000Z
2021-08-10T10:49:02.000Z
recipes/ffmpeg/recipe.sh
snokaru/cookbook
73774f6ec68464a544a481012a4b3bcc31e2e47e
[ "MIT" ]
89
2017-01-15T13:12:15.000Z
2021-09-05T19:54:22.000Z
recipes/ffmpeg/recipe.sh
snokaru/cookbook
73774f6ec68464a544a481012a4b3bcc31e2e47e
[ "MIT" ]
35
2017-01-13T16:57:08.000Z
2022-03-16T18:12:53.000Z
VERSION=4.0 GIT=https://github.com/FFmpeg/FFmpeg BRANCH=release/$VERSION BUILD_DEPENDS=(zlib) function recipe_version { echo "$VERSION" skip=1 } function recipe_update { echo "skipping update" skip=1 } function recipe_build { sysroot="$PWD/../sysroot" export CPPFLAGS="-I$sysroot/include" export LDFLAGS="-L$sysroot/lib -static" ./configure \ --enable-cross-compile \ --target-os=redox \ --arch=${ARCH} \ --cross_prefix=${HOST}- \ --prefix=/ \ --disable-network \ --enable-zlib \ --enable-encoder=png \ --enable-decoder=png "$REDOX_MAKE" -j"$($NPROC)" skip=1 } function recipe_test { echo "skipping test" skip=1 } function recipe_clean { "$REDOX_MAKE" clean skip=1 } function recipe_stage { dest="$(realpath $1)" "$REDOX_MAKE" DESTDIR="$dest" install skip=1 }
18.489796
43
0.602649
532febe3f2d5ff9a35c662a0251f2dcb6ad34f48
3,935
sql
SQL
restoran.sql
joejostill/simodel
b4ae1e38f941214c527983e2189e9a74502d9fe4
[ "MIT" ]
null
null
null
restoran.sql
joejostill/simodel
b4ae1e38f941214c527983e2189e9a74502d9fe4
[ "MIT" ]
null
null
null
restoran.sql
joejostill/simodel
b4ae1e38f941214c527983e2189e9a74502d9fe4
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2021 at 06:42 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `restoran` -- -- -------------------------------------------------------- -- -- Table structure for table `detail_pemesanan` -- CREATE TABLE `detail_pemesanan` ( `id_pemesanan` int(11) NOT NULL, `id_menu` int(11) NOT NULL, `jumlah` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `menu` -- CREATE TABLE `menu` ( `id_menu` int(11) NOT NULL, `jenis` varchar(50) NOT NULL, `nama` varchar(100) NOT NULL, `harga` int(10) NOT NULL, `foto` varchar(100) NOT NULL, `stok` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `pemesanan` -- CREATE TABLE `pemesanan` ( `id_pemesanan` int(11) NOT NULL, `id_user` int(11) NOT NULL, `tanggal` date NOT NULL, `total_harga` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `penjualan` -- CREATE TABLE `penjualan` ( `id_menu` int(11) NOT NULL, `jumlah_penjualan` int(11) NOT NULL, `tanggal` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `username` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `nama` varchar(50) NOT NULL, `role` varchar(50) NOT NULL, `id_user` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indexes for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` ADD KEY `id_pemesanan` (`id_pemesanan`), ADD KEY `id_menu` (`id_menu`); -- -- Indexes for table `menu` -- ALTER TABLE `menu` ADD PRIMARY KEY (`id_menu`); -- -- Indexes for table `pemesanan` -- ALTER TABLE `pemesanan` ADD PRIMARY KEY (`id_pemesanan`), ADD KEY `id_user` (`id_user`); -- -- Indexes for table `penjualan` -- ALTER TABLE `penjualan` ADD KEY `id_menu` (`id_menu`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`,`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `menu` -- ALTER TABLE `menu` MODIFY `id_menu` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pemesanan` -- ALTER TABLE `pemesanan` MODIFY `id_pemesanan` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `detail_pemesanan` -- ALTER TABLE `detail_pemesanan` ADD CONSTRAINT `detail_pemesanan_ibfk_1` FOREIGN KEY (`id_pemesanan`) REFERENCES `pemesanan` (`id_pemesanan`), ADD CONSTRAINT `detail_pemesanan_ibfk_2` FOREIGN KEY (`id_menu`) REFERENCES `menu` (`id_menu`); -- -- Constraints for table `pemesanan` -- ALTER TABLE `pemesanan` ADD CONSTRAINT `pemesanan_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`); -- -- Constraints for table `penjualan` -- ALTER TABLE `penjualan` ADD CONSTRAINT `penjualan_ibfk_1` FOREIGN KEY (`id_menu`) REFERENCES `menu` (`id_menu`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
22.485714
112
0.647522
ee75a95db8ed33a95cba78d520b07d0b60f33ff3
685
go
Go
conoha/account_order_items.go
is2ei/conoha-api-go-client
40c4b26bcecb5b65c97dd6987e545611a05b1db5
[ "MIT" ]
2
2020-01-24T01:54:08.000Z
2020-04-25T09:49:59.000Z
conoha/account_order_items.go
is2ei/conoha-api-go-client
40c4b26bcecb5b65c97dd6987e545611a05b1db5
[ "MIT" ]
null
null
null
conoha/account_order_items.go
is2ei/conoha-api-go-client
40c4b26bcecb5b65c97dd6987e545611a05b1db5
[ "MIT" ]
1
2021-02-03T20:38:03.000Z
2021-02-03T20:38:03.000Z
package conoha import ( "context" "encoding/json" "fmt" "net/http" ) type getAccountOrderItemsResponseParam struct { OrderItems []*OrderItem `json:"order_items"` } // OrderItems fetches the orders list. // // ConoHa API docs: https://www.conoha.jp/docs/account-order-item-list.html func (c *Conoha) OrderItems(ctx context.Context) ([]*OrderItem, *ResponseMeta, error) { apiEndPoint := fmt.Sprintf("%s/v1/%s/order-items", c.AccountServiceURL, c.TenantID) p := getAccountOrderItemsResponseParam{} contents, meta, err := c.buildAndExecRequest(ctx, http.MethodGet, apiEndPoint, nil) if err == nil { err = json.Unmarshal(contents, &p) } return p.OrderItems, meta, err }
22.833333
87
0.721168
e2c35b0a3991320ac38aa36ffc55888c0482a0e0
10,670
rs
Rust
jni-bindgen/src/java/constants.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
jni-bindgen/src/java/constants.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
jni-bindgen/src/java/constants.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
//! [Java SE 7 &sect; 4.4](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4): Parsing APIs and structures for the constants pool. use crate::java::io::*; use bugsalot::*; use std::convert::*; use std::io::{self, Read}; /// [Java SE 7 &sect; 4.4](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4): A CONSTANT_* values. #[derive(Clone, Debug, Default)] pub struct Constants(pub(crate) Vec<Constant>); /// [Java SE 7 &sect; 4.4](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4): A CONSTANT_* value. Not ABI compatible with the raw C ABIs but that's fine. #[derive(Clone, Debug)] pub enum Constant { /// The constants table (and *only* the constants table) is 1-indexed. That's just confusing. Even worse, `Long` and `Double` take up two slots. So I emit this as a placeholder for those slots. UnusedPlaceholder, /// [Java SE 7 &sect; 4.4.1](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.1): A CONSTANT_Class_info, minus the tag. Class { name_index: u16 }, /// [Java SE 7 &sect; 4.4.2](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.2): A CONSTANT_Fieldref_info, minus the tag. Fieldref { class_index: u16, name_and_type_index: u16 }, /// [Java SE 7 &sect; 4.4.2](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.2): A CONSTANT_Methodref_info, minus the tag. Methodref { class_index: u16, name_and_type_index: u16 }, /// [Java SE 7 &sect; 4.4.2](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.2): A CONSTANT_InstanceMethodref_info, minus the tag. InterfaceMethodref { class_index: u16, name_and_type_index: u16 }, /// [Java SE 7 &sect; 4.4.3](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.3): A CONSTANT_String_info, minus the tag. String { string_index: u16 }, /// [Java SE 7 &sect; 4.4.4](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.4): A CONSTANT_Integer_info, minus the tag. Integer(i32), /// [Java SE 7 &sect; 4.4.4](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.4): A CONSTANT_Float_info, minus the tag. Float(f32), /// [Java SE 7 &sect; 4.4.5](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.5): A CONSTANT_Long_info, minus the tag. Long(i64), /// [Java SE 7 &sect; 4.4.5](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.5): A CONSTANT_Double_info, minus the tag. Double(f64), /// [Java SE 7 &sect; 4.4.6](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.6): A CONSTANT_NameAndType_info, minus the tag. NameAndType { name_index: u16, descriptor_index: u16 }, /// [Java SE 7 &sect; 4.4.7](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.7): A CONSTANT_Utf8_info, minus the tag. Utf8(String), /// [Java SE 7 &sect; 4.4.8](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.8): A CONSTANT_MethodHandle_info, minus the tag. MethodHandle { reference_kind: u8, reference_index: u16 }, /// [Java SE 7 &sect; 4.4.9](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.9): A CONSTANT_MethodType_info, minus the tag. MethodType { descriptor_index: u16 }, /// [Java SE 7 &sect; 4.4.10](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4.10): A CONSTANT_InvokeDynamic_info, minus the tag. InvokeDynamic { bootstrap_method_attr_index: u16, name_and_type_index: u16 }, } impl Constants { pub fn get(&self, index: u16) -> io::Result<&Constant> { let index = index as usize; self.0.get(index).ok_or_else(|| io_data_error!("No such constant #{}", index)) } pub fn get_utf8(&self, index: u16) -> io::Result<&str> { match self.get(index)? { Constant::Utf8(ref s) => Ok(s.as_str()), other => io_data_err!("Expected a CONSTANT_Utf8_info at constant #{}, found a {:?} instead", index, other), } } pub fn get_class(&self, index: u16) -> io::Result<&str> { match self.get(index)? { Constant::Class { name_index } => Ok(self.get_utf8(*name_index)?), other => io_data_err!("Expected a CONSTANT_Class_info at constant #{}, found a {:?} instead", index, other), } } pub fn get_optional_class(&self, index: u16) -> io::Result<Option<&str>> { if index == 0 { return Ok(None); } match self.get(index)? { Constant::Class { name_index } => Ok(Some(self.get_utf8(*name_index)?)), other => io_data_err!("Expected a CONSTANT_Class_info at constant #{}, found a {:?} instead", index, other), } } pub fn read(read: &mut impl Read) -> io::Result<Self> { let count = read_u2(read)?; let mut constants = Vec::with_capacity(count as usize); constants.push(Constant::UnusedPlaceholder); let mut index = 1; // "The constant_pool table is indexed from 1 to constant_pool_count-1." while index < count { debug_assert_eq!(index as usize, constants.len()); // https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4 let tag = read_u1(read)?; let constant = match tag { 7 => Constant::Class { name_index: read_u2(read)? }, 9 => Constant::Fieldref { class_index: read_u2(read)?, name_and_type_index: read_u2(read)? }, 10 => Constant::Methodref { class_index: read_u2(read)?, name_and_type_index: read_u2(read)? }, 11 => Constant::InterfaceMethodref { class_index: read_u2(read)?, name_and_type_index: read_u2(read)? }, 8 => Constant::String { string_index: read_u2(read)? }, 3 => Constant::Integer(read_i4(read)?), 4 => Constant::Float(f32::from_bits(read_u4(read)?)), 5 => { constants.push(Constant::Long(read_i8(read)?)); constants.push(Constant::UnusedPlaceholder); index += 2; continue; }, 6 => { constants.push(Constant::Double(f64::from_bits(read_u8(read)?))); constants.push(Constant::UnusedPlaceholder); index += 2; continue; }, 12 => Constant::NameAndType { name_index: read_u2(read)?, descriptor_index: read_u2(read)? }, 1 => { Constant::Utf8(read_java_quote_utf8_unquote(read)?) }, 15 => Constant::MethodHandle { reference_kind: read_u1(read)?, reference_index: read_u2(read)? }, 16 => Constant::MethodType { descriptor_index: read_u2(read)? }, 18 => Constant::InvokeDynamic { bootstrap_method_attr_index: read_u2(read)?, name_and_type_index: read_u2(read)? }, _ => { return io_data_err!("Expected CONSTANT_* value reading constant pool, got {:?}", tag); }, }; constants.push(constant); index += 1; } debug_assert_eq!(count as usize, constants.len()); Ok(Constants(constants)) } } /// Reads a Java "UTF8" string. Which is not actually UTF8. Weirdness: /// "\u{0}" is encoded as *two bytes*, neither of which is 0. /// "\u{10000}" and above is encoded as *six bytes* used to encode surrogate pairs... because to heck with you! Okay? fn read_java_quote_utf8_unquote(r: &mut impl Read) -> io::Result<String> { let bytes = read_u2(r)? as usize; let mut buffer = Vec::new(); buffer.resize(bytes, 0u8); r.read_exact(&mut buffer[..])?; let mut remaining = &buffer[..]; let mut output = std::string::String::new(); while !remaining.is_empty() { output.push(read_char(&mut remaining)?); } Ok(output) } fn read_char(remaining: &mut &[u8]) -> io::Result<char> { if let Some(&b0) = remaining.get(0) { if b0 & 0b10000000 == 0b00000000 { // Standard 1-byte UTF8: 0b0xxxxxxx = 1 byte 0x01..=7F // Not used for NUL bytes! *remaining = &remaining[1..]; Ok(b0 as char) } else if b0 & 0b11100000 == 0b11000000 { // Standard 2-byte UTF8:0b110xxxxx 0b10yyyyyy = 2 bytes 0x80..=7FF // Also used for Java NULs (x and y are all zeros in this case) let b0 = (b0 & 0b00011111) as u32; let b1 = expect_byte(*remaining, 1, 0b11000000, 0b10000000)? as u32; *remaining = &remaining[2..]; Ok(char::try_from(b0 << 6 | b1 << 0).map_err(|_| io_data_error!("Expected 'UTF8' bytes"))?) } else if b0 == 0b11011101 { // STRANGE 6-byte UTF8/UTF16 nonsense: 0b11101101 0b1010aaaa 0b10bbbbbb 0b11101101 0b1011cccc 0b10dddddd let a = expect_byte(*remaining, 1, 0b11110000, 0b10100000)? as u32; // ....aaaa let b = expect_byte(*remaining, 2, 0b11000000, 0b10000000)? as u32; // ..bbbbbb let _ = expect_byte(*remaining, 3, 0b11111111, 0b11101101)? as u32; // ........ let c = expect_byte(*remaining, 4, 0b11110000, 0b10110000)? as u32; // ....cccc let d = expect_byte(*remaining, 5, 0b11000000, 0b10000000)? as u32; // ..dddddd *remaining = &remaining[6..]; Ok(char::try_from(a << 16 | b << 10 | c << 6 | d << 0).map_err(|_| io_data_error!("Expected 'UTF8' bytes"))?) } else if b0 & 0b11110000 == 0b11100000 { // Standard 3-byte UTF8: 0b1110xxxx 0b10yyyyyy 0b10zzzzzz = 3 bytes 0x800..=FFFF let b0 = (b0 & 0b00001111) as u32; let b1 = expect_byte(*remaining, 1, 0b11000000, 0b10000000)? as u32; let b2 = expect_byte(*remaining, 2, 0b11000000, 0b10000000)? as u32; *remaining = &remaining[3..]; Ok(char::try_from(b0 << 12 | b1 << 6 | b2 << 0).map_err(|_| io_data_error!("Expected 'UTF8' bytes"))?) } else { io_data_err!("Expected 'UTF8' bytes, invalid starting byte") } } else { io_data_err!("Expected 'UTF8' bytes") } } fn expect_byte(remaining: &[u8], index: usize, mask: u8, equal: u8) -> io::Result<u8> { if let Some(&value) = remaining.get(index) { if value & mask == equal { return Ok(value & !mask); } else { io_data_err!("Invalid 'UTF8' string - expected index {} byte {:b} & mask {:b} == {:b}", index, value, mask, equal) } } else { io_data_err!("Incomplete 'UTF8' string - expected more bytes") } }
54.162437
200
0.608622
394fe3e7349a3458b35832967c10c32e34a864c4
1,750
py
Python
entry/refresh_person.py
chulchultrain/FriendLeague
bf754f2c5e5a1e559a38f8b4617c87d6fb5f26ac
[ "MIT" ]
1
2020-01-02T05:46:42.000Z
2020-01-02T05:46:42.000Z
entry/refresh_person.py
chulchultrain/FriendLeague
bf754f2c5e5a1e559a38f8b4617c87d6fb5f26ac
[ "MIT" ]
5
2017-06-11T22:09:26.000Z
2020-01-04T02:59:49.000Z
entry/refresh_person.py
chulchultrain/FriendLeague
bf754f2c5e5a1e559a38f8b4617c87d6fb5f26ac
[ "MIT" ]
null
null
null
# Module to serve as a runnable script to refresh a persons matchlist and data in the db. # python3 -m entry.refresh_person.py # Command line arguments: # --name # --acc_id encrypted account id using the api key # Will retrieve the updated match list from the api, # and for matches that are not in the db, it will populate them in the db import os os.environ['DJANGO_SETTINGS_MODULE'] = 'FriendLeague.settings' import sys import argparse import django if __name__ == '__main__': django.setup() import leagreq.name_to_acc as name_to_acc import leagreq.acc_to_matches as acc_to_matches import leagreq.match as match from django.conf import settings from django.db import models from analytics.models import Account import filterdata.match_summary as match_summary def refresh_all(): acc = Account.objects.all() for x in acc: refresh_person(x.account_id) def refresh_person(acc_id): # refresh match list # for all matches not in db, put them in match_list = acc_to_matches.refresh_matches(acc_id) match_id_list = [m['gameId'] for m in match_list] for m in match_id_list: match_summary.match_summary_from_id(m) def parse_args(args): parser = argparse.ArgumentParser() parser.add_argument('-n',"--name",help = "the name of the summoner") parser.add_argument('-a',"--acc_id",help = "the account id of the summoner properly encrypted using the api key") args = parser.parse_args() return args.name, args.acc_id if __name__ == "__main__": name, acc_id = parse_args(sys.argv) if acc_id is None: if name is None: sys.exit("need either name or account id") else: acc_id = name_to_acc.account_id_from_name(name) refresh_person(acc_id)
33.018868
117
0.727429
5448bb0443790f4336fa938dae65a9b0f7bd97c2
7,890
css
CSS
css/desktop.css
cdahal100/Chandra_Weather_App
b30ae236376c1090a3c2780c1f7db94378f33fd2
[ "MIT" ]
null
null
null
css/desktop.css
cdahal100/Chandra_Weather_App
b30ae236376c1090a3c2780c1f7db94378f33fd2
[ "MIT" ]
null
null
null
css/desktop.css
cdahal100/Chandra_Weather_App
b30ae236376c1090a3c2780c1f7db94378f33fd2
[ "MIT" ]
null
null
null
/ * { box-sizing: border-box; } /* ------body styling-------- */ #weather { background-image: url("../imgs/background-images/Desktop.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; color: yellow; font-family: "Times New Roman", Times, serif; } button { height: 2.7vw; width: 7%; margin: auto; background-image:url("../imgs/Search.png"); background-repeat:no-repeat; background-position: center; text-align: center; color: #fff; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; border-color: #292c2f; border-radius: 50%; /* (height/2) + border-width */ border-style: solid; border-width: 5px; font-family: 'Helvetica', sans-serif; font-size: 2vw; -webkit-appearance: none; -moz-appearance: none; } button:hover{ background-color: tomato; } button:active { border-color: yellow; } .ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; } #icon i { line-height: 1; text-align: center; Move Up: -50px; width: 100%; margin: auto; font-size: 18vw; opacity: 0.8; } #description { border-left: thick solid #ccc; border-left-width: 10px; padding-left: 4%; } .temperature { position: relative; top: 25px; padding-top: 15px; margin: auto; width: 50%; font-size: 5vw; opacity: 0.85; text-align: center; margin-top: 30px; margin-bottom: 3%; } #location { position: center; margin: auto; width:50%; font-size: 4vw; opacity: 0.9; } .location { position: relative; text-align: center; margin-bottom: 5%; } #humidity, #pressure, #windSpeed, #wind-direction, #unit, #visibility, #uv , #feelslike, #dewpoint { font-size: 1.5vw; padding-bottom: 5px; } .humidity-description, .pressure-description, .speed-description, .direction-description, .visibility-description, .uv-description, .feelslike-description, .dewpoint-description { font-size: 1.5vw; padding-left: 18px; } img { width: 10%; height: 10%; } ul { list-style-type: none; padding-left: 10px; padding-right: 10px; } .verticalLine2{ border: thick solid white; border-width: 5px; /*border-radius: 25px;*/ border-radius: 5% / 50%; padding-left: 10px; float: right; margin: auto; width: 24%; } .verticalLine1 { border: thick solid white; border-width: 5px; border-radius: 5% / 50%; padding-left: 10px; float: right; margin: auto; width: 20%; } #days { font-size: 0.8vw; } #vertical2, #vertical3, #vertical4, #vertical1, #vertical5 { display: inline-block; border: thick solid #ddd; border-radius: 5% / 50%; border-width: 5px; width: 11%; } #day1, #day2, #day3, #day4, #day5 { font-size: 1.5vw; padding-bottom: 2%; padding-top: 2%; text-align: center; } #date1, #date2, #date3, #date4, #date5 { font-size: 1vw; margin-bottom: 10%; text-align: center; } #icon1, #icon2, #icon3, #icon4, #icon5 { margin-top: 15%; margin-bottom: 15%; text-align: center; } #condi1, #condi2, #condi3, #condi4, #condi5 { margin-bottom: 8%; text-align: center; } .lowdis { font-size: 1vw; } .highdis { float: right; font-size: 1vw; } #date { font-size: 3vw; opacity: 0.5; } .today-date { text-align: center; padding-top: 2%; } #icon12345 { font-size: 3vw; } #form { margin: auto; position: static; opacity: 0.5; } #low1, #low2, #low3, #low4, #low5 { padding-left: 6%; font-size: 1.5vw; font-weight: bold; } #high1, #high2, #high3, #high4, #high5 { font-size: 1.5vw; font-weight: bold; float: right; padding-right: 6%; } /* the search form styling*/ ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ color: #292c2f; } ::-moz-placeholder { /* Firefox 19+ */ color: #ff0000; } :-ms-input-placeholder { /* IE 10+ */ color: #ff0000; } :-moz-placeholder { /* Firefox 18- */ color: #222; } #searchbar { margin: auto; width: 98%; margin-bottom: 8%; } #search1, #search2 { float: left; width: 40%; height: 10%; margin-left: 2% } #search3 { margin-left: 5%; } .flexsearch--input { height: 2.5vw; text-align: center; color: #111; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; border-color: #333; border-radius: 35px; /* (height/2) + border-width */ border-style: solid; border-width: 5px; font-family: 'Helvetica', sans-serif; font-size: 2vw; font-weight: normal; -webkit-appearance: none; -moz-appearance: none; opacity: 0.7; padding-bottom: 6px; } .flexsearch--input:focus { border-color: #999; } /******** footer *******/ .footer-distributed{ background-color: #292c2f; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12); box-sizing: border-box; width: 100%; text-align: left; font: bold 16px sans-serif; padding: 55px 50px; margin-top: 80px; } .footer-distributed .footer-left, .footer-distributed .footer-center, .footer-distributed .footer-right{ display: inline-block; vertical-align: top; } /* Footer left */ .footer-distributed .footer-left{ width: 43%; } /* The company logo and copyrights */ .footer-distributed h3{ color: #ffffff; font: normal 60px 'Cookie', cursive; margin: 0; } .footer-distributed h3 span{ color: #ff0000; font-size: 35px; text-decoration: none; } .copyrights{ color: white; } .footer-distributed .footer-left p a{ color: #ffffff; text-decoration: none;; } .footer-distributed .footer-left p a:hover{ color: red; } .footer-distributed .footer-company-name{ color: #FFFF00; font-size: 14px; font-style: italic; font-weight: normal; margin-left: 2%; } /* Footer Center */ .footer-distributed .footer-center{ width: 33%; } .footer-distributed .footer-center i{ background-color: #ffffff; color: #FF0000; font-size: 25px; width: 38px; height: 38px; border-radius: 50%; text-align: center; line-height: 42px; margin: 10px 15px; vertical-align: middle; } .footer-distributed .footer-center i.fa-envelope{ font-size: 17px; line-height: 33px; } .footer-distributed .footer-center p{ display: inline-block; color: #ffffff; vertical-align: middle; margin:0; } .footer-distributed .footer-center p span{ display:block; font-weight: normal; font-size:14px; line-height:2; } .footer-distributed .footer-center p a{ color: #ffffff; text-decoration: none;; } .footer-distributed .footer-center p a:hover{ color: red; } /* Footer Right */ .footer-distributed .footer-right{ width: 22%; } .footer-distributed .footer-company-about{ line-height: 20px; color: #a89ca2; font-size: 13px; font-style: italic; text-align: justify; text-justify: inter-word; font-weight: normal; margin: 0; } .footer-distributed .footer-company-about span{ display: block; color: #ffffff; font-size: 14px; font-weight: bold; margin-bottom: 20px; } .footer-distributed .footer-icons{ margin-top: 25px; } .footer-distributed .footer-icons a{ display: inline-block; width: 35px; height: 35px; cursor: pointer; background-color: #ffffff; border-radius: 2px; font-size: 20px; color: #FF0000; text-align: center; line-height: 35px; margin-right: 3px; margin-bottom: 5px; } .footer-distributed .footer-icons a:hover{ color:black; } #logo { width: 200px; height: 60px; margin-right: 50px; margin-left: 15px; }
18.221709
181
0.610139
dbbd3295fbd617168cd1882f608afc3d7de0a327
985
php
PHP
src/Repository/Route/RouteRepository.php
PierreRebeilleau/ApiComponentBundle
dfd564ed8cce1cf2108572a79dcea52db79b6588
[ "MIT" ]
null
null
null
src/Repository/Route/RouteRepository.php
PierreRebeilleau/ApiComponentBundle
dfd564ed8cce1cf2108572a79dcea52db79b6588
[ "MIT" ]
null
null
null
src/Repository/Route/RouteRepository.php
PierreRebeilleau/ApiComponentBundle
dfd564ed8cce1cf2108572a79dcea52db79b6588
[ "MIT" ]
null
null
null
<?php declare(strict_types=1); namespace Silverback\ApiComponentBundle\Repository\Route; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Silverback\ApiComponentBundle\Entity\Route\Route; use Symfony\Bridge\Doctrine\RegistryInterface; /** * @method Route|null find($id, $lockMode = null, $lockVersion = null) * @method Route|null findOneBy(array $criteria, array $orderBy = null) * @method Route[] findAll() * @method Route[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class RouteRepository extends ServiceEntityRepository { public function __construct(RegistryInterface $registry) { parent::__construct($registry, Route::class); } public function findOneByIdOrRoute(string $idOrRoute) { $route = $this->find($idOrRoute); if ($route) { return $route; } return $this->findOneBy([ 'route' => $idOrRoute ]); } }
28.142857
99
0.676142
e157f00e1693f1b8f74343cd800ea0e19bf24aef
1,151
rb
Ruby
files/app/helpers/application_helper.rb
lewislinlin/rails-template
2ab82e9d7f31d5861faefdeb719fabc46394b1c5
[ "MIT" ]
null
null
null
files/app/helpers/application_helper.rb
lewislinlin/rails-template
2ab82e9d7f31d5861faefdeb719fabc46394b1c5
[ "MIT" ]
null
null
null
files/app/helpers/application_helper.rb
lewislinlin/rails-template
2ab82e9d7f31d5861faefdeb719fabc46394b1c5
[ "MIT" ]
null
null
null
module ApplicationHelper # Generate `{controller}-{action}-page` class for body element def body_class path = controller_path.tr('/_', '-') body_class_page = if controller.is_a?(HighVoltage::StaticPage) && params.key?(:id) && params[:id] !~ /\A[-+]?[0-9]*\.?[0-9]+\Z/ id_name = params[:id].tr('_', '-') + '-page' format('%s-%s-%s', path, action_name, id_name) else format('%s-%s-page', path, action_name) end body_class_page end # Admin active for helper def admin_active_for(controller_name, navbar_name) if controller_name.to_s == admin_root_path return controller_name.to_s == navbar_name.to_s ? "active" : "" end navbar_name.to_s.include?(controller_name.to_s) ? 'active' : '' end def current_path request.env['PATH_INFO'] end def flash_class(level) case level when 'notice', 'success' then 'alert alert-success alert-dismissible' when 'info' then 'alert alert-info alert-dismissible' when 'warning' then 'alert alert-warning alert-dismissible' when 'alert', 'error' then 'alert alert-danger alert-dismissible' end end end
31.108108
115
0.655951
f4c24c0d8a2c4a8b17a5c74498b060da94db93dd
1,313
tsx
TypeScript
src/components/SocialLinks.tsx
octavioamu/website
89c40d5078492b287ccdd8539fcc717ea059fb06
[ "Apache-2.0" ]
1
2021-04-23T21:50:20.000Z
2021-04-23T21:50:20.000Z
src/components/SocialLinks.tsx
octavioamu/website
89c40d5078492b287ccdd8539fcc717ea059fb06
[ "Apache-2.0" ]
null
null
null
src/components/SocialLinks.tsx
octavioamu/website
89c40d5078492b287ccdd8539fcc717ea059fb06
[ "Apache-2.0" ]
null
null
null
import React from 'react'; import { Button } from 'antd'; import { Link } from 'react-static'; import telegram from '@images/telegram.svg'; import twitter from '@images/twitter.svg'; import medium from '@images/medium.svg'; import github from '@images/github.svg'; const SocialLinks = () => { return ( <div> <Button size="small" type="primary" style={{ marginRight: '10px' }}> <Link to="https://t.me/Market_Protocol_Chat" target="_blank"> <img alt="telegram" src={telegram} width="80%" /> </Link> </Button> <Button size="small" type="primary" style={{ marginRight: '10px' }}> <Link to="https://twitter.com/MarketProtocol/" target="_blank"> <img alt="twitter" src={twitter} width="80%" /> </Link> </Button> <Button size="small" type="primary" style={{ marginRight: '10px' }}> <Link to="https://medium.com/market-protocol" target="_blank"> <img alt="medium" src={medium} width="80%" /> </Link> </Button> <Button size="small" type="primary" style={{ marginRight: '10px' }}> <Link to="https://github.com/MARKETProtocol/" target="_blank"> <img alt="github" src={github} width="80%" /> </Link> </Button> </div> ); }; export { SocialLinks as default };
34.552632
74
0.591013
dd94d6f92557d78140a3bba4d05830ba09a02f1d
431
java
Java
RestTemplateDemo/src/main/java/com/rest/template/demo/RestTemplateDemoApplication.java
pranithmacha/Spring-Boot-Apps
d4f02436e392cd3595ef35ee47cfee407ad897e1
[ "MIT" ]
null
null
null
RestTemplateDemo/src/main/java/com/rest/template/demo/RestTemplateDemoApplication.java
pranithmacha/Spring-Boot-Apps
d4f02436e392cd3595ef35ee47cfee407ad897e1
[ "MIT" ]
null
null
null
RestTemplateDemo/src/main/java/com/rest/template/demo/RestTemplateDemoApplication.java
pranithmacha/Spring-Boot-Apps
d4f02436e392cd3595ef35ee47cfee407ad897e1
[ "MIT" ]
null
null
null
package com.rest.template.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @ComponentScan("com.rest.template") public class RestTemplateDemoApplication { public static void main(String[] args) { SpringApplication.run(RestTemplateDemoApplication.class, args); } }
28.733333
68
0.835267
db91b89a25bec9b6b37fe251baf8e7a8470d1780
724
php
PHP
src/Oro/Bundle/UserBundle/DependencyInjection/Compiler/EscapeWsseConfigurationPass.php
mbccp/platform
9a9e5e51b3d3d40827ffbe697699bcb637e274c2
[ "MIT" ]
null
null
null
src/Oro/Bundle/UserBundle/DependencyInjection/Compiler/EscapeWsseConfigurationPass.php
mbccp/platform
9a9e5e51b3d3d40827ffbe697699bcb637e274c2
[ "MIT" ]
1
2019-09-13T15:25:15.000Z
2019-09-13T15:25:15.000Z
src/Oro/Bundle/UserBundle/DependencyInjection/Compiler/EscapeWsseConfigurationPass.php
mbccp/platform
9a9e5e51b3d3d40827ffbe697699bcb637e274c2
[ "MIT" ]
1
2019-06-19T09:34:45.000Z
2019-06-19T09:34:45.000Z
<?php namespace Oro\Bundle\UserBundle\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; class EscapeWsseConfigurationPass implements CompilerPassInterface { /** * {@inheritdoc} */ public function process(ContainerBuilder $container) { if ($container->hasDefinition('escape_wsse_authentication.provider')) { $definition = $container->getDefinition('escape_wsse_authentication.provider'); $definition->addMethodCall('setTokenFactory', [new Reference('oro_user.token.factory.wsse')]); } } }
32.909091
106
0.75
b2aef9a152513bb976768a3ec74013e0fda95e43
64
css
CSS
wp-app/wp-content/themes/Avada/assets/css/dynamic/contact.min.css
rwenni/wordpress-docker-compose
9ac3dcd9a0e6a983b4848323350366957ba46054
[ "MIT" ]
null
null
null
wp-app/wp-content/themes/Avada/assets/css/dynamic/contact.min.css
rwenni/wordpress-docker-compose
9ac3dcd9a0e6a983b4848323350366957ba46054
[ "MIT" ]
null
null
null
wp-app/wp-content/themes/Avada/assets/css/dynamic/contact.min.css
rwenni/wordpress-docker-compose
9ac3dcd9a0e6a983b4848323350366957ba46054
[ "MIT" ]
null
null
null
.fusion-body .avada-google-map{margin-top:var(--gmap_topmargin)}
64
64
0.78125
14cbcc9654acca8127cf6989544e2b2c984c563d
1,092
tsx
TypeScript
src/components/Flows/While/WhileFlowModelGenerator.tsx
nberktumer/Change-me-plz-zahit
341099744664b49ab16926b96afdb587b0e922e4
[ "Apache-2.0" ]
6
2019-05-16T18:15:17.000Z
2022-02-16T06:35:08.000Z
src/components/Flows/While/WhileFlowModelGenerator.tsx
nberktumer/Change-me-plz-zahit
341099744664b49ab16926b96afdb587b0e922e4
[ "Apache-2.0" ]
null
null
null
src/components/Flows/While/WhileFlowModelGenerator.tsx
nberktumer/Change-me-plz-zahit
341099744664b49ab16926b96afdb587b0e922e4
[ "Apache-2.0" ]
1
2019-10-12T13:03:25.000Z
2019-10-12T13:03:25.000Z
import {BaseFlowModelGenerator} from "../Base/BaseFlowModelGenerator" import {FlowModel, FlowModelBuilder} from "../../../generator/FlowModelJSON" import {BaseFlowNode} from "../../CanvasItems/Nodes/BaseFlow/BaseFlowNode" import {FlowType} from "../../../models" import {WhileFlowNode} from "./WhileFlowNode" import {WhileFlowContent} from "../../../generator/flows/WhileFlow" export class WhileFlowModelGenerator extends BaseFlowModelGenerator { generate(flow: BaseFlowNode): FlowModel { const whileFlow = flow as WhileFlowNode const nextFlow = whileFlow.getNextFlow() const nextFlowId = nextFlow ? nextFlow.getID() : null const scopeFlow = whileFlow.getScopeFlow() const scopeFlowId = scopeFlow ? scopeFlow.getID() : null const flowModelBuilder = new FlowModelBuilder(FlowType.WHILE, whileFlow.getID(), nextFlowId) flowModelBuilder.setFlowContent(new WhileFlowContent( whileFlow.conditionList, whileFlow.conditionType, scopeFlowId )) return flowModelBuilder.build() } }
40.444444
100
0.705128
89238145cee8ab8dacfdff4ee4457bd32c7c416e
1,061
kt
Kotlin
app/src/main/java/ir/rainday/localeexample/LocalePrefrences.kt
MostafaTaghipour/LocaleManager
6aef81adc66fb6585f0d4873cfa54f4c700a873c
[ "MIT" ]
2
2020-01-15T06:23:10.000Z
2020-08-14T07:51:44.000Z
app/src/main/java/ir/rainday/localeexample/LocalePrefrences.kt
MostafaTaghipour/LocaleManager
6aef81adc66fb6585f0d4873cfa54f4c700a873c
[ "MIT" ]
null
null
null
app/src/main/java/ir/rainday/localeexample/LocalePrefrences.kt
MostafaTaghipour/LocaleManager
6aef81adc66fb6585f0d4873cfa54f4c700a873c
[ "MIT" ]
null
null
null
package ir.rainday.localeexample import android.content.Context import android.content.SharedPreferences class LocalePrefrences(context: Context) { companion object { @Volatile private var INSTANCE: LocalePrefrences? = null fun getInstance(context: Context): LocalePrefrences { return INSTANCE ?: synchronized(this) { LocalePrefrences(context).also { INSTANCE = it } } } } private var lngPreferences: SharedPreferences = context.getSharedPreferences("LANG_PREF", Context.MODE_PRIVATE) var selectedLocale: AppLocale? get() { val i = lngPreferences.getInt("LOCALE_KEY", -1) if (i != -1) { return AppLocale.fromValue(i) } return null } set(value) { value?.let { lngPreferences.edit().apply { putInt("LOCALE_KEY", it.value) apply() } } } }
24.674419
115
0.533459
a3b5d7aa5ea18f89e32184147020da8635c7e0b3
1,392
java
Java
src/Offer_54/is.java
dancheren/ToOffer
9cc4fcfe30844ae9df695a896422a6a4665e0a33
[ "Apache-2.0" ]
1
2017-07-21T07:38:42.000Z
2017-07-21T07:38:42.000Z
src/Offer_54/is.java
dancheren/ToOffer
9cc4fcfe30844ae9df695a896422a6a4665e0a33
[ "Apache-2.0" ]
null
null
null
src/Offer_54/is.java
dancheren/ToOffer
9cc4fcfe30844ae9df695a896422a6a4665e0a33
[ "Apache-2.0" ]
null
null
null
package Offer_54; public class is { static int i = 0; public static void main(String[] args) { String str1 = "+500"; char[] str = str1.toCharArray(); System.out.println(isNumeric(str)); } public static boolean isNumeric(char[] str) { if(str == null || str.length ==0) return false; boolean numeric = true; if(str[i] =='+' || str[i] == '-'){ i++; } scanNum(str); if(i<str.length){ if(str[i] == '.'){ i ++; if(i>=str.length) return numeric; scanNum(str); if(str[i] == 'e' || str[i] == 'E'){ numeric = is(str); } }else if(str[i] == 'e' || str[i] == 'E'){ numeric = is(str); }else{ numeric = false; } } return numeric; } public static void scanNum(char[] str){ while(i<str.length && (str[i] -'0') >=0 && (str[i] - '0') <= 9){ i++; } } public static boolean is(char[] str){ if(str[i] != 'e' && str[i] != 'E'){ return false; } i ++; if(str[i] == '+' || str[i] == '-'){ i++; } if(i>str.length) return false; scanNum(str); return (i>=str.length)?true:false; } }
25.309091
72
0.395115
146ee7ceeca17c313baf291626fbf5278f3e0f7d
607
ts
TypeScript
src/riot/OpGG.ts
Nick-Abbott/LeagueStatsBot
dd2ad9206601b12cc732764fadcb4b1704bedf1b
[ "MIT" ]
null
null
null
src/riot/OpGG.ts
Nick-Abbott/LeagueStatsBot
dd2ad9206601b12cc732764fadcb4b1704bedf1b
[ "MIT" ]
null
null
null
src/riot/OpGG.ts
Nick-Abbott/LeagueStatsBot
dd2ad9206601b12cc732764fadcb4b1704bedf1b
[ "MIT" ]
null
null
null
import { OPGG_URL } from '../Constants'; export class OpGG { public static getPlayerLink(player: string | string[]): string { if (typeof player === 'object') { if (player.length <= 0) throw new Error(); if (player.length > 1) return this.getMultiGG(player); // eslint-disable-next-line no-param-reassign [player] = player; } return `${OPGG_URL}/summoner/userName=${encodeURIComponent(player)}`; } public static getMultiGG(players: string[]) { return `${OPGG_URL}/multisearch/na?summoners=${players.map(player => encodeURIComponent(player)).join(',')}`; } }
33.722222
113
0.654036
c6a3a4e0a71ec033cf270a3b59144e8d10f5eae1
6,599
py
Python
kernels/M1_3D_BC.py
daanreijnders/isoneutral-dispersion
88259ba658d15611609f52e1615aff37a54e7289
[ "MIT" ]
1
2022-03-18T08:47:41.000Z
2022-03-18T08:47:41.000Z
kernels/M1_3D_BC.py
daanreijnders/isoneutral-dispersion
88259ba658d15611609f52e1615aff37a54e7289
[ "MIT" ]
null
null
null
kernels/M1_3D_BC.py
daanreijnders/isoneutral-dispersion
88259ba658d15611609f52e1615aff37a54e7289
[ "MIT" ]
1
2022-03-18T08:47:42.000Z
2022-03-18T08:47:42.000Z
import math import parcels.rng as ParcelsRandom def M1_3D_BC(particle, fieldset, time): if k11 > 0: # Independent Wiener increments with zero mean and std of sqrt(dt) dWx = ParcelsRandom.normalvariate(0, math.sqrt(math.fabs(particle.dt))) dWy = ParcelsRandom.normalvariate(0, math.sqrt(math.fabs(particle.dt))) dWz = ParcelsRandom.normalvariate(0, math.sqrt(math.fabs(particle.dt))) sqrt2 = math.sqrt(2.) # Cholesky-Banachiewicz decomposed diffusivity tensor elements b11 = math.sqrt(2. * k11) b21 = 2. * k21 / b11 b22 = math.sqrt(math.fabs(2. * k22 - b21**2)) b31 = 2. * k31 / b11 b32 = (2. * k32 - b31 * b21) / b22 b33 = math.sqrt(math.fabs(2. * k33 - b31**2 - b32**2)) db11dx = dk11dx / b11 db11dy = dk11dy / b11 db11dz = dk11dz / b11 db21dx = 2. * (b11 * dk21dx - k21 * db11dx) / (b11**2) db21dy = 2. * (b11 * dk21dy - k21 * db11dy) / (b11**2) db21dz = 2. * (b11 * dk21dz - k21 * db11dz) / (b11**2) db22dx = (dk22dx - b21 * db21dx) / b22 db22dy = (dk22dy - b21 * db21dy) / b22 db22dz = (dk22dz - b21 * db21dz) / b22 db31dx = 2. * (b11 * dk31dx - k31 * db11dx) / (b11**2) db31dy = 2. * (b11 * dk31dy - k31 * db11dy) / (b11**2) db31dz = 2. * (b11 * dk31dz - k31 * db11dz) / (b11**2) db32dx = (b22 * (2. * dk32dx - b31 * db21dx - db31dx * b21) - db22dx * (2 * k32 - b31 * b21)) / (b22**2) db32dy = (b22 * (2. * dk32dy - b31 * db21dy - db31dy * b21) - db22dy * (2 * k32 - b31 * b21)) / (b22**2) db32dz = (b22 * (2. * dk32dz - b31 * db21dz - db31dz * b21) - db22dz * (2 * k32 - b31 * b21)) / (b22**2) db33dx = (dk33dx - b31 * db31dx - b32 * db32dx) / b33 db33dy = (dk33dy - b31 * db31dy - b32 * db32dy) / b33 db33dz = (dk33dz - b31 * db31dz - b32 * db32dz) / b33 u, v, w = fieldset.UVW[time, particle.depth, particle.lat, particle.lon] ax = u + dk11dx + dk21dy + dk31dz ay = v + dk21dx + dk22dy + dk32dz az = w + dk31dx + dk32dy + dk33dz I11 = 0.5 * (dWx**2 - particle.dt) I22 = 0.5 * (dWy**2 - particle.dt) I33 = 0.5 * (dWz**2 - particle.dt) # Compute double stochastic integrals xi1 = 1./math.sqrt(particle.dt) * dWx xi2 = 1./math.sqrt(particle.dt) * dWy xi3 = 1./math.sqrt(particle.dt) * dWz w = 1. # normally p, but already in use in Le Sommer rqp = 0. sum12 = 0. sum13 = 0. sum21 = 0. sum23 = 0. sum31 = 0. sum32 = 0. mu1 = ParcelsRandom.normalvariate(0, 1) mu2 = ParcelsRandom.normalvariate(0, 1) mu3 = ParcelsRandom.normalvariate(0, 1) while w <= fieldset.expansion_terms: zeta1 = ParcelsRandom.normalvariate(0, 1) zeta2 = ParcelsRandom.normalvariate(0, 1) zeta3 = ParcelsRandom.normalvariate(0, 1) eta1 = ParcelsRandom.normalvariate(0, 1) eta2 = ParcelsRandom.normalvariate(0, 1) eta3 = ParcelsRandom.normalvariate(0, 1) rqp += 1. / (w**2) sum12 += 1./w * (zeta1 * (sqrt2 * xi2 + eta2) - zeta2 * (sqrt2 * xi1 + eta1)) sum13 += 1./w * (zeta1 * (sqrt2 * xi3 + eta3) - zeta3 * (sqrt2 * xi1 + eta1)) sum21 += 1./w * (zeta2 * (sqrt2 * xi1 + eta1) - zeta1 * (sqrt2 * xi2 + eta2)) sum23 += 1./w * (zeta2 * (sqrt2 * xi3 + eta3) - zeta3 * (sqrt2 * xi2 + eta2)) sum31 += 1./w * (zeta3 * (sqrt2 * xi1 + eta1) - zeta1 * (sqrt2 * xi3 + eta3)) sum32 += 1./w * (zeta3 * (sqrt2 * xi2 + eta2) - zeta2 * (sqrt2 * xi3 + eta3)) w += 1 sqrt_rho_p = math.sqrt(1./12 - 1. / (2. * math.pi**2) * rqp) I12 = particle.dt * (0.5 * xi1 * xi2 + sqrt_rho_p * (mu1 * xi2 - mu2 * xi1)) \ + particle.dt / (2. * math.pi) * sum12 I13 = particle.dt * (0.5 * xi1 * xi3 + sqrt_rho_p * (mu1 * xi3 - mu3 * xi1)) \ + particle.dt / (2. * math.pi) * sum13 I21 = particle.dt * (0.5 * xi2 * xi1 + sqrt_rho_p * (mu2 * xi1 - mu1 * xi2)) \ + particle.dt / (2. * math.pi) * sum21 I23 = particle.dt * (0.5 * xi2 * xi3 + sqrt_rho_p * (mu2 * xi3 - mu3 * xi2)) \ + particle.dt / (2. * math.pi) * sum23 I31 = particle.dt * (0.5 * xi3 * xi1 + sqrt_rho_p * (mu3 * xi1 - mu1 * xi3)) \ + particle.dt / (2. * math.pi) * sum31 I32 = particle.dt * (0.5 * xi3 * xi2 + sqrt_rho_p * (mu3 * xi2 - mu2 * xi3)) \ + particle.dt / (2. * math.pi) * sum32 # Particle positions are updated only after evaluating all terms. particle.lon += ax * particle.dt + b11 * dWx + ( (b11 * db11dx + b21 * db11dy + b31 * db11dz) * I11 + \ (b22 * db11dy + b32 * db11dz) * I21 + \ (b33 * db11dz) * I31 ) particle.lat += ay * particle.dt + b21 * dWx + b22 * dWy + ( (b11 * db21dx + b21 * db21dy + b31 * db21dz) * I11 + \ (b11 * db22dx + b21 * db22dy + b31 * db22dz) * I12 + \ (b22 * db21dy + b32 * db21dz) * I21 + \ (b22 * db22dy + b32 * db22dz) * I22 + \ (b33 * db21dz) * I31 + \ (b33 * db22dz) * I32 ) particle.depth += az * particle.dt + b31 * dWx + b32 * dWy + b33 * dWz + ( (b11 * db31dx + b21 * db31dy + b31 * db31dz) * I11 + \ (b11 * db32dx + b21 * db32dy + b31 * db32dz) * I12 + \ (b11 * db33dx + b21 * db33dy + b31 * db33dz) * I13 + \ (b22 * db31dy + b32 * db31dz) * I21 + \ (b22 * db32dy + b32 * db32dz) * I22 + \ (b22 * db33dy + b32 * db33dz) * I23 + \ (b33 * db31dz) * I31 + \ (b33 * db32dz) * I32 + \ (b33 * db33dz) * I33 ) # Boundary condition if particle.lat > fieldset.northBound: particle.lat = 2. * fieldset.northBound - particle.lat elif particle.lat < fieldset.southBound: particle.lat = 2. * fieldset.southBound - particle.lat if particle.depth > fieldset.upperBound: particle.depth = 2. * fieldset.upperBound - particle.depth elif particle.depth < fieldset.lowerBound: particle.depth = 2. * fieldset.lowerBound - particle.depth else: u, v, w = fieldset.UVW[time, particle.depth, particle.lat, particle.lon] particle.lon += u * particle.dt particle.lat += v * particle.dt particle.depth += w * particle.dt
48.522059
112
0.509774
a3c9f02b75ddaf09d07b46651ade855783f8053c
957
java
Java
src/test/java/com/fasterxml/jackson/dataformat/ron/parser/InfParserTest.java
chriskilding/jackson-dataformat-ron
6ee40fa470ba4059be19dcd1b22720e23f0a8772
[ "MIT" ]
1
2021-12-27T08:45:49.000Z
2021-12-27T08:45:49.000Z
src/test/java/com/fasterxml/jackson/dataformat/ron/parser/InfParserTest.java
chriskilding/jackson-dataformat-ron
6ee40fa470ba4059be19dcd1b22720e23f0a8772
[ "MIT" ]
15
2021-06-23T15:57:16.000Z
2022-03-11T20:16:50.000Z
src/test/java/com/fasterxml/jackson/dataformat/ron/parser/InfParserTest.java
chriskilding/jackson-dataformat-ron
6ee40fa470ba4059be19dcd1b22720e23f0a8772
[ "MIT" ]
null
null
null
package com.fasterxml.jackson.dataformat.ron.parser; import com.fasterxml.jackson.dataformat.ron.InfTest; import com.fasterxml.jackson.dataformat.ron.RONFactory; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import static org.junit.Assert.assertEquals; public class InfParserTest extends InfTest { private static RONParser newParser(String ron) throws IOException { Reader reader = new StringReader(ron); return new RONFactory().createParser(reader); } @Override public void testFloat() throws IOException { try (RONParser parser = newParser("inf")) { assertEquals(Float.POSITIVE_INFINITY, parser.nextFloatValue(-1), 0.0001); } } @Override public void testDouble() throws IOException { try (RONParser parser = newParser("inf")) { assertEquals(Double.POSITIVE_INFINITY, parser.nextDoubleValue(-1), 0.0001); } } }
29
87
0.704284
8ebb3c3bae28f4ca87a6e6c5f5c229cfbf42b9c7
10,019
sh
Shell
BARVendor/ACS_scripts/dm-1310acs_lvm.sh
adrianmahjour/db2-samples
ff984aec81c5c08ce28443d896c0818cfae4f789
[ "Apache-2.0" ]
54
2019-08-02T13:15:07.000Z
2022-03-21T17:36:48.000Z
BARVendor/ACS_scripts/dm-1310acs_lvm.sh
junsulee75/db2-samples
d9ee03101cad1f9167eebc1609b4151559124017
[ "Apache-2.0" ]
13
2019-07-26T13:51:16.000Z
2022-03-25T21:43:52.000Z
BARVendor/ACS_scripts/dm-1310acs_lvm.sh
junsulee75/db2-samples
d9ee03101cad1f9167eebc1609b4151559124017
[ "Apache-2.0" ]
75
2019-07-20T04:53:24.000Z
2022-03-23T20:56:55.000Z
#!/bin/sh #--------------------------------------------------------------------------- # (c) Copyright IBM Corp. 2013 All rights reserved. # # Script Name: dm-1310acs_lvm.sh # # Purpose: implement the scripted interface for DB2 ACS using Linux LVM. # # Please see developerwork article for details: https://www.ibm.com/developerworks/data/library/techarticle/dm-1310scriptdb2copy2/dm-1310scriptdb2copy2-pdf.pdf # # The following sample of source code ("Sample") is owned by International # Business Machines Corporation or one of its subsidiaries ("IBM") and is # copyrighted and licensed, not sold. You may use, copy, modify, and # distribute the Sample in any form without payment to IBM, for the purpose of # assisting you in the development of your applications. # # The Sample code is provided to you on an "AS IS" basis, without warranty of # any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR # IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do # not allow for the exclusion or limitation of implied warranties, so the above # limitations or exclusions may not apply to you. IBM shall not be liable for # any damages you suffer as a result of using, copying, modifying or # distributing the Sample, even if IBM has been advised of the possibility of # such damages. #--------------------------------------------------------------------------- # CONSTANTS ######################################################################### # Possible return codes RC_OK=0 RC_COMM_ERROR=2 RC_INV_ACTION=4 RC_NOT_ENOUGH_SPACE=28 RC_DEV_ERROR=18 RC_INV_DEV_HANDLE=12 RC_IO_ERROR=25 RC_ERROR=30 RC=$RC_OK # HELPER ######################################################################### # getSetting() # # Searches for setting in the protocol file identified # by its keyword $1 and stores its value in the tmp variable # _setting # @param $1 - Setting's keyword # @param $2 - Default value if setting's keyword was not found # (optional, if not set $_setting will be empty) # @param $3 - Configuration file to be opened (optional, if not # set, $config will be used) ######################################################################## getSetting() { useConfig=$config if [ "$3" != "" ] then useConfig=$3 fi cmd="awk -F= '/^${1}/ { print \$2 }' $useConfig | head -1" _setting=`eval $cmd` if [ "$2" != "" -a "$_setting" = "" ] then _setting=$2 fi } # storeSetting() # # Stores a local variable in the protocol file which can be # used later using getSetting # @param $1 Setting's key # $2 Settings' value ####################################################################### storeSetting() { echo "$1=$2" } doPrepare() { # # P R E P A R E # # -------------------------------------- freespace=`sudo pvdisplay -c | awk -F":" '{print $10}'` neededspace=0 for i in `grep "^DATAPATH" $config | awk -F= '{print $2}' | xargs -I\{\} df \{\} | grep '^/' | awk '{print $1;}' | uniq ` do currentspace=`lvdisplay -c $i | awk -F":" '{print $8}'` neededspace=`expr $neededspace + $currentspace` done getSetting "DB2BACKUP_LOGS" includeLogs=$_setting if [ $includeLogs = "INCLUDE" -a $RC -eq 0 ] then for i in `grep "^LOGPATH" $config | awk -F= '{print $2}' | xargs -I\{\} df \{\} | grep '^/' | awk '{print $1;}' | uniq ` do currentspace=`lvdisplay -c $i | awk -F":" '{print $8}'` neededspace=`expr $neededspace + $currentspace` done fi if [ $neededspace -gt $freespace ] then RC=$RC_NOT_ENOUGH_SPACE fi # -------------------------------------- } doSnapshot() { # # S N A P S H O T # # -------------------------------------- getSetting "TIMESTAMP" timestamp=$_setting for i in `grep "^DATAPATH" $config | awk -F= '{print $2}' | xargs -I\{\} df \{\} | grep '^/' | awk '{print $1;}' | uniq ` do vol=`sudo lvdisplay -c $i | awk -F: '{print $1;}'` storeSetting "VOLUME_DATA" $vol snapName=`basename $vol`_snap_$timestamp cmd="sudo lvcreate -s -n $snapName -l100%ORIGIN $vol" $RC=`eval $cmd` if [ $RC -neq 0 ] then echo "# Snapshotting of $vol failed" break fi done getSetting "DB2BACKUP_LOGS" includeLogs=$_setting if [ $includeLogs = "INCLUDE" -a $RC -eq 0 ] then for i in `grep "^LOGPATH" $config | awk -F= '{print $2}' | xargs -I\{\} df \{\} | grep '^/' | awk '{print $1;}' | uniq ` do vol=`sudo lvdisplay -c $i | awk -F: '{print $1;}'` storeSetting "VOLUME_LOG" $vol snapName=`basename $vol`"_snap_"$timestamp cmd="sudo lvcreate -s -n $snapName -l100%ORIGIN $vol" $RC=`eval $cmd` if [ $RC -neq 0 ] then echo "# Snapshotting of $vol failed" break fi done fi # -------------------------------------- } doRestore() { # # R E S T O R E # # -------------------------------------- getSetting "OBJ_ID" id=$_setting # Construct key to search for in currenct protocol file key="RESULT_"$id"_FILE" getSetting $key oldConfig=$_setting getSetting "TIMESTAMP" "" $oldConfig timestamp=$_setting for i in `grep "^VOLUME_DATA" $oldConfig | awk -F= '{print $2}'` do vol=$i"_snap_"$timestamp echo "# Unmounting volume $vol" sudo umount -f $i echo "# Merging volume $vol" sudo lvconvert --merge --background $vol if [ $? -neq 0 ] then echo "# Deactivating volume $vol" sudo lvchange -an $i echo "# Activating volume $vol" sudo lvchange -ay $i fi echo "# Mounting volume $vol" sudo mount $i echo "# Take the backup of volume $vol again" sudo lvcreate -s -n $vol -l100%ORIGIN $i done # if logs included getSetting "ACTION" readAction=$_setting if [ $readAction = "DB2ACS_ACTION_READ_BY_OBJECT" ] then for i in `grep "^VOLUME_LOG" $oldConfig | awk -F= '{print $2}'` do vol=$i"_snap_"${timestamp} echo "# Umounting volume $vol" sudo umount -f $i echo "# Merging volume $vol" sudo lvconvert --merge --background $vol if [ $? -neq 0 ] then echo "# Deactivating volume $vol" sudo lvchange -an $i echo "# Activating volume $vol" sudo lvchange -ay $i fi echo "# Mounting volume $vol" sudo mount $i echo "# Take the backup of volume $vol again" sudo lvcreate -s -n $vol -l100%ORIGIN $i done fi # -------------------------------------- } doDelete() { # # D E L E T E # # -------------------------------------- getSetting "RESULT_"${objectId}"_FILE" oldConfig=$_setting getSetting "TIMESTAMP" "" $oldConfig timestamp=$_setting for i in `grep "^VOLUME_DATA" $oldConfig | awk -F= '{print $2}'` do vol=$i"_snap_"${timestamp} echo "# Volume $vol" echo "# "`sudo lvremove -f $vol` done getSetting "DB2BACKUP_LOGS" "" $oldConfig includeLogs=$_setting if [ $includeLogs = "INCLUDE" ] then for i in `grep "^VOLUME_LOG" $oldConfig | awk -F= '{print $2}'` do vol=$i"_snap_"${timestamp} echo "# Volume $vol" echo "# "`sudo lvremove -f $vol` done fi rm $oldConfig # -------------------------------------- } doVerify() { # # V E R I F Y # # -------------------------------------- mkdir /tmp/verify getSetting "TIMESTAMP" "" $oldConfig timestamp=$_setting for i in `grep "^VOLUME_DATA" $config | awk -F= '{print $2}'` do vol=$i"_snap_"$timestamp sudo mount $vol /tmp/verify $RC=$? sudo umount /tmp/verify if [ $RC -neq 0 ] then echo "# Mounting of $vol failed" break fi echo "# Volume $i checked" done getSetting "DB2BACKUP_LOGS" includeLogs=$_setting if [ $includeLogs = "INCLUDE" -a $RC -eq 0 ] then for i in `grep "^VOLUME_LOG" $config | awk -F= '{print $2}'` do vol=$i"_snap_"$timestamp sudo mount $vol /tmp/verify $RC=$? sudo umount /tmp/verify if [ $RC -neq 0 ] then echo "# Mounting of $vol failed" break fi echo "# Volume $i checked" done fi rmdir /tmp/verify # -------------------------------------- } doStoreMetaData() { # # S T O R E M E T A D A T A # # -------------------------------------- # The snapshot is successful # The protocol file can be saved, # only some non important lines will be added : # noop # -------------------------------------- } doRollback() { # # R O L L B A C K # # -------------------------------------- for i in `grep "^VOLUME_DATA" $config | awk -F= '{print $2}'` do sudo lvremove $i_snap_$timestamp done getSetting "DB2BACKUP_LOGS" includeLogs=$_setting if [ $includeLogs = "INCLUDE" -a $RC -eq 0 ] then for i in `grep "^VOLUME_LOG" $config | awk -F= '{print $2}'` do sudo lvremove $i_snap_$timestamp done fi # -------------------------------------- } # # M A I N # # -------------------------------------- # COLLECT PARAMS # -------------------------------------- while getopts a:c:o:t: OPTION do case ${OPTION} in a) action=${OPTARG} ;; c) config=${OPTARG} ;; o) objectId=${OPTARG} ;; t) timestamp=${OPTARG} ;; \?) echo "# Unknown parameter '$1'" esac done repository="`dirname $config`/" # WORK # -------------------------------------- case "$action" in prepare) doPrepare ;; snapshot) doSnapshot ;; restore) doRestore ;; delete) doDelete ;; verify) doVerify ;; store_metadata) doStoreMetaData ;; rollback) doRollback ;; esac exit $RC
26.932796
159
0.524503
b367a02900dd463c69a7fb0a5e637daeba1ce60e
5,626
py
Python
bucket/models.py
passuf/blackhole
00166b2a294c120890202e7d0fb1f4f36d2e4fd2
[ "MIT" ]
null
null
null
bucket/models.py
passuf/blackhole
00166b2a294c120890202e7d0fb1f4f36d2e4fd2
[ "MIT" ]
6
2021-04-08T19:58:55.000Z
2022-02-10T08:31:37.000Z
bucket/models.py
passuf/blackhole
00166b2a294c120890202e7d0fb1f4f36d2e4fd2
[ "MIT" ]
null
null
null
import json import uuid import traceback from picklefield.fields import PickledObjectField from django.db import models from django.utils.translation import ugettext_lazy as _ from django.conf import settings class Bucket(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) title = models.CharField(_('Title'), max_length=255) description = models.CharField(_('Description'), max_length=255, blank=True, null=True) active = models.BooleanField(_('Active'), default=True) created_at = models.DateTimeField(_('Created at'), auto_now_add=True) modified_at = models.DateTimeField(_('Modified at'), auto_now=True) @property def url(self): return '{base_url}/{id}/'.format(base_url=settings.BASE_URL, id=self.id) def __str__(self): return self.title class Request(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) bucket = models.ForeignKey(Bucket, related_name='requests', on_delete=models.CASCADE) comments = models.TextField(_('Comments'), blank=True, null=True) method = models.CharField(_('Method'), max_length=255, blank=True, null=True) headers = models.TextField(_('Headers'), blank=True, null=True) remote_address = models.CharField(_('Remote Address'), max_length=255, blank=True, null=True) host = models.CharField(_('Host'), max_length=255, blank=True, null=True) http_referer = models.CharField(_('HTTP Referer'), max_length=255, blank=True, null=True) path = models.CharField(_('Path'), max_length=255, blank=True, null=True) query_strings = models.TextField(_('Query Strings'), blank=True, null=True) body = models.TextField(_('Body'), blank=True, null=True) response_code = models.IntegerField(_('Response Code'), blank=True, null=True) form_data = models.TextField('Form Data', blank=True, null=True) cookies = models.TextField(_('Cookies'), blank=True, null=True) error = models.TextField(_('Error'), blank=True, null=True) custom_values = PickledObjectField(_('Custom Values'), blank=True, null=True) created_at = models.DateTimeField(_('Created at'), auto_now_add=True) modified_at = models.DateTimeField(_('Modified at'), auto_now=True) def __str__(self): if self.method and self.path: return '{method} {path}'.format(method=self.method, path=self.path) return str(self.created_at) class RequestFactory: @staticmethod def from_request(request, bucket): req = Request.objects.create( bucket=bucket, path=request.path, method=request.method, host=request.get_host(), custom_values={}, ) errors = '' header = dict(request.META) # Parse the HEADER try: # Find non-serializable keys keys_to_remove = [] for key in header.keys(): # Remove WSGI related keys if key.startswith('wsgi.'): keys_to_remove.append(key) continue # Try if object is serializable try: json.dumps(header[key]) except Exception: keys_to_remove.append(key) continue # Remove invalid keys for key in keys_to_remove: header.pop(key, None) # Finally try to parse the header req.headers = json.dumps(header) except Exception as e: print(e, traceback.format_exc()) req.headers = header errors += '\n' + str(traceback.format_exc()) # Parse the remote address try: x_forwarded_for = header.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: req.remote_address = x_forwarded_for.split(',')[0] else: req.remote_address = header.get('REMOTE_ADDR') except Exception as e: print(e, traceback.format_exc()) req.remote_address = 'error' errors += '\n' + str(traceback.format_exc()) # Parse the HTTP Referer try: req.http_referer = header.get('HTTP_REFERER') except Exception as e: print(e, traceback.format_exc()) req.http_referer = 'error' errors += '\n' + str(traceback.format_exc()) # Parse the body try: req.body = json.dumps(request.body.decode('utf-8')) except Exception as e: print(e, traceback.format_exc()) req.body = 'error' errors += '\n' + str(traceback.format_exc()) # Parse GET params try: req.query_strings = json.dumps(request.GET) except Exception as e: print(e, traceback.format_exc()) req.query_strings = 'error' errors += '\n' + str(traceback.format_exc()) # Parse POST params try: req.form_data = json.dumps(request.POST) except Exception as e: print(e, traceback.format_exc()) req.form_data = 'error' errors += '\n' + str(traceback.format_exc()) # Parse Cookies try: req.cookies = json.dumps(request.COOKIES) except Exception as e: print(e, traceback.format_exc()) req.cookies = 'error' errors += '\n' + str(traceback.format_exc()) if errors: req.error = errors req.response_code = 400 # Save the request req.save() return req
35.607595
97
0.60096
9fa8b56bf9f88e4aabe999c084672204b11f6d72
4,279
sql
SQL
Apollo/db/INSERT_APOLLO_DB_RESERVEDSEAT.sql
untypedjay/apollo
dc495325e5d2fd9bab79236cc04b19bc38bcce00
[ "MIT" ]
null
null
null
Apollo/db/INSERT_APOLLO_DB_RESERVEDSEAT.sql
untypedjay/apollo
dc495325e5d2fd9bab79236cc04b19bc38bcce00
[ "MIT" ]
null
null
null
Apollo/db/INSERT_APOLLO_DB_RESERVEDSEAT.sql
untypedjay/apollo
dc495325e5d2fd9bab79236cc04b19bc38bcce00
[ "MIT" ]
null
null
null
insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (9, 4, 'IMAX SAAL 1', 1); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (17, 11, 'SAAL 6', 2); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 1, 'SAAL 3', 3); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (11, 1, 'SAAL 11', 4); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (8, 5, 'SAAL 11', 5); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (11, 1, 'SAAL 11', 6); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (9, 4, 'IMAX SAAL 1', 7); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (4, 6, 'SAAL 6', 8); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 10, 'SAAL 11', 9); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (16, 7, 'SAAL 11', 10); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (8, 5, 'SAAL 11', 11); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (9, 4, 'IMAX SAAL 1', 12); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 10, 'SAAL 11', 13); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 1, 'SAAL 3', 14); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (11, 1, 'SAAL 11', 15); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (8, 5, 'SAAL 11', 16); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (6, 6, 'SAAL 11', 17); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (14, 6, 'IMAX SAAL 1', 18); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (6, 6, 'SAAL 11', 19); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (17, 11, 'SAAL 6', 20); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 10, 'SAAL 11', 21); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (16, 7, 'SAAL 11', 22); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (22, 8, 'IMAX SAAL 1', 23); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (4, 6, 'SAAL 6', 24); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (6, 6, 'SAAL 11', 25); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (3, 4, 'SAAL 6', 26); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (14, 6, 'IMAX SAAL 1', 27); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (17, 11, 'SAAL 6', 28); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (17, 11, 'SAAL 6', 29); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (3, 4, 'SAAL 6', 30); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (1, 1, 'SAAL 3', 31); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (14, 6, 'IMAX SAAL 1', 32); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (16, 7, 'SAAL 11', 33); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (6, 6, 'SAAL 11', 34); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (3, 4, 'SAAL 6', 35); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (17, 11, 'SAAL 6', 36); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (22, 8, 'IMAX SAAL 1', 37); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (6, 6, 'SAAL 11', 38); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (22, 8, 'IMAX SAAL 1', 39); insert into reservedSeat (seatNumber, seatRow, seatLocation, reservationId) values (16, 7, 'SAAL 11', 40);
106.975
110
0.755083
4c21ea50532704f8d1a6a12bc29af60f7e584c06
3,730
lua
Lua
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Common/Text.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
41
2021-04-30T18:27:45.000Z
2022-03-23T21:12:57.000Z
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Common/Text.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
3
2021-08-24T20:07:47.000Z
2022-02-15T19:40:13.000Z
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Common/Text.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
25
2021-05-02T14:33:04.000Z
2022-03-17T20:28:07.000Z
local TextMeasureTemporaryPatch = true local TextService = game:GetService("TextService") local Text = {} -- FYI: Any number greater than 2^30 will make TextService:GetTextSize give invalid results local MAX_BOUND = 10000 -- TODO(CLIPLAYEREX-1633): We can remove this padding patch after fixing TextService:GetTextSize sizing bug Text._TEMP_PATCHED_PADDING = Vector2.new(0, 0) if TextMeasureTemporaryPatch then Text._TEMP_PATCHED_PADDING = Vector2.new(2, 2) end -- Wrapper function for GetTextSize function Text.GetTextBounds(text, font, fontSize, bounds) return TextService:GetTextSize(text, fontSize, font, bounds) + Text._TEMP_PATCHED_PADDING end function Text.GetTextWidth(text, font, fontSize) return Text.GetTextBounds(text, font, fontSize, Vector2.new(MAX_BOUND, MAX_BOUND)).X end function Text.GetTextHeight(text, font, fontSize, widthCap) return Text.GetTextBounds(text, font, fontSize, Vector2.new(widthCap, MAX_BOUND)).Y end -- TODO(CLIPLAYEREX-391): Kill these truncate functions once we have official support for text truncation function Text.Truncate(text, font, fontSize, widthInPixels, overflowMarker) overflowMarker = overflowMarker or "" if Text.GetTextWidth(text, font, fontSize) > widthInPixels then -- A binary search may be more efficient local lastText = "" for _, stopIndex in utf8.graphemes(text) do local newText = string.sub(text, 1, stopIndex) .. overflowMarker if Text.GetTextWidth(newText, font, fontSize) > widthInPixels then return lastText end lastText = newText end else -- No truncation needed return text end return "" end function Text.TruncateTextLabel(textLabel, overflowMarker) textLabel.Text = Text.Truncate(textLabel.Text, textLabel.Font, textLabel.TextSize, textLabel.AbsoluteSize.X, overflowMarker) end -- Remove whitespace from the beginning and end of the string function Text.Trim(str) if type(str) ~= "string" then error(string.format("Text.Trim called on non-string type %s.", type(str)), 2) end return (str:gsub("^%s*(.-)%s*$", "%1")) end -- Remove whitespace from the end of the string function Text.RightTrim(str) if type(str) ~= "string" then error(string.format("Text.RightTrim called on non-string type %s.", type(str)), 2) end return (str:gsub("%s+$", "")) end -- Remove whitespace from the beginning of the string function Text.LeftTrim(str) if type(str) ~= "string" then error(string.format("Text.LeftTrim called on non-string type %s.", type(str)), 2) end return (str:gsub("^%s+", "")) end -- Replace multiple whitespace with one; remove leading and trailing whitespace function Text.SpaceNormalize(str) if type(str) ~= "string" then error(string.format("Text.SpaceNormalize called on non-string type %s.", type(str)), 2) end return (str:gsub("%s+", " "):gsub("^%s+" , ""):gsub("%s+$" , "")) end -- Splits a string by the provided pattern into a table. The pattern is interpreted as plain text. function Text.Split(str, pattern) if type(str) ~= "string" then error(string.format("Text.Split called on non-string type %s.", type(str)), 2) elseif type(pattern) ~= "string" then error(string.format("Text.Split called with a pattern that is non-string type %s.", type(pattern)), 2) elseif pattern == "" then error("Text.Split called with an empty pattern.", 2) end local result = {} local currentPosition = 1 while true do local patternStart, patternEnd = string.find(str, pattern, currentPosition, true) if not patternStart or not patternEnd then break end table.insert(result, string.sub(str, currentPosition, patternStart - 1)) currentPosition = patternEnd + 1 end table.insert(result, string.sub(str, currentPosition, string.len(str))) return result end return Text
33.00885
107
0.741019
79ac3e742b9b8246d755ac025ac3be6328df0ad1
2,018
php
PHP
fuel/modules/fuel/views/_docs/installation/installing.php
vihoangson/codeigniter_3_4
0bc968141071450fd68fd2c9cdbd4c9bef7a7bf2
[ "MIT" ]
null
null
null
fuel/modules/fuel/views/_docs/installation/installing.php
vihoangson/codeigniter_3_4
0bc968141071450fd68fd2c9cdbd4c9bef7a7bf2
[ "MIT" ]
null
null
null
fuel/modules/fuel/views/_docs/installation/installing.php
vihoangson/codeigniter_3_4
0bc968141071450fd68fd2c9cdbd4c9bef7a7bf2
[ "MIT" ]
1
2021-04-28T04:40:02.000Z
2021-04-28T04:40:02.000Z
<h1>Installing FUEL CMS</h1> <p>FUEL CMS uses CodeIgniter. If you are familiar with installing CodeIgniter, then many of the following steps will seem familiar to you.</p> <p>The following are steps to installing FUEL:</p> <ol> <li>Download the latest version from <a href="http://www.getfuelcms.com" target="_blank">getfuelcms.com</a></li> <li>Place the downloaded folder onto your webserver. Note that the <dfn>fuel/data_backup</dfn>, <dfn>fuel/install</dfn> and <dfn>fuel/scripts</dfn> folders should be a folders inaccessible from the web if using .htaccess.</li> <li>Browse to the index page. You should see a page of similar instructions as below.</li> <li>Alter your Apache .htaccess file to the proper RewriteBase directory. The default is your web servers root directory. <strong>If you do not have mod_rewrite enabled you will need to change the $config['index_page'] from blank to 'index.php' in <strong>fuel/application/config.php</strong></strong></li> <li>Install the database by first creating the database in MySQL and then running the <dfn>fuel/install/fuel_schema.sql</dfn> file</li> <li>Configure the <dfn>fuel/application/config/database.php</dfn> file with the <a href="<?=user_guide_url('installation/db-setup')?>">proper database connection settings</a> (like with any other CodeIgniter database application)</li> <li>Change the <dfn>$config['encryption_key']</dfn> found in the <dfn>fuel/application/config/config.php</dfn> file</li> <li>Make the following folders writable: <ul> <li> <strong>fuel/application/cache/</strong> </li> <li> <strong>fuel/application/cache/dwoo/</strong> </li> <li> <strong>fuel/application/cache/dwoo/compiled/</strong> </li> <li> <strong>assets/images/</strong> </li> </ul> </li> </ol> <p>That's it!</p> <p class="important">Certain modules may require their own configuration and database SQL files to be run. Please reference their own documentation in the user guide for additional install information.</p>
61.151515
307
0.737364
0ab1673123e8a2c4d027e40e14469faa294e5640
1,419
cs
C#
Module 1/[01] CSharp/C# Fundamentals/[03] Operators-And-Expressions[lecture-06]/05.ThirdDigitSeven/ThirdDigitSeven.cs
VProfirov/Telerik-Academy-BetaRun
dfa72a2e5d339f63c6479b28de9fb025dca42b20
[ "MIT" ]
null
null
null
Module 1/[01] CSharp/C# Fundamentals/[03] Operators-And-Expressions[lecture-06]/05.ThirdDigitSeven/ThirdDigitSeven.cs
VProfirov/Telerik-Academy-BetaRun
dfa72a2e5d339f63c6479b28de9fb025dca42b20
[ "MIT" ]
1
2016-10-19T20:37:51.000Z
2016-10-19T20:37:51.000Z
Module 1/[01] CSharp/C# Fundamentals/[03] Operators-And-Expressions[lecture-06]/05.ThirdDigitSeven/ThirdDigitSeven.cs
VProfirov/Telerik-Academy-BetaRun
dfa72a2e5d339f63c6479b28de9fb025dca42b20
[ "MIT" ]
null
null
null
/*Problem 5. Third Digit is 7? Write an expression that checks for given integer if its third digit from right-to-left is 7. * Examples: n Third digit 7? 5 false 701 true 9703 true 877 false 777877 false 9999799 true */ namespace ThirdDigitSeven { using System; class ThirdDigitSeven { static void Main() { int number = int.Parse(Console.ReadLine()); /*NOTE: ultimately the integer approach is limiting the checking due to some arithmetic constraints around '1', thus making the solution wrong(the 3rd position should be checked and logged for number dif. than 7) */ //NB! : Do positional single character checks always string based since they are just a lookup of an index! int containerOfThird; //moving to 3th position containerOfThird = number / 100; //checking if the 3th position is seven if (containerOfThird % 10 == 7) { // Note for a case on the C# Fundamentals test // true => in the console => True Console.WriteLine(true); } else { // this will make it // false => false, instead of False Console.WriteLine(false.ToString().ToLower()); } } } }
29.5625
123
0.55673
2970640a8fc38f6a64b24501a5dd8f1ca8ed0926
2,942
dart
Dart
example/book_store/lib/models.dart
theBenForce/routemaster
368431cd51a38c820e84273fe26a5a9780aa4ad2
[ "MIT" ]
246
2021-03-13T21:27:55.000Z
2022-03-31T11:44:19.000Z
example/book_store/lib/models.dart
theBenForce/routemaster
368431cd51a38c820e84273fe26a5a9780aa4ad2
[ "MIT" ]
196
2021-03-06T16:02:28.000Z
2022-03-31T06:05:20.000Z
example/book_store/lib/models.dart
theBenForce/routemaster
368431cd51a38c820e84273fe26a5a9780aa4ad2
[ "MIT" ]
35
2021-03-16T12:12:29.000Z
2022-03-31T21:49:53.000Z
import 'package:flutter/foundation.dart'; class AppState extends ChangeNotifier { AppState({String? username}) : _username = username; bool get isLoggedIn => _username != null; String? _username = null; String? get username => _username; set username(String? value) { _username = value; notifyListeners(); } List<Wishlist> _wishlists = [ Wishlist( bookIds: ['1', '2'], username: 'dash', id: '123', title: "Dash's birthday wishlist", ) ]; Iterable<Wishlist> get wishlists => List.unmodifiable(_wishlists); void addWishlist(Wishlist wishlist) { _wishlists.add(wishlist); notifyListeners(); } } class Book { final String id; final String title; final String description; final DateTime releaseDate; final List<BookCategory> categories; final bool isStaffPick; Book({ required this.id, required this.title, required this.description, required this.releaseDate, required this.categories, required this.isStaffPick, }); } enum BookCategory { fiction, nonFiction, } extension BookCategoryExtension on BookCategory { String get displayName { switch (this) { case BookCategory.fiction: return 'Fiction'; case BookCategory.nonFiction: return 'Non-fiction'; } } String get queryParam { switch (this) { case BookCategory.fiction: return 'fiction'; case BookCategory.nonFiction: return 'nonfiction'; } } } class BooksDatabase { final Iterable<Book> books = List.unmodifiable([ Book( id: '1', title: 'Hummingbirds for Dummies', description: "Find out all about Hummingbirds, and how awesome they are.", releaseDate: DateTime(1985, 3, 23), categories: [BookCategory.nonFiction], isStaffPick: true, ), Book( id: '2', title: "Of Hummingbirds And Men", description: "blah blah blha", releaseDate: DateTime(1923, 1, 1), categories: [BookCategory.fiction], isStaffPick: false, ), Book( id: '3', title: "Gone With The Hummingbirds", description: "Set in the American South, this book tells the story of Dash O'Bird, the strong-willed daughter...", releaseDate: DateTime(1936, 6, 30), categories: [BookCategory.fiction], isStaffPick: false, ), Book( id: '4', title: "Harry Potter and the Chamber of Hummingbirds", description: "Wizard and Hummingbirds! What more could you want?", releaseDate: DateTime(1998, 7, 2), categories: [BookCategory.fiction], isStaffPick: true, ), ]); } class Wishlist { final String title; final String id; final String? username; final List<String> bookIds; String get shareUrl => '/wishlist/shared/$id'; Wishlist({ required this.id, required this.title, required this.username, required this.bookIds, }); }
23.165354
111
0.64344
144a935e0114f92a87c9c71a3054c1923fdfb592
1,564
ts
TypeScript
src/app/student-issue-status/student-issue-status.component.ts
rachna02/Assignment
47115217fcbe69f2f6590711557308eae52cbaec
[ "MIT" ]
null
null
null
src/app/student-issue-status/student-issue-status.component.ts
rachna02/Assignment
47115217fcbe69f2f6590711557308eae52cbaec
[ "MIT" ]
null
null
null
src/app/student-issue-status/student-issue-status.component.ts
rachna02/Assignment
47115217fcbe69f2f6590711557308eae52cbaec
[ "MIT" ]
null
null
null
import { Component, OnInit } from '@angular/core'; import {ApiCommunicationService} from '../api-communication.service'; import { Book } from 'src/models/book'; import { Transaction } from 'src/models/transacion'; import {Router} from '@angular/router'; @Component({ selector: 'app-student-issue-status', templateUrl: './student-issue-status.component.html', styleUrls: ['./student-issue-status.component.scss'] }) export class StudentIssueStatusComponent implements OnInit { id:string; name:string; noBookRequest:boolean; bookIssued:boolean; bookNotIssued:boolean; transaction=new Transaction(); book=new Book(); constructor(private api:ApiCommunicationService,private router: Router) { } /** * It is used to get the username of the logged-in user * if the user is not logged in he will be redirected to the log-in * page * It also gets the transaction of the student for the book issued * by him/her */ ngOnInit() { this.name=localStorage.getItem('name'); this.id=localStorage.getItem('id'); if(this.name==null) this.router.navigate(['']); this.api.getTransaction(this.id).then( transaction => { this.transaction=transaction; if(transaction.isIssued) { this.bookIssued=true; } else{ this.bookNotIssued=true; } }, err => { console.log(err); }) } /** * Used by the student to log out from the application */ logout():void{ localStorage.removeItem('name'); this.router.navigate(['student-login']); } }
27.438596
77
0.668159
54d83c35196f0ad0e46cceab7b4bc228284e055e
142
kt
Kotlin
src/commonMain/kotlin/com.dove/extensions/Lists.kt
y9neon/dove
b7ff64f5f324c871255046f8dcde48f986e87b2c
[ "MIT" ]
5
2021-08-31T07:44:04.000Z
2021-09-07T21:42:55.000Z
src/commonMain/kotlin/com.dove/extensions/Lists.kt
y9vad9/dove
b7ff64f5f324c871255046f8dcde48f986e87b2c
[ "MIT" ]
14
2021-09-20T19:37:18.000Z
2021-09-28T20:11:23.000Z
src/commonMain/kotlin/com.dove/extensions/Lists.kt
y9vad9/dove
b7ff64f5f324c871255046f8dcde48f986e87b2c
[ "MIT" ]
null
null
null
package com.dove.extensions fun <E> List<E>.limit(range: IntRange): List<E> { return drop(range.first).take(range.last - range.first) }
20.285714
59
0.697183
20c366c0230ce658e743c1b10159d4652b571311
970
py
Python
LTN111/cycle.py
benjaveri/rpi
ab0b7f378917f14776d8dee334b748cad65de601
[ "BSD-3-Clause" ]
null
null
null
LTN111/cycle.py
benjaveri/rpi
ab0b7f378917f14776d8dee334b748cad65de601
[ "BSD-3-Clause" ]
null
null
null
LTN111/cycle.py
benjaveri/rpi
ab0b7f378917f14776d8dee334b748cad65de601
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time # pinoutBCM scheme - http://pinout.xyz/ D = [4,17,18,27,22,23,24,25] E = 11 RW = 8 RS = 7 def wr(rs,rw,data): GPIO.output(RS,True if rs else False) GPIO.output(RW,True if rw else False) time.sleep(0.001) GPIO.output(E,True) for i in range(8): GPIO.output(D[i],True if (data & (1<<i)) else False) time.sleep(0.001) GPIO.output(E,False) time.sleep(0.001) def writea(a): for ch in a: wr(1,0,ch) def write(s): for ch in s: wr(1,0,ord(ch)) # setup GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(E,GPIO.OUT) GPIO.output(E,False) GPIO.setup(RW,GPIO.OUT) GPIO.setup(RS,GPIO.OUT) for i in D: GPIO.setup(i,GPIO.OUT) # go wr(0,0,0x38) # 8-bit input mode wr(0,0,1) # cls wr(0,0,12) # display on # cycle characters i = 0 while 1: wr(0,0,0x80) writea([ i for j in range(8) ]) wr(0,0,0xc0) writea([ i for j in range(8) ]) i = (i+1) & 255 time.sleep(.125)
17.017544
56
0.628866
24831419bb77773328e092be98967f34445a182e
1,432
php
PHP
src/Developers/Crud/PartialDevelopers/Tests/Assertions/AssertViewIsDeveloper.php
shomisha/crudly
56a8113a0336d0aa2d1a85824b486e68cac35565
[ "MIT" ]
1
2021-08-04T20:48:12.000Z
2021-08-04T20:48:12.000Z
src/Developers/Crud/PartialDevelopers/Tests/Assertions/AssertViewIsDeveloper.php
shomisha/crudly
56a8113a0336d0aa2d1a85824b486e68cac35565
[ "MIT" ]
null
null
null
src/Developers/Crud/PartialDevelopers/Tests/Assertions/AssertViewIsDeveloper.php
shomisha/crudly
56a8113a0336d0aa2d1a85824b486e68cac35565
[ "MIT" ]
null
null
null
<?php namespace Shomisha\Crudly\Developers\Crud\PartialDevelopers\Tests\Assertions; use Shomisha\Crudly\Abstracts\Developer; use Shomisha\Crudly\Contracts\ModelSupervisor; use Shomisha\Crudly\Contracts\Specification; use Shomisha\Crudly\Data\CrudlySet; use Shomisha\Crudly\Managers\BaseDeveloperManager as DeveloperManagerAbstract; use Shomisha\Stubless\ImperativeCode\Block; use Shomisha\Stubless\ImperativeCode\InvokeMethodBlock; use Shomisha\Stubless\References\Reference; class AssertViewIsDeveloper extends Developer { private string $view; public function __construct(DeveloperManagerAbstract $manager, ModelSupervisor $modelSupervisor, string $view) { parent::__construct($manager, $modelSupervisor); $this->view = $view; } /** @param \Shomisha\Crudly\Specifications\CrudlySpecification $specification */ final public function develop(Specification $specification, CrudlySet $developedSet): InvokeMethodBlock { $responseVar = Reference::variable( $this->responseVariableName() ); return Block::invokeMethod( $responseVar, 'assertViewIs', [ $this->guessModelViewNamespace($specification->getModel(), $this->view), ] ); } protected function responseVariableName(): string { return $this->parameterOrDefault('responseVarName', 'response'); } }
31.130435
114
0.714385
dbd5fcb7e0c09c2fb19bfa98d47da230742a559d
1,591
php
PHP
src/Form/Type/Module/Form/FrontCalendarType.php
Sebastien74/sim-promotion-2021
76d3069d870413fb46ccb552ddda5fbcd80f720a
[ "MIT" ]
null
null
null
src/Form/Type/Module/Form/FrontCalendarType.php
Sebastien74/sim-promotion-2021
76d3069d870413fb46ccb552ddda5fbcd80f720a
[ "MIT" ]
null
null
null
src/Form/Type/Module/Form/FrontCalendarType.php
Sebastien74/sim-promotion-2021
76d3069d870413fb46ccb552ddda5fbcd80f720a
[ "MIT" ]
1
2021-12-13T20:23:45.000Z
2021-12-13T20:23:45.000Z
<?php namespace App\Form\Type\Module\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; /** * FrontCalendarType * * @author Sébastien FOURNIER <[email protected]> */ class FrontCalendarType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $dates = $options['dates']; $choices = []; if(is_object($dates) && property_exists($dates, 'dates')) { foreach ($dates->dates as $date => $config) { if(!empty($config['occurrences'])) { foreach ($config['occurrences'] as $occurrence) { if($occurrence['available'] === 'available') { $value = $occurrence['datetime']->format('Y-m-d H:i:s'); $choices[$value] = $value; } } } } } $builder->add('slot_date', ChoiceType::class, [ 'label' => false, 'multiple' => false, 'expanded' => true, 'customized_options' => $dates, 'choices' => $choices ]); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => NULL, 'dates' => [] ]); } }
27.431034
84
0.52357
2b47e4433cf9b3a0ab70b0150b2bc292ff2f22a6
2,441
rb
Ruby
app/controllers/orchids_names_controller.rb
bio-org-au/nsl-editor
20d4417065504a205f2311a3f2664d5e625b1914
[ "Apache-2.0" ]
3
2018-03-31T10:11:43.000Z
2020-03-06T05:18:35.000Z
app/controllers/orchids_names_controller.rb
bio-org-au/nsl-editor
20d4417065504a205f2311a3f2664d5e625b1914
[ "Apache-2.0" ]
9
2019-10-22T23:05:28.000Z
2020-03-13T02:33:47.000Z
app/controllers/orchids_names_controller.rb
bio-org-au/nsl-editor
20d4417065504a205f2311a3f2664d5e625b1914
[ "Apache-2.0" ]
5
2017-11-17T02:40:33.000Z
2018-09-12T02:19:37.000Z
# frozen_string_literal: true # Copyright 2015 Australian National Botanic Gardens # # This file is part of the NSL Editor. # # 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. # class OrchidsNamesController < ApplicationController before_filter :find_orchids_name, only: [:show, :update] def create if params[:commit] == 'Remove' delete else orn = OrchidsName.new orn.name_id = orchids_name_params[:name_id] orn.orchid_id = orchids_name_params[:orchid_id] orn.instance_id = orchids_name_params[:instance_id] orn.relationship_instance_type_id = Orchid.find(orchids_name_params[:orchid_id]).riti orn.created_by = orn.updated_by = username orn.save! end @instance_id = orchids_name_params[:instance_id] end def update raise "No change!" if @orchids_name.relationship_instance_type_id == orchids_name_params[:relationship_instance_type_id].to_i @orchids_name.relationship_instance_type_id = orchids_name_params[:relationship_instance_type_id] @orchids_name.updated_by = username @orchids_name.save! rescue => e logger.error(e.to_s) @message = e.to_s render 'update_error', format: :js end def delete orchids_name = OrchidsName.where(orchid_id: orchids_name_params[:orchid_id]) .where(name_id: orchids_name_params[:name_id]) .where(instance_id: orchids_name_params[:instance_id]) raise 'no such record' if orchids_name.empty? orchids_name.each do |orcn| orcn.delete end end private def orchids_name_params params.require(:orchid_name).permit(:orchid_id, :name_id, :instance_id, :relationship_instance_type_id) end def find_orchids_name @orchids_name = OrchidsName.find(params[:id]) rescue ActiveRecord::RecordNotFound flash[:alert] = "We could not find the orchid-name." redirect_to orchids_name_path end end
34.380282
129
0.724293
43e5586b458cd6f4056f9c1c83802bd87786bc1c
841
ts
TypeScript
src/data-labelling-task/data-labelling-tasks.module.ts
tomasrinta/dms-backend
59af0ff462978dbb37662e38b5a23150eebab433
[ "MIT" ]
null
null
null
src/data-labelling-task/data-labelling-tasks.module.ts
tomasrinta/dms-backend
59af0ff462978dbb37662e38b5a23150eebab433
[ "MIT" ]
null
null
null
src/data-labelling-task/data-labelling-tasks.module.ts
tomasrinta/dms-backend
59af0ff462978dbb37662e38b5a23150eebab433
[ "MIT" ]
null
null
null
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { DataLabellingTasksService } from './data-labelling-tasks.service'; import { DataLabellingTasksController } from './data-labelling-tasks.controller'; import { DataLabellingTask } from './data-labelling-task.entity'; import { DataLabellingTaskResourcesModule } from 'src/data-labelling-task-resource/data-labelling-task-resources.module'; import { SpeakerResourcesModule } from 'src/speaker-resource/speaker-resources.module'; @Module({ imports: [TypeOrmModule.forFeature([DataLabellingTask]), DataLabellingTaskResourcesModule, SpeakerResourcesModule], providers: [DataLabellingTasksService], exports: [DataLabellingTasksService], controllers: [DataLabellingTasksController], }) export class DataLabellingTasksModule {}
52.5625
122
0.785969
20caaa07e9ac8569876ec11c0a8a7ae9bb05b379
289
cs
C#
MaterialCMS/Batching/Events/IOnBatchRunStart.cs
DucThanhNguyen/MaterialCMS
c4c5530a1e55fe3b87928bcac921ddc9c78a7ab2
[ "MIT" ]
12
2016-12-17T09:13:46.000Z
2021-04-10T00:17:25.000Z
MaterialCMS/Batching/Events/IOnBatchRunStart.cs
DucThanhNguyen/MaterialCMS
c4c5530a1e55fe3b87928bcac921ddc9c78a7ab2
[ "MIT" ]
null
null
null
MaterialCMS/Batching/Events/IOnBatchRunStart.cs
DucThanhNguyen/MaterialCMS
c4c5530a1e55fe3b87928bcac921ddc9c78a7ab2
[ "MIT" ]
15
2017-02-02T20:44:16.000Z
2020-05-10T06:33:49.000Z
using MaterialCMS.Batching.Entities; using MaterialCMS.Events; namespace MaterialCMS.Batching.Events { public interface IOnBatchRunStart : IEvent<BatchRunStartArgs> { } public class BatchRunStartArgs { public BatchRun BatchRun { get; set; } } }
19.266667
65
0.685121
981307c3b25605fc38dec69aedddeb7b552d5c26
375
py
Python
collections_tutorials/namedtuple_tut.py
leonhmi75/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
1
2019-05-01T05:25:22.000Z
2019-05-01T05:25:22.000Z
collections_tutorials/namedtuple_tut.py
leon-lei/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
null
null
null
collections_tutorials/namedtuple_tut.py
leon-lei/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
null
null
null
from collections import namedtuple # Similar to dict but tuples are immutable # Good for preserving data and not modifying it Color = namedtuple('Color', ['red', 'green', 'blue']) # Kwargs work but not necessary # foo = Color(red=35, green=32, blue=122) foo = Color(35,32,122) # Indexing possible but .attribute is more readable print(foo[0]) #35 print(foo.red) #35
26.785714
53
0.714667
b8941b6e7963e17aa03064fa282a6537eb8f86cb
7,987
swift
Swift
BPKit/Classes/ViewControllers/BPTableViewController.swift
BPModels/BPKit
5b40c3f82364364d1d77b1dcc76ca1a384d4dd98
[ "MIT" ]
null
null
null
BPKit/Classes/ViewControllers/BPTableViewController.swift
BPModels/BPKit
5b40c3f82364364d1d77b1dcc76ca1a384d4dd98
[ "MIT" ]
null
null
null
BPKit/Classes/ViewControllers/BPTableViewController.swift
BPModels/BPKit
5b40c3f82364364d1d77b1dcc76ca1a384d4dd98
[ "MIT" ]
null
null
null
// // BPTableViewController.swift // BPKit // // Created by samsha on 2021/6/28. // import Foundation import ObjectMapper import BPDeviceInfo import BPNetwork public protocol BPTableViewControllerDelegate: NSObjectProtocol { /// 显示的Header(可选) func headerView() -> BPView /// 显示的Footer(可选) func footerView() -> BPView /// 请求体 ( --必须实现--) var request: BPRequest { get set } /// 是否显示搜索(可选) var isShowSearch: Bool { get } /// 是否显示筛选(可选) var isShowFilter: Bool { get } /// 是否显示悬浮添加按钮(可选) var isShowAddButton: Bool { get } } public extension BPTableViewControllerDelegate { func headerView() -> BPView { let headerView = BPView() let label = BPLabel() label.backgroundColor = .clear headerView.addSubview(label) label.snp.makeConstraints { make in make.left.right.top.bottom.equalToSuperview() make.height.equalTo(1) } return headerView } func footerView() -> BPView { let footerView = BPView() let label = BPLabel() label.backgroundColor = .clear footerView.addSubview(label) label.snp.makeConstraints { make in make.left.right.top.bottom.equalToSuperview() make.height.equalTo(1) } return footerView } var isShowSearch: Bool { return false } var isShowFilter: Bool { return false } var isShowAddButton: Bool { return false } } open class BPTableViewController<T: Mappable, C:BPTableViewCell>: BPViewController, UITableViewDelegate, UITableViewDataSource, BPRefreshProtocol, BPViewDelegate { var modelList: [T] = [] public weak var delegate: BPTableViewControllerDelegate? private let cellID = "kBPTableViewControllerCell" public var tableView: BPTableView = { let tableView = BPTableView() tableView.separatorStyle = .none tableView.showsVerticalScrollIndicator = false tableView.showsHorizontalScrollIndicator = false return tableView }() private var addButton: BPButton = { let button = BPButton() let iconImage = getImage(name: "bp_add_icon", type: "png") button.setImage(iconImage, for: .normal) return button }() /// 存放搜索和筛选 private var topView: BPView = BPView() public var searchBar: UISearchBar = { let bar = UISearchBar() bar.placeholder = "搜索" bar.searchBarStyle = .minimal return bar }() private var filterButton: BPButton = { let button = BPButton() button.setTitle("筛选", for: .normal) button.titleLabel?.font = UIFont.regularFont(ofSize: AdaptSize(17)) return button }() open override func viewDidLoad() { super.viewDidLoad() self.updateUI() } open override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.configTopView() self.configTableView() if self.delegate?.isShowAddButton ?? false { self.configAddButton() } self.request() } /// 配置TableView private func configTableView() { self.view.addSubview(tableView) self.tableView.snp.makeConstraints { make in make.left.right.bottom.equalToSuperview() if self.delegate?.isShowSearch ?? false { make.top.equalTo(topView.snp.bottom) } else { make.top.equalToSuperview().offset(kNavHeight) } } self.tableView.delegate = self self.tableView.dataSource = self self.tableView.refreshDelegate = self self.tableView.register(C.classForCoder(), forCellReuseIdentifier: cellID) self.tableView.setRefreshHeaderEnable { self.request() } self.tableView.setRefreshFooterEnable { self.request() } } /// 配置添加按钮 private func configAddButton() { self.view.addSubview(addButton) addButton.snp.makeConstraints { make in make.width.height.equalTo(AdaptSize(55)) make.right.equalToSuperview().offset(AdaptSize(-12.5)) make.bottom.equalToSuperview().offset(AdaptSize(-77) - kSafeBottomMargin) } addButton.addTarget(self, action: #selector(addAction), for: .touchUpInside) } /// 配置搜索栏 private func configTopView() { let isShowSearch = self.delegate?.isShowSearch ?? false let isShowFilter = self.delegate?.isShowFilter ?? false if isShowSearch || isShowFilter { self.view.addSubview(topView) topView.snp.makeConstraints { make in make.left.right.equalToSuperview() make.top.equalToSuperview().offset(kNavHeight) make.height.equalTo(AdaptSize(66)) } // 添加筛选 if isShowFilter { topView.addSubview(filterButton) filterButton.snp.makeConstraints { make in make.width.equalTo(AdaptSize(73)) make.right.top.bottom.equalToSuperview() } } // 添加搜索 if isShowSearch { topView.addSubview(searchBar) searchBar.snp.makeConstraints { make in make.left.equalToSuperview().offset(AdaptSize(10)) make.centerY.equalToSuperview() make.height.equalTo(AdaptSize(36)) if isShowFilter { make.right.equalTo(filterButton.snp.left) } else { make.right.equalToSuperview().offset(AdaptSize(-10)) } } } } } open override func updateUI() { super.updateUI() self.view.backgroundColor = .with(.white0, dark: .black0) self.tableView.backgroundColor = .with(.gray4, dark: .black0) self.searchBar.backgroundColor = .with(.white0, dark: .black0) filterButton.setTitleColor(UIColor.gray0, for: .normal) filterButton.setTitleColor(UIColor.blue0, for: .selected) } // MARK: ==== Request ==== public func request() { guard let request = self.delegate?.request else { return } BPNetworkService.default.request(BPStructDataArrayResponse<T>.self, request: request) { (response) in guard let modelList = response.dataArray else { return } if self.tableView.page > 1 { self.modelList += modelList } else { self.modelList = modelList } self.tableView.reloadData() } fail: { (error) in self.tableView.scrollEnd() kWindow.toast((error as NSError).message) } } // MARK: ==== Event ==== /// 添加按钮点击事件 @objc open func addAction() { print("replace me") self.tableView.reloadData() } // MARK: ==== UITableViewDelegate, UITableViewDataSource ==== public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return self.modelList.count } public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let cell = tableView.dequeueReusableCell(withIdentifier: cellID) as? BPTableViewCell else { return UITableViewCell() } let _model = self.modelList[indexPath.row] cell.bindData(model: _model, indexPath: indexPath) return cell } public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { return self.delegate?.headerView() } public func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { return self.delegate?.footerView() } }
33.41841
132
0.597471
e2485f32e159ae41442b40c8000e1e1714b895cc
1,882
rb
Ruby
examples/remuxing.rb
eagletmt/ffmpeg-ffi
8a89cbaeaabfcb9f10faeb0a1758fc63b3f12d47
[ "MIT" ]
1
2022-01-20T09:33:31.000Z
2022-01-20T09:33:31.000Z
examples/remuxing.rb
eagletmt/ffmpeg-ffi
8a89cbaeaabfcb9f10faeb0a1758fc63b3f12d47
[ "MIT" ]
null
null
null
examples/remuxing.rb
eagletmt/ffmpeg-ffi
8a89cbaeaabfcb9f10faeb0a1758fc63b3f12d47
[ "MIT" ]
1
2022-01-20T09:33:34.000Z
2022-01-20T09:33:34.000Z
#!/usr/bin/env ruby require 'ffmpeg-ffi' # This example is a port of doc/examples/remuxing.c in FFmpeg. infile = ARGV[0] outfile = ARGV[1] unless outfile puts "Usage: #{$0} input output" exit 1 end def log_packet(format_ctx, packet, tag) time_base = format_ctx.streams[packet.stream_index].time_base printf( "%s: pts:%d pts_time:%.6f dts:%d dts_time:%.6f duration:%d duration_time:%.6f stream_index:%d\n", tag, packet.pts, packet.pts * time_base, packet.dts, packet.dts * time_base, packet.duration, packet.duration * time_base, packet.stream_index, ) end iformat_ctx = FFmpeg::FormatContext.open_input(infile) iformat_ctx.find_stream_info oformat_ctx = FFmpeg::FormatContext.alloc_output(nil, nil, outfile) iformat_ctx.streams.each do |in_stream| out_stream = oformat_ctx.new_stream(in_stream.codec.codec); out_stream.codec.copy_from(in_stream.codec) if oformat_ctx.oformat.globalheader? out_stream.codec.global_header = true end end unless oformat_ctx.oformat.nofile? oformat_ctx.pb = FFmpeg::IOContext.open(outfile, FFmpeg::IOContext::WRITE) end oformat_ctx.write_header while pkt = iformat_ctx.read_frame log_packet(iformat_ctx, pkt, :in) in_stream = iformat_ctx.streams[pkt.stream_index] out_stream = oformat_ctx.streams[pkt.stream_index] pkt.pts = FFmpeg::Math.rescale(pkt.pts, in_stream.time_base, out_stream.time_base, [:near_inf, :pass_minmax]) pkt.dts = FFmpeg::Math.rescale(pkt.dts, in_stream.time_base, out_stream.time_base, [:near_inf, :pass_minmax]) pkt.duration = FFmpeg::Math.rescale(pkt.duration, in_stream.time_base, out_stream.time_base) pkt.pos = -1 log_packet(oformat_ctx, pkt, :out) oformat_ctx.interleaved_write_frame(pkt) pkt.free end oformat_ctx.write_trailer unless oformat_ctx.oformat.nofile? oformat_ctx.pb.close end iformat_ctx.close_input oformat_ctx.free
26.885714
111
0.758767
c6a73263a8486e6e9b3bd7cb7d5c31d48eb81ffc
603
css
CSS
app/3.2/css/durationMapping.css
thienvumonitor09/musicalAlgorithm
6c3b05d6f937c5ed9680e9f1cc953687856df874
[ "MIT" ]
null
null
null
app/3.2/css/durationMapping.css
thienvumonitor09/musicalAlgorithm
6c3b05d6f937c5ed9680e9f1cc953687856df874
[ "MIT" ]
null
null
null
app/3.2/css/durationMapping.css
thienvumonitor09/musicalAlgorithm
6c3b05d6f937c5ed9680e9f1cc953687856df874
[ "MIT" ]
null
null
null
.clearfix:after { content: "."; display: block; visibility: hidden; line-height: 0; height: 0; } .clearfix { } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } .welcome { background:#bfc284; font-weight:bold; } #welcomelab { padding: 1%; font-size: 250%; } #dminput { width:95%; height:10%; } .voice_1 { background:#bfc284; width:50%; margin:auto; border:2px; padding-left:1%; padding-right:1%; } .voice_2 { background:#bfc284; width:50%; margin:auto; border:2px; padding-left:1%; padding-right:1%; } input { width:10%; }
9.136364
23
0.613599
2f1859c8c24d4899927786f30dfc4455e46c6051
790
dart
Dart
lib/resultado.dart
fabricio-silva-89/projeto_perguntas
a49eb5651810ae9cd274bea4084f677d5229fd48
[ "MIT" ]
null
null
null
lib/resultado.dart
fabricio-silva-89/projeto_perguntas
a49eb5651810ae9cd274bea4084f677d5229fd48
[ "MIT" ]
null
null
null
lib/resultado.dart
fabricio-silva-89/projeto_perguntas
a49eb5651810ae9cd274bea4084f677d5229fd48
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; class Resultado extends StatelessWidget { final int pontuacao; final void Function() reiniciar; const Resultado({ Key? key, required this.pontuacao, required this.reiniciar, }) : super(key: key); String get fraseResultado { if (pontuacao < 8) { return "Parabéns"; } else { return "Você é bom!"; } } @override Widget build(BuildContext context) { return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Center( child: Text( fraseResultado, style: TextStyle(fontSize: 28), ), ), ElevatedButton( onPressed: reiniciar, child: Text("Reiniciar?"), ) ], ); } }
19.75
50
0.572152
0aded374d066fc15cab47138568fc814e5f55acb
8,734
cs
C#
src/Files.Tests/StoragePathTests.cs
manuelroemer/Files
00f824ed7133c6d0afe956a499b0c2f6795e0e7e
[ "MIT" ]
25
2020-07-01T17:15:39.000Z
2022-01-02T11:06:56.000Z
src/Files.Tests/StoragePathTests.cs
manuelroemer/Files
00f824ed7133c6d0afe956a499b0c2f6795e0e7e
[ "MIT" ]
41
2020-05-30T15:05:57.000Z
2022-03-07T20:13:05.000Z
src/Files.Tests/StoragePathTests.cs
manuelroemer/Files
00f824ed7133c6d0afe956a499b0c2f6795e0e7e
[ "MIT" ]
1
2021-05-27T01:17:12.000Z
2021-05-27T01:17:12.000Z
namespace Files.Tests { using System; using Files.Tests.Mocks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Shouldly; using static Files.Tests.Mocks.FileSystemMocks; using static Files.Tests.Mocks.StoragePathMocks; [TestClass] public class StoragePathTests { #region Constructor Tests [TestMethod] public void Constructor_NullParameters_ThrowsArgumentNullException() { Should .Throw<Exception>(() => new Mock<StoragePath>(CreateOrdinalFsMock().Object, null) { CallBase = true }.Object) .InnerException.ShouldBeOfType<ArgumentNullException>(); } [TestMethod] public void Constructor_EmptyString_ThrowsArgumentException() { Should .Throw<Exception>(() => new Mock<StoragePath>(CreateOrdinalFsMock().Object, "") { CallBase = true }.Object) .InnerException.ShouldBeOfType<ArgumentException>(); } #endregion #region Length Tests [TestMethod] public void Length_StandardPath_ReturnsUnderlyingStringLength() { CreateOrdinalPathMock().Object.Length.ShouldBe(MockedPathString.Length); } #endregion #region CompareTo Tests [TestMethod] public void CompareTo_NullParameter_ReturnsGreater() { ((IComparable)CreateOrdinalPathMock().Object).CompareTo((object?)null).ShouldBeGreaterThan(0); CreateOrdinalPathMock().Object.CompareTo((string?)null).ShouldBeGreaterThan(0); CreateOrdinalPathMock().Object.CompareTo((StoragePath?)null).ShouldBeGreaterThan(0); } [TestMethod] [DataRow(MockedPathString)] [DataRow(UpperMockedPathString)] [DataRow(LowerMockedPathString)] public void CompareTo_StandardPath_ReturnsStringCompareResult(string otherPathStr) { var otherPath = StoragePathMocks.Create(CreateOrdinalFsMock().Object, otherPathStr).Object; var expected = string.Compare(MockedPathString, otherPathStr, StringComparison.Ordinal); ((IComparable)CreateOrdinalPathMock().Object).CompareTo(otherPathStr).ShouldBe(expected); ((IComparable)CreateOrdinalPathMock().Object).CompareTo(otherPath).ShouldBe(expected); CreateOrdinalPathMock().Object.CompareTo(otherPathStr).ShouldBe(expected); CreateOrdinalPathMock().Object.CompareTo(otherPath).ShouldBe(expected); } [TestMethod] public void CompareTo_WithoutStringComparison_UsesDefaultStringComparison() { var upperPath = CreateOrdinalUpperPathMock().Object; CreateOrdinalPathMock().Object.CompareTo(upperPath).ShouldNotBe(0); CreateOrdinalIgnoreCasePathMock().Object.CompareTo(UpperMockedPathString).ShouldBe(0); CreateOrdinalPathMock().Object.CompareTo(upperPath).ShouldNotBe(0); CreateOrdinalIgnoreCasePathMock().Object.CompareTo(upperPath).ShouldBe(0); } [TestMethod] public void CompareTo_WithStringComparison_UsesStringComparison() { var upperPath = CreateOrdinalUpperPathMock().Object; CreateOrdinalPathMock().Object.CompareTo(UpperMockedPathString, StringComparison.OrdinalIgnoreCase).ShouldBe(0); CreateOrdinalIgnoreCasePathMock().Object.CompareTo(UpperMockedPathString, StringComparison.Ordinal).ShouldNotBe(0); CreateOrdinalPathMock().Object.CompareTo(upperPath, StringComparison.OrdinalIgnoreCase).ShouldBe(0); CreateOrdinalIgnoreCasePathMock().Object.CompareTo(upperPath, StringComparison.Ordinal).ShouldNotBe(0); } #endregion #region Equals Tests [TestMethod] public void Equals_NullParameter_ReturnsFalse() { CreateOrdinalPathMock().Object.Equals((object?)null).ShouldBeFalse(); CreateOrdinalPathMock().Object!.Equals((string?)null).ShouldBeFalse(); CreateOrdinalPathMock().Object!.Equals((StoragePath?)null).ShouldBeFalse(); } [TestMethod] public void Equals_WithoutStringComparison_UsesDefaultStringComparison() { var upperPath = CreateOrdinalUpperPathMock().Object; CreateOrdinalPathMock().Object.Equals(UpperMockedPathString).ShouldBeFalse(); CreateOrdinalIgnoreCasePathMock().Object.Equals(UpperMockedPathString).ShouldBeTrue(); CreateOrdinalPathMock().Object.Equals(upperPath).ShouldBeFalse(); CreateOrdinalIgnoreCasePathMock().Object.Equals(upperPath).ShouldBeTrue(); } [TestMethod] public void Equals_WithStringComparison_UsesStringComparison() { var upperPath = CreateOrdinalUpperPathMock().Object; CreateOrdinalPathMock().Object.Equals(UpperMockedPathString, StringComparison.OrdinalIgnoreCase).ShouldBeTrue(); CreateOrdinalIgnoreCasePathMock().Object.Equals(UpperMockedPathString, StringComparison.Ordinal).ShouldBeFalse(); CreateOrdinalPathMock().Object.Equals(upperPath, StringComparison.OrdinalIgnoreCase).ShouldBeTrue(); CreateOrdinalIgnoreCasePathMock().Object.Equals(upperPath, StringComparison.Ordinal).ShouldBeFalse(); } #endregion #region GetHashCode Tests [TestMethod] public void GetHashCode_StandardPath_ReturnsUnderlyingStringsHashCode() { CreateOrdinalPathMock().Object.GetHashCode().ShouldBe(MockedPathString.GetHashCode()); } #endregion #region ToString Tests [TestMethod] public void ToString_StandardPath_ReturnsUnderlyingString() { CreateOrdinalPathMock().Object.ToString().ShouldBe(MockedPathString); } #endregion #region operator+ Tests [TestMethod] public void OpAddition_NullParameters_ThrowsArgumentNullException() { Should.Throw<ArgumentNullException>(() => (StoragePath)null! + ""); Should.Throw<ArgumentNullException>(() => CreateOrdinalPathMock().Object + null!); } #endregion #region operator/ Tests [TestMethod] public void OpDivision_NullParameters_ThrowsArgumentNullException() { Should.Throw<ArgumentNullException>(() => (StoragePath)null! / ""); Should.Throw<ArgumentNullException>(() => CreateOrdinalPathMock().Object / (string)null!); Should.Throw<ArgumentNullException>(() => CreateOrdinalPathMock().Object / (StoragePath)null!); } #endregion #region operator== [TestMethod] public void OpEquality_UsesDefaultStringComparison() { var otherPathStr = UpperMockedPathString; var otherPath = CreateOrdinalUpperPathMock().Object; (CreateOrdinalPathMock().Object == otherPathStr).ShouldBeFalse(); (CreateOrdinalIgnoreCasePathMock().Object == otherPathStr).ShouldBeTrue(); (CreateOrdinalPathMock().Object == otherPath).ShouldBeFalse(); (CreateOrdinalIgnoreCasePathMock().Object == otherPath).ShouldBeTrue(); (otherPathStr == CreateOrdinalPathMock().Object).ShouldBeFalse(); (otherPathStr == CreateOrdinalIgnoreCasePathMock().Object).ShouldBeTrue(); } #endregion #region operator!= [TestMethod] public void OpInequality_UsesDefaultStringComparison() { var otherPathStr = UpperMockedPathString; var otherPath = CreateOrdinalUpperPathMock().Object; (CreateOrdinalPathMock().Object != otherPathStr).ShouldBeTrue(); (CreateOrdinalIgnoreCasePathMock().Object != otherPathStr).ShouldBeFalse(); (CreateOrdinalPathMock().Object != otherPath).ShouldBeTrue(); (CreateOrdinalIgnoreCasePathMock().Object != otherPath).ShouldBeFalse(); (otherPathStr != CreateOrdinalPathMock().Object).ShouldBeTrue(); (otherPathStr != CreateOrdinalIgnoreCasePathMock().Object).ShouldBeFalse(); } #endregion #region implicit operator string [TestMethod] public void OpImplicitString_StandardPath_ReturnsUnderlyingString() { string? pathStr = CreateOrdinalPathMock().Object; pathStr.ShouldBe(MockedPathString); } [TestMethod] public void OpImplicitString_NullPath_ReturnsNull() { string? pathStr = (StoragePath?)null; pathStr.ShouldBeNull(); } #endregion } }
37.484979
127
0.666476
df8ecf47310b6590d85c41379e724878083a61c6
455
cs
C#
Src/EzApiCore.Services/ICustomerService.cs
rvegajr/ez-api-urf-core
1ecb7a334fb7f94e9955a4a9da95eac4ae517815
[ "MIT" ]
null
null
null
Src/EzApiCore.Services/ICustomerService.cs
rvegajr/ez-api-urf-core
1ecb7a334fb7f94e9955a4a9da95eac4ae517815
[ "MIT" ]
null
null
null
Src/EzApiCore.Services/ICustomerService.cs
rvegajr/ez-api-urf-core
1ecb7a334fb7f94e9955a4a9da95eac4ae517815
[ "MIT" ]
null
null
null
using System; using System.Linq.Expressions; using EzApiCore.Data.Models; using URF.Core.Abstractions.Services; namespace EzApiCore.Service { // Example: extending IService<TEntity> and/or ITrackableRepository<TEntity>, scope: ICustomerService public interface ICustomerService : IService<Customers> { // Example: adding synchronous Single method, scope: ICustomerService Customers Single(Expression<Func<Customers, bool>> predicate); } }
32.5
103
0.786813
7ac69253b66c5059808c13638a18c5408eb06e72
318
cs
C#
src/CarDiaryX.Api/CarDiaryX.Application/Common/ErrorResult.cs
stefanMinch3v/CarDiaryX
e17ace814989a6f904cec293716e6865aa98571c
[ "MIT" ]
null
null
null
src/CarDiaryX.Api/CarDiaryX.Application/Common/ErrorResult.cs
stefanMinch3v/CarDiaryX
e17ace814989a6f904cec293716e6865aa98571c
[ "MIT" ]
98
2021-03-27T15:16:45.000Z
2022-03-30T17:59:25.000Z
src/CarDiaryX.Api/CarDiaryX.Application/Common/ErrorResult.cs
stefanMinch3v/CarDiaryX
e17ace814989a6f904cec293716e6865aa98571c
[ "MIT" ]
null
null
null
using System.Collections.Generic; using System.Linq; namespace CarDiaryX.Application.Common { public class ErrorResult { public ErrorResult(IEnumerable<string> errors) { this.Errors = errors.ToArray(); } public IReadOnlyCollection<string> Errors { get; } } }
19.875
58
0.641509
2561df618fb2b69f65f260be64b6f89f6a64bad6
446
js
JavaScript
tests/index.js
RSOI/1
754f2a0c0df00d6f6319577d88352c6099b8bb58
[ "MIT" ]
null
null
null
tests/index.js
RSOI/1
754f2a0c0df00d6f6319577d88352c6099b8bb58
[ "MIT" ]
null
null
null
tests/index.js
RSOI/1
754f2a0c0df00d6f6319577d88352c6099b8bb58
[ "MIT" ]
null
null
null
const assert = require('assert'); const reduce = require('../modules/reduce') describe('Testing reducer module', function () { it('Should return empty string', function () { assert.equal(reduce(''), ''); }); it('Sholud return reduced string', function () { assert.equal(reduce('aaa'), '3a'); assert.equal(reduce('aaabbb'), '3a3b'); assert.equal(reduce('aaabcbc'), '3abcbc'); assert.equal(reduce('000'), '30'); }); });
31.857143
50
0.621076
a31f885ff63ed565b9f7276ddf052ac8390de8c3
638
java
Java
wallpaper/src/main/java/com/pickni/wallpaper/ResourceType.java
cj5785/wallpaper
6880f030547ad8e8656030735c842b4d00b1dacb
[ "MIT" ]
null
null
null
wallpaper/src/main/java/com/pickni/wallpaper/ResourceType.java
cj5785/wallpaper
6880f030547ad8e8656030735c842b4d00b1dacb
[ "MIT" ]
null
null
null
wallpaper/src/main/java/com/pickni/wallpaper/ResourceType.java
cj5785/wallpaper
6880f030547ad8e8656030735c842b4d00b1dacb
[ "MIT" ]
null
null
null
package com.pickni.wallpaper; import androidx.annotation.DrawableRes; import androidx.annotation.StringRes; public enum ResourceType { STATIC(R.string.wallpaper_static, R.drawable.ic_vector_static_img), DYNAMIC(R.string.wallpaper_dynamic, R.drawable.ic_vector_dynamic_img); @StringRes private final int title; @DrawableRes private final int drawable; ResourceType(@StringRes int title, @DrawableRes int drawable) { this.title = title; this.drawable = drawable; } public int getTitle() { return title; } public int getDrawable() { return drawable; } }
22
74
0.695925
bdb6ddd548e1a42844988b9902e7dac971ae40a4
5,361
asm
Assembly
Transynther/x86/_processed/P/_zr_/i7-7700_9_0x48_notsx.log_18046_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0x48_notsx.log_18046_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_zr_/i7-7700_9_0x48_notsx.log_18046_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x10abd, %r15 nop nop nop add $26014, %r9 mov (%r15), %r10w nop nop xor $25018, %r13 lea addresses_A_ht+0x17cbd, %rsi lea addresses_WC_ht+0x17fbd, %rdi nop add %r10, %r10 mov $106, %rcx rep movsb nop nop nop nop nop cmp $17909, %r15 lea addresses_WT_ht+0x1deb5, %rdi nop nop cmp $34826, %r15 movb $0x61, (%rdi) nop nop inc %r13 lea addresses_WT_ht+0x8501, %rdi nop nop nop nop nop and $27441, %r13 and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi nop nop nop nop nop and %r13, %r13 lea addresses_WC_ht+0x1b6bd, %rdi nop nop and %r15, %r15 mov (%rdi), %esi nop nop nop nop nop and %r10, %r10 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbx push %rdi push %rsi // Store lea addresses_WT+0x128bd, %r14 inc %rdi movw $0x5152, (%r14) nop dec %rsi // Faulty Load mov $0x7bd, %rdi nop nop nop nop nop cmp %r10, %r10 mov (%rdi), %r15w lea oracles, %rbx and $0xff, %r15 shlq $12, %r15 mov (%rbx,%r15,1), %r15 pop %rsi pop %rdi pop %rbx pop %r9 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_P', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 7}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_P', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 8}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 8}} {'00': 18046} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
40.923664
2,999
0.6579
127c2692ceb62ef5879c33104f87479aeb7a2ad6
1,504
cs
C#
EducacionAvanzada/EducacionAvanzada.BL/materiaBL.cs
jaimegh2012/educacionavanzadafinal
4a73647e6194a6c2198b5e86f897c2185c79a2ef
[ "MIT" ]
null
null
null
EducacionAvanzada/EducacionAvanzada.BL/materiaBL.cs
jaimegh2012/educacionavanzadafinal
4a73647e6194a6c2198b5e86f897c2185c79a2ef
[ "MIT" ]
null
null
null
EducacionAvanzada/EducacionAvanzada.BL/materiaBL.cs
jaimegh2012/educacionavanzadafinal
4a73647e6194a6c2198b5e86f897c2185c79a2ef
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EducacionAvanzada.BL { public class materiaBL { Contexto _contexto; public List<Materia> Listadematerias { get; set; } public materiaBL() { _contexto = new Contexto(); Listadematerias = new List<Materia>(); } public List<Materia> Obtenermaterias() { Listadematerias = _contexto.Materia.ToList(); return Listadematerias; } public Materia ObtenerMaterias(int id) { var materia = _contexto.Materia.Find(id); return materia; } public void GuardarMateria(Materia materia) { if (materia.Id == 0) { _contexto.Materia.Add(materia); } else { var MateriaExistente = _contexto.Materia.Find(materia.Id); MateriaExistente.Descripcion = materia.Descripcion; } _contexto.SaveChanges(); } public Materia ObtenerMateria(int id) { var materia = _contexto.Materia.Find(id); return materia; } public void EliminarMateria(int id) { var materia = _contexto.Materia.Find(id); _contexto.Materia.Remove(materia); _contexto.SaveChanges(); } } }
21.183099
74
0.539229
2c514824f395ef81ebdd34afb08c9e4572c4b59e
556
py
Python
programs/graduation-project/RandomForest.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
2
2017-02-19T15:11:06.000Z
2017-02-22T18:34:10.000Z
programs/graduation-project/RandomForest.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
null
null
null
programs/graduation-project/RandomForest.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
4
2017-02-26T08:10:30.000Z
2017-05-02T10:02:03.000Z
import numpy as np from sklearn.model_selection import validation_curve from sklearn.linear_model import Ridge import pandas as pd train = pd.read_excel('stats.xls', sheet_name='train') test = pd.read_excel('stats.xls', sheet_name='test') array_train = train.values array_test = test.values X = array_train[0:, 1:11] y = np.asarray(train['状态'], dtype="|S6") X_test = array_test[0:, 1:11] indices = np.arange(y.shape[0]) np.random.shuffle(indices) X, y = X[indices], y[indices] train_scores, valid_scores = validation_curve(Ridge(), X, y, "alpha")
22.24
69
0.732014
4ce1139bf3eaf47b2f4ffe85a1a792c88e97ccd4
2,765
py
Python
core.py
NeelShah18/sentencelabel
57150f410899dc8c9c5262bf32215b61f7685c40
[ "MIT" ]
1
2018-09-01T21:04:46.000Z
2018-09-01T21:04:46.000Z
core.py
NeelShah18/sentencelabel
57150f410899dc8c9c5262bf32215b61f7685c40
[ "MIT" ]
null
null
null
core.py
NeelShah18/sentencelabel
57150f410899dc8c9c5262bf32215b61f7685c40
[ "MIT" ]
null
null
null
from getsenti import base_emoji, base_text from clean import clean_it from nltk import word_tokenize from textblob import TextBlob def get_sentiment(text="Sample text data! And I am positive :-)", on_base = "t", flag_prob=False): '''get_sentiment return setiment of the text, emoji and emoticons in text. Args: text (str): Setence of paragraph for calculating setiment. on_base(charater): 't' for text sentitement and 'e' for emoji ant emoticons sentiment flag (boolean): True --> It gives 5 criteria 0,1,2,3,4 where 2(Nutral), 4(very positive), 1(very negative) False --> Gives probability with 2 floating point accuray between -1(negative) to 1(positive) Returns: __prob_sentiment: If flag = True it will return number(int) between 0 to 4 If flag = False it will return nmber(float-2f) between -1 to 1 Defaults: text = "Sample text data! And I am positive :-)" on_base = "t" flag_prob = False ''' result = {} text = text on_base = on_base flag_prob = flag_prob if on_base == "e": result = base_emoji(text,flag_prob) elif on_base == "t": result = base_text(text, flag_prob) else: result = {error: "Choose right on_base, it must be e or t, wehere e = emoji and t = text."} return result def ngram(text, gram=2): '''convert test to n-gram Args: text(str): Text to convert in n-gram gram(int): Number of n-gram Results: __gram_model(list(list)): return list of list depends on n-gram input Defaults: gram = 2 ''' __analyzer = TextBlob(str(text)) return __analyzer.ngrams(n=gram) def tokenizer(text): '''tokenizer return tokens of the text. Args: text(str): Text to convert in tokens Results: __tokens(list): List of tokens of given text ''' return word_tokenize(str(text)) def do_clean(text, settings): '''clean_it function different type of text cleaning. Args: text(str): Text to ne cleaned. settings(dict): Dictonary of different type of settings. defaults: Here True flag means to do that things on given text. dettings : { 'to_upeer' : False, 'to_lower' : False, 'remove_special' : False, 'remove_number' : False, 'spelling_correction' : False, 'remove_stopwords' : False, 'remove_punchuation' : False, } ''' return clean_it(text, settings) def test(): '''test fucntion for setencelabel library. ''' #test_data = "I love python 👨 :-)" test_data = "I love python :-) why not" result = get_sentiment(text=test_data, on_base='e', flag_prob=False) print(result) x = ngram("ever use may thought sat high school english class grown find writing far ever would expected",3) print(x) print(tokenizer("ever use may thought sat high school english class grown find writing far ever would expected")) return None if __name__ == '__main__': test()
27.376238
114
0.709222
d035a85216f35451abf857aec3f1e70f4c974c4e
2,663
cpp
C++
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define ll long long int #define loop(k) for(i=0;i<k;++i) #define loop2(k,l) for(j=k;j<l;++j) #define mod 100000000 using namespace std; int main() { std::ios_base::sync_with_stdio(false);//cin.tie(NULL); ll t=1,i=0,j=0; //cin>>t; while(t--){ int n;cin>>n; ll a[n]; loop(n)cin>>a[i]; int len=(int)sqrt(n)+1; ll bmax[len]={0},bmin[len]; loop(len)bmin[i]=100000000; loop(n){ bmax[i/len]=max(bmax[i/len],a[i]); } loop(n){ bmin[i/len]=min(bmin[i/len],a[i]); } int q;cin>>q; while(q--){ int l,r; cin>>l>>r; int r1=r; double max=a[l],min=a[l]; ll lt=l/len,rt=r/len; if(lt==rt){ //find max and min bw l r for(i=l;i<=r;++i){ if(a[i]>max)max=a[i]; if(a[i]<min)min=a[i]; } } else{ for(i=l;i<(lt+1)*len;++i){ if(a[i]>max)max=a[i]; if(a[i]<min)min=a[i]; } for(i=lt+1;i<rt;++i){ if(bmax[i]>max)max=bmax[i]; if(bmin[i]<min)min=bmin[i]; } for(i=rt*len;i<=r;++i){ if(a[i]>max)max=a[i]; if(a[i]<min)min=a[i]; } } double maxout=0; //find out max in array a excluding l to r r=l-1;l=0; if(r>=0){ rt=r/len;lt=l/len; //0-l-1 if(lt==rt){ for(i=l;i<=r;++i){ if(a[i]>maxout)maxout=a[i]; } } else{ for(i=l;i<(lt+1)*len;++i){ if(a[i]>maxout)maxout=a[i]; } for(i=lt+1;i<rt;++i){ if(bmax[i]>maxout)maxout=bmax[i]; } for(i=rt*len;i<=r;++i){ if(a[i]>maxout)maxout=a[i]; } } } l=r1+1;r=n-1; if(l<=n-1){ rt=r/len;lt=l/len; if(lt==rt){ for(i=l;i<=r;++i){ if(a[i]>maxout)maxout=a[i]; } } else{ for(i=l;i<(lt+1)*len;++i){ if(a[i]>maxout)maxout=a[i]; } for(i=lt+1;i<rt;++i){ if(bmax[i]>maxout)maxout=bmax[i]; } for(i=rt*len;i<=r;++i){ if(a[i]>maxout)maxout=a[i]; } } } //cout<<maxout<<" "<<min<<" "<<max<<"\n"; double temp=maxout+min; max-=min; double temp2=min+max/2; //cout<<temp<<" "<<temp2<<"\n"; if(temp<temp2)temp=temp2; cout<<fixed<<setprecision(1)<<temp<<"\n"; } } return 0; }
25.605769
68
0.38528
c515bc229b1b0aecc77649aa403767b7f2d325ae
1,622
css
CSS
src/Containers/EditarHilo/EditarHilo.css
luigiMinardi/redsocial_frontend
548555c7ea78998a38f1010cce4ff7b583247abe
[ "MIT" ]
null
null
null
src/Containers/EditarHilo/EditarHilo.css
luigiMinardi/redsocial_frontend
548555c7ea78998a38f1010cce4ff7b583247abe
[ "MIT" ]
null
null
null
src/Containers/EditarHilo/EditarHilo.css
luigiMinardi/redsocial_frontend
548555c7ea78998a38f1010cce4ff7b583247abe
[ "MIT" ]
null
null
null
.paginaEditarHilo { display: flex; flex-direction: column; background-color: red; height: 76.9em; width: 100%; } .contenidoEditarHilo { background-color: aqua; display: flex; height: 100%; width: 100%; } .cuerpoEditarHilo { background-color: #2B2B31; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; /* flex-wrap: wrap; */ justify-content: center; overflow-y: scroll; } .cuerpoEditarHilo::-webkit-scrollbar { display: none; } .foroPostEditarHilo { border-radius: 3em 3em 2em 2em; background-color: rgba(196, 196, 196, 1); width: 65em; margin-bottom: 2em; } .postCabezaEditarHilo { display: flex; align-items: center; justify-content: center; background-color: #611B5E; height: 3em; width: 100%; border-radius: 2em 2em 0 0; } .contenidoPostEditarHilo { display: flex; flex-direction: column; align-items: center; justify-content: center; } .inputEditarHilo { all:unset; text-align: left; border: 2px solid #611B5E; border-bottom: 2px 2px; padding: 0.50em; width: 80%; margin: 0.5em; margin-top: 1.25em; background-color: #555a402d; } .botonEditarHilo{ height: 3em; width: 10em; background-color: #555a402d; color: black; border: 2px solid #611B5E; border-radius: 2em; display: flex; justify-content: center; align-items: center; margin: 1em; } .botonEditarHilo:hover { background-color: rgba(196, 196, 196, 1); font-weight: bolder; cursor: pointer; }
18.643678
45
0.630086
0c97fba9c3615e8eada968959afd7ad55fa85699
398
sql
SQL
SQL/Fixing_DISTINCT_ON_not_supported/redshift.sql
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2019-09-27T22:19:09.000Z
2019-12-02T23:12:18.000Z
SQL/Fixing_DISTINCT_ON_not_supported/redshift.sql
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
1
2019-10-03T17:46:23.000Z
2019-10-03T17:46:23.000Z
SQL/Fixing_DISTINCT_ON_not_supported/redshift.sql
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2021-07-17T18:23:50.000Z
2022-03-03T04:53:03.000Z
with dataset as ( select 'bart' as name, 'first bart' as text_value, 1 as ordering union all select 'homer', 'second homer', 2 union all select 'bart', 'second bart', 2 union all select 'homer', 'first homer', 1 ) select distinct name , first_value(text_value) over(partition by name order by ordering rows between unbounded preceding and unbounded following) as text_value from dataset
36.181818
140
0.746231
afe21ae7697b32b8ae8cdea00548132b4f71a069
5,938
py
Python
reddit_place/models.py
dkasper/reddit-plugin-place-opensource
453892c6f0a419f49c86759c60c2bdf64e13354a
[ "BSD-3-Clause" ]
780
2017-04-13T17:52:13.000Z
2018-06-26T23:16:11.000Z
reddit_place/models.py
dkasper/reddit-plugin-place-opensource
453892c6f0a419f49c86759c60c2bdf64e13354a
[ "BSD-3-Clause" ]
3
2017-04-18T20:23:53.000Z
2018-05-11T09:57:40.000Z
reddit_place/models.py
dkasper/reddit-plugin-place-opensource
453892c6f0a419f49c86759c60c2bdf64e13354a
[ "BSD-3-Clause" ]
74
2017-04-13T18:18:17.000Z
2018-06-27T08:33:38.000Z
from datetime import datetime import json import struct import time from pycassa.system_manager import TIME_UUID_TYPE, INT_TYPE from pycassa.types import CompositeType, IntegerType from pycassa.util import convert_uuid_to_time from pylons import app_globals as g from pylons import tmpl_context as c from r2.lib.db import tdb_cassandra CANVAS_ID = "real_1" CANVAS_WIDTH = 1000 CANVAS_HEIGHT = 1000 class RedisCanvas(object): @classmethod def get_board(cls): # We plan on heavily caching this board bitmap. We include the # timestamp as a 32 bit uint at the beginning so the client can make a # determination as to whether the cached state is too old. If it's too # old, the client will hit the non-fastly-cached endpoint directly. timestamp = time.time() # If no pixels have been placed yet, we'll get back None. This will # cause concatenation to fail below, so we turn it into a string # instead. bitmap = c.place_redis.get(CANVAS_ID) or '' return struct.pack('I', int(timestamp)) + bitmap @classmethod def set_pixel(cls, color, x, y): # The canvas is stored in one long redis bitfield, offset by the # coordinates of the pixel. For instance, for a canvas of width 1000, # the offset for position (1, 1) would be 1001. redis conveniently # lets us ignore our integer size when specifying our offset, doing the # calculation for us. For instance, rather than (3, 0) being sent as # offset 72 for a 24-bit integer, we can just use the offset 3. # # https://redis.io/commands/bitfield # UINT_SIZE = 'u4' # Max value: 15 offset = y * CANVAS_WIDTH + x c.place_redis.execute_command( 'bitfield', CANVAS_ID, 'SET', UINT_SIZE, '#%d' % offset, color) class Pixel(tdb_cassandra.UuidThing): _use_db = True _connection_pool = 'main' _read_consistency_level = tdb_cassandra.CL.QUORUM _write_consistency_level = tdb_cassandra.CL.QUORUM _int_props = ( 'x', 'y', ) @classmethod def create(cls, user, color, x, y): # We dual-write to cassandra to allow the frontend to get information # on a particular pixel, as well as to have a backup, persistent state # of the board in case something goes wrong with redis. pixel = cls( canvas_id=CANVAS_ID, user_name=user.name if user else '', user_fullname=user._fullname if user else '', color=color, x=x, y=y, ) pixel._commit() Canvas.insert_pixel(pixel) if user: PixelsByParticipant.add(user, pixel) RedisCanvas.set_pixel(color, x, y) g.stats.simple_event('place.pixel.create') return pixel @classmethod def get_last_placement_datetime(cls, user): return PixelsByParticipant.get_last_pixel_datetime(user) @classmethod def get_pixel_at(cls, x, y): pixel_dict = Canvas.get(x, y) if not pixel_dict: return None return dict( user_name=pixel_dict["user_name"], color=pixel_dict["color"], x=x, y=y, timestamp=pixel_dict["timestamp"], ) class PixelsByParticipant(tdb_cassandra.View): _use_db = True _connection_pool = 'main' _compare_with = TIME_UUID_TYPE _read_consistency_level = tdb_cassandra.CL.QUORUM _write_consistency_level = tdb_cassandra.CL.QUORUM @classmethod def _rowkey(cls, user): return CANVAS_ID + "_ " + user._fullname @classmethod def add(cls, user, pixel): rowkey = cls._rowkey(user) pixel_dict = { "user_fullname": pixel.user_fullname, "color": pixel.color, "x": pixel.x, "y": pixel.y, } columns = {pixel._id: json.dumps(pixel_dict)} cls._cf.insert(rowkey, columns) @classmethod def get_last_pixel_datetime(cls, user): rowkey = cls._rowkey(user) try: columns = cls._cf.get(rowkey, column_count=1, column_reversed=True) except tdb_cassandra.NotFoundException: return None u = columns.keys()[0] ts = convert_uuid_to_time(u) return datetime.utcfromtimestamp(ts).replace(tzinfo=g.tz) class Canvas(tdb_cassandra.View): _use_db = True _connection_pool = 'main' _compare_with = CompositeType(IntegerType(), IntegerType()) """ Super naive storage for the canvas, everything's in a single row. In the future we may want to break it up so that each C* row contains only a subset of all rows. That would spread the data out in the ring and would make it easy to grab regions of the canvas. """ @classmethod def _rowkey(cls): return CANVAS_ID @classmethod def insert_pixel(cls, pixel): columns = { (pixel.x, pixel.y): json.dumps({ "color": pixel.color, "timestamp": convert_uuid_to_time(pixel._id), "user_name": pixel.user_name, "user_fullname": pixel.user_fullname, }) } cls._cf.insert(cls._rowkey(), columns) @classmethod def get(cls, x, y): column = (x, y) try: row = cls._cf.get(cls._rowkey(), columns=[column]) except tdb_cassandra.NotFoundException: return {} d = row.get(column, '{}') pixel_dict = json.loads(d) return pixel_dict @classmethod def get_all(cls): """Return dict of (x,y) -> color""" try: gen = cls._cf.xget(cls._rowkey()) except tdb_cassandra.NotFoundException: return {} return { (x, y): json.loads(d) for (x, y), d in gen }
29.542289
79
0.613675
989b7de7810a32905523028f697ea04594697de4
20,535
sql
SQL
migrations/8e970a3-initial-db.sql
redcross/smoke-alarm-portal
80c4df42633e6d57e6d0909562bc198c5b5f52b2
[ "MIT" ]
9
2015-11-03T20:54:04.000Z
2018-09-18T21:59:33.000Z
migrations/8e970a3-initial-db.sql
redcross/smoke-alarm-portal
80c4df42633e6d57e6d0909562bc198c5b5f52b2
[ "MIT" ]
200
2015-08-05T19:02:25.000Z
2020-09-04T02:45:36.000Z
migrations/8e970a3-initial-db.sql
redcross/smoke-alarm-portal
80c4df42633e6d57e6d0909562bc198c5b5f52b2
[ "MIT" ]
27
2015-11-04T15:58:27.000Z
2020-02-20T04:31:42.000Z
-- -- PostgreSQL database dump -- -- Dumped from sequelize generated tables on 20190118 from commit 8e970a3 -- All migrations are based on this base -- Dumped from database version 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1) -- Dumped by pg_dump version 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: Account; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Account" ( id integer NOT NULL, "isVerified" text, name json, company text, phone text, zip text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, "UserId" integer ); -- -- Name: Account_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Account_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Account_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Account_id_seq" OWNED BY public."Account".id; -- -- Name: Admin; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Admin" ( id integer NOT NULL, name json, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, "UserId" integer, "AdminGroupId" integer ); -- -- Name: AdminGroup; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."AdminGroup" ( id integer NOT NULL, name text, permissions json, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: AdminGroup_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."AdminGroup_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: AdminGroup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."AdminGroup_id_seq" OWNED BY public."AdminGroup".id; -- -- Name: Admin_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Admin_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Admin_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Admin_id_seq" OWNED BY public."Admin".id; -- -- Name: Category; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Category" ( id integer NOT NULL, name text, pivot text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: Category_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Category_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Category_id_seq" OWNED BY public."Category".id; -- -- Name: LoginAttempt; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."LoginAttempt" ( id integer NOT NULL, ip text, "user" text, "time" timestamp with time zone, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: LoginAttempt_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."LoginAttempt_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: LoginAttempt_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."LoginAttempt_id_seq" OWNED BY public."LoginAttempt".id; -- -- Name: Message; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Message" ( id integer NOT NULL, name text, body text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, "UserId" integer ); -- -- Name: Message_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Message_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Message_id_seq" OWNED BY public."Message".id; -- -- Name: Note; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Note" ( id integer NOT NULL, data text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: Note_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Note_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Note_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Note_id_seq" OWNED BY public."Note".id; -- -- Name: RequestDuplicates; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."RequestDuplicates" ( id integer NOT NULL, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, "requestId" integer ); -- -- Name: RequestDuplicates_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."RequestDuplicates_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: RequestDuplicates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."RequestDuplicates_id_seq" OWNED BY public."RequestDuplicates".id; -- -- Name: Requests; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Requests" ( id integer NOT NULL, name text, address text, sms_raw_address text, assigned_rc_region text, city text, state text, zip text, sms_raw_zip text, phone text, sms_raw_phone text, email text, source text, serial text, status text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, selected_county integer ); -- -- Name: Requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Requests_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Requests_id_seq" OWNED BY public."Requests".id; -- -- Name: SelectedCounties; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."SelectedCounties" ( id integer NOT NULL, region text, state text, county text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: SelectedCounties_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."SelectedCounties_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: SelectedCounties_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."SelectedCounties_id_seq" OWNED BY public."SelectedCounties".id; -- -- Name: Status; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."Status" ( id integer NOT NULL, name text, pivot text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: StatusLog; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."StatusLog" ( id integer NOT NULL, name text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: StatusLog_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."StatusLog_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: StatusLog_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."StatusLog_id_seq" OWNED BY public."StatusLog".id; -- -- Name: Status_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."Status_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: Status_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."Status_id_seq" OWNED BY public."Status".id; -- -- Name: UsAddress; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."UsAddress" ( id integer NOT NULL, zip text, type text, primary_city text, acceptable_cities text, unacceptable_cities text, state text, county text, timezone text, area_codes text, latitude numeric, longitude numeric, world_region text, country text, decommissioned boolean, estimated_population integer, notes text, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: UsAddress_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."UsAddress_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: UsAddress_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."UsAddress_id_seq" OWNED BY public."UsAddress".id; -- -- Name: User; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."User" ( id integer NOT NULL, username text NOT NULL, password text, email text, "isActive" text, "resetPasswordToken" text, "resetPasswordExpires" timestamp with time zone, twitter json, github json, facebook json, google json, tumblr json, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: User_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."User_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: User_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."User_id_seq" OWNED BY public."User".id; -- -- Name: activeRegions; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."activeRegions" ( rc_region text NOT NULL, region_name text, contact_name text, contact_email text, contact_phone text, is_active boolean, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: regionPermissions; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public."regionPermissions" ( id integer NOT NULL, rc_region text, user_id integer, "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL ); -- -- Name: regionPermissions_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public."regionPermissions_id_seq" AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: regionPermissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public."regionPermissions_id_seq" OWNED BY public."regionPermissions".id; -- -- Name: Account id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Account" ALTER COLUMN id SET DEFAULT nextval('public."Account_id_seq"'::regclass); -- -- Name: Admin id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Admin" ALTER COLUMN id SET DEFAULT nextval('public."Admin_id_seq"'::regclass); -- -- Name: AdminGroup id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."AdminGroup" ALTER COLUMN id SET DEFAULT nextval('public."AdminGroup_id_seq"'::regclass); -- -- Name: Category id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Category" ALTER COLUMN id SET DEFAULT nextval('public."Category_id_seq"'::regclass); -- -- Name: LoginAttempt id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."LoginAttempt" ALTER COLUMN id SET DEFAULT nextval('public."LoginAttempt_id_seq"'::regclass); -- -- Name: Message id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Message" ALTER COLUMN id SET DEFAULT nextval('public."Message_id_seq"'::regclass); -- -- Name: Note id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Note" ALTER COLUMN id SET DEFAULT nextval('public."Note_id_seq"'::regclass); -- -- Name: RequestDuplicates id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."RequestDuplicates" ALTER COLUMN id SET DEFAULT nextval('public."RequestDuplicates_id_seq"'::regclass); -- -- Name: Requests id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Requests" ALTER COLUMN id SET DEFAULT nextval('public."Requests_id_seq"'::regclass); -- -- Name: SelectedCounties id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."SelectedCounties" ALTER COLUMN id SET DEFAULT nextval('public."SelectedCounties_id_seq"'::regclass); -- -- Name: Status id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Status" ALTER COLUMN id SET DEFAULT nextval('public."Status_id_seq"'::regclass); -- -- Name: StatusLog id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."StatusLog" ALTER COLUMN id SET DEFAULT nextval('public."StatusLog_id_seq"'::regclass); -- -- Name: UsAddress id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."UsAddress" ALTER COLUMN id SET DEFAULT nextval('public."UsAddress_id_seq"'::regclass); -- -- Name: User id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."User" ALTER COLUMN id SET DEFAULT nextval('public."User_id_seq"'::regclass); -- -- Name: regionPermissions id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY public."regionPermissions" ALTER COLUMN id SET DEFAULT nextval('public."regionPermissions_id_seq"'::regclass); -- -- Name: Account Account_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Account" ADD CONSTRAINT "Account_pkey" PRIMARY KEY (id); -- -- Name: AdminGroup AdminGroup_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."AdminGroup" ADD CONSTRAINT "AdminGroup_pkey" PRIMARY KEY (id); -- -- Name: Admin Admin_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Admin" ADD CONSTRAINT "Admin_pkey" PRIMARY KEY (id); -- -- Name: Category Category_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Category" ADD CONSTRAINT "Category_pkey" PRIMARY KEY (id); -- -- Name: LoginAttempt LoginAttempt_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."LoginAttempt" ADD CONSTRAINT "LoginAttempt_pkey" PRIMARY KEY (id); -- -- Name: Message Message_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Message" ADD CONSTRAINT "Message_pkey" PRIMARY KEY (id); -- -- Name: Note Note_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Note" ADD CONSTRAINT "Note_pkey" PRIMARY KEY (id); -- -- Name: RequestDuplicates RequestDuplicates_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."RequestDuplicates" ADD CONSTRAINT "RequestDuplicates_pkey" PRIMARY KEY (id); -- -- Name: Requests Requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Requests" ADD CONSTRAINT "Requests_pkey" PRIMARY KEY (id); -- -- Name: Requests Requests_serial_key; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Requests" ADD CONSTRAINT "Requests_serial_key" UNIQUE (serial); -- -- Name: SelectedCounties SelectedCounties_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."SelectedCounties" ADD CONSTRAINT "SelectedCounties_pkey" PRIMARY KEY (id); -- -- Name: StatusLog StatusLog_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."StatusLog" ADD CONSTRAINT "StatusLog_pkey" PRIMARY KEY (id); -- -- Name: Status Status_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Status" ADD CONSTRAINT "Status_pkey" PRIMARY KEY (id); -- -- Name: UsAddress UsAddress_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."UsAddress" ADD CONSTRAINT "UsAddress_pkey" PRIMARY KEY (id); -- -- Name: User User_email_key; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."User" ADD CONSTRAINT "User_email_key" UNIQUE (email); -- -- Name: User User_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."User" ADD CONSTRAINT "User_pkey" PRIMARY KEY (id); -- -- Name: User User_username_key; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."User" ADD CONSTRAINT "User_username_key" UNIQUE (username); -- -- Name: activeRegions activeRegions_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."activeRegions" ADD CONSTRAINT "activeRegions_pkey" PRIMARY KEY (rc_region); -- -- Name: regionPermissions regionPermissions_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."regionPermissions" ADD CONSTRAINT "regionPermissions_pkey" PRIMARY KEY (id); -- -- Name: Account Account_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Account" ADD CONSTRAINT "Account_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: Admin Admin_AdminGroupId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Admin" ADD CONSTRAINT "Admin_AdminGroupId_fkey" FOREIGN KEY ("AdminGroupId") REFERENCES public."AdminGroup"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: Admin Admin_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Admin" ADD CONSTRAINT "Admin_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: Message Message_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Message" ADD CONSTRAINT "Message_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: RequestDuplicates RequestDuplicates_requestId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."RequestDuplicates" ADD CONSTRAINT "RequestDuplicates_requestId_fkey" FOREIGN KEY ("requestId") REFERENCES public."Requests"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: Requests Requests_assigned_rc_region_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Requests" ADD CONSTRAINT "Requests_assigned_rc_region_fkey" FOREIGN KEY (assigned_rc_region) REFERENCES public."activeRegions"(rc_region) ON UPDATE CASCADE; -- -- Name: Requests Requests_selected_county_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."Requests" ADD CONSTRAINT "Requests_selected_county_fkey" FOREIGN KEY (selected_county) REFERENCES public."SelectedCounties"(id) ON UPDATE CASCADE ON DELETE SET NULL; -- -- Name: regionPermissions regionPermissions_rc_region_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."regionPermissions" ADD CONSTRAINT "regionPermissions_rc_region_fkey" FOREIGN KEY (rc_region) REFERENCES public."activeRegions"(rc_region) ON UPDATE CASCADE; -- -- Name: regionPermissions regionPermissions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public."regionPermissions" ADD CONSTRAINT "regionPermissions_user_id_fkey" FOREIGN KEY (user_id) REFERENCES public."User"(id) ON UPDATE CASCADE; -- -- PostgreSQL database dump complete --
22.224026
159
0.702703
b88a5f03b8a408b8ad6c940c031269865ecfa941
4,127
c
C
samples/common/file_input_stream.c
ambiot/amazon-kinesis-video-streams-producer-embedded-c
67a12eac451ca48473455519d64f745aa092bb2a
[ "Apache-2.0" ]
null
null
null
samples/common/file_input_stream.c
ambiot/amazon-kinesis-video-streams-producer-embedded-c
67a12eac451ca48473455519d64f745aa092bb2a
[ "Apache-2.0" ]
null
null
null
samples/common/file_input_stream.c
ambiot/amazon-kinesis-video-streams-producer-embedded-c
67a12eac451ca48473455519d64f745aa092bb2a
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "file_input_stream.h" #define ERRNO_NONE 0 #define ERRNO_FAIL __LINE__ #define DEFAULT_BUFSIZE (1024) FileInputStream_t *FIS_create(const char *pcFilename) { int res = ERRNO_NONE; FileInputStream_t *pFis = NULL; if (pcFilename == NULL) { res = ERRNO_FAIL; } else if ((pFis = (FileInputStream_t *)malloc(sizeof(FileInputStream_t))) == NULL) { res = ERRNO_FAIL; } else { memset(pFis, 0, sizeof(FileInputStream_t)); pFis->uBufSize = DEFAULT_BUFSIZE; if ((pFis->fp = fopen(pcFilename, "rb")) == NULL) { printf("Unable to open file:%s\r\n", pcFilename); res = ERRNO_FAIL; } else if (fseek(pFis->fp, 0L, SEEK_END) != 0 || ((pFis->xFileSize = ftell(pFis->fp)) < 0) || fseek(pFis->fp, 0L, SEEK_SET) != 0) { printf("Unable to identify the filesize\r\n"); res = ERRNO_FAIL; } else if ((pFis->pBuf = (uint8_t *)malloc(pFis->uBufSize)) == NULL) { printf("OOM: pBuf in File Stream\r\n"); res = ERRNO_FAIL; } else { pFis->xFileIdx = 0; pFis->uDataLen = 0; } } if (res != ERRNO_NONE) { FIS_terminate(pFis); pFis = NULL; } return pFis; } void FIS_terminate(FileInputStream_t *pFis) { if (pFis != NULL) { if (pFis->fp != NULL) { fclose(pFis->fp); } if (pFis->pBuf != NULL) { free(pFis->pBuf); } free(pFis); } } int FIS_readIntoBuf(FileInputStream_t *pFis) { int res = ERRNO_NONE; uint8_t *pBufTemp = NULL; size_t uBytesRead = 0; if (pFis == NULL || pFis->fp == NULL || pFis->pBuf == NULL) { printf("Invalid argument in File Input Stream\r\n"); res = ERRNO_FAIL; } else if (pFis->xFileIdx == pFis->xFileSize) { printf("No more data to read\r\n"); res = ERRNO_FAIL; } else { if (pFis->uDataLen == pFis->uBufSize) { pBufTemp = realloc(pFis->pBuf, pFis->uBufSize * 2); if (pBufTemp == NULL) { printf("OOM: pBufTemp in File Input Stream\r\n"); res = ERRNO_FAIL; } else { pFis->pBuf = pBufTemp; pFis->uBufSize *= 2; } } if (res == ERRNO_NONE) { uBytesRead = fread(pFis->pBuf + pFis->uDataLen, 1, pFis->uBufSize - pFis->uDataLen, pFis->fp); if (uBytesRead == 0 || uBytesRead + pFis->uDataLen > pFis->uBufSize) { printf("Failed to read\r\n"); res = ERRNO_FAIL; } else { pFis->uDataLen += uBytesRead; pFis->xFileIdx += uBytesRead; } } } return res; } int FIS_consumeBuf(FileInputStream_t *pFis, size_t uSize) { int res = ERRNO_NONE; if (pFis == NULL || pFis->fp == NULL || pFis->pBuf == NULL) { printf("Invalid argument in File Input Stream\r\n"); res = ERRNO_FAIL; } else { if (uSize > 0 && uSize <= pFis->uDataLen) { memmove(pFis->pBuf, pFis->pBuf + uSize, pFis->uDataLen - uSize); pFis->uDataLen -= uSize; } } return res; }
24.861446
106
0.521929
6b259170c2948402329b9e51512623ddef4caac1
382
js
JavaScript
config/database.js
minhtuanchannhan/db-action
46d5d3c49bf7d2b55c3f2952bd373ff9e5111c20
[ "MIT" ]
null
null
null
config/database.js
minhtuanchannhan/db-action
46d5d3c49bf7d2b55c3f2952bd373ff9e5111c20
[ "MIT" ]
null
null
null
config/database.js
minhtuanchannhan/db-action
46d5d3c49bf7d2b55c3f2952bd373ff9e5111c20
[ "MIT" ]
null
null
null
require('dotenv').config(); module.exports = { username: process.env.DB_USER || '', password: process.env.DB_PASSWORD || '', database: process.env.DB_NAME || '', port: process.env.DB_PORT || '3306', host: process.env.DB_HOST || 'localhost', dialect: process.env.DB_DIALECT || 'mysql', define: { charset: 'utf8', dialectOptions: { collate: 'utf8_general_ci' } } };
22.470588
44
0.657068
9e1716be78b41a77f050240aa7ec306657cbc3de
6,047
cs
C#
EGet/EH-Get.Designer.cs
Erica-W/EGet
01ac9c48f559a54514237261aae3c6ab3aad4f9e
[ "Apache-2.0" ]
null
null
null
EGet/EH-Get.Designer.cs
Erica-W/EGet
01ac9c48f559a54514237261aae3c6ab3aad4f9e
[ "Apache-2.0" ]
null
null
null
EGet/EH-Get.Designer.cs
Erica-W/EGet
01ac9c48f559a54514237261aae3c6ab3aad4f9e
[ "Apache-2.0" ]
null
null
null
namespace EGet { partial class EH_Get { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EH_Get)); this.lblUrl = new System.Windows.Forms.Label(); this.txtTargetUrl = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.btnDownload = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.txtSaveDest = new System.Windows.Forms.TextBox(); this.brnSelect = new System.Windows.Forms.Button(); this.lblTip = new System.Windows.Forms.Label(); this.SuspendLayout(); // // lblUrl // this.lblUrl.AutoSize = true; this.lblUrl.Location = new System.Drawing.Point(30, 73); this.lblUrl.Name = "lblUrl"; this.lblUrl.Size = new System.Drawing.Size(65, 12); this.lblUrl.TabIndex = 0; this.lblUrl.Text = "网页地址:"; // // txtTargetUrl // this.txtTargetUrl.Location = new System.Drawing.Point(100, 70); this.txtTargetUrl.Name = "txtTargetUrl"; this.txtTargetUrl.Size = new System.Drawing.Size(363, 21); this.txtTargetUrl.TabIndex = 1; // // label1 // this.label1.AutoSize = true; this.label1.ForeColor = System.Drawing.Color.Red; this.label1.Location = new System.Drawing.Point(98, 103); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(371, 12); this.label1.TabIndex = 2; this.label1.Text = "注:先选择存放地址,然后输入你要爬取的本子网页地址(仅限E站)"; // // btnDownload // this.btnDownload.Location = new System.Drawing.Point(494, 70); this.btnDownload.Name = "btnDownload"; this.btnDownload.Size = new System.Drawing.Size(84, 23); this.btnDownload.TabIndex = 3; this.btnDownload.Text = "一键下载"; this.btnDownload.UseVisualStyleBackColor = true; this.btnDownload.Click += new System.EventHandler(this.btnDownload_Click); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(30, 31); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(65, 12); this.label2.TabIndex = 4; this.label2.Text = "存放路径:"; // // txtSaveDest // this.txtSaveDest.Enabled = false; this.txtSaveDest.Location = new System.Drawing.Point(100, 28); this.txtSaveDest.Name = "txtSaveDest"; this.txtSaveDest.Size = new System.Drawing.Size(363, 21); this.txtSaveDest.TabIndex = 5; // // brnSelect // this.brnSelect.Location = new System.Drawing.Point(494, 26); this.brnSelect.Name = "brnSelect"; this.brnSelect.Size = new System.Drawing.Size(84, 23); this.brnSelect.TabIndex = 6; this.brnSelect.Text = "选择文件夹"; this.brnSelect.UseVisualStyleBackColor = true; this.brnSelect.Click += new System.EventHandler(this.brnSelect_Click); // // lblTip // this.lblTip.AutoSize = true; this.lblTip.ForeColor = System.Drawing.Color.Red; this.lblTip.Location = new System.Drawing.Point(100, 135); this.lblTip.Name = "lblTip"; this.lblTip.Size = new System.Drawing.Size(0, 12); this.lblTip.TabIndex = 7; // // EH_Get // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(640, 177); this.Controls.Add(this.lblTip); this.Controls.Add(this.brnSelect); this.Controls.Add(this.txtSaveDest); this.Controls.Add(this.label2); this.Controls.Add(this.btnDownload); this.Controls.Add(this.label1); this.Controls.Add(this.txtTargetUrl); this.Controls.Add(this.lblUrl); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "EH_Get"; this.Text = "E站本子下载器 —— by EricaW"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label lblUrl; private System.Windows.Forms.TextBox txtTargetUrl; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button btnDownload; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox txtSaveDest; private System.Windows.Forms.Button brnSelect; private System.Windows.Forms.Label lblTip; } }
41.417808
138
0.564081
7b0bc1ecbc9829d1394303f87759528115ee8c8d
200
rb
Ruby
process.rb
shivabhusal/LogProcessor
f82e73c87a0faf8cf835e49d857fc451c320903b
[ "MIT" ]
1
2017-05-17T06:01:07.000Z
2017-05-17T06:01:07.000Z
process.rb
shivabhusal/LogProcessor
f82e73c87a0faf8cf835e49d857fc451c320903b
[ "MIT" ]
null
null
null
process.rb
shivabhusal/LogProcessor
f82e73c87a0faf8cf835e49d857fc451c320903b
[ "MIT" ]
null
null
null
require './lib/processor' file_names_via_arg = ARGV; file_names_via_arg.each do |filename| puts "In file: '#{filename}'" puts '*'*80 lp = LogProcessor.new(filename) lp.process puts '-'*80 end
16.666667
37
0.7
20efb42ccbbb8110c184c38cc854c0e1a7a7c998
1,519
py
Python
setup.py
masalomon01/heroku-kafka-eze
0d25c0ccff272b842a8bafebdb1b56852e928105
[ "MIT" ]
null
null
null
setup.py
masalomon01/heroku-kafka-eze
0d25c0ccff272b842a8bafebdb1b56852e928105
[ "MIT" ]
null
null
null
setup.py
masalomon01/heroku-kafka-eze
0d25c0ccff272b842a8bafebdb1b56852e928105
[ "MIT" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( version='0.0.2', # Update the version number for new releases name='heroku-kafka-eze', # This is the name of your PyPI-package. description='Python kafka package for use with heroku\'s kafka. You\'ll only need your heroku api key and app name', long_description=long_description, classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], url='https://github.com/masalomon01/heroku-kafka-eze', author='MarSal', keywords='heroku, kafka', author_email='[email protected]', license='MIT', py_modules=["heroku_kafka_eze"], install_requires=[ 'kafka-python==1.3.5', 'heroku3==3.3.0' ] )
37.04878
120
0.63792
0c5df9c5766f1a5c2c5c7a585ac611713fdab6ba
6,306
rb
Ruby
plugin.rb
chrispanag/rebetiko-sealabs-onebox
3cbb2118dee8ae28a1da08e9f956c67060d5a2f8
[ "MIT" ]
2
2020-12-04T06:00:21.000Z
2020-12-05T22:41:58.000Z
plugin.rb
chrispanag/rebetiko-sealabs-onebox
3cbb2118dee8ae28a1da08e9f956c67060d5a2f8
[ "MIT" ]
null
null
null
plugin.rb
chrispanag/rebetiko-sealabs-onebox
3cbb2118dee8ae28a1da08e9f956c67060d5a2f8
[ "MIT" ]
null
null
null
# frozen_string_literal: true # name: SealabsOnebox # about: Load onebox previews for rebetiko.sealabs.net # version: 0.1 # authors: chrispanag # url: https://github.com/chrispanag register_asset "stylesheets/common/sealabs-onebox.scss" # register_asset 'stylesheets/desktop/sealabs-onebox.scss', :desktop # register_asset 'stylesheets/mobile/sealabs-onebox.scss', :mobile PLUGIN_NAME ||= "SealabsOnebox" # load File.expand_path('lib/sealabs-onebox/engine.rb', __dir__) Onebox = Onebox module Onebox module Engine class RebetikoSealabsOnebox include Engine include JSON include HTML matches_regexp(/^(https?:\/\/)?rebetiko.sealabs.net\/display.php\?(.*)recid=(.*)/) def to_html item = fetcher[:data][0] etiketa = extractEtiketa(item[:etiketa]) etos = extractEtos(item[:etosixog]) <<-HTML <aside class="onebox rebetikosealabs"> <header class="source"> <a href="#{item[:"0"]}" target="_blank">rebetiko.sealabs.net – Βάση Δεδομένων</a> </header> <article class="onebox-body"> #{ etiketa ? <<-HTML <img src="#{etiketa}" class="thumbnail"/> HTML : nil } <h3><a href="#{item[:"0"]}" target="_blank">#{item[:name]}#{etos ? " – " + etos : nil}</a></h3> <div class=subtitle>#{extractMousiki(item[:mousiki])}</div> <p>#{item[:info]}</p> <p> <span class="label1">#{extractDiskDetails(item[:ar_mitras], item[:ardiskou])}</span> <span class="label2">#{item[:duration] != "" ? item[:duration] + " ⏱" : nil}</span> </p> </article> <div class="onebox-metadata"> </div> <div style="clear: both"></div> </aside> HTML # rescue # @url end def fetcher uri = URI("https://rebetiko.sealabs.net/server_processing.php") match = @url.match(/recid=(\d+)&?.*$/) id = match[1] res = Net::HTTP.post_form(uri, { "columns[0][data]" => "listsequence", "columns[0][name]" => "", "columns[0][searchable]" => "true", "columns[0][orderable]" => "false", "columns[0][search][value]" => "", "columns[0][search][regex]" => "false", "columns[1][data]" => "titlos", "columns[1][name]" => "", "columns[1][searchable]" => "true", "columns[1][orderable]" => "true", "columns[1][search][value]" => "", "columns[1][search][regex]" => "false", "columns[2][data]" => "mousiki", "columns[2][name]" => "", "columns[2][searchable]" => "true", "columns[2][orderable]" => "true", "columns[2][search][value]" => "", "columns[2][search][regex]" => "false", "columns[3][data]" => "tragoudistis", "columns[3][name]" => "", "columns[3][searchable]" => "true", "columns[3][orderable]" => "true", "columns[3][search][value]" => "", "columns[3][search][regex]" => "false", "columns[4][data]" => "etosixog", "columns[4][name]" => "", "columns[4][searchable]" => "true", "columns[4][orderable]" => "true", "columns[4][search][value]" => "", "columns[4][search][regex]" => "false", "columns[5][data]" => "info", "columns[5][name]" => "", "columns[5][searchable]" => "true", "columns[5][orderable]" => "true", "columns[5][search][value]" => "", "columns[5][search][regex]" => "false", "columns[6][data]" => "mitradiskos", "columns[6][name]" => "", "columns[6][searchable]" => "true", "columns[6][orderable]" => "true", "columns[6][search][value]" => "", "columns[6][search][regex]" => "false", "columns[7][data]" => "pros8iki", "columns[7][name]" => "", "columns[7][searchable]" => "true", "columns[7][orderable]" => "true", "columns[7][search][value]" => "", "columns[7][search][regex]" => "false", "columns[8][data]" => "pros8eta", "columns[8][name]" => "", "columns[8][searchable]" => "true", "columns[8][orderable]" => "true", "columns[8][search][value]" => "", "columns[8][search][regex]" => "false", "order[0][column]" => "0", "order[0][dir]" => "asc", "start" => "0", "length" => "10", "search[value]" => "", "search[regex]" => "false", "compos_query" => "", "searchstring" => "", "recid" => id, "date_span" => "", "composer" => "", "singer" => "", "artist" => "" }) body = ::MultiJson.load(res.body, symbolize_keys: true) @fetcher = body end def extractDiskDetails(mitra, diskos) if mitra || diskos return "💿 #{if mitra != "" "Μήτρα: " + mitra + (diskos ? " " : "") end}#{diskos != "" ? "Δίσκος: " + diskos : nil}" end nil end def extractEtiketa(etiketa) match = etiketa.match(/src='(.*)'/) if match && match.length > 1 if match[1] != "/app.php/gallery/image//source" return "https://rebetiko.sealabs.net/" + match[1] end end nil end def extractMousiki(mousiki) splitted = mousiki.split("<br>") splitted = splitted[0][0..-5].split(">") splitted[splitted.length - 1] end def extractEtos(etos) splitted = etos[0..-5].split(">") etos = splitted[splitted.length - 1] if etos != "0" return etos end nil end # def placeholder_html # "<div class=\"onebox\"><a href=\"" + @url + "\" ><div style='padding:10px;'><h1>Μαρίκα Παπαγκίκα</h1><h2>Test test </h2><p>" + fetcher + "</p></a></div>" # end end end end # after_initialize do # # https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb # end
35.033333
163
0.484776
af440c91b45d181c4863ffcdde774fe2626812bc
563
py
Python
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
null
null
null
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
api/action_plans/migrations/0016_populate_action_plans.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
# Generated by Django 3.2.5 on 2021-08-26 16:53 from django.db import migrations def populate_action_plan_models(apps, schema_editor): Barrier = apps.get_model("barriers", "Barrier") ActionPlan = apps.get_model("action_plans", "ActionPlan") for barrier in Barrier.objects.filter(action_plan__isnull=True): ActionPlan(barrier=barrier).save() class Migration(migrations.Migration): dependencies = [ ("action_plans", "0015_alter_actionplan_barrier"), ] operations = [migrations.RunPython(populate_action_plan_models)]
26.809524
68
0.735346
44843e2d4064ac5f438dd898e802636ccdcfef97
3,913
py
Python
4P80_seminar.py
JoelGritter/LSTM-predict-note
4e50fa7e87010c7731a0bc7a286e29a58ef99f78
[ "MIT" ]
null
null
null
4P80_seminar.py
JoelGritter/LSTM-predict-note
4e50fa7e87010c7731a0bc7a286e29a58ef99f78
[ "MIT" ]
null
null
null
4P80_seminar.py
JoelGritter/LSTM-predict-note
4e50fa7e87010c7731a0bc7a286e29a58ef99f78
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """4P80_Seminar Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1_LxG1cSVyaKEmU93ZLvF8SVfwt7X--Tj Joel Gritter & Kindeep Singh Kargil COSC 4P80 - Seminar Demo March 29, 2021 """ # Music output !sudo apt-get install fluidsynth !pip install midi2audio !pip install mingus from mingus.containers import Note, NoteContainer, Track from mingus.midi.midi_file_out import write_NoteContainer, write_Track from midi2audio import FluidSynth fsy = FluidSynth() # imports for data manipulation import numpy as np import pandas as pd from sklearn.model_selection import train_test_split # imports for machine learning import keras from keras.models import Sequential from keras.layers import Dense, LSTM # read in the notes, make an array with 0's, except for the current note def read_and_format(input_filepath): input_data = [] with open(input_filepath) as input_file: for line in input_file: values = line.split(",") for value in values: tmp = [0.0] * 88 v = int(value) tmp[v-1] = 1.0 input_data.append(tmp) return input_data input_data = read_and_format("k330-allegro-moderato.csv") # get the previous 20 notes, predict the next note def generate_datasets(input_array, n_prev = 20): temp_x = [input_array[i:i+n_prev] for i in range(len(input_array) - n_prev)] temp_y = [input_array[i+n_prev] for i in range(len(input_array) - n_prev)] return np.array(temp_x), np.array(temp_y) x, y = generate_datasets(input_data) x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.20, shuffle=True) print(x_train.shape, y_train.shape) print(x_test.shape, y_test.shape) print(y_train[0]) # build the model itself model = Sequential() model.add(LSTM(30)) model.add(Dense(88, activation="softmax")) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) # train the model model.fit(x_train, y_train, batch_size=10, epochs=100, validation_split=0.05) # test the model model.evaluate(x_test, y_test) # See incorrectly predicted predictions = model.predict(x_test) incorrect_indices = [] for (index, (prediction, target)) in enumerate(zip(predictions, y_test)): pred = np.argmax(prediction) tar = np.argmax(target) if pred != tar: incorrect_indices.append(index) print(", ".join(map(str, incorrect_indices))) # Predict song test_in = x_test[0] test_out = y_test[0] # initial - provide inital 20 notes # n - how many predicted notes to add (i.e. expand by this number) def make_big_song(initial, n): res =[ x for x in initial] for _ in range(n): next = model.predict(np.array([res[-20:],]))[0] res.append(next) return np.array(res) test = make_big_song(test_in, 60) print(test.shape) # Expects n x 88 def vector_to_midi(arr, filename="nice.midi"): track = Track() for note_arr in arr: note_num = int(np.argmax(note_arr)) note = Note() note.from_int(note_num - 3) track.add_notes(note) write_Track(filename, track) print("Done!") vector_to_midi(test) def predict_to_file(first_20_notes, expected, filename="nice"): next = model.predict(np.array([first_20_notes])) actual_next = np.array([expected]) next_file = filename + "_predicted_note" actual_next_file = filename + "_actual_note" orig_file = filename + "_first_20_notes" vector_to_midi(next, next_file + ".midi") vector_to_midi(actual_next, actual_next_file + ".midi") vector_to_midi(first_20_notes, orig_file + ".midi") # This conversion not seem to work # fsy.midi_to_audio(next_file + ".midi", next_file + ".mp3") # fsy.midi_to_audio(actual_next_file + ".midi", actual_next_file + ".mp3") # fsy.midi_to_audio(orig_file + ".midi", orig_file + ".mp3") predict_to_file(test_in, test_out) inci = incorrect_indices[0] predict_to_file(x_test[inci], y_test[inci], 'first_incorrect')
28.355072
87
0.73013
da170612789e99b5cd76c4b5399ca41c6e2971af
1,148
c
C
I godina/Zimski semestar/OP/I KOLOKVIJUM/2019-2020/I ZADATAK/Zad1-II-Regularni.c
TodorovicSrdjan/PMF
d3deee21697dad300177fca6090c56d3b8d0cb76
[ "MIT" ]
null
null
null
I godina/Zimski semestar/OP/I KOLOKVIJUM/2019-2020/I ZADATAK/Zad1-II-Regularni.c
TodorovicSrdjan/PMF
d3deee21697dad300177fca6090c56d3b8d0cb76
[ "MIT" ]
null
null
null
I godina/Zimski semestar/OP/I KOLOKVIJUM/2019-2020/I ZADATAK/Zad1-II-Regularni.c
TodorovicSrdjan/PMF
d3deee21697dad300177fca6090c56d3b8d0cb76
[ "MIT" ]
null
null
null
#include <stdio.h> int main(){ int n,i,j; float suma = 0; float clan; int sumaBrojilac = 0; float faktBrojilac = 1; float faktI = 1; float faktRazlika = 1; printf("Unesite n: "); scanf("%d", &n); if(n>0){ for(i=1; i<=2*n; i++) faktBrojilac*=i; printf("Brojilac: %.2f\n", faktBrojilac); for(i=1; i<=n; i++){ faktI = 1; for(j=1;j<=2*i;j++) faktI*=j; faktRazlika = 1; for(j=1;j<=(2*n-i);j++) faktRazlika*=j; sumaBrojilac+=2*i; printf("Faktorijel brojilac: %f\n", faktBrojilac); printf("Suma brojilac: %d\n", sumaBrojilac); printf("Faktorijel I: %f\n", faktI); printf("Faktorijel razlika: %f\n", faktRazlika); clan = faktBrojilac/(faktI*faktRazlika)+sumaBrojilac; suma+=clan; printf("Clan : %f\n", clan); printf("Suma: %f\n", suma); printf("===================================\n"); } printf("Suma: %10.5f\n", suma); } else { int noviBroj = 0; int dek = 1; int cifra; n*=-1; while(n>0){ cifra = n%10; if(cifra%2==0){ noviBroj*=10; noviBroj+=cifra; } n/=10; } printf("Novi broj je : %d", noviBroj); } }
20.5
57
0.529617
ef0a10d575b1e26533d5a0af3468670e83ea4be8
5,932
rs
Rust
tock/kernel/src/platform/chip.rs
crlupu/upload
c9a6c99b9c1faf66d19663dd3f3e338f0e50e2b7
[ "MIT" ]
2,796
2018-04-26T17:26:33.000Z
2022-03-31T16:29:40.000Z
tock/kernel/src/platform/chip.rs
crlupu/upload
c9a6c99b9c1faf66d19663dd3f3e338f0e50e2b7
[ "MIT" ]
1,831
2018-04-25T18:33:32.000Z
2022-03-31T16:59:47.000Z
tock/kernel/src/platform/chip.rs
crlupu/upload
c9a6c99b9c1faf66d19663dd3f3e338f0e50e2b7
[ "MIT" ]
417
2018-05-04T04:33:51.000Z
2022-03-26T16:17:34.000Z
//! Interfaces for implementing microcontrollers in Tock. use crate::platform::mpu; use crate::syscall; use core::fmt::Write; /// Interface for individual MCUs. /// /// The trait defines chip-specific properties of Tock's operation. These /// include whether and which memory protection mechanism and scheduler_timer to /// use, how to switch between the kernel and userland applications, and how to /// handle hardware events. /// /// Each microcontroller should define a struct and implement this trait. pub trait Chip { /// The particular Memory Protection Unit (MPU) for this chip. type MPU: mpu::MPU; /// The implementation of the interface between userspace and the kernel for /// this specific chip. Likely this is architecture specific, but individual /// chips may have various custom requirements. type UserspaceKernelBoundary: syscall::UserspaceKernelBoundary; /// The kernel calls this function to tell the chip to check for all pending /// interrupts and to correctly dispatch them to the peripheral drivers for /// the chip. /// /// This function should loop internally until all interrupts have been /// handled. It is ok, however, if an interrupt occurs after the last check /// but before this function returns. The kernel will handle this edge case. fn service_pending_interrupts(&self); /// Ask the chip to check if there are any pending interrupts. fn has_pending_interrupts(&self) -> bool; /// Returns a reference to the implementation for the MPU on this chip. fn mpu(&self) -> &Self::MPU; /// Returns a reference to the implementation for the interface between /// userspace and kernelspace. fn userspace_kernel_boundary(&self) -> &Self::UserspaceKernelBoundary; /// Called when there is nothing left for the chip to do and it should enter /// a low power sleep state. This low power sleep state should allow /// interrupts to still be active so that the next interrupt event wakes the /// chip and resumes the scheduler. fn sleep(&self); /// Run a function in an atomic state, which means that interrupts are /// disabled so that an interrupt will not fire during the passed in /// function's execution. unsafe fn atomic<F, R>(&self, f: F) -> R where F: FnOnce() -> R; /// Print out chip state (system registers) to a supplied /// writer. This does not print out the execution context /// (data registers), as this depends on how they are stored; /// that is implemented by /// `syscall::UserspaceKernelBoundary::print_context`. /// This also does not print out a process memory state, /// that is implemented by `process::Process::print_memory_map`. /// The MPU state is printed by the MPU's implementation of /// the Display trait. /// Used by panic. unsafe fn print_state(&self, writer: &mut dyn Write); } /// Interface for handling interrupts and deferred calls on a hardware chip. /// /// Each board must construct an implementation of this trait to handle specific /// interrupts. When an interrupt (identified by number) has triggered and /// should be handled, the implementation of this trait will be called with the /// interrupt number. The implementation can then handle the interrupt, or /// return `false` to signify that it does not know how to handle the interrupt. /// /// This functionality is given this `InterruptService` interface so that /// multiple objects can be chained together to handle interrupts for a chip. /// This is useful for code organization and removing the need for duplication /// when multiple variations of a specific microcontroller exist. Then a shared, /// base object can handle most interrupts, and variation-specific objects can /// handle the variation-specific interrupts. /// /// To simplify structuring the Rust code when using `InterruptService`, the /// interrupt number should be passed "top-down". That is, an interrupt to be /// handled will first be passed to the `InterruptService` object that is most /// specific. If that object cannot handle the interrupt, then it should /// maintain a reference to the second most specific object, and return by /// calling to that object to handle the interrupt. This continues until the /// base object handles the interrupt or decides that the chip does not know how /// to handle the interrupt. For example, consider a `nRF52840` chip that /// depends on the `nRF52` crate. If both have specific interrupts they know how /// to handle, the flow would look like: /// /// ```ignore /// +---->nrf52840_peripherals /// | | /// | | /// | v /// kernel-->nrf52 nrf52_peripherals /// ``` /// where the kernel instructs the `nrf52` crate to handle interrupts, and if /// there is an interrupt ready then that interrupt is passed through the /// InterruptService objects until something can service it. pub trait InterruptService<T> { /// Service an interrupt, if supported by this chip. If this interrupt /// number is not supported, return false. unsafe fn service_interrupt(&self, interrupt: u32) -> bool; /// Service a deferred call. If this task is not supported, return false. unsafe fn service_deferred_call(&self, task: T) -> bool; } /// Generic operations that clock-like things are expected to support. pub trait ClockInterface { fn is_enabled(&self) -> bool; fn enable(&self); fn disable(&self); } /// Helper struct for interfaces that expect clocks, but have no clock control. pub struct NoClockControl {} impl ClockInterface for NoClockControl { fn is_enabled(&self) -> bool { true } fn enable(&self) {} fn disable(&self) {} } /// Instance of NoClockControl for things that need references to /// `ClockInterface` objects. pub static mut NO_CLOCK_CONTROL: NoClockControl = NoClockControl {};
44.268657
80
0.712239
a4503f6c09859dad6130f9972f2eb674cb07d591
410
php
PHP
aula04/aula04.php
ThiagoPereira232/php-curso-em-video
c056c1bd6f5f7db3b4a97ebcb5c715c8c449a56c
[ "MIT" ]
null
null
null
aula04/aula04.php
ThiagoPereira232/php-curso-em-video
c056c1bd6f5f7db3b4a97ebcb5c715c8c449a56c
[ "MIT" ]
null
null
null
aula04/aula04.php
ThiagoPereira232/php-curso-em-video
c056c1bd6f5f7db3b4a97ebcb5c715c8c449a56c
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="../modelo/css/estilo.css"/> <meta charset="UTF-8"/> <title>Curso de PHP - CursoemVideo.com</title> </head> <body> <div> <?php $n = 4; // $no = (string)"Thiago"; $nome = "Thiago"; $idade = 15; // echo $nome." tem ".$idade." anos."; echo "$nome tem $idade anos."; ?> </div> </body> </html>
19.52381
58
0.502439
854c2c464990a4198c99847d39dcba3a31edb30f
8,303
cs
C#
NUnitTestProject/SmsTests.cs
fficusbenjamin/SoftEngCoursework
e58815885069cf9335dfa9a6da96324d7582381b
[ "Apache-2.0" ]
null
null
null
NUnitTestProject/SmsTests.cs
fficusbenjamin/SoftEngCoursework
e58815885069cf9335dfa9a6da96324d7582381b
[ "Apache-2.0" ]
null
null
null
NUnitTestProject/SmsTests.cs
fficusbenjamin/SoftEngCoursework
e58815885069cf9335dfa9a6da96324d7582381b
[ "Apache-2.0" ]
null
null
null
using NUnit.Framework; using BusinessLayer; using System; namespace NUnitTestProject { public class SmsTests { string tst = "Lorem ipsum dolor sit amet, id amet nec curabitur, quis sit pellentesque malesuada, risus quisque platea eros metus amet pellentesque. Lorem vel phasellus at, sed explicabo, ridiculus vulputate lacus at, eros venenatis cum semper mattis. Augue ligula mauris in, tortor tempus nunc imperdiet laoreet lorem, suspendisse praesent ultricies nam, ac malesuada diam eu ullamcorper, pharetra et cras tristique fermentum ad at. Eu dui massa tellus luctus fusce, lacus vel sodales hymenaeos felis sapien, at nam urna, nec fringilla eros nisl, sapien ac porta. Vel cum pellentesque vel adipiscing volutpat, lacus lacus. Morbi cursus wisi erat amet wisi consequat, ornare turpis pellentesque, aliquet id magna id vitae vitae eros, lacus a, vestibulum id ut a. A nisl lacinia suspendisse mauris diam, vel curabitur mattis curabitur eu mauris vel, mi in magna at vivamus. Etiam eros nunc, sed diam erat id mauris, integer in diam ante in tristique, et facilisi amet nulla eros in. Quisque tellus iaculis maecenas pulvinar, massa commodo lorem in etiam."+ "Neque aliquet, consequat justo impedit cumque voluptatibus mauris.Leo bibendum et, eu ac euismod elit volutpat, neque pariatur integer vestibulum, sit ac sed nec nec at non, ultrices in nam.Ligula luctus eros donec, arcu nunc blandit molestie nascetur, in per at venenatis non facilis, mi consequat morbi accumsan. Suspendisse vestibulum in sit, nulla eget sed laoreet felis integer nec.Fusce fringilla curabitur est massa, iaculis nec in odio.Nulla ligula felis ea feugiat, amet justo, turpis incididunt massa curabitur penatibus, a aenean neque eu mi. Imperdiet nascetur, tempor scelerisque sapien. Curabitur sit ipsum vel vulputate tellus ac, habitant ut velit wisi, mauris posuere sodales tempor nobis. Purus congue, justo dignissim aliquam, vehicula ipsum, dolor dignissim tristique eget suspendisse nulla a." + "Eget semper ac nibh ut sodales. Diam at donec gravida mauris nunc, ipsum rutrum arcu eget a, nunc non vitae fringilla.Ipsum mi libero.Adipiscing mattis odio, consectetuer integer et et, molestiae nulla, nunc amet penatibus sed varius.Porta risus sollicitudin nunc, sit cras facilisis id, ut arcu, posuere hendrerit vestibulum lorem eget. Qui arcu dui ligula purus, metus eget dolor, pellentesque ante culpa vestibulum sed parturient pretium, non pulvinar facilisi ac, id vel aliquet dolor vel nonummy." + "Nunc metus massa quisque, duis morbi elit consectetuer nibh dictum est, aliquam dolor.Habitant sodales lobortis ante sapien vitae, consequat dictum vivamus mauris in turpis, massa pharetra turpis donec hac pede. Nec sapien non suspendisse vitae donec, lorem nisl dictum, tortor adipiscing fermentum feugiat molestie, a ligula nibh in eaque, accumsan pede ornare vehicula consequat dui. Bibendum a est ante. Adipiscing amet turpis magna pede adipiscing ut, sed feugiat hac pellentesque hymenaeos, netus arcu voluptas.Tellus lacinia eleifend.Massa tincidunt. Nulla dolor auctor vel mauris vitae, quis suspendisse purus nunc molestie. Sed suscipit, vestibulum tortor posuere arcu id et.Nunc maecenas at lorem varius gravida, vel sit, in id, morbi vitae eget mauris et etiam, arcu et in sit cras. Vel et mattis laoreet wisi porta mauris, amet posuere pulvinar, nonummy praesent sed.Placerat nisl pellentesque diam ante, lobortis lectus dolor." + "Amet eros porta erat commodo.Porta ultrices ipsum, quam ut pretium suscipit leo, nonummy vestibulum. Fermentum eget diam nec consectetuer, sodales nam lorem tortor, commodo metus, porttitor felis orci nulla quis mi, sed tristique porttitor posuere bibendum eu.Suspendisse sapien tristique libero pede a, sagittis nunc tempus non elit, mollis praesent, orci ac integer parturient viverra pellentesque augue, laoreet tellus. Ligula a diam tincidunt, in risus.Nec pellentesque." + "Vitae mauris, facilisis aenean nisi, adipiscing nulla massa mollis posuere, non volutpat vestibulum primis eros, venenatis etiam quam. In ac id, nonummy nibh sed sem, potenti nunc nunc aliquet proin, velit eget aliquam sit, ullamcorper viverra. Sem cursus tempor fermentum dignissim quas nec, tellus quis vestibulum elit, sem turpis, mauris vehicula hendrerit nullam eros dui, iste ullamcorper etiam ac.Vitae massa cras donec eget auctor. Nullam sed ullamcorper sunt dictum tellus et, integer porttitor cras aliquam, vel amet tempor, nulla gravida.Eu eget litora leo condimentum enim. Dui ut luctus, platea ligula vehicula sed. Et nonummy commodo in libero tempus, diam accumsan metus per, deserunt quam nec arcu quam, sodales est sed id neque justo, tempor sodales consectetuer justo commodo. Odio orci libero in magna, magna neque pellentesque leo gravida vel ante, suspendisse tristique vivamus auctor amet lobortis hymenaeos, quisque molestie egestas morbi in magna, vitae ut pellentesque tellus primis." + "Laoreet nulla sit et ultrices nam, ipsum urna, donec nunc nulla purus urna elit, eleifend eget.Arcu vestibulum tristique dignissim vulputate ut eu, ad consectetuer fermentum dui. Varius mauris suscipit volutpat in proin posuere, vestibulum ac.Tellus tempus fermentum ut, erat augue feugiat mauris, elementum placerat sit at luctus.Curabitur morbi, dictum tempus nam, ipsum non praesent pulvinar aenean, tellus vel mauris. Aliquid turpis metus ut sociis interdum platea, a mauris leo, ut rhoncus per cras, mauris dictumst fringilla, pharetra porttitor pede ligula malesuada sodales.Id nullam non sint id.Cursus aliquam eu ut massa placerat sem, justo eu fugit aenean wisi, elit suscipit mauris, labore ut metus nonummy. Hendrerit vitae amet, viverra cras, suspendisse pharetra tortor enim purus eget scelerisque. Luctus aliquam donec urna hac, gravida nam, commodo nisl curabitur cursus amet, semper ad dignissim risus ut pellentesque.At mollis, gravida augue ad porta vitae pellentesque.Ac conubia est." + "Cursus consectetuer eleifend habitant mattis a enim, mus sed, occaecat amet.Quam ipsum feugiat praesent posuere augue nulla.Lobortis enim gravida enim at, nunc mauris est.Nam duis vitae pellentesque, pede cras vel in dignissim ante. Nibh cillum deserunt in aliquam mi maecenas, urna lectus id lorem dapibus, nullam ullamcorper, maecenas nunc ante." + "Risus sem eros quis lectus, elit aliquet et nullam nunc pulvinar nam, pede pede sem dictum nam, tincidunt vestibulum hendrerit a sagittis vivamus mauris.Dolor dis mauris, mi lectus risus diam neque, donec diam sapien et, non lorem rutrum quos, felis tellus adipiscing semper. Rhoncus porttitor mollis morbi vel at, donec phasellus lacinia. Morbi justo duis pharetra sit nulla pede, sodales iure quas id, amet ipsum, convallis nunc nec eget magna, vel arcu ut sociosqu in. Proin augue mauris interdum. Tincidunt gravida nibh lorem, justo ullamcorper porttitor augue dolor at, semper scelerisque viverra, ipsum diam nec magna posuere pharetra velit." + "Sem libero sed.Donec tellus ornare at varius, in arcu morbi nunc vivamus laoreet sit. Dolore nec erat wisi elementum.Pharetra ante curabitur, enim ante sem nunc fusce.Dis arcu nec ut tincidunt sit eleifend, orci dolor luctus nisl aliquam aliquet, a aliquam magna libero eleifend. Ornare tortor mollis lacus, duis elit maecenas libero integer mi, luctus eleifend diam tempor. Cras maecenas interdum, cras ipsum est."; [Test] public void SenderTest() { MessageFactory factory = null; factory = new SmsFactory("S123456789"); Message message = factory.GetMessageType(); Assert.Throws<Exception>(() => message.Sender = ""); Assert.Throws<Exception>(() => message.Sender = "Paul"); Assert.Throws<Exception>(() => message.Sender = "12345"); Assert.Throws<Exception>(() => message.Sender = ".,;'[]"); } [Test] public void BodyTest() { MessageFactory factory = null; factory = new SmsFactory("S123456789"); Message message = factory.GetMessageType(); Assert.Throws<Exception>(() => message.Body = ""); Assert.Throws<Exception>(() => message.Body = tst); ; } } }
188.704545
1,050
0.774419
1be716096d53d4e90bed4431f3bbaa58240acf64
56
rb
Ruby
bin/main.rb
Psiale/100-years-of-quotes
cb998ea1fc7bd536c7c6e044aba40eed46cf1f9d
[ "MIT", "Ruby", "Unlicense" ]
2
2020-07-09T14:39:39.000Z
2020-07-09T17:51:50.000Z
bin/main.rb
Psiale/100-years-of-quotes
cb998ea1fc7bd536c7c6e044aba40eed46cf1f9d
[ "MIT", "Ruby", "Unlicense" ]
3
2020-03-10T15:03:49.000Z
2022-02-26T06:49:44.000Z
bin/main.rb
Psiale/100-years-of-quotes
cb998ea1fc7bd536c7c6e044aba40eed46cf1f9d
[ "MIT", "Ruby", "Unlicense" ]
null
null
null
require_relative '../lib/classes/quotes.rb' Quotes.new
14
43
0.767857
580926cf152eac2909d708b6b42b719579bb0b03
319
css
CSS
kintone-portal/src/components/button/printButton.module.css
Lorenzras/kintone-customize
b875b3d7a27eba11243b9308ee052d65d4ba011d
[ "MIT" ]
null
null
null
kintone-portal/src/components/button/printButton.module.css
Lorenzras/kintone-customize
b875b3d7a27eba11243b9308ee052d65d4ba011d
[ "MIT" ]
null
null
null
kintone-portal/src/components/button/printButton.module.css
Lorenzras/kintone-customize
b875b3d7a27eba11243b9308ee052d65d4ba011d
[ "MIT" ]
null
null
null
.toolBarButton { display: inline-block; box-sizing: border-box; margin-right: 8px; width: 48px; height: 48px; border: 1px solid #e3e7e8; background-color: #f7f9fa; background-repeat: no-repeat; vertical-align: middle; padding-top: 8px; color: gray; } .toolBarButton:hover { color: #3498db; }
15.95
31
0.680251
cd666dcd958aeef0d6bc8de71ba61909b1baed74
552
cs
C#
src/Coevery/Tasks/Scheduling/IScheduledTaskManager.cs
Coevery/Coevery-Framework
50bdb636c79c479cc529443bd79f506f9a102cc4
[ "BSD-3-Clause" ]
5
2015-07-01T01:20:39.000Z
2019-03-28T10:49:06.000Z
src/Coevery/Tasks/Scheduling/IScheduledTaskManager.cs
Coevery/Coevery-Framework
50bdb636c79c479cc529443bd79f506f9a102cc4
[ "BSD-3-Clause" ]
null
null
null
src/Coevery/Tasks/Scheduling/IScheduledTaskManager.cs
Coevery/Coevery-Framework
50bdb636c79c479cc529443bd79f506f9a102cc4
[ "BSD-3-Clause" ]
10
2015-04-26T02:58:33.000Z
2021-08-02T05:43:00.000Z
using System; using System.Collections.Generic; using Coevery.ContentManagement; namespace Coevery.Tasks.Scheduling { public interface IScheduledTaskManager : IDependency { void CreateTask(string taskType, DateTime scheduledUtc, ContentItem contentItem); IEnumerable<IScheduledTask> GetTasks(ContentItem contentItem); IEnumerable<IScheduledTask> GetTasks(string taskType, DateTime? scheduledBeforeUtc = null); void DeleteTasks(ContentItem contentItem, Func<IScheduledTask, bool> predicate = null); } }
39.428571
99
0.762681
dd9d32762a7cc4caaaf17aaa7f6fb23c856bb639
16,978
py
Python
server/serversite/views.py
Ameobea/project-hoster
457b048b565841d92fd61686f91a4ff71ea1b216
[ "MIT" ]
18
2019-12-03T21:46:50.000Z
2022-02-23T22:54:30.000Z
server/serversite/views.py
Ameobea/project-hoster
457b048b565841d92fd61686f91a4ff71ea1b216
[ "MIT" ]
3
2019-02-25T08:24:57.000Z
2020-12-15T03:58:07.000Z
server/serversite/views.py
Ameobea/project-hoster
457b048b565841d92fd61686f91a4ff71ea1b216
[ "MIT" ]
1
2020-07-01T15:53:09.000Z
2020-07-01T15:53:09.000Z
import mimetypes import os import re import traceback from django.http import ( HttpResponse, JsonResponse, HttpResponseBadRequest, HttpResponseServerError, HttpResponseNotFound, HttpResponseForbidden, ) from django.conf import settings from django.contrib.auth import authenticate, login from django.db import transaction from django.db.utils import IntegrityError from django.utils.datastructures import MultiValueDictKeyError from django.http.request import HttpRequest from django.views.decorators.http import require_GET, require_POST from django.views.generic import TemplateView import semver from .models import StaticDeployment, DeploymentVersion, DeploymentCategory, ProxyDeployment from .forms import StaticDeploymentForm, ProxyDeploymentForm from .upload import ( handle_uploaded_static_archive, update_symlink, delete_hosted_deployment, delete_hosted_version, ) from .serialize import serialize from .validation import ( BadInputException, validate_deployment_name, get_validated_form, NotFound, NotAuthenticated, InvalidCredentials, validate_subdomain, ) from .proxy import trigger_proxy_server_update # Used to get the name of the deployment into which a given URL points REDIRECT_URL_RGX = re.compile("^/__HOSTED/([^/]+)/.*$") # Taken from https://djangosnippets.org/snippets/101/ def send_data(path, filename=None, mimetype=None): if filename is None: filename = os.path.basename(path) if mimetype is None: mimetype, encoding = mimetypes.guess_type(filename) response = HttpResponse(content_type=mimetype) response.write(open(path, "rb").read()) return response def with_caught_exceptions(func): def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except BadInputException as e: return HttpResponseBadRequest(str(e)) except NotFound: return HttpResponseNotFound() except NotAuthenticated: return HttpResponseForbidden("You must be logged into access this view") except InvalidCredentials: return HttpResponseForbidden("Invalid username or password provided") except Exception as e: print("Uncaught error: {}".format(str(e))) traceback.print_exc() return HttpResponseServerError( "An unhandled error occured while processing the request" ) return wrapper def with_default_success(func): """ Decorator that returns a JSON success message if no errors occur during the request. """ def wrapper(*args, **kwargs): func(*args, **kwargs) return JsonResponse({"success": True, "error": False}) return wrapper def with_login_required(func): """ Decorator that verifies that a user is logged in and returns a Forbidden status code if the requester is not. """ def wrapper(router: TemplateView, req: HttpRequest, *args, **kwargs): if not req.user.is_authenticated: raise NotAuthenticated() return func(router, req, *args, **kwargs) return wrapper @require_GET def index(_req: HttpRequest): return HttpResponse("Site is up and running! Try `GET /deployments`.") @require_POST @with_caught_exceptions @with_default_success def login_user(req: HttpRequest): username = None password = None try: username = req.POST["username"] password = req.POST["password"] except MultiValueDictKeyError: raise BadInputException("You must supply both a username and password") user = authenticate(req, username=username, password=password) if user is not None: login(req, user) else: raise InvalidCredentials("Invalid username or password") def get_or_none(Model, do_raise=True, **kwargs): """ Lookups a model given some query parameters. If a match is found, it is returned. Otherwise, either `None` is returned or a `NotFound` exception is raised depending on the value of `do_raise`. """ try: return Model.objects.get(**kwargs) except Model.DoesNotExist: if do_raise: raise NotFound() else: return None class Deployments(TemplateView): @with_caught_exceptions @with_login_required def get(self, request: HttpRequest): all_deployments = StaticDeployment.objects.prefetch_related( "deploymentversion_set", "categories" ).all() deployments_data = serialize(all_deployments, json=False) deployments_data_with_versions = [ { **datum, "versions": serialize(deployment_model.deploymentversion_set.all(), json=False), "categories": serialize(deployment_model.categories.all(), json=False), } for (datum, deployment_model) in zip(deployments_data, all_deployments) ] return JsonResponse(deployments_data_with_versions, safe=False) @with_caught_exceptions @with_login_required def post(self, request: HttpRequest): form = get_validated_form(StaticDeploymentForm, request) deployment_name = form.cleaned_data["name"] subdomain = form.cleaned_data["subdomain"] version = form.cleaned_data["version"] categories = form.cleaned_data["categories"].split(",") not_found_document = form.cleaned_data["not_found_document"] validate_deployment_name(deployment_name) validate_subdomain(subdomain) deployment_descriptor = None try: with transaction.atomic(): # Create the new deployment descriptor deployment_descriptor = StaticDeployment( name=deployment_name, subdomain=subdomain, not_found_document=not_found_document ) deployment_descriptor.save() # Create categories for category in categories: (category_model, _) = DeploymentCategory.objects.get_or_create( category=category ) deployment_descriptor.categories.add(category_model) # Create the new version and set it as active version_model = DeploymentVersion( version=version, deployment=deployment_descriptor, active=True ) version_model.save() handle_uploaded_static_archive(request.FILES["file"], subdomain, version) except IntegrityError as e: if "Duplicate entry" in str(e): raise BadInputException("`name` and `subdomain` must be unique!") else: raise e return JsonResponse( { "name": deployment_name, "subdomain": subdomain, "version": version, "url": deployment_descriptor.get_url(), } ) def get_query_dict(query_string: str, req: HttpRequest) -> dict: lookup_field = req.GET.get("lookupField", "id") if lookup_field not in ["id", "subdomain", "name"]: raise BadInputException("The supplied `lookupField` was invalid") return {lookup_field: query_string} class Deployment(TemplateView): @with_caught_exceptions def get(self, req: HttpRequest, deployment_id=None): query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) versions = DeploymentVersion.objects.filter(deployment=deployment) active_version = next(v for v in versions if v.active) deployment_data = serialize(deployment, json=False) versions_data = serialize(versions, json=False) versions_list = list(map(lambda version_datum: version_datum["version"], versions_data)) deployment_data = { **deployment_data, "versions": versions_list, "active_version": serialize(active_version, json=False)["version"], } return JsonResponse(deployment_data, safe=False) @with_caught_exceptions @with_login_required @with_default_success def delete(self, req: HttpRequest, deployment_id=None): with transaction.atomic(): query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) deployment_data = serialize(deployment, json=False) # This will also recursively delete all attached versions deployment.delete() delete_hosted_deployment(deployment_data["subdomain"]) class DeploymentVersionView(TemplateView): @staticmethod def is_version_special(version: str) -> bool: return version in ["minor", "m", "patch", "p", "major", "M"] @staticmethod def transform_special_version(special_version: str, previous_version: str) -> str: if special_version in ["patch", "p"]: return semver.bump_patch(previous_version) elif special_version in ["minor", "m"]: return semver.bump_minor(previous_version) elif special_version in ["major", "M"]: return semver.bump_major(previous_version) else: raise "Unreachable: `transform_special_version` should never be called with invalid special version" @with_caught_exceptions def get( self, req: HttpRequest, *args, deployment_id=None, version=None ): # pylint: disable=W0221 query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) version_model = get_or_none(DeploymentVersion, deployment=deployment, version=version) return serialize(version_model) @with_caught_exceptions @with_login_required def post(self, req: HttpRequest, deployment_id=None, version=None): query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) if not req.FILES["file"]: raise BadInputException( "No multipart file named `file` found in request; this must be provided." ) # Assert that the new version is unique among other versions for the same deployment if (not self.is_version_special(version)) and DeploymentVersion.objects.filter( deployment=deployment, version=version ): raise BadInputException("The new version name must be unique.") version_model = None with transaction.atomic(): # Set any old active deployment as inactive old_version_model = DeploymentVersion.objects.get(deployment=deployment, active=True) if old_version_model: old_version_model.active = False old_version_model.save() # Transform special versions by bumping the previous semver version if self.is_version_special(version): try: version = self.transform_special_version(version, old_version_model.version) except Exception as e: raise BadInputException(e) # Create the new version and set it active version_model = DeploymentVersion(version=version, deployment=deployment, active=True) version_model.save() deployment_data = serialize(deployment, json=False) # Extract the supplied archive into the hosting directory handle_uploaded_static_archive( req.FILES["file"], deployment_data["subdomain"], version, init=False ) # Update the `latest` version to point to this new version update_symlink(deployment_data["subdomain"], version) return serialize(version_model) @with_caught_exceptions @with_login_required @with_default_success def delete(self, req: HttpRequest, deployment_id=None, version=None): with transaction.atomic(): query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) deployment_data = serialize(deployment, json=False) # Delete the entry for the deployment version from the database DeploymentVersion.objects.filter(deployment=deployment, version=version).delete() # If no deployment versions remain for the owning deployment, delete the deployment delete_deployment = False if not DeploymentVersion.objects.filter(deployment=deployment): delete_deployment = True deployment.delete() if delete_deployment: delete_hosted_deployment(deployment_data["subdomain"]) else: delete_hosted_version(deployment_data["subdomain"], version) @with_caught_exceptions def not_found(req): # This environment variable is passed in from Apache redirect_url = req.META.get("REDIRECT_URL") if redirect_url is None: return HttpResponseNotFound() # Get the name of the deployment that this 404 applies to, if any match = REDIRECT_URL_RGX.match(redirect_url) if match is None: return HttpResponseNotFound() deployment_subdomain = match[1] # Check to see if there's a custom 404 handle for the given deployment deployment = get_or_none(StaticDeployment, subdomain=deployment_subdomain) not_found_document = deployment.not_found_document if not_found_document is None: return HttpResponseNotFound() if deployment is None: return HttpResponseNotFound() # Sandbox the retrieved pathname to be within the deployment's directory, preventing all kinds # of potentially nasty directory traversal stuff. deployment_dir_path = os.path.abspath(os.path.join(settings.HOST_PATH, deployment.subdomain)) document_path = os.path.abspath( os.path.relpath( os.path.join(deployment_dir_path, "latest", not_found_document), start=not_found_document, ) ) common_prefix = os.path.commonprefix([deployment_dir_path, document_path]) if common_prefix != deployment_dir_path: return HttpResponseBadRequest( ( f"Invalid error document provided: {not_found_document}; " "must be relative to deployment." ) ) if not os.path.exists(document_path): return HttpResponseBadRequest( f"The specified 404 document {not_found_document} doesn't exist in this deployment." ) # Since our way of serving this file loads it into memory, we block any files that are >128MB file_size = os.path.getsize(document_path) if file_size > 1024 * 1024 * 1024 * 128: return HttpResponseBadRequest( f"Custom not found document is {file_size} bytes, which is more than the 128MB limit." ) return send_data(document_path) class ProxyDeployments(TemplateView): @with_caught_exceptions @with_login_required def get(self, request: HttpRequest): all_proxy_deployments = ProxyDeployment.objects.all() return serialize(all_proxy_deployments) @with_caught_exceptions @with_login_required def post(self, request: HttpRequest): form = get_validated_form(ProxyDeploymentForm, request) name = form.cleaned_data["name"] subdomain = form.cleaned_data["subdomain"] use_cors_headers = form.cleaned_data["use_cors_headers"] or False validate_deployment_name(name) validate_subdomain(subdomain) proxy_deployment_descriptor = ProxyDeployment( name=name, subdomain=subdomain, destination_address=form.cleaned_data["destination_address"], use_cors_headers=use_cors_headers, ) try: proxy_deployment_descriptor.save() except IntegrityError as e: if "Duplicate entry" in str(e): raise BadInputException("`name` and `subdomain` must be unique!") else: raise e trigger_proxy_server_update() return JsonResponse( {"name": name, "subdomain": subdomain, "url": proxy_deployment_descriptor.get_url()} ) class ProxyDeploymentView(TemplateView): @with_caught_exceptions def get(self, req: HttpRequest, deployment_id=None): query_dict = get_query_dict(deployment_id, req) deployment = get_or_none(StaticDeployment, **query_dict) return serialize(deployment) @with_caught_exceptions @with_login_required @with_default_success def delete(self, req: HttpRequest, deployment_id=None): query_dict = get_query_dict(deployment_id, req) proxy_deployment = get_or_none(ProxyDeployment, **query_dict) proxy_deployment.delete() trigger_proxy_server_update()
36.200426
112
0.670279
cc01e2206785997accbf435b9bddf73f9c36df41
9,404
rb
Ruby
omf_common/lib/omf_common/message/json/json_message.rb
mytestbed/omf
61dfaac571a41b879f3a9347ea8f304f45e1c63e
[ "MIT" ]
6
2015-06-20T14:38:47.000Z
2021-11-26T23:48:21.000Z
omf_common/lib/omf_common/message/json/json_message.rb
mytestbed/omf
61dfaac571a41b879f3a9347ea8f304f45e1c63e
[ "MIT" ]
1
2016-04-26T13:16:47.000Z
2016-05-13T02:58:31.000Z
omf_common/lib/omf_common/message/json/json_message.rb
mytestbed/omf
61dfaac571a41b879f3a9347ea8f304f45e1c63e
[ "MIT" ]
7
2015-05-15T13:13:19.000Z
2019-05-05T03:05:17.000Z
# Copyright (c) 2012 National ICT Australia Limited (NICTA). # This software may be used and distributed solely under the terms of the MIT license (License). # You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT. # By downloading or using this software you accept the terms and the liability disclaimer in the License. require 'json' require 'omf_common/auth' require 'json/jwt' module OmfCommon class Message class Json class Message < OmfCommon::Message # This maps properties in the internal representation of # a message to names used for the JSON message # @@key2json_key = { operation: :op, res_id: :rid } def self.create(type, properties, body = {}) if type == :request unless (req_props = properties).kind_of?(Array) raise "Expected array, but got #{properties.class} for request message" end #properties = {select: properties} properties = {} req_props.each {|n| properties[n] = nil } elsif not properties.kind_of?(Hash) raise "Expected hash, but got #{properties.class}" end content = body.merge({ op: type, mid: SecureRandom.uuid, ts: Time.now.to_i, props: properties }) issuer = self.authenticate? ? (body[:issuer] || body[:src]) : nil self.new(content, issuer) end def self.create_inform_message(itype = nil, properties = {}, body = {}) body[:itype] = itype if itype create(:inform, properties, body) end # Create and authenticate, if necessary a message and pass it # on to 'block' if parsing (and authentication) is successful. # def self.parse(str, content_type, &block) #puts "CT>> #{content_type}" issuer = nil case content_type.to_s when 'jwt' content, issuer = parse_jwt(str, &block) when 'text/json' content = JSON.parse(str, :symbolize_names => true) else warn "Received message with unknown content type '#{content_type}'" end #puts "CTTT>> #{content}::#{content.class}" if (content) msg = new(content, issuer) block.call(msg) end end def self.parse_jwt(jwt_string) key_or_secret = :skip_verification # Code lifted from 'json-jwt-0.4.3/lib/json/jwt.rb' case jwt_string.count('.') when 2 # JWT / JWS header, claims, signature = jwt_string.split('.', 3).collect do |segment| UrlSafeBase64.decode64 segment.to_s end header, claims = [header, claims].collect do |json| #MultiJson.load(json).with_indifferent_access JSON.parse(json, :symbolize_names => true) end signature_base_string = jwt_string.split('.')[0, 2].join('.') jwt = JSON::JWT.new claims jwt.header = header jwt.signature = signature # NOTE: # Some JSON libraries generates wrong format of JSON (spaces between keys and values etc.) # So we need to use raw base64 strings for signature verification. unless issuer = claims[:iss] warn "JWT: Message is missing :iss element" return nil end if cert_pem = claims[:crt] # let's the credential store take care of it pem = "#{OmfCommon::Auth::Certificate::BEGIN_CERT}#{cert_pem}#{OmfCommon::Auth::Certificate::END_CERT}" cert = OmfCommon::Auth::Certificate.create_from_pem(pem) cert.resource_id = issuer OmfCommon::Auth::CertificateStore.instance.register(cert) end unless cert = OmfCommon::Auth::CertificateStore.instance.cert_for(issuer) warn "JWT: Can't find cert for issuer '#{issuer}'" return nil end unless OmfCommon::Auth::CertificateStore.instance.verify(cert) warn "JWT: Invalid certificate '#{cert.to_s}', NOT signed by CA certs, or its CA cert NOT loaded into cert store." return nil end #puts ">>> #{cert.to_x509.public_key}::#{signature_base_string}" jwt.verify signature_base_string, cert.to_x509.public_key #unless key_or_secret == :skip_verification [JSON.parse(claims[:cnt], :symbolize_names => true), cert] else warn('JWT: Invalid Format. JWT should include 2 or 3 dots.') return nil end end def each_property(&block) @properties.each do |k, v| #unless INTERNAL_PROPS.include?(k.to_sym) block.call(k, v) #end end end def properties @properties end def has_properties? not @properties.empty? end def valid? true # don't do schema verification , yet end # Loop over all the unbound (sent without a value) properties # of a request message. # def each_unbound_request_property(&block) unless type == :request raise "Can only be used for request messages" end self[:select].each do |el| #puts "UUU: #{el}::#{el.class}" if el.is_a? Symbol block.call(el) end end end # Loop over all the bound (sent with a value) properties # of a request message. # def each_bound_request_property(&block) unless type == :request raise "Can only be used for request messages" end self[:select].each do |el| #puts "BBB #{el}::#{el.class}" if el.is_a? Hash el.each do |key, value| block.call(key, value) end end end end def to_s "JsonMessage: #{@content.inspect}" end # Marshall message into a string to be shipped across the network. # Depending on authentication setting, the message will be signed as # well, or maybe even dropped. # # @param [Topic] topic for which to marshall # def marshall(topic) #puts "MARSHALL: #{@content.inspect} - #{@properties.to_hash.inspect}" raise "Missing SRC declaration in #{@content}" unless @content[:src] if @content[:src].is_a? OmfCommon::Comm::Topic @content[:src] = @content[:src].address end @content[:itype] = self.itype(:frcp) unless self.itype(:frcp).nil? #raise 'local/local' if @content[:src].id.match 'local:/local' #puts @content.inspect payload = @content.to_json if self.class.authenticate? unless issuer = self.issuer raise "Missing ISSUER for '#{self}'" end if issuer.is_a? OmfCommon::Auth::CertificateStore cert = issuer issuer = cert.subject else cert = OmfCommon::Auth::CertificateStore.instance.cert_for(issuer) end if cert && cert.can_sign? debug "Found cert for '#{issuer} - #{cert}" msg = {cnt: payload, iss: issuer} unless @certOnTopic[k = [topic, issuer]] # first time for this issuer on this topic, so let's send the cert along msg[:crt] = cert.to_pem_compact #ALWAYS ADD CERT @certOnTopic[k] = Time.now end #:RS256, :RS384, :RS512 p = JSON::JWT.new(msg).sign(cert.key , :RS256).to_s #puts "SIGNED>> #{msg}" return ['jwt', p] end end ['text/json', payload] end private def initialize(content, issuer = nil) debug "Create message: #{content.inspect}" unless op = content[:op] raise "Missing message type (:operation)" end @content = {} @issuer = issuer content[:op] = op.to_sym # needs to be symbol if src = content[:src] content[:src] = OmfCommon.comm.create_topic(src) end content.each {|k,v| _set_core(k, v)} @properties = content[:props] || [] #@properties = Hashie::Mash.new(content[:properties]) @authenticate = self.class.authenticate? # keep track if we sent local certs on a topic. Should do this the first time @certOnTopic = {} end def _set_core(key, value) @content[(@@key2json_key[key] || key).to_sym] = value end def _get_core(key) @content[@@key2json_key[key] || key] end def _set_property(key, value, ns = nil) warn "Can't handle namespaces yet" if ns @properties[key] = value end def _get_property(key, ns = nil) warn "Can't handle namespaces yet" if ns #puts key @properties[key] end end # class end end end
35.089552
128
0.547533
ddcf444788c3c7ef1e534dace81c1cb0c809295c
4,639
java
Java
src/test/java/org/mapdb/LongHashMapTest.java
gkorland/MapDB
291b70d9247008e4a174697193511c0d46171b19
[ "Apache-1.1" ]
1
2021-02-20T09:42:27.000Z
2021-02-20T09:42:27.000Z
src/test/java/org/mapdb/LongHashMapTest.java
gkorland/MapDB
291b70d9247008e4a174697193511c0d46171b19
[ "Apache-1.1" ]
null
null
null
src/test/java/org/mapdb/LongHashMapTest.java
gkorland/MapDB
291b70d9247008e4a174697193511c0d46171b19
[ "Apache-1.1" ]
null
null
null
/******************************************************************************* * Copyright 2010 Cees De Groot, Alex Boisvert, Jan Kotek * * 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 org.mapdb; import junit.framework.TestCase; import org.mapdb.LongHashMap; import org.mapdb.LongMap; import java.util.Iterator; import java.util.Random; import java.util.TreeMap; public class LongHashMapTest extends TestCase { public void testAll() { LongHashMap<String> t = new LongHashMap<String>(); t.put(1, "aa"); t.put(2, "bb"); t.put(2, "bb"); t.put(4, "cc"); t.put(9, "FF"); assertEquals(4, t.size()); t.remove(1); assertEquals(3, t.size()); assertEquals(t.get(1), null); assertEquals(t.get(2), "bb"); assertEquals(t.get(3), null); assertEquals(t.get(4), "cc"); assertEquals(t.get(5), null); assertEquals(t.get(-1), null); assertEquals(t.get(9), "FF"); Iterator<String> vals = t.valuesIterator(); assertTrue(vals.hasNext()); assertEquals(vals.next(), "FF"); assertTrue(vals.hasNext()); assertEquals(vals.next(), "cc"); assertTrue(vals.hasNext()); assertEquals(vals.next(), "bb"); assertFalse(vals.hasNext()); t.clear(); assertEquals(0, t.size()); t.put(2, "bb"); assertEquals(1, t.size()); assertEquals(t.get(1), null); assertEquals(t.get(2), "bb"); assertEquals(t.get(3), null); } public void testRandomCompare() { LongHashMap<String> v1 = new LongHashMap<String>(); TreeMap<Long, String> v2 = new TreeMap<Long, String>(); Random d = new Random(); for (int i = 0; i < 1000; i++) { long key = d.nextInt() % 100; double random = d.nextDouble(); if (random < 0.8) { // System.out.println("put "+key); v1.put(key, "" + key); v2.put(key, "" + key); } else { // System.out.println("remove "+key); v1.remove(key); v2.remove(key); } checkEquals(v1, v2); } } public void checkEquals(LongMap<String> v1, TreeMap<Long, String> v2) { assertEquals(v1.size(), v2.size()); for (long k : v2.keySet()) { assertEquals(v1.get(k), v2.get(k)); } int counter = 0; Iterator<String> it = v1.valuesIterator(); while (it.hasNext()) { String v = it.next(); long key = Long.parseLong(v); assertEquals(v1.get(key), v); assertEquals("" + key, v); counter++; } assertEquals(counter, v2.size()); } public void test2() { LongHashMap<String> v1 = new LongHashMap<String>(); v1.put(1611, "1611"); v1.put(15500, "15500"); v1.put(9446, "9446"); System.out.println(v1.get(9446)); System.out.println(v1.toString()); assertEquals(3, v1.size()); assertEquals(v1.get(9446), "9446"); } public void testMapIter(){ LongHashMap<String> v = new LongHashMap<String>(); v.put(1L, "one"); v.put(2L, "two"); v.put(3L, "three"); TreeMap<Long, String> v2 = new TreeMap<Long, String>(); v2.put(1L, "one"); v2.put(2L, "two"); v2.put(3L, "three"); TreeMap<Long, String> v3 = new TreeMap<Long, String>(); LongMap.LongMapIterator<String> iter = v.longMapIterator(); while(iter.moveToNext()){ v3.put(iter.key(), iter.value()); } assertEquals(v2,v3); } public void test_Issue6(){ LongHashMap<String> t = new LongHashMap<String>(); t.put(6447459, "aa"); t.put(6382177, "bb"); assertEquals("aa",t.get(6447459)); assertEquals("bb",t.get(6382177)); assertEquals("LongHashMap[6382177 => bb, 6447459 => aa]",t.toString()); } }
31.344595
83
0.533305
8e9be9e040d82b3545e573adc93a70b0fbf8dc14
54
js
JavaScript
models/group.js
reactDev037/component-user-manager-backend
d073f72009d54870db9d361596f286a28eab3701
[ "MIT" ]
null
null
null
models/group.js
reactDev037/component-user-manager-backend
d073f72009d54870db9d361596f286a28eab3701
[ "MIT" ]
null
null
null
models/group.js
reactDev037/component-user-manager-backend
d073f72009d54870db9d361596f286a28eab3701
[ "MIT" ]
null
null
null
'use strict'; module.exports = function(group) { };
9
34
0.648148
85334cc233b721e69dfb01862c50f2699c79df9e
23,566
cs
C#
GeneticAlgorithm/GeneticAlgorithm/Form1.Designer.cs
wang-mingzhi/CSharp-18120900
024abd6dbdfe602d0b8caba6c01d3b01a0ffb767
[ "MIT" ]
null
null
null
GeneticAlgorithm/GeneticAlgorithm/Form1.Designer.cs
wang-mingzhi/CSharp-18120900
024abd6dbdfe602d0b8caba6c01d3b01a0ffb767
[ "MIT" ]
null
null
null
GeneticAlgorithm/GeneticAlgorithm/Form1.Designer.cs
wang-mingzhi/CSharp-18120900
024abd6dbdfe602d0b8caba6c01d3b01a0ffb767
[ "MIT" ]
null
null
null
namespace GeneticAlgorithm { partial class Form1 { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.Btn_Begin = new System.Windows.Forms.Button(); this.Rtb_result = new System.Windows.Forms.RichTextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.Txt_GenesLength = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.Txt_BitsLength = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.Txt_pc = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.Txt_coe2 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.Txt_coe1 = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.Dgv_coefficient = new System.Windows.Forms.DataGridView(); this.Txt_pm = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.Txt_chromosomeLength = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.Txt_loopTimes = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.Pgb_Progress = new System.Windows.Forms.ProgressBar(); this.label8 = new System.Windows.Forms.Label(); this.Txt_logFilePath = new System.Windows.Forms.TextBox(); this.Cmb_recordType = new System.Windows.Forms.ComboBox(); this.Chk_ClearText = new System.Windows.Forms.CheckBox(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.Dgv_coefficient)).BeginInit(); this.SuspendLayout(); // // Btn_Begin // this.Btn_Begin.Location = new System.Drawing.Point(371, 28); this.Btn_Begin.Margin = new System.Windows.Forms.Padding(0); this.Btn_Begin.Name = "Btn_Begin"; this.Btn_Begin.Size = new System.Drawing.Size(68, 36); this.Btn_Begin.TabIndex = 0; this.Btn_Begin.Text = "开始"; this.Btn_Begin.UseVisualStyleBackColor = true; this.Btn_Begin.Click += new System.EventHandler(this.Btn_Begin_Click); // // Rtb_result // this.Rtb_result.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Rtb_result.Location = new System.Drawing.Point(360, 148); this.Rtb_result.Name = "Rtb_result"; this.Rtb_result.Size = new System.Drawing.Size(330, 226); this.Rtb_result.TabIndex = 1; this.Rtb_result.Text = ""; // // groupBox1 // this.groupBox1.Controls.Add(this.Txt_GenesLength); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.Txt_BitsLength); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.Txt_pc); this.groupBox1.Controls.Add(this.label10); this.groupBox1.Controls.Add(this.Txt_coe2); this.groupBox1.Controls.Add(this.Dgv_coefficient); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.Txt_coe1); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.Txt_pm); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.Txt_chromosomeLength); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.Txt_loopTimes); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Location = new System.Drawing.Point(7, 7); this.groupBox1.Margin = new System.Windows.Forms.Padding(0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox1.Size = new System.Drawing.Size(350, 367); this.groupBox1.TabIndex = 2; this.groupBox1.TabStop = false; this.groupBox1.Text = "参数设置"; // // Txt_GenesLength // this.Txt_GenesLength.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_GenesLength.Location = new System.Drawing.Point(273, 81); this.Txt_GenesLength.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_GenesLength.Name = "Txt_GenesLength"; this.Txt_GenesLength.Size = new System.Drawing.Size(55, 26); this.Txt_GenesLength.TabIndex = 25; this.Txt_GenesLength.Text = "8"; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Location = new System.Drawing.Point(192, 85); this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(88, 16); this.label5.TabIndex = 24; this.label5.Text = "基因长度:"; // // Txt_BitsLength // this.Txt_BitsLength.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_BitsLength.Location = new System.Drawing.Point(273, 111); this.Txt_BitsLength.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_BitsLength.Name = "Txt_BitsLength"; this.Txt_BitsLength.Size = new System.Drawing.Size(55, 26); this.Txt_BitsLength.TabIndex = 23; this.Txt_BitsLength.Text = "8"; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Location = new System.Drawing.Point(192, 114); this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(88, 16); this.label2.TabIndex = 22; this.label2.Text = "编码长度:"; // // Txt_pc // this.Txt_pc.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_pc.Location = new System.Drawing.Point(273, 51); this.Txt_pc.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_pc.Name = "Txt_pc"; this.Txt_pc.Size = new System.Drawing.Size(55, 26); this.Txt_pc.TabIndex = 21; this.Txt_pc.Text = "0.6"; // // label10 // this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label10.Location = new System.Drawing.Point(192, 54); this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(88, 16); this.label10.TabIndex = 20; this.label10.Text = "交叉概率:"; // // Txt_coe2 // this.Txt_coe2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_coe2.Location = new System.Drawing.Point(97, 111); this.Txt_coe2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_coe2.Name = "Txt_coe2"; this.Txt_coe2.Size = new System.Drawing.Size(63, 26); this.Txt_coe2.TabIndex = 15; this.Txt_coe2.Text = "4278.75"; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label7.Location = new System.Drawing.Point(44, 114); this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(64, 16); this.label7.TabIndex = 14; this.label7.Text = "系数2:"; // // Txt_coe1 // this.Txt_coe1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_coe1.Location = new System.Drawing.Point(97, 81); this.Txt_coe1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_coe1.Name = "Txt_coe1"; this.Txt_coe1.Size = new System.Drawing.Size(63, 26); this.Txt_coe1.TabIndex = 13; this.Txt_coe1.Text = "0.666"; // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.Location = new System.Drawing.Point(44, 84); this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(64, 16); this.label6.TabIndex = 12; this.label6.Text = "系数1:"; // // Dgv_coefficient // this.Dgv_coefficient.AllowUserToAddRows = false; this.Dgv_coefficient.AllowUserToDeleteRows = false; this.Dgv_coefficient.AllowUserToResizeRows = false; this.Dgv_coefficient.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Dgv_coefficient.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.Dgv_coefficient.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column1, this.Column2, this.Column3, this.Column4, this.Column5, this.Column6}); this.Dgv_coefficient.Location = new System.Drawing.Point(5, 141); this.Dgv_coefficient.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Dgv_coefficient.Name = "Dgv_coefficient"; this.Dgv_coefficient.RowHeadersVisible = false; this.Dgv_coefficient.RowTemplate.Height = 23; this.Dgv_coefficient.Size = new System.Drawing.Size(341, 222); this.Dgv_coefficient.TabIndex = 11; // // Txt_pm // this.Txt_pm.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_pm.Location = new System.Drawing.Point(97, 51); this.Txt_pm.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_pm.Name = "Txt_pm"; this.Txt_pm.Size = new System.Drawing.Size(63, 26); this.Txt_pm.TabIndex = 8; this.Txt_pm.Text = "0.02"; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.Location = new System.Drawing.Point(20, 54); this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(88, 16); this.label4.TabIndex = 7; this.label4.Text = "变异概率:"; // // Txt_chromosomeLength // this.Txt_chromosomeLength.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_chromosomeLength.Location = new System.Drawing.Point(273, 21); this.Txt_chromosomeLength.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_chromosomeLength.Name = "Txt_chromosomeLength"; this.Txt_chromosomeLength.Size = new System.Drawing.Size(55, 26); this.Txt_chromosomeLength.TabIndex = 6; this.Txt_chromosomeLength.Text = "100"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Location = new System.Drawing.Point(176, 24); this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(104, 16); this.label3.TabIndex = 5; this.label3.Text = "染色体长度:"; // // Txt_loopTimes // this.Txt_loopTimes.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_loopTimes.Location = new System.Drawing.Point(97, 21); this.Txt_loopTimes.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Txt_loopTimes.Name = "Txt_loopTimes"; this.Txt_loopTimes.Size = new System.Drawing.Size(63, 26); this.Txt_loopTimes.TabIndex = 2; this.Txt_loopTimes.Text = "200"; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.Location = new System.Drawing.Point(20, 24); this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(88, 16); this.label1.TabIndex = 1; this.label1.Text = "迭代次数:"; // // Pgb_Progress // this.Pgb_Progress.Location = new System.Drawing.Point(484, 39); this.Pgb_Progress.Name = "Pgb_Progress"; this.Pgb_Progress.Size = new System.Drawing.Size(206, 25); this.Pgb_Progress.TabIndex = 10; // // label8 // this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label8.Location = new System.Drawing.Point(368, 98); this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(112, 16); this.label8.TabIndex = 13; this.label8.Text = "LogFilePath:"; // // Txt_logFilePath // this.Txt_logFilePath.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Txt_logFilePath.Location = new System.Drawing.Point(371, 118); this.Txt_logFilePath.Name = "Txt_logFilePath"; this.Txt_logFilePath.Size = new System.Drawing.Size(319, 26); this.Txt_logFilePath.TabIndex = 14; this.Txt_logFilePath.Text = "F:\\18120900\\桌面\\log.txt"; // // Cmb_recordType // this.Cmb_recordType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.Cmb_recordType.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Cmb_recordType.FormattingEnabled = true; this.Cmb_recordType.Items.AddRange(new object[] { "简要记录", "完全记录", "不记录"}); this.Cmb_recordType.Location = new System.Drawing.Point(484, 70); this.Cmb_recordType.Name = "Cmb_recordType"; this.Cmb_recordType.Size = new System.Drawing.Size(206, 24); this.Cmb_recordType.TabIndex = 15; // // Chk_ClearText // this.Chk_ClearText.AutoSize = true; this.Chk_ClearText.Checked = true; this.Chk_ClearText.CheckState = System.Windows.Forms.CheckState.Checked; this.Chk_ClearText.Location = new System.Drawing.Point(371, 72); this.Chk_ClearText.Name = "Chk_ClearText"; this.Chk_ClearText.Size = new System.Drawing.Size(107, 20); this.Chk_ClearText.TabIndex = 16; this.Chk_ClearText.Text = "清空旧记录"; this.Chk_ClearText.UseVisualStyleBackColor = true; // // Column1 // this.Column1.HeaderText = "A0"; this.Column1.Name = "Column1"; this.Column1.Width = 50; // // Column2 // this.Column2.HeaderText = "A1"; this.Column2.Name = "Column2"; this.Column2.Width = 50; // // Column3 // this.Column3.HeaderText = "A2"; this.Column3.Name = "Column3"; this.Column3.Width = 50; // // Column4 // this.Column4.HeaderText = "A3"; this.Column4.Name = "Column4"; this.Column4.Width = 50; // // Column5 // this.Column5.HeaderText = "下限"; this.Column5.Name = "Column5"; this.Column5.Width = 65; // // Column6 // this.Column6.HeaderText = "上限"; this.Column6.Name = "Column6"; this.Column6.Width = 65; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(694, 378); this.Controls.Add(this.Chk_ClearText); this.Controls.Add(this.Cmb_recordType); this.Controls.Add(this.Txt_logFilePath); this.Controls.Add(this.label8); this.Controls.Add(this.groupBox1); this.Controls.Add(this.Rtb_result); this.Controls.Add(this.Pgb_Progress); this.Controls.Add(this.Btn_Begin); this.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "Form1"; this.Text = "多约束遗传算法"; this.Load += new System.EventHandler(this.Form1_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.Dgv_coefficient)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button Btn_Begin; private System.Windows.Forms.RichTextBox Rtb_result; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.TextBox Txt_loopTimes; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox Txt_chromosomeLength; private System.Windows.Forms.Label label3; private System.Windows.Forms.TextBox Txt_pm; private System.Windows.Forms.Label label4; private System.Windows.Forms.ProgressBar Pgb_Progress; private System.Windows.Forms.DataGridView Dgv_coefficient; private System.Windows.Forms.Label label6; private System.Windows.Forms.TextBox Txt_coe2; private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox Txt_coe1; private System.Windows.Forms.Label label8; private System.Windows.Forms.TextBox Txt_logFilePath; private System.Windows.Forms.TextBox Txt_pc; private System.Windows.Forms.Label label10; private System.Windows.Forms.ComboBox Cmb_recordType; private System.Windows.Forms.TextBox Txt_BitsLength; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox Txt_GenesLength; private System.Windows.Forms.Label label5; private System.Windows.Forms.CheckBox Chk_ClearText; private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column3; private System.Windows.Forms.DataGridViewTextBoxColumn Column4; private System.Windows.Forms.DataGridViewTextBoxColumn Column5; private System.Windows.Forms.DataGridViewTextBoxColumn Column6; } }
51.679825
165
0.581431
4d421f15b5da111f3d1bea99d64bb36e4d4f0bc8
1,265
cs
C#
Src/Graphics/Implementation/Manual/GL.15.Overloads.cs
Mirsario/DissonanceFramework
c300c272e4a596df63ae01ee2a38548288eb1eb9
[ "Unlicense" ]
7
2020-10-26T04:16:00.000Z
2021-11-30T05:54:10.000Z
Src/Graphics/Implementation/Manual/GL.15.Overloads.cs
Mirsario/DissonanceFramework
c300c272e4a596df63ae01ee2a38548288eb1eb9
[ "Unlicense" ]
1
2021-11-04T12:14:44.000Z
2021-11-04T12:14:44.000Z
Src/Graphics/Implementation/Manual/GL.15.Overloads.cs
Mirsario/DissonanceFramework
c300c272e4a596df63ae01ee2a38548288eb1eb9
[ "Unlicense" ]
null
null
null
using System; using MI = System.Runtime.CompilerServices.MethodImplAttribute; #pragma warning disable IDE0060 //Unused parameter. namespace Dissonance.Framework.Graphics { partial class GL { //GenBuffer(s) [MI(ImplOptions)] public unsafe static uint GenBuffer() { uint result; GenBuffers(1, &result); return result; } [MI(ImplOptions)] public unsafe static void GenBuffers(int numBuffers, uint[] buffers) { fixed (uint* ptr = &(buffers != null && buffers.Length != 0 ? ref buffers[0] : ref *(uint*)null)) { GenBuffers(numBuffers, ptr); } } //DeleteBuffer(s) [MI(ImplOptions)] public unsafe static void DeleteBuffer(uint buffer) => DeleteBuffers(1, &buffer); [MI(ImplOptions)] public unsafe static void DeleteBuffers(int numBuffers, uint[] buffers) { fixed (uint* ptr = &(buffers != null && buffers.Length != 0 ? ref buffers[0] : ref *(uint*)null)) { DeleteBuffers(numBuffers, ptr); } } //BufferData public static unsafe void BufferData<T>(BufferTarget target, int size, T[] data, BufferUsageHint usage) where T : unmanaged { fixed (T* ptr = &(data != null && data.Length != 0 ? ref data[0] : ref *(T*)null)) { BufferData(target, (IntPtr)size, (IntPtr)ptr, usage); } } } }
24.326923
125
0.664822
128009bd41e744af01dbcbd5a483e2e3fc46dfde
852
cs
C#
2012/Tempo2012/TempoTest/LoadConfigManagerTest.cs
TataDvd/Git
440fc2c94be9f1859eb1c7719ea46e5f123de03c
[ "MIT" ]
null
null
null
2012/Tempo2012/TempoTest/LoadConfigManagerTest.cs
TataDvd/Git
440fc2c94be9f1859eb1c7719ea46e5f123de03c
[ "MIT" ]
null
null
null
2012/Tempo2012/TempoTest/LoadConfigManagerTest.cs
TataDvd/Git
440fc2c94be9f1859eb1c7719ea46e5f123de03c
[ "MIT" ]
null
null
null
using ReportBuilder; using Tempo2012.EntityFramework; using Tempo2012.UI.WPF.Models; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; namespace TempoTest { /// <summary> ///This is a test class for WhereClauseItemsTest and is intended ///to contain all WhereClauseItemsTest Unit Tests ///</summary> [TestClass()] public class LoadConfigManagerTest { [TestMethod()] public void ConstructorTest() { var loadConfigManager = new LoadConfigManager(@"E:\Samples\TempoVS2012\Tempo2012\Tempo2012.UI.WPF\bin\Debug\tempo.ini"); Assert.AreEqual("ON",loadConfigManager.GetPrameter("OBEKT")); Assert.AreEqual(@"D:\TEMPO\WORDPAD.EXE",loadConfigManager.GetPrameter("WORDPADNAME")); } } }
29.37931
112
0.674883
a93bc6f4f94607979dd6dba48bf092aa2d81c437
325
css
CSS
src/main/webapp/resources/css/back/login.css
mejhwu/blog
d2b9730908d8ae3010ac7f195c475648889cc502
[ "Apache-2.0" ]
null
null
null
src/main/webapp/resources/css/back/login.css
mejhwu/blog
d2b9730908d8ae3010ac7f195c475648889cc502
[ "Apache-2.0" ]
null
null
null
src/main/webapp/resources/css/back/login.css
mejhwu/blog
d2b9730908d8ae3010ac7f195c475648889cc502
[ "Apache-2.0" ]
null
null
null
*{margin:0;padding:0;margin:0; padding:0;font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif;"宋体";} /*整个页面背景*/ .wrap{width:100%;height:800px;background:url(/resources/images/login-background.jpg) no-repeat;background-size:cover;} /*登录panel*/ .wrap .container .login-panel{width:300px;margin:100px auto;z-index: 10;}
32.5
118
0.750769
7f330f8c62c16f94b3395e091073b5dba844e02e
1,091
php
PHP
Setup/UpgradeSchema.php
justd88/product-attachments-magento2
10a26a4dea00dac0cd3cff22148491f7d31bac9e
[ "MIT" ]
null
null
null
Setup/UpgradeSchema.php
justd88/product-attachments-magento2
10a26a4dea00dac0cd3cff22148491f7d31bac9e
[ "MIT" ]
null
null
null
Setup/UpgradeSchema.php
justd88/product-attachments-magento2
10a26a4dea00dac0cd3cff22148491f7d31bac9e
[ "MIT" ]
null
null
null
<?php namespace LizardMedia\ProductAttachment\Setup; use LizardMedia\ProductAttachment\Model\Attachment; use Magento\Framework\DB\Ddl\Table; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\UpgradeSchemaInterface; class UpgradeSchema implements UpgradeSchemaInterface { public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $connection = $installer->getConnection(); if (version_compare($context->getVersion(), '1.4.1', '<')) { $connection->addColumn( $installer->getTable(Attachment::MAIN_TABLE), Attachment::ATTACHMENT_CATEGORY, [ 'type' => Table::TYPE_INTEGER, 'length' => 1000, 'nullable' => true, 'default' => NULL, 'comment' => 'Attachment Category' ]); } $installer->endSetup(); } }
33.060606
89
0.608616
f9af0e328c48c0c27fa552d1345874aa3659c74d
3,124
dart
Dart
flutter_sheet_localization_generator/lib/flutter_sheet_localization_generator.dart
dexterliu1214/flutter_sheet_localization
505aee54fd070c3a347b77bf7775c7e069b7d671
[ "MIT" ]
null
null
null
flutter_sheet_localization_generator/lib/flutter_sheet_localization_generator.dart
dexterliu1214/flutter_sheet_localization
505aee54fd070c3a347b77bf7775c7e069b7d671
[ "MIT" ]
null
null
null
flutter_sheet_localization_generator/lib/flutter_sheet_localization_generator.dart
dexterliu1214/flutter_sheet_localization
505aee54fd070c3a347b77bf7775c7e069b7d671
[ "MIT" ]
1
2022-02-01T13:30:05.000Z
2022-02-01T13:30:05.000Z
import 'dart:async'; import 'dart:convert'; import 'package:analyzer/dart/element/element.dart'; import 'package:csv/csv.dart'; import 'package:flutter_sheet_localization/flutter_sheet_localization.dart'; import 'package:localization_builder/localization_builder.dart'; import 'package:source_gen/source_gen.dart'; import 'package:build/build.dart'; import 'package:http/http.dart' as http; class SheetLocalizationGenerator extends GeneratorForAnnotation<SheetLocalization> { const SheetLocalizationGenerator(); @override FutureOr<String> generateForAnnotatedElement( Element element, ConstantReader annotation, BuildStep buildStep) async { if (element is! ClassElement) { final name = element.name; throw InvalidGenerationSourceError('Generator cannot target `$name`.', todo: 'Remove the SheetLocalization annotation from `$name`.', element: element); } if (!element.name.endsWith('Delegate')) { final name = element.name; throw InvalidGenerationSourceError( 'Generator for target `$name` should have a name that ends with `Delegate`.', todo: 'Refactor the class name `$name` for a name ending with `Delegate` (example: `${name}Delegate`).', element: element); } /* element.allSupertypes.firstWhere( (x) => x.getDisplayString(withNullability: false) == 'LocalizationsDelegate', orElse: () => throw InvalidGenerationSourceError( 'Supertype aren\'t valid : [${element.allSupertypes.map((x) => x.getDisplayString(withNullability: false)).join(', ')}].', todo: 'Define only one supertype of type LocalizationsDelegate<LOCALIZATION_CLASS_NAME>.', element: element, ), );*/ final name = '${element.name.replaceAll('Delegate', '')}Data'; final docId = annotation.objectValue.getField('docId')!.toStringValue(); final sheetId = annotation.objectValue.getField('sheetId')!.toStringValue(); var localizations = await _downloadGoogleSheet( docId!, sheetId!, name, ); final builder = DartLocalizationBuilder(); final code = StringBuffer(); code.writeln(builder.build(localizations)); return code.toString(); } Future<Localizations> _downloadGoogleSheet( String documentId, String sheetId, String name) async { final url = 'https://docs.google.com/spreadsheets/d/$documentId/export?format=csv&id=$documentId&gid=$sheetId'; log.info('Downloading csv from Google sheet url "$url" ...'); var response = await http .get(Uri.parse(url), headers: {'accept': 'text/csv;charset=UTF-8'}); log.fine('Google sheet csv:\n ${response.body}'); final bytes = response.bodyBytes.toList(); final csv = Stream<List<int>>.fromIterable([bytes]); final rows = await csv .transform(utf8.decoder) .transform(CsvToListConverter( shouldParseNumbers: false, )) .toList(); final parser = CsvLocalizationParser(); final result = parser.parse(input: rows, name: name); return result.result; } }
36.752941
130
0.677977
854cfb6ef46641c9a8c98e84fb1cb2115563f65f
893
cs
C#
sdk/PowerBI.Api/Extensions/V2/Models/Credentials/OAuth2Credentials.cs
KPI-Consulting/PowerBI-CSharp
09ebf0d8b810e35daba9bddf8d94bc3b9d917c45
[ "MIT" ]
1
2019-11-06T19:09:06.000Z
2019-11-06T19:09:06.000Z
sdk/PowerBI.Api/Extensions/V2/Models/Credentials/OAuth2Credentials.cs
KPI-Consulting/PowerBI-CSharp
09ebf0d8b810e35daba9bddf8d94bc3b9d917c45
[ "MIT" ]
null
null
null
sdk/PowerBI.Api/Extensions/V2/Models/Credentials/OAuth2Credentials.cs
KPI-Consulting/PowerBI-CSharp
09ebf0d8b810e35daba9bddf8d94bc3b9d917c45
[ "MIT" ]
null
null
null
namespace Microsoft.PowerBI.Api.V2.Models.Credentials { using Microsoft.Rest; /// <summary> /// OAuth2 based datasource credentials using OAuth2 access token /// </summary> public class OAuth2Credentials : CredentialsBase { private const string ACCESS_TOKEN = "accessToken"; internal override CredentialType CredentialType { get => CredentialType.OAuth2; } /// <summary> /// Initializes a new instance of the OAuth2Credentials class. /// </summary> /// <param name="accessToken">The access token</param> public OAuth2Credentials(string accessToken) { if (string.IsNullOrEmpty(accessToken)) { throw new ValidationException(ValidationRules.CannotBeNull, ACCESS_TOKEN); } this.CredentialData[ACCESS_TOKEN] = accessToken; } } }
30.793103
90
0.633819
dd8aa36ad1d3155da22880af2129f3553ccbd5b5
2,481
java
Java
src/java/com/arslorem/hamzah/util/NumberToWordsConverter.java
alkuhlani/cs
0b66e090eae450a5e166184cf94ae636bf6bd2aa
[ "Apache-2.0" ]
1
2019-02-10T08:42:52.000Z
2019-02-10T08:42:52.000Z
src/java/com/arslorem/hamzah/util/NumberToWordsConverter.java
alkuhlani/cs
0b66e090eae450a5e166184cf94ae636bf6bd2aa
[ "Apache-2.0" ]
null
null
null
src/java/com/arslorem/hamzah/util/NumberToWordsConverter.java
alkuhlani/cs
0b66e090eae450a5e166184cf94ae636bf6bd2aa
[ "Apache-2.0" ]
null
null
null
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.arslorem.hamzah.util; import java.text.NumberFormat; /** * * @author said */ public class NumberToWordsConverter { public static final String[] units = { "", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen" }; public static final String[] tens = { "", // 0 "", // 1 "Twenty", // 2 "Thirty", // 3 "Forty", // 4 "Fifty", // 5 "Sixty", // 6 "Seventy", // 7 "Eighty", // 8 "Ninety" // 9 }; public static String convert(final int n) { if (n < 0) { return "Minus " + convert(-n); } if (n < 20) { return units[n]; } if (n < 100) { return tens[n / 10] + ((n % 10 != 0) ? " " : "") + units[n % 10]; } if (n < 1000) { return units[n / 100] + " Hundred" + ((n % 100 != 0) ? " " : "") + convert(n % 100); } if (n < 100000) { return convert(n / 1000) + " Thousand" + ((n % 10000 != 0) ? " " : "") + convert(n % 1000); } if (n < 10000000) { return convert(n / 100000) + " Lakh" + ((n % 100000 != 0) ? " " : "") + convert(n % 100000); } return convert(n / 10000000) + " Crore" + ((n % 10000000 != 0) ? " " : "") + convert(n % 10000000); } // public static void main(final String[] args) { // // int n; // // n = 5; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 16; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 50; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 78; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 456; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 1000; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 99999; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 199099; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // // n = 10005000; // System.out.println(NumberFormat.getInstance().format(n) + "='" + convert(n) + "'"); // } }
26.967391
101
0.53688
4597f01490d3e396914f5593954bb0b8e628c50c
1,574
py
Python
devproject/core/management/commands/sync_developers.py
francisbrito/take-home-assignment
0eafede75666aa74f9e4bcf31565569d227278cd
[ "MIT" ]
null
null
null
devproject/core/management/commands/sync_developers.py
francisbrito/take-home-assignment
0eafede75666aa74f9e4bcf31565569d227278cd
[ "MIT" ]
null
null
null
devproject/core/management/commands/sync_developers.py
francisbrito/take-home-assignment
0eafede75666aa74f9e4bcf31565569d227278cd
[ "MIT" ]
null
null
null
import sys import traceback from django.core.management.base import BaseCommand, CommandParser from devproject.core.selectors import get_registered_developers from devproject.core.services import sync_developer ERROR_CODE_MISSING_INPUT = 1 class Command(BaseCommand): help = "creates or updates local developer information from Github" requires_migrations_checks = True def add_arguments(self, parser: CommandParser) -> None: parser.add_argument("logins", nargs="*", type=str) parser.add_argument( "-r", "--registered", action="store_true", help="use registered developers as input", ) def handle(self, *args, **options) -> None: if options["registered"]: options["logins"] = get_registered_developers().values_list( "login", flat=True ) if len(options["logins"]) == 0: self.stdout.write( self.style.ERROR( "either provide an space-separated list of logins or pass --registered flag" ) ) sys.exit(ERROR_CODE_MISSING_INPUT) for login in options["logins"]: self.stdout.write(f"syncing developer '{login}' ... ", ending="") try: sync_developer(login=login) self.stdout.write(self.style.SUCCESS("SUCCESS")) except Exception as e: # noqa self.stdout.write(self.style.ERROR("FAILED")) self.stderr.write(traceback.format_exc())
31.48
96
0.602287
b2d388fc82822361b5c420fb9b56420d0d25cd6c
969
css
CSS
src/core/components/global.css
qiansc/cosmic
7965c1ff1d7360a9d3dd55ab7b8f092374b4d5a7
[ "MIT" ]
2
2021-09-12T10:39:27.000Z
2021-09-25T12:41:28.000Z
src/core/components/global.css
ChelesteWang/cosmic
d4c3624f4859d05a3bde84e4cbf7003f9f1a9a0a
[ "MIT" ]
1
2021-08-10T09:17:23.000Z
2021-08-10T09:17:23.000Z
src/core/components/global.css
xuelongm/cosmic
8da8c999756d0290c09130f7ff1a990d1bd938d7
[ "MIT" ]
null
null
null
:root { font-size: 10px; line-height: 100%; } body { margin: 0; background: var(--color-cgray-100); } body.mode-dark { background: var(--color-cgray-900); } button { text-shadow: 1px 1px 1px var(--color-primary-500); } .mode-dark button { text-shadow: 1px 1px 1px var(--color-primary-800); } .break-keep-all { word-break: keep-all; } .select { height: auto; } @font-face { font-family: 'Material Icons'; font-style: normal; font-weight: 400; src: url(./font/font.woff2) format('woff2'); } .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; } .only-dark-show, .only-light-show { display: none; } .mode-dark .only-dark-show { display: block; } .mode-light .only-light-show { display: block; }
16.15
52
0.657379
232b14bb7452f6d6aadcb940083910a44ec4d5a5
3,670
swift
Swift
Sources/Container.swift
floriankrueger/Capsule
d40745381a74457fd546127d0041360978e65a83
[ "MIT" ]
1
2018-10-28T18:17:41.000Z
2018-10-28T18:17:41.000Z
Sources/Container.swift
floriankrueger/Capsule
d40745381a74457fd546127d0041360978e65a83
[ "MIT" ]
null
null
null
Sources/Container.swift
floriankrueger/Capsule
d40745381a74457fd546127d0041360978e65a83
[ "MIT" ]
null
null
null
// // Container.swift // Capsule // // Created by Florian Krüger on {TODAY}. // Copyright © 2017 Capsule. All rights reserved. // import UIKit public protocol Container {} public extension Container where Self: UIViewController { // MARK: UIViewController Containment Methods public func display(contentController content: UIViewController, in view: UIView? = nil, animation: DisplayAnimation = .none, completion: (() -> Void)? = nil) { guard content.view.superview == nil else { fatalError("the viewcontroller’s view is already part of the view hierarchy") } let containerView: UIView = view ?? self.view addChildViewController(content) content.view.frame = animation.startFrame(forContainerViewBounds: containerView.bounds) content.view.alpha = animation.startAlpha containerView.addSubview(content.view) UIView.animate(withDuration: animation.duration, animations: { content.view.alpha = 1.0 content.view.frame = containerView.bounds }, completion: { finished in content.didMove(toParentViewController: self) completion?() }) } public func hide(contentController content: UIViewController, animation: HideAnimation = .none, completion: (() -> Void)? = nil) { guard let containerView = content.view.superview else { fatalError("the viewcontroller’s view isn’t part of the view hierarchy") } content.willMove(toParentViewController: nil) UIView.animate(withDuration: animation.duration, animations: { content.view.frame = animation.endFrame(forContainerViewBounds: containerView.bounds) content.view.alpha = animation.endAlpha }, completion: { finished in content.view.removeFromSuperview() content.removeFromParentViewController() completion?() }) } public func cycle(from oldVC: UIViewController, to newVC: UIViewController, animation: TransitionAnimation = .none, completion: (() -> Void)? = nil) { guard let containerView = oldVC.view.superview else { fatalError("from viewcontroller’s view isn’t part of the view hierarchy") } oldVC.willMove(toParentViewController: nil) addChildViewController(newVC) newVC.view.alpha = animation.startAlpha newVC.view.frame = animation.startFrame(forContainerViewBounds: containerView.bounds) transition(from: oldVC, to: newVC, duration: animation.duration, options: [], animations: { newVC.view.alpha = 1.0 newVC.view.frame = oldVC.view.frame oldVC.view.alpha = animation.endAlpha oldVC.view.frame = animation.endFrame(forContainerViewBounds: containerView.bounds) }, completion: { finished in oldVC.removeFromParentViewController() newVC.didMove(toParentViewController: self) completion?() }) } }
38.631579
109
0.546049
14354d4268db87126203fc3797742c65e76c6608
1,207
ts
TypeScript
indra-park-ui/src/app/core/entities/operation.ts
gleandroj/indra-park-exam
0b9f31fcead801c5442a71ed23081a705dcf6066
[ "MIT" ]
null
null
null
indra-park-ui/src/app/core/entities/operation.ts
gleandroj/indra-park-exam
0b9f31fcead801c5442a71ed23081a705dcf6066
[ "MIT" ]
null
null
null
indra-park-ui/src/app/core/entities/operation.ts
gleandroj/indra-park-exam
0b9f31fcead801c5442a71ed23081a705dcf6066
[ "MIT" ]
null
null
null
export enum VehicleType { Car, Motorcycle, Truck, Pickup }; export const vehicleTypeDescription = { 0: "Carro", 1: "Moto", 2: "Caminhão", 3: "Caminhonete" }; export const vehicleTypesLabels = [ { type: VehicleType.Car, text: vehicleTypeDescription[VehicleType.Car], }, { type: VehicleType.Motorcycle, text: vehicleTypeDescription[VehicleType.Motorcycle], }, { type: VehicleType.Pickup, text: vehicleTypeDescription[VehicleType.Pickup], }, { type: VehicleType.Truck, text: vehicleTypeDescription[VehicleType.Truck], } ]; export interface Vehicle { type: VehicleType; model: string; plate: string; }; export enum OperationType { IN = 0, OUT = 1 }; export interface Operation { id?: number; createdAt?: string; updatedAt?: string; vehicle?: Vehicle; type?: OperationType; enteredAt?: string; exitedAt?: string; } export interface OperationValueResult { hours: number; minutes: number; seconds: number; value: number; totalHours: number; operationId: number; enteredAt: string; exitedAt: string; }
18.859375
61
0.622204
0165ea0e2070d6a6492092b2a481b01dd9d9e9bc
27,998
dart
Dart
lib/intro_slider.dart
Kyya/flutter-intro-slider
afd4882a4cd6a676d1884d9069cd786abbfe91b9
[ "MIT" ]
null
null
null
lib/intro_slider.dart
Kyya/flutter-intro-slider
afd4882a4cd6a676d1884d9069cd786abbfe91b9
[ "MIT" ]
null
null
null
lib/intro_slider.dart
Kyya/flutter-intro-slider
afd4882a4cd6a676d1884d9069cd786abbfe91b9
[ "MIT" ]
null
null
null
import 'dart:io'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'dot_animation_enum.dart'; import 'list_rtl_language.dart'; import 'scrollbar_behavior_enum.dart'; import 'slide_object.dart'; typedef BottomLayoutBuilder = Widget Function(Widget dots); class IntroSlider extends StatefulWidget { // ---------- Slides ---------- /// An array of Slide object final List<Slide>? slides; /// Background color for all slides final Color? backgroundColorAllSlides; // ---------- SKIP button ---------- /// Render your own SKIP button final Widget? renderSkipBtn; /// Width of view wrapper SKIP button final double? widthSkipBtn; /// Fire when press SKIP button final Function? onSkipPress; /// Change SKIP to any text you want final String? nameSkipBtn; /// Style for text at SKIP button final TextStyle? styleSkipBtn; /// Color for SKIP button final Color? colorSkipBtn; /// Color for Skip button when press final Color? highlightColorSkipBtn; /// Show or hide SKIP button final bool? showSkipBtn; /// Rounded SKIP button final double? borderRadiusSkipBtn; // ---------- PREV button ---------- /// Render your own PREV button final Widget? renderPrevBtn; /// Width of view wrapper PREV button final double? widthPrevBtn; /// Change PREV to any text you want final String? namePrevBtn; /// Style for text at PREV button final TextStyle? stylePrevBtn; /// Color for PREV button final Color? colorPrevBtn; /// Color for PREV button when press final Color? highlightColorPrevBtn; /// Show or hide PREV button (only visible if skip is hidden) final bool? showPrevBtn; /// Rounded PREV button final double? borderRadiusPrevBtn; // ---------- NEXT button ---------- /// Render your own NEXT button final Widget? renderNextBtn; /// Change NEXT to any text you want final String? nameNextBtn; /// Show or hide NEXT button final bool? showNextBtn; // ---------- DONE button ---------- /// Change DONE to any text you want final String? nameDoneBtn; /// Render your own DONE button final Widget? renderDoneBtn; /// Width of view wrapper DONE button final double? widthDoneBtn; /// Fire when press DONE button final Function? onDonePress; /// Style for text at DONE button final TextStyle? styleDoneBtn; /// Color for DONE button final Color? colorDoneBtn; /// Color for DONE button when press final Color? highlightColorDoneBtn; /// Rounded DONE button final double? borderRadiusDoneBtn; /// Show or hide DONE button final bool? showDoneBtn; // ---------- Dot indicator ---------- /// Show or hide dot indicator final bool? showDotIndicator; /// Color for dot when passive final Color? colorDot; /// Color for dot when active final Color? colorActiveDot; /// Size of each dot final double? sizeDot; /// Type dots animation final dotSliderAnimation? typeDotAnimation; // ---------- Tabs ---------- /// Render your own custom tabs final List<Widget>? listCustomTabs; /// Render your custom bottom final BottomLayoutBuilder? renderCustomBottom; /// Notify when tab change completed final Function? onTabChangeCompleted; /// Ref function go to specific tab index final Function? refFuncGoToTab; // ---------- Behavior ---------- /// Whether or not the slider is scrollable (or controlled only by buttons) final bool? isScrollable; final ScrollPhysics? scrollPhysics; /// Show or hide status bar final bool? hideStatusBar; /// The way the vertical scrollbar should behave final scrollbarBehavior? verticalScrollbarBehavior; // Constructor IntroSlider({ // Slides this.slides, this.backgroundColorAllSlides, // Skip this.renderSkipBtn, this.widthSkipBtn, this.onSkipPress, this.nameSkipBtn, this.styleSkipBtn, this.colorSkipBtn, this.highlightColorSkipBtn, this.showSkipBtn, this.borderRadiusSkipBtn, // Prev this.renderPrevBtn, this.widthPrevBtn, this.namePrevBtn, this.showPrevBtn, this.stylePrevBtn, this.colorPrevBtn, this.highlightColorPrevBtn, this.borderRadiusPrevBtn, // Done this.renderDoneBtn, this.widthDoneBtn, this.onDonePress, this.nameDoneBtn, this.colorDoneBtn, this.highlightColorDoneBtn, this.borderRadiusDoneBtn, this.styleDoneBtn, this.showDoneBtn, // Next this.renderNextBtn, this.nameNextBtn, this.showNextBtn, // Dots this.colorActiveDot, this.colorDot, this.showDotIndicator, this.sizeDot, this.typeDotAnimation, // Tabs this.listCustomTabs, this.renderCustomBottom, this.onTabChangeCompleted, this.refFuncGoToTab, // Behavior this.isScrollable, this.scrollPhysics, this.hideStatusBar, this.verticalScrollbarBehavior, }); @override IntroSliderState createState() => IntroSliderState(); } class IntroSliderState extends State<IntroSlider> with SingleTickerProviderStateMixin { /// Default values static TextStyle defaultBtnNameTextStyle = const TextStyle(color: Colors.white); static double defaultBtnBorderRadius = 30.0; static Color defaultBtnColor = Colors.transparent; static Color defaultBtnHighlightColor = Colors.white.withOpacity(0.3); // ---------- Slides ---------- /// An array of Slide object late final List<Slide>? slides; // ---------- SKIP button ---------- /// Render your own SKIP button late final Widget renderSkipBtn; /// Fire when press SKIP button late final Function onSkipPress; /// Change SKIP to any text you want late final String nameSkipBtn; /// Style for text at SKIP button late final TextStyle styleSkipBtn; /// Color for SKIP button late final Color colorSkipBtn; /// Color for Skip button when press late final Color highlightColorSkipBtn; /// Show or hide SKIP button late final bool showSkipBtn; /// Rounded SKIP button late final double borderRadiusSkipBtn; // ---------- PREV button ---------- /// Render your own PREV button late final Widget renderPrevBtn; /// Change PREV to any text you want late final String namePrevBtn; /// Style for text at PREV button late final TextStyle stylePrevBtn; /// Color for PREV button late final Color colorPrevBtn; /// Show or hide PREV button bool showPrevBtn = true; /// Rounded PREV button late final double borderRadiusPrevBtn; // ---------- DONE button ---------- /// Render your own DONE button late final Widget renderDoneBtn; /// Fire when press DONE button late final Function onDonePress; /// Change DONE to any text you want late final String nameDoneBtn; /// Style for text at DONE button late final TextStyle styleDoneBtn; /// Color for DONE button late final Color colorDoneBtn; /// Color for DONE button when press late final Color highlightColorDoneBtn; /// Rounded DONE button late final double borderRadiusDoneBtn; /// Show or hide DONE button late final bool showDoneBtn; // ---------- NEXT button ---------- /// Render your own NEXT button late final Widget renderNextBtn; /// Change NEXT to any text you want late final String nameNextBtn; /// Show or hide NEXT button late final bool showNextBtn; // ---------- Dot indicator ---------- /// Show or hide dot indicator late final bool showDotIndicator; /// Color for dot when passive late final Color colorDot; /// Color for dot when active late final Color colorActiveDot; /// Size of each dot late final double? sizeDot; /// Type dots animation dotSliderAnimation? typeDotAnimation; // ---------- Tabs ---------- /// List custom tabs List<Widget>? listCustomTabs; /// Notify when tab change completed Function? onTabChangeCompleted; // ---------- Behavior ---------- /// Allow the slider to scroll late final bool isScrollable; late final ScrollPhysics scrollPhysics; /// The way the vertical scrollbar should behave late final scrollbarBehavior verticalScrollbarBehavior; late TabController tabController; List<Widget>? tabs = []; List<Widget> dots = []; List<double?> sizeDots = []; List<double> opacityDots = []; List<ScrollController> scrollControllers = []; // For DOT_MOVEMENT double marginLeftDotFocused = 0; double marginRightDotFocused = 0; // For SIZE_TRANSITION double currentAnimationValue = 0; int currentTabIndex = 0; late final int lengthSlide; @override void initState() { super.initState(); slides = widget.slides; lengthSlide = slides?.length ?? widget.listCustomTabs?.length ?? 0; onTabChangeCompleted = widget.onTabChangeCompleted; tabController = TabController(length: lengthSlide, vsync: this); tabController.addListener(() { if (tabController.indexIsChanging) { currentTabIndex = tabController.previousIndex; } else { currentTabIndex = tabController.index; if (onTabChangeCompleted != null) { onTabChangeCompleted!(tabController.index); } } currentAnimationValue = tabController.animation!.value; }); // Send reference function goToTab to parent if (widget.refFuncGoToTab != null) { widget.refFuncGoToTab!(goToTab); } // Dot animation sizeDot = widget.sizeDot ?? 8.0; final initValueMarginRight = (sizeDot! * 2) * (lengthSlide - 1); typeDotAnimation = widget.typeDotAnimation ?? dotSliderAnimation.DOT_MOVEMENT; switch (typeDotAnimation!) { case dotSliderAnimation.DOT_MOVEMENT: for (var i = 0; i < lengthSlide; i++) { sizeDots.add(sizeDot); opacityDots.add(1.0); } marginRightDotFocused = initValueMarginRight; break; case dotSliderAnimation.SIZE_TRANSITION: for (var i = 0; i < lengthSlide; i++) { if (i == 0) { sizeDots.add(sizeDot! * 1.5); opacityDots.add(1.0); } else { sizeDots.add(sizeDot); opacityDots.add(0.5); } } } tabController.animation!.addListener(() { setState(() { switch (typeDotAnimation!) { case dotSliderAnimation.DOT_MOVEMENT: marginLeftDotFocused = tabController.animation!.value * sizeDot! * 2; marginRightDotFocused = initValueMarginRight - tabController.animation!.value * sizeDot! * 2; break; case dotSliderAnimation.SIZE_TRANSITION: if (tabController.animation!.value == currentAnimationValue) { break; } var diffValueAnimation = (tabController.animation!.value - currentAnimationValue).abs(); final diffValueIndex = (currentTabIndex - tabController.index).abs(); // When press skip button if (tabController.indexIsChanging && (tabController.index - tabController.previousIndex).abs() > 1) { if (diffValueAnimation < 1.0) { diffValueAnimation = 1.0; } sizeDots[currentTabIndex] = sizeDot! * 1.5 - (sizeDot! / 2) * (1 - (diffValueIndex - diffValueAnimation)); sizeDots[tabController.index] = sizeDot! + (sizeDot! / 2) * (1 - (diffValueIndex - diffValueAnimation)); opacityDots[currentTabIndex] = 1.0 - (diffValueAnimation / diffValueIndex) / 2; opacityDots[tabController.index] = 0.5 + (diffValueAnimation / diffValueIndex) / 2; } else { if (tabController.animation!.value > currentAnimationValue) { // Swipe left sizeDots[currentTabIndex] = sizeDot! * 1.5 - (sizeDot! / 2) * diffValueAnimation; sizeDots[currentTabIndex + 1] = sizeDot! + (sizeDot! / 2) * diffValueAnimation; opacityDots[currentTabIndex] = 1.0 - diffValueAnimation / 2; opacityDots[currentTabIndex + 1] = 0.5 + diffValueAnimation / 2; } else { // Swipe right sizeDots[currentTabIndex] = sizeDot! * 1.5 - (sizeDot! / 2) * diffValueAnimation; sizeDots[currentTabIndex - 1] = sizeDot! + (sizeDot! / 2) * diffValueAnimation; opacityDots[currentTabIndex] = 1.0 - diffValueAnimation / 2; opacityDots[currentTabIndex - 1] = 0.5 + diffValueAnimation / 2; } } break; } }); }); // Dot indicator showDotIndicator = widget.showDotIndicator ?? true; colorDot = widget.colorDot ?? const Color(0x80000000); colorActiveDot = widget.colorActiveDot ?? colorDot; isScrollable = widget.isScrollable ?? true; scrollPhysics = widget.scrollPhysics ?? const ScrollPhysics(); verticalScrollbarBehavior = widget.verticalScrollbarBehavior ?? scrollbarBehavior.HIDE; setupButtonDefaultValues(); if (widget.listCustomTabs == null) { renderListTabs(); } else { tabs = widget.listCustomTabs; } } void setupButtonDefaultValues() { // Skip button onSkipPress = widget.onSkipPress ?? () { if (!isAnimating(tabController.animation!.value)) { if (lengthSlide > 0) { tabController.animateTo(lengthSlide - 1); } } }; showSkipBtn = widget.showSkipBtn ?? true; styleSkipBtn = widget.styleSkipBtn ?? defaultBtnNameTextStyle; nameSkipBtn = widget.nameSkipBtn ?? 'SKIP'; renderSkipBtn = widget.renderSkipBtn ?? Text( nameSkipBtn, style: styleSkipBtn, ); colorSkipBtn = widget.colorSkipBtn ?? defaultBtnColor; highlightColorSkipBtn = widget.highlightColorSkipBtn ?? defaultBtnHighlightColor; borderRadiusSkipBtn = widget.borderRadiusSkipBtn ?? defaultBtnBorderRadius; // Prev button if (widget.showPrevBtn == null || showSkipBtn) { showPrevBtn = false; } stylePrevBtn = widget.stylePrevBtn ?? defaultBtnNameTextStyle; namePrevBtn = widget.namePrevBtn ?? 'PREV'; renderPrevBtn = widget.renderPrevBtn ?? Text( namePrevBtn, style: stylePrevBtn, ); colorPrevBtn = widget.colorPrevBtn ?? defaultBtnColor; borderRadiusPrevBtn = widget.borderRadiusPrevBtn ?? defaultBtnBorderRadius; showDoneBtn = widget.showDoneBtn ?? true; showNextBtn = widget.showNextBtn ?? true; // Done button onDonePress = widget.onDonePress ?? () {}; styleDoneBtn = widget.styleDoneBtn ?? defaultBtnNameTextStyle; nameDoneBtn = widget.nameDoneBtn ?? 'DONE'; renderDoneBtn = widget.renderDoneBtn ?? Text( nameDoneBtn, style: styleDoneBtn, ); colorDoneBtn = widget.colorDoneBtn ?? defaultBtnColor; highlightColorDoneBtn = widget.highlightColorDoneBtn ?? defaultBtnHighlightColor; borderRadiusDoneBtn = widget.borderRadiusDoneBtn ?? defaultBtnBorderRadius; // Next button nameNextBtn = widget.nameNextBtn ?? 'NEXT'; renderNextBtn = widget.renderNextBtn ?? Text( nameNextBtn, style: styleDoneBtn, ); } void goToTab(int index) { if (index < tabController.length) { tabController.animateTo(index); } } @override void dispose() { super.dispose(); tabController.dispose(); } // Checking if tab is animating bool isAnimating(double value) { return tabController.animation!.value - tabController.animation!.value.truncate() != 0; } bool isRTLLanguage(String language) { return rtlLanguages.contains(language); } @override Widget build(BuildContext context) { // Full screen view if (widget.hideStatusBar == true) { SystemChrome.setEnabledSystemUIOverlays([]); } return Scaffold( body: DefaultTabController( length: lengthSlide, child: Stack( children: <Widget>[ TabBarView( controller: tabController, physics: isScrollable ? scrollPhysics : const NeverScrollableScrollPhysics(), children: tabs!, ), renderBottom(), ], ), ), backgroundColor: widget.backgroundColorAllSlides ?? Colors.transparent, ); } Widget buildSkipButton() { if (tabController.index + 1 == lengthSlide) { return Container(width: MediaQuery.of(context).size.width / 4); } else { return TextButton( onPressed: onSkipPress as void Function(), style: TextButton.styleFrom( backgroundColor: colorSkipBtn, primary: highlightColorSkipBtn, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(borderRadiusSkipBtn)), ), child: renderSkipBtn, ); } } Widget buildDoneButton() { return TextButton( onPressed: onDonePress as void Function()?, style: TextButton.styleFrom( backgroundColor: colorDoneBtn, primary: highlightColorDoneBtn, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(borderRadiusDoneBtn)), ), child: renderDoneBtn, ); } Widget buildPrevButton() { if (tabController.index == 0) { return Container(width: MediaQuery.of(context).size.width / 4); } else { return TextButton( onPressed: () { if (!isAnimating(tabController.animation!.value)) { tabController.animateTo(tabController.index - 1); } }, style: TextButton.styleFrom( primary: colorPrevBtn, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(borderRadiusPrevBtn)), ), child: renderPrevBtn, ); } } Widget buildNextButton() { return TextButton( onPressed: () { if (!isAnimating(tabController.animation!.value)) { tabController.animateTo(tabController.index + 1); } }, style: TextButton.styleFrom( backgroundColor: colorDoneBtn, primary: highlightColorDoneBtn, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(borderRadiusDoneBtn)), ), child: renderNextBtn, ); } Widget renderDotIndicator() { return Flexible( child: showDotIndicator ? Stack( children: <Widget>[ Row( mainAxisAlignment: MainAxisAlignment.center, children: renderListDots(), ), if (typeDotAnimation == dotSliderAnimation.DOT_MOVEMENT) Center( child: Container( decoration: BoxDecoration( color: colorActiveDot, borderRadius: BorderRadius.circular(sizeDot! / 2)), width: sizeDot, height: sizeDot, margin: EdgeInsets.only( left: isRTLLanguage( Localizations.localeOf(context).languageCode) ? marginRightDotFocused : marginLeftDotFocused, right: isRTLLanguage( Localizations.localeOf(context).languageCode) ? marginLeftDotFocused : marginRightDotFocused), ), ) else Container() ], ) : Container(), ); } Widget renderDefaultBottom() { return Positioned( bottom: 10.0, left: 10.0, right: 10.0, child: Row( children: <Widget>[ // Skip button Container( alignment: Alignment.center, width: showSkipBtn ? widget.widthSkipBtn ?? MediaQuery.of(context).size.width / 4 : (showPrevBtn ? widget.widthPrevBtn : MediaQuery.of(context).size.width / 4), child: showSkipBtn ? buildSkipButton() : (showPrevBtn ? buildPrevButton() : Container()), ), // Dot indicator renderDotIndicator(), // Next, Done button Container( alignment: Alignment.center, width: widget.widthDoneBtn ?? MediaQuery.of(context).size.width / 4, height: 50, child: tabController.index + 1 == lengthSlide ? showDoneBtn ? buildDoneButton() : Container() : showNextBtn ? buildNextButton() : Container(), ), ], ), ); } Widget renderBottom() { if (widget.renderCustomBottom != null) { return widget.renderCustomBottom!(renderDotIndicator()); } return renderDefaultBottom(); } List<Widget>? renderListTabs() { for (var i = 0; i < lengthSlide; i++) { final scrollController = ScrollController(); scrollControllers.add(scrollController); tabs!.add( renderTab( scrollController, slides?[i].widgetTitle, slides?[i].title, slides?[i].maxLineTitle, slides?[i].styleTitle, slides?[i].marginTitle, slides?[i].widgetDescription, slides?[i].description, slides?[i].maxLineTextDescription, slides?[i].styleDescription, slides?[i].marginDescription, slides?[i].pathImage, slides?[i].widthImage, slides?[i].heightImage, slides?[i].foregroundImageFit, slides?[i].centerWidget, slides?[i].onCenterItemPress, slides?[i].backgroundColor, slides?[i].colorBegin, slides?[i].colorEnd, slides?[i].directionColorBegin, slides?[i].directionColorEnd, slides?[i].backgroundImage, slides?[i].backgroundImageFit, slides?[i].backgroundOpacity, slides?[i].backgroundOpacityColor, slides?[i].backgroundBlendMode, ), ); } return tabs; } Widget renderTab( ScrollController scrollController, // Title Widget? widgetTitle, String? title, int? maxLineTitle, TextStyle? styleTitle, EdgeInsets? marginTitle, // Description Widget? widgetDescription, String? description, int? maxLineTextDescription, TextStyle? styleDescription, EdgeInsets? marginDescription, // Image String? pathImage, double? widthImage, double? heightImage, BoxFit? foregroundImageFit, // Center Widget Widget? centerWidget, Function? onCenterItemPress, // Background color Color? backgroundColor, Color? colorBegin, Color? colorEnd, AlignmentGeometry? directionColorBegin, AlignmentGeometry? directionColorEnd, // Background image String? backgroundImage, BoxFit? backgroundImageFit, double? backgroundOpacity, Color? backgroundOpacityColor, BlendMode? backgroundBlendMode, ) { final listView = ListView( controller: scrollController, children: <Widget>[ Container( // Title margin: marginTitle ?? const EdgeInsets.only( top: 70.0, bottom: 50.0, left: 20.0, right: 20.0), child: widgetTitle ?? Text( title ?? '', style: styleTitle ?? const TextStyle( color: Colors.white, fontWeight: FontWeight.bold, fontSize: 30.0, ), maxLines: maxLineTitle ?? 1, textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, ), ), // Image or Center widget GestureDetector( onTap: onCenterItemPress as void Function()?, child: pathImage != null ? Image.asset( pathImage, width: widthImage ?? 200.0, height: heightImage ?? 200.0, fit: foregroundImageFit ?? BoxFit.contain, ) : Center(child: centerWidget ?? Container()), ), // Description Container( margin: marginDescription ?? const EdgeInsets.fromLTRB(20.0, 50.0, 20.0, 50.0), child: widgetDescription ?? Text( description ?? '', style: styleDescription ?? const TextStyle(color: Colors.white, fontSize: 18.0), textAlign: TextAlign.center, maxLines: maxLineTextDescription ?? 100, overflow: TextOverflow.ellipsis, ), ), ], ); return Container( width: double.infinity, height: double.infinity, decoration: backgroundImage != null ? BoxDecoration( image: DecorationImage( image: AssetImage(backgroundImage), fit: backgroundImageFit ?? BoxFit.cover, colorFilter: ColorFilter.mode( backgroundOpacityColor != null ? backgroundOpacityColor .withOpacity(backgroundOpacity ?? 0.5) : Colors.black.withOpacity(backgroundOpacity ?? 0.5), backgroundBlendMode ?? BlendMode.darken, ), ), ) : BoxDecoration( gradient: LinearGradient( colors: backgroundColor != null ? [backgroundColor, backgroundColor] : [ colorBegin ?? Colors.amberAccent, colorEnd ?? Colors.amberAccent ], begin: directionColorBegin ?? Alignment.topLeft, end: directionColorEnd ?? Alignment.bottomRight, ), ), child: Container( margin: const EdgeInsets.only(bottom: 60.0), child: verticalScrollbarBehavior != scrollbarBehavior.HIDE ? Platform.isIOS ? CupertinoScrollbar( controller: scrollController, isAlwaysShown: verticalScrollbarBehavior == scrollbarBehavior.SHOW_ALWAYS, child: listView, ) : Scrollbar( controller: scrollController, isAlwaysShown: verticalScrollbarBehavior == scrollbarBehavior.SHOW_ALWAYS, child: listView, ) : listView, ), ); } List<Widget> renderListDots() { dots.clear(); for (var i = 0; i < lengthSlide; i++) { dots.add(renderDot(sizeDots[i]!, colorDot, opacityDots[i], i)); } return dots; } Widget renderDot(double radius, Color? color, double opacity, int index) { return GestureDetector( onTap: () { tabController.animateTo(index); }, child: Opacity( opacity: opacity, child: Container( decoration: BoxDecoration( color: color, borderRadius: BorderRadius.circular(radius / 2)), width: radius, height: radius, margin: EdgeInsets.only(left: radius / 2, right: radius / 2), ), ), ); } }
28.482197
80
0.595435
4bc003424303951b3a0e03b315176292b93ef312
890
h
C
src/Classes/user-network/FollowingDisplayMgr.h
highorderbit/code-watch
15e73db9ed86ac4a121be41d6e283ead3c0f81c9
[ "MIT" ]
1
2016-05-09T06:21:09.000Z
2016-05-09T06:21:09.000Z
src/Classes/user-network/FollowingDisplayMgr.h
highorderbit/code-watch
15e73db9ed86ac4a121be41d6e283ead3c0f81c9
[ "MIT" ]
null
null
null
src/Classes/user-network/FollowingDisplayMgr.h
highorderbit/code-watch
15e73db9ed86ac4a121be41d6e283ead3c0f81c9
[ "MIT" ]
null
null
null
// // Copyright High Order Bit, Inc. 2009. All rights reserved. // #import <Foundation/Foundation.h> #import "GitHubServiceDelegate.h" #import "UserDisplayMgr.h" #import "UserNetworkDisplayMgrDelegate.h" @class UserNetworkDisplayMgr; @class GitHubService; @interface FollowingDisplayMgr : NSObject <GitHubServiceDelegate, UserNetworkDisplayMgrDelegate> { UINavigationController * navigationController; UserNetworkDisplayMgr * userNetworkDisplayMgr; GitHubService * gitHubService; NSString * username; BOOL gitHubFailure; } #pragma mark Initialization - (id)initWithNavigationController:(UINavigationController *)nc gitHubService:(GitHubService *)aGitHubService userDisplayMgr:(NSObject<UserDisplayMgr> *)aUserDisplayMgr; #pragma mark Displaying data - (void)displayFollowingForUsername:(NSString *)username; @end
24.054054
79
0.75618