code
stringlengths
4
1.01M
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsShallowCompare = require('react-addons-shallow-compare'); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); var _path = require('path'); var _path2 = _interopRequireDefault(_path); var _NodeCaret = require('./NodeCaret'); var _NodeCaret2 = _interopRequireDefault(_NodeCaret); var _styles = require('./styles'); var _styles2 = _interopRequireDefault(_styles); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var isDirectory = function isDirectory(type) { return type === 'directory'; }; var Node = function (_Component) { _inherits(Node, _Component); function Node() { _classCallCheck(this, Node); var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Node).call(this)); _this.state = {}; return _this; } // shouldComponentUpdate(nextProps, nextState, nextContext) { // const shouldUpdate = shallowCompare(this, nextProps, nextState) // // // console.log('update', shouldUpdate, nextProps.node.path) // // return shouldUpdate // } _createClass(Node, [{ key: 'render', value: function render() { var _this2 = this; var _props = this.props; var node = _props.node; var metadata = _props.metadata; var depth = _props.depth; var type = node.type; var name = node.name; var path = node.path; var expanded = metadata.expanded; var selected = metadata.selected; var hover = this.state.hover; return _react2.default.createElement( 'div', { style: (0, _styles.getPaddedStyle)(depth, selected, hover), onMouseEnter: function onMouseEnter() { return _this2.setState({ hover: true }); }, onMouseLeave: function onMouseLeave() { return _this2.setState({ hover: false }); } }, isDirectory(type) && _react2.default.createElement(_NodeCaret2.default, { expanded: expanded }), _react2.default.createElement( 'div', { style: _styles2.default.nodeText }, name ) ); } }]); return Node; }(_react.Component); exports.default = Node;
--- title: "Kitab Taurat" date: 05/12/2021 --- Raja Yosia dari Yehuda, yang menjadi raja di usia delapan tahun, memerintah selama 31 tahun (640 SM-609 SM) sebelum kematiannya di medan pertempuran. Pada tahun kedelapan belas pemerintahannya, sesuatu terjadi, yang, paling tidak dalam sementara waktu, mengubah sejarah umat Allah. `Bacalah 2 Raj. 22. Pelajaran apa yang kita bisa pelajari dari peristiwa ini?` Para sarjana telah mengambil kesimpulan bahwa "Kitab Taurat" _(2 Raj. 22: 8)_ itu adalah kitab Ulangan, yang sepertinya telah hilang beberapa tahun lamanya. "Yosia sangat tergugah ketika ia mendengar dibacakan untuk pertama kali nasihat-nasihat dan amaran yang tercatat di dalam naskah yang sudah tua ini. Belum pernah ia menyadari dengan begitu sepenuhnya keterangan yang jelas yang telah dibentangkan Allah di hadapan Israel ‘Kehidupan dan kematian, berkat dan kutuk’ _(Ul. 30: 19)_ .... Kitab itu penuh dengan kepastian tentang kesediaan Allah untuk menyelamatkan dengan sekuat tenaga merekat yang mau memberikan kepercayaan mereka dengan sepenuhnya kepada-Nya. Sebagaimana Ia telah bertindak dalam kelepasan mereka dari perhambaan Mesir, begitu juga la mau bekerja dengan sekuat kuasa-Nya dalam meneguhkan mereka di Tanah Perjanjian dan dalam menempatkan mereka pada bagian kepala dari bangsa-bangsa di bumi"—Ellen G. White, _Alfa dan Omega_, jld. 4, hlm. 20. Di sepanjang pasal selanjutnya, kita bisa melihat bagaimana Raja Yosia berusaha "untuk menuruti perintah-perintah-Nya, peraturan-peraturan-Nya dan ketetapan-ketetapan-Nya dengan segenap hati dan dengan segenap jiwa" _(2 Raj. 23: 3; lihat juga Ul. 4: 29, Ul. 6: 5, Ul. 10: 12, Ul. 11: 13)_. Dan reformasi ini termasuk sebuah pembersihan dan penghapusan "segala dewa kejijikan yang terlihat di tanah Yehuda dan di Yerusalem, dihapuskan oleh Yosia dengan maksud menepati perkataan Taurat yang tertulis dalam kitab yang telah didapat oleh imam Hilkia di rumah TUHAN" _(2 Raj. 23: 24)_. Kitab Ulangan diisi dengan amaran-amaran dan nasihat-nasihat agar bangsa Israel tidak mengikuti praktik-praktik yang dilakukan bangsa-bangsa di sekitar mereka. Tindakan-tindakan Yosia, dan segala hal yang dia lakukan, di mana termasuk di dalamnya eksekusi terhadap mereka yang telah menjadi imam-imam berhala di Samaria _(2 Raj. 23: 20)_, menyatakan sejauh mana mereka telah tersesat dari kebenaran yang dipercayakan kepada mereka. Gantinya tetap menjadi bangsa yang kudus sebagaimana seharusnya itu terjadi, mereka berkompromi dengan dunia, bahkan, mereka sering berpikir, _"Kami baik-baik saja dengan Tuhan terima kasih."_ Sungguh satu penipuan yang berbahaya. `Dalam rumah Anda sendiri atau bahkan di dalam institusi-institusi gereja, hal-hal apa yang mungkin kita perlukan untuk menyucikan kita secara umum supaya kita boleh melayani Tuhan dengan segenap hati dan segenap jiwa?`
/// <reference path="../custom_typings/ambient.d.ts" /> import * as gulp from "gulp"; import * as runSequence from "run-sequence"; /* Build task for deployment */ gulp.task("build:prod", done => build(["typescript:prod", "sass", "html"], done)); /* Build task for dev environment */ gulp.task("build:dev", done => build(["typescript:dev:bundle", "typescript:dev", "sass", "html"], done)); function build(tasks: string[], done: any) { runSequence("clean", tasks, done) }
<?php /** * Created by PhpStorm. * User: tahaturk25 * Date: 29.8.2017 * Time: 21:55 */ namespace AppBundle\Repository; use AppBundle\Entity\Department; use Doctrine\ORM\EntityRepository; class DepartmentRepository extends EntityRepository { /** * @return Department[] */ public function findAllNotDeleted() { return $this->createQueryBuilder("d") ->andWhere("d.delCase = :deleted") ->setParameter("deleted",false) ->orderBy("d.name","ASC") ->getQuery() ->execute() ; } }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>example</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="/bower_components/components-bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="/bower_components/components-bootstrap/css/bootstrap-theme.min.css"> <link rel="stylesheet" href="/css/main.css"> </head> <body> <form class='js-add-task form-inline'> <label class='control-label'>Add a Task</label> <div class='controls'> <input type='text' placeholder='description' class='js-add-task-description'/> <input type='submit' class='js-add-task-submit btn btn-primary'/> </div> </form> <h2> Tasks </h2> <ul class= 'js-task-list'></ul> <!--[if lt IE 9]> <script src="/bower_components/es5-shim/es5-shim.js"></script> <script src="/bower_components/es5-shim/es5-sham.js"></script> <![endif]--> <script src="/bower_components/underscore/underscore.js"></script> <script src="/bower_components/jquery/jquery.js"></script> <script src="/bower_components/components-bootstrap/js/bootstrap.min.js"></script> <script src="/bower_components/requirejs/require.js" data-main="js/main.js"></script> <!-- Google Analytics --> <script> (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; e=o.createElement(i);r=o.getElementsByTagName(i)[0]; e.src='//www.google-analytics.com/analytics.js'; r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); ga('create','dsds');ga('send','pageview'); </script> </body> </html>
body { background: #FFF; color: #1B1B1B; font-family: Verdana, Arial, Helvetica, sans-serif; } #container { margin: 0 auto; width: 800px; } #header { padding: 0.5em 0 0 0; margin: 0; text-align: center; border-bottom: 3px solid #000; } #content { padding: 0; margin: 0; } #footer { padding: 0; margin: 0; font-size: 0.7em; text-align: center; border-top: 3px solid #000; } h1, h2, h3, h4, h5, h6 { margin-top: 0em; margin-bottom: .25em; font-weight: bold; } h1 { font-size: 2.2em; } h2 { font-size: 1.6em; } h3 { font-size: 1.4em; } h4 { font-size: 1.3em; } h5 { font-size: 1.2em; } h6 { font-size: 1.1em; } p { margin-bottom: 1em; line-height: 1.3; } a { color: #095EAE; font-weight: bold; text-decoration: none; } a:hover { text-decoration: underline; } #logo a:hover { text-decoration: none; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_25) on Sat Jan 30 13:02:53 EST 2016 --> <title>ec.algorithms.tabu.solution Class Hierarchy</title> <meta name="date" content="2016-01-30"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ec.algorithms.tabu.solution Class Hierarchy"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li class="navBarCell1Rev">Tree</li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../ec/algorithms/tabu/package-tree.html">Prev</a></li> <li><a href="../../../../ec/exceptions/package-tree.html">Next</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?ec/algorithms/tabu/solution/package-tree.html" target="_top">Frames</a></li> <li><a href="package-tree.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 class="title">Hierarchy For Package ec.algorithms.tabu.solution</h1> <span class="strong">Package Hierarchies:</span> <ul class="horizontal"> <li><a href="../../../../overview-tree.html">All Packages</a></li> </ul> </div> <div class="contentContainer"> <h2 title="Class Hierarchy">Class Hierarchy</h2> <ul> <li type="circle">java.lang.Object <ul> <li type="circle">ec.algorithms.tabu.solution.<a href="../../../../ec/algorithms/tabu/solution/Writer.html" title="class in ec.algorithms.tabu.solution"><span class="strong">Writer</span></a></li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li class="navBarCell1Rev">Tree</li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../ec/algorithms/tabu/package-tree.html">Prev</a></li> <li><a href="../../../../ec/exceptions/package-tree.html">Next</a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?ec/algorithms/tabu/solution/package-tree.html" target="_top">Frames</a></li> <li><a href="package-tree.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
# Learning Tools: SSH This folder contains tools, resources, and environments that are intended to help build understanding of Secure Shell (SSH), a key component in many Linux/UNIX environments. ## Contents **ssh-bastion**: In this folder is a Vagrant environment, leveraging multiple VMs, that allow you to work with SSH multiplexing via an SSH bastion host. The provisioning is handled by Vagrant's file and shell provisioners. **ssh-bastion-ansible**: In this folder is a Vagrant environment, leveraging multiple VMs, that allow you to work with SSH multiplexing via an SSH bastion host. The provisioning is handled by Ansible 2.x.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _2.Rotate_and_Sum { class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var rotation = int.Parse(Console.ReadLine()); int[] sum = new int[array.Length]; for (int i = 0; i < rotation; i++) { RotationArray(array, sum); } Console.WriteLine(string.Join(" ",sum)); } public static void RotationArray (int[] input, int[] sum) { var last = input.Length - 1; for (var i = 0; i < input.Length - 1; i += 1) { input[i] ^= input[last]; input[last] ^= input[i]; input[i] ^= input[last]; } for (int i = 0; i < input.Length; i++) { sum[i] += input[i]; } } } }
#include "benchmark/benchmark.h" #include "c4/log.hpp" #include "c4/allocator.hpp" #include "../list_types.hpp" namespace bm = benchmark; namespace c4 { template< class List > void BM_ListPushBack(bm::State& st) { List li; using T = typename List::value_type; T v{}; size_t count = 0; while(st.KeepRunning()) { for(int i = 0, e = st.range(0); i < e; ++i) { if(li.size() == li.max_size()) li.clear(); li.push_back(v); ++count; } li.clear(); } st.SetComplexityN(st.range(0)); st.SetItemsProcessed(count); st.SetBytesProcessed(count * sizeof(T)); } BENCHMARK_TEMPLATE(BM_ListPushBack, split_list__paged_rt< int C4_COMMA int32_t >) ->RangeMultiplier(2) ->Range(4, 1<<19) ->Complexity(); } // end namespace c4 BENCHMARK_MAIN()
# CMAKE generated file: DO NOT EDIT! # Generated by "Unix Makefiles" Generator, CMake Version 3.13 # Relative path conversion top directories. set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Easy/BackspaceStringCompare") set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Easy/BackspaceStringCompare/cmake-build-debug") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) # The C and CXX include file regular expressions for this directory. set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
class Dorsale::BillingMachine::PdfFileGenerator < Dorsale::Service attr_reader :document def initialize(document) @document = document # I have no idea why I need to do that, # if I don't do that, CarrierWare do not stores the file. # The reload() method don't work either. # The problem appears only on server, not in console. # I think CarrierWave do not work anymore after first save. @document = document.class.find(document.id) if document.persisted? end def call document.pdf_file = file document.save! if document.persisted? document end private def pdf_klass if document.is_a?(::Dorsale::BillingMachine::Invoice) return ::Dorsale::BillingMachine.invoice_pdf_model end if document.is_a?(::Dorsale::BillingMachine::Quotation) return ::Dorsale::BillingMachine.quotation_pdf_model end end def pdf_data @pdf_data ||= pdf_klass.new(document).tap(&:build).render_with_attachments end def file @file ||= StringIO.new(pdf_data) end class StringIO < ::StringIO def original_filename @original_filename ||= "#{SecureRandom.uuid}.pdf" end end end
node-website-template ===================== Bare-bones NodeJS MVC website with Express, Swagger, Angular, RequireJS, Handlebars, Mocha. License ======= The MIT License (MIT) Copyright (c) 2014 Boyan Rabchev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System; using Xamarin.Forms; namespace NControl.Controls { /// <summary> /// Font material design label. /// </summary> public class FontMaterialDesignLabel: Label { /// <summary> /// The name of the font. /// </summary> public const string FontName = "Material Design Icons"; /// <summary> /// Initializes a new instance of the <see cref="NControl.Controls.FontMaterialDesignLabel"/> class. /// </summary> public FontMaterialDesignLabel () { FontFamily = FontName; FontSize = 18; HorizontalTextAlignment= TextAlignment.Center; VerticalTextAlignment = TextAlignment.Center; } public static readonly string MDAccessPoint = "\uf002"; public static readonly string MDAccessPointNetwork = "\uf003"; public static readonly string MDAccount = "\uf004"; public static readonly string MDAccountAlert = "\uf005"; public static readonly string MDAccountBox = "\uf006"; public static readonly string MDAccountBoxOutline = "\uf007"; public static readonly string MDAccountCardDetails = "\uf5d2"; public static readonly string MDAccountCheck = "\uf008"; public static readonly string MDAccountCircle = "\uf009"; public static readonly string MDAccountConvert = "\uf00a"; public static readonly string MDAccountEdit = "\uf6bb"; public static readonly string MDAccountKey = "\uf00b"; public static readonly string MDAccountLocation = "\uf00c"; public static readonly string MDAccountMinus = "\uf00d"; public static readonly string MDAccountMultiple = "\uf00e"; public static readonly string MDAccountMultipleMinus = "\uf5d3"; public static readonly string MDAccountMultipleOutline = "\uf00f"; public static readonly string MDAccountMultiplePlus = "\uf010"; public static readonly string MDAccountNetwork = "\uf011"; public static readonly string MDAccountOff = "\uf012"; public static readonly string MDAccountOutline = "\uf013"; public static readonly string MDAccountPlus = "\uf014"; public static readonly string MDAccountRemove = "\uf015"; public static readonly string MDAccountSearch = "\uf016"; public static readonly string MDAccountSettings = "\uf630"; public static readonly string MDAccountSettingsVariant = "\uf631"; public static readonly string MDAccountStar = "\uf017"; public static readonly string MDAccountStarVariant = "\uf018"; public static readonly string MDAccountSwitch = "\uf019"; public static readonly string MDAdjust = "\uf01a"; public static readonly string MDAirConditioner = "\uf01b"; public static readonly string MDAirballoon = "\uf01c"; public static readonly string MDAirplane = "\uf01d"; public static readonly string MDAirplaneLanding = "\uf5d4"; public static readonly string MDAirplaneOff = "\uf01e"; public static readonly string MDAirplaneTakeoff = "\uf5d5"; public static readonly string MDAirplay = "\uf01f"; public static readonly string MDAlarm = "\uf020"; public static readonly string MDAlarmCheck = "\uf021"; public static readonly string MDAlarmMultiple = "\uf022"; public static readonly string MDAlarmOff = "\uf023"; public static readonly string MDAlarmPlus = "\uf024"; public static readonly string MDAlarmSnooze = "\uf68d"; public static readonly string MDAlbum = "\uf025"; public static readonly string MDAlert = "\uf026"; public static readonly string MDAlertBox = "\uf027"; public static readonly string MDAlertCircle = "\uf028"; public static readonly string MDAlertCircleOutline = "\uf5d6"; public static readonly string MDAlertOctagon = "\uf029"; public static readonly string MDAlertOctagram = "\uf6bc"; public static readonly string MDAlertOutline = "\uf02a"; public static readonly string MDAllInclusive = "\uf6bd"; public static readonly string MDAlpha = "\uf02b"; public static readonly string MDAlphabetical = "\uf02c"; public static readonly string MDAltimeter = "\uf5d7"; public static readonly string MDAmazon = "\uf02d"; public static readonly string MDAmazonClouddrive = "\uf02e"; public static readonly string MDAmbulance = "\uf02f"; public static readonly string MDAmplifier = "\uf030"; public static readonly string MDAnchor = "\uf031"; public static readonly string MDAndroid = "\uf032"; public static readonly string MDAndroidDebugBridge = "\uf033"; public static readonly string MDAndroidStudio = "\uf034"; public static readonly string MDAngular = "\uf6b1"; public static readonly string MDAngularjs = "\uf6be"; public static readonly string MDAnimation = "\uf5d8"; public static readonly string MDApple = "\uf035"; public static readonly string MDAppleFinder = "\uf036"; public static readonly string MDAppleIos = "\uf037"; public static readonly string MDAppleKeyboardCaps = "\uf632"; public static readonly string MDAppleKeyboardCommand = "\uf633"; public static readonly string MDAppleKeyboardControl = "\uf634"; public static readonly string MDAppleKeyboardOption = "\uf635"; public static readonly string MDAppleKeyboardShift = "\uf636"; public static readonly string MDAppleMobileme = "\uf038"; public static readonly string MDAppleSafari = "\uf039"; public static readonly string MDApplication = "\uf614"; public static readonly string MDApps = "\uf03b"; public static readonly string MDArchive = "\uf03c"; public static readonly string MDArrangeBringForward = "\uf03d"; public static readonly string MDArrangeBringToFront = "\uf03e"; public static readonly string MDArrangeSendBackward = "\uf03f"; public static readonly string MDArrangeSendToBack = "\uf040"; public static readonly string MDArrowAll = "\uf041"; public static readonly string MDArrowBottomLeft = "\uf042"; public static readonly string MDArrowBottomRight = "\uf043"; public static readonly string MDArrowCompress = "\uf615"; public static readonly string MDArrowCompressAll = "\uf044"; public static readonly string MDArrowDown = "\uf045"; public static readonly string MDArrowDownBold = "\uf046"; public static readonly string MDArrowDownBoldCircle = "\uf047"; public static readonly string MDArrowDownBoldCircleOutline = "\uf048"; public static readonly string MDArrowDownBoldHexagonOutline = "\uf049"; public static readonly string MDArrowDownBox = "\uf6bf"; public static readonly string MDArrowDownDropCircle = "\uf04a"; public static readonly string MDArrowDownDropCircleOutline = "\uf04b"; public static readonly string MDArrowExpand = "\uf616"; public static readonly string MDArrowExpandAll = "\uf04c"; public static readonly string MDArrowLeft = "\uf04d"; public static readonly string MDArrowLeftBold = "\uf04e"; public static readonly string MDArrowLeftBoldCircle = "\uf04f"; public static readonly string MDArrowLeftBoldCircleOutline = "\uf050"; public static readonly string MDArrowLeftBoldHexagonOutline = "\uf051"; public static readonly string MDArrowLeftBox = "\uf6c0"; public static readonly string MDArrowLeftDropCircle = "\uf052"; public static readonly string MDArrowLeftDropCircleOutline = "\uf053"; public static readonly string MDArrowRight = "\uf054"; public static readonly string MDArrowRightBold = "\uf055"; public static readonly string MDArrowRightBoldCircle = "\uf056"; public static readonly string MDArrowRightBoldCircleOutline = "\uf057"; public static readonly string MDArrowRightBoldHexagonOutline = "\uf058"; public static readonly string MDArrowRightBox = "\uf6c1"; public static readonly string MDArrowRightDropCircle = "\uf059"; public static readonly string MDArrowRightDropCircleOutline = "\uf05a"; public static readonly string MDArrowTopLeft = "\uf05b"; public static readonly string MDArrowTopRight = "\uf05c"; public static readonly string MDArrowUp = "\uf05d"; public static readonly string MDArrowUpBold = "\uf05e"; public static readonly string MDArrowUpBoldCircle = "\uf05f"; public static readonly string MDArrowUpBoldCircleOutline = "\uf060"; public static readonly string MDArrowUpBoldHexagonOutline = "\uf061"; public static readonly string MDArrowUpBox = "\uf6c2"; public static readonly string MDArrowUpDropCircle = "\uf062"; public static readonly string MDArrowUpDropCircleOutline = "\uf063"; public static readonly string MDAssistant = "\uf064"; public static readonly string MDAsterisk = "\uf6c3"; public static readonly string MDAt = "\uf065"; public static readonly string MDAttachment = "\uf066"; public static readonly string MDAudiobook = "\uf067"; public static readonly string MDAutoFix = "\uf068"; public static readonly string MDAutoUpload = "\uf069"; public static readonly string MDAutorenew = "\uf06a"; public static readonly string MDAvTimer = "\uf06b"; public static readonly string MDBaby = "\uf06c"; public static readonly string MDBabyBuggy = "\uf68e"; public static readonly string MDBackburger = "\uf06d"; public static readonly string MDBackspace = "\uf06e"; public static readonly string MDBackupRestore = "\uf06f"; public static readonly string MDBandcamp = "\uf674"; public static readonly string MDBank = "\uf070"; public static readonly string MDBarcode = "\uf071"; public static readonly string MDBarcodeScan = "\uf072"; public static readonly string MDBarley = "\uf073"; public static readonly string MDBarrel = "\uf074"; public static readonly string MDBasecamp = "\uf075"; public static readonly string MDBasket = "\uf076"; public static readonly string MDBasketFill = "\uf077"; public static readonly string MDBasketUnfill = "\uf078"; public static readonly string MDBattery = "\uf079"; public static readonly string MDBattery10 = "\uf07a"; public static readonly string MDBattery20 = "\uf07b"; public static readonly string MDBattery30 = "\uf07c"; public static readonly string MDBattery40 = "\uf07d"; public static readonly string MDBattery50 = "\uf07e"; public static readonly string MDBattery60 = "\uf07f"; public static readonly string MDBattery70 = "\uf080"; public static readonly string MDBattery80 = "\uf081"; public static readonly string MDBattery90 = "\uf082"; public static readonly string MDBatteryAlert = "\uf083"; public static readonly string MDBatteryCharging = "\uf084"; public static readonly string MDBatteryCharging100 = "\uf085"; public static readonly string MDBatteryCharging20 = "\uf086"; public static readonly string MDBatteryCharging30 = "\uf087"; public static readonly string MDBatteryCharging40 = "\uf088"; public static readonly string MDBatteryCharging60 = "\uf089"; public static readonly string MDBatteryCharging80 = "\uf08a"; public static readonly string MDBatteryCharging90 = "\uf08b"; public static readonly string MDBatteryMinus = "\uf08c"; public static readonly string MDBatteryNegative = "\uf08d"; public static readonly string MDBatteryOutline = "\uf08e"; public static readonly string MDBatteryPlus = "\uf08f"; public static readonly string MDBatteryPositive = "\uf090"; public static readonly string MDBatteryUnknown = "\uf091"; public static readonly string MDBeach = "\uf092"; public static readonly string MDBeaker = "\uf68f"; public static readonly string MDBeats = "\uf097"; public static readonly string MDBeer = "\uf098"; public static readonly string MDBehance = "\uf099"; public static readonly string MDBell = "\uf09a"; public static readonly string MDBellOff = "\uf09b"; public static readonly string MDBellOutline = "\uf09c"; public static readonly string MDBellPlus = "\uf09d"; public static readonly string MDBellRing = "\uf09e"; public static readonly string MDBellRingOutline = "\uf09f"; public static readonly string MDBellSleep = "\uf0a0"; public static readonly string MDBeta = "\uf0a1"; public static readonly string MDBible = "\uf0a2"; public static readonly string MDBike = "\uf0a3"; public static readonly string MDBing = "\uf0a4"; public static readonly string MDBinoculars = "\uf0a5"; public static readonly string MDBio = "\uf0a6"; public static readonly string MDBiohazard = "\uf0a7"; public static readonly string MDBitbucket = "\uf0a8"; public static readonly string MDBlackMesa = "\uf0a9"; public static readonly string MDBlackberry = "\uf0aa"; public static readonly string MDBlender = "\uf0ab"; public static readonly string MDBlinds = "\uf0ac"; public static readonly string MDBlockHelper = "\uf0ad"; public static readonly string MDBlogger = "\uf0ae"; public static readonly string MDBluetooth = "\uf0af"; public static readonly string MDBluetoothAudio = "\uf0b0"; public static readonly string MDBluetoothConnect = "\uf0b1"; public static readonly string MDBluetoothOff = "\uf0b2"; public static readonly string MDBluetoothSettings = "\uf0b3"; public static readonly string MDBluetoothTransfer = "\uf0b4"; public static readonly string MDBlur = "\uf0b5"; public static readonly string MDBlurLinear = "\uf0b6"; public static readonly string MDBlurOff = "\uf0b7"; public static readonly string MDBlurRadial = "\uf0b8"; public static readonly string MDBomb = "\uf690"; public static readonly string MDBombOff = "\uf6c4"; public static readonly string MDBone = "\uf0b9"; public static readonly string MDBook = "\uf0ba"; public static readonly string MDBookMinus = "\uf5d9"; public static readonly string MDBookMultiple = "\uf0bb"; public static readonly string MDBookMultipleVariant = "\uf0bc"; public static readonly string MDBookOpen = "\uf0bd"; public static readonly string MDBookOpenPageVariant = "\uf5da"; public static readonly string MDBookOpenVariant = "\uf0be"; public static readonly string MDBookPlus = "\uf5db"; public static readonly string MDBookVariant = "\uf0bf"; public static readonly string MDBookmark = "\uf0c0"; public static readonly string MDBookmarkCheck = "\uf0c1"; public static readonly string MDBookmarkMusic = "\uf0c2"; public static readonly string MDBookmarkOutline = "\uf0c3"; public static readonly string MDBookmarkPlus = "\uf0c5"; public static readonly string MDBookmarkPlusOutline = "\uf0c4"; public static readonly string MDBookmarkRemove = "\uf0c6"; public static readonly string MDBoombox = "\uf5dc"; public static readonly string MDBootstrap = "\uf6c5"; public static readonly string MDBorderAll = "\uf0c7"; public static readonly string MDBorderBottom = "\uf0c8"; public static readonly string MDBorderColor = "\uf0c9"; public static readonly string MDBorderHorizontal = "\uf0ca"; public static readonly string MDBorderInside = "\uf0cb"; public static readonly string MDBorderLeft = "\uf0cc"; public static readonly string MDBorderNone = "\uf0cd"; public static readonly string MDBorderOutside = "\uf0ce"; public static readonly string MDBorderRight = "\uf0cf"; public static readonly string MDBorderStyle = "\uf0d0"; public static readonly string MDBorderTop = "\uf0d1"; public static readonly string MDBorderVertical = "\uf0d2"; public static readonly string MDBowTie = "\uf677"; public static readonly string MDBowl = "\uf617"; public static readonly string MDBowling = "\uf0d3"; public static readonly string MDBox = "\uf0d4"; public static readonly string MDBoxCutter = "\uf0d5"; public static readonly string MDBoxShadow = "\uf637"; public static readonly string MDBridge = "\uf618"; public static readonly string MDBriefcase = "\uf0d6"; public static readonly string MDBriefcaseCheck = "\uf0d7"; public static readonly string MDBriefcaseDownload = "\uf0d8"; public static readonly string MDBriefcaseUpload = "\uf0d9"; public static readonly string MDBrightness1 = "\uf0da"; public static readonly string MDBrightness2 = "\uf0db"; public static readonly string MDBrightness3 = "\uf0dc"; public static readonly string MDBrightness4 = "\uf0dd"; public static readonly string MDBrightness5 = "\uf0de"; public static readonly string MDBrightness6 = "\uf0df"; public static readonly string MDBrightness7 = "\uf0e0"; public static readonly string MDBrightnessAuto = "\uf0e1"; public static readonly string MDBroom = "\uf0e2"; public static readonly string MDBrush = "\uf0e3"; public static readonly string MDBuffer = "\uf619"; public static readonly string MDBug = "\uf0e4"; public static readonly string MDBulletinBoard = "\uf0e5"; public static readonly string MDBullhorn = "\uf0e6"; public static readonly string MDBullseye = "\uf5dd"; public static readonly string MDBurstMode = "\uf5de"; public static readonly string MDBus = "\uf0e7"; public static readonly string MDCached = "\uf0e8"; public static readonly string MDCake = "\uf0e9"; public static readonly string MDCakeLayered = "\uf0ea"; public static readonly string MDCakeVariant = "\uf0eb"; public static readonly string MDCalculator = "\uf0ec"; public static readonly string MDCalendar = "\uf0ed"; public static readonly string MDCalendarBlank = "\uf0ee"; public static readonly string MDCalendarCheck = "\uf0ef"; public static readonly string MDCalendarClock = "\uf0f0"; public static readonly string MDCalendarMultiple = "\uf0f1"; public static readonly string MDCalendarMultipleCheck = "\uf0f2"; public static readonly string MDCalendarPlus = "\uf0f3"; public static readonly string MDCalendarQuestion = "\uf691"; public static readonly string MDCalendarRange = "\uf678"; public static readonly string MDCalendarRemove = "\uf0f4"; public static readonly string MDCalendarText = "\uf0f5"; public static readonly string MDCalendarToday = "\uf0f6"; public static readonly string MDCallMade = "\uf0f7"; public static readonly string MDCallMerge = "\uf0f8"; public static readonly string MDCallMissed = "\uf0f9"; public static readonly string MDCallReceived = "\uf0fa"; public static readonly string MDCallSplit = "\uf0fb"; public static readonly string MDCamcorder = "\uf0fc"; public static readonly string MDCamcorderBox = "\uf0fd"; public static readonly string MDCamcorderBoxOff = "\uf0fe"; public static readonly string MDCamcorderOff = "\uf0ff"; public static readonly string MDCamera = "\uf100"; public static readonly string MDCameraBurst = "\uf692"; public static readonly string MDCameraEnhance = "\uf101"; public static readonly string MDCameraFront = "\uf102"; public static readonly string MDCameraFrontVariant = "\uf103"; public static readonly string MDCameraIris = "\uf104"; public static readonly string MDCameraOff = "\uf5df"; public static readonly string MDCameraPartyMode = "\uf105"; public static readonly string MDCameraRear = "\uf106"; public static readonly string MDCameraRearVariant = "\uf107"; public static readonly string MDCameraSwitch = "\uf108"; public static readonly string MDCameraTimer = "\uf109"; public static readonly string MDCandle = "\uf5e2"; public static readonly string MDCandycane = "\uf10a"; public static readonly string MDCar = "\uf10b"; public static readonly string MDCarBattery = "\uf10c"; public static readonly string MDCarConnected = "\uf10d"; public static readonly string MDCarWash = "\uf10e"; public static readonly string MDCards = "\uf638"; public static readonly string MDCardsOutline = "\uf639"; public static readonly string MDCardsPlayingOutline = "\uf63a"; public static readonly string MDCardsVariant = "\uf6c6"; public static readonly string MDCarrot = "\uf10f"; public static readonly string MDCart = "\uf110"; public static readonly string MDCartOff = "\uf66b"; public static readonly string MDCartOutline = "\uf111"; public static readonly string MDCartPlus = "\uf112"; public static readonly string MDCaseSensitiveAlt = "\uf113"; public static readonly string MDCash = "\uf114"; public static readonly string MDCash100 = "\uf115"; public static readonly string MDCashMultiple = "\uf116"; public static readonly string MDCashUsd = "\uf117"; public static readonly string MDCast = "\uf118"; public static readonly string MDCastConnected = "\uf119"; public static readonly string MDCastle = "\uf11a"; public static readonly string MDCat = "\uf11b"; public static readonly string MDCellphone = "\uf11c"; public static readonly string MDCellphoneAndroid = "\uf11d"; public static readonly string MDCellphoneBasic = "\uf11e"; public static readonly string MDCellphoneDock = "\uf11f"; public static readonly string MDCellphoneIphone = "\uf120"; public static readonly string MDCellphoneLink = "\uf121"; public static readonly string MDCellphoneLinkOff = "\uf122"; public static readonly string MDCellphoneSettings = "\uf123"; public static readonly string MDCertificate = "\uf124"; public static readonly string MDChairSchool = "\uf125"; public static readonly string MDChartArc = "\uf126"; public static readonly string MDChartAreaspline = "\uf127"; public static readonly string MDChartBar = "\uf128"; public static readonly string MDChartBubble = "\uf5e3"; public static readonly string MDChartGantt = "\uf66c"; public static readonly string MDChartHistogram = "\uf129"; public static readonly string MDChartLine = "\uf12a"; public static readonly string MDChartPie = "\uf12b"; public static readonly string MDChartScatterplotHexbin = "\uf66d"; public static readonly string MDChartTimeline = "\uf66e"; public static readonly string MDCheck = "\uf12c"; public static readonly string MDCheckAll = "\uf12d"; public static readonly string MDCheckCircle = "\uf5e0"; public static readonly string MDCheckCircleOutline = "\uf5e1"; public static readonly string MDCheckboxBlank = "\uf12e"; public static readonly string MDCheckboxBlankCircle = "\uf12f"; public static readonly string MDCheckboxBlankCircleOutline = "\uf130"; public static readonly string MDCheckboxBlankOutline = "\uf131"; public static readonly string MDCheckboxMarked = "\uf132"; public static readonly string MDCheckboxMarkedCircle = "\uf133"; public static readonly string MDCheckboxMarkedCircleOutline = "\uf134"; public static readonly string MDCheckboxMarkedOutline = "\uf135"; public static readonly string MDCheckboxMultipleBlank = "\uf136"; public static readonly string MDCheckboxMultipleBlankCircle = "\uf63b"; public static readonly string MDCheckboxMultipleBlankCircleOutline = "\uf63c"; public static readonly string MDCheckboxMultipleBlankOutline = "\uf137"; public static readonly string MDCheckboxMultipleMarked = "\uf138"; public static readonly string MDCheckboxMultipleMarkedCircle = "\uf63d"; public static readonly string MDCheckboxMultipleMarkedCircleOutline = "\uf63e"; public static readonly string MDCheckboxMultipleMarkedOutline = "\uf139"; public static readonly string MDCheckerboard = "\uf13a"; public static readonly string MDChemicalWeapon = "\uf13b"; public static readonly string MDChevronDoubleDown = "\uf13c"; public static readonly string MDChevronDoubleLeft = "\uf13d"; public static readonly string MDChevronDoubleRight = "\uf13e"; public static readonly string MDChevronDoubleUp = "\uf13f"; public static readonly string MDChevronDown = "\uf140"; public static readonly string MDChevronLeft = "\uf141"; public static readonly string MDChevronRight = "\uf142"; public static readonly string MDChevronUp = "\uf143"; public static readonly string MDChip = "\uf61a"; public static readonly string MDChurch = "\uf144"; public static readonly string MDCiscoWebex = "\uf145"; public static readonly string MDCity = "\uf146"; public static readonly string MDClipboard = "\uf147"; public static readonly string MDClipboardAccount = "\uf148"; public static readonly string MDClipboardAlert = "\uf149"; public static readonly string MDClipboardArrowDown = "\uf14a"; public static readonly string MDClipboardArrowLeft = "\uf14b"; public static readonly string MDClipboardCheck = "\uf14c"; public static readonly string MDClipboardFlow = "\uf6c7"; public static readonly string MDClipboardOutline = "\uf14d"; public static readonly string MDClipboardText = "\uf14e"; public static readonly string MDClippy = "\uf14f"; public static readonly string MDClock = "\uf150"; public static readonly string MDClockAlert = "\uf5ce"; public static readonly string MDClockEnd = "\uf151"; public static readonly string MDClockFast = "\uf152"; public static readonly string MDClockIn = "\uf153"; public static readonly string MDClockOut = "\uf154"; public static readonly string MDClockStart = "\uf155"; public static readonly string MDClose = "\uf156"; public static readonly string MDCloseBox = "\uf157"; public static readonly string MDCloseBoxOutline = "\uf158"; public static readonly string MDCloseCircle = "\uf159"; public static readonly string MDCloseCircleOutline = "\uf15a"; public static readonly string MDCloseNetwork = "\uf15b"; public static readonly string MDCloseOctagon = "\uf15c"; public static readonly string MDCloseOctagonOutline = "\uf15d"; public static readonly string MDCloseOutline = "\uf6c8"; public static readonly string MDClosedCaption = "\uf15e"; public static readonly string MDCloud = "\uf15f"; public static readonly string MDCloudCheck = "\uf160"; public static readonly string MDCloudCircle = "\uf161"; public static readonly string MDCloudDownload = "\uf162"; public static readonly string MDCloudOutline = "\uf163"; public static readonly string MDCloudOutlineOff = "\uf164"; public static readonly string MDCloudPrint = "\uf165"; public static readonly string MDCloudPrintOutline = "\uf166"; public static readonly string MDCloudSync = "\uf63f"; public static readonly string MDCloudUpload = "\uf167"; public static readonly string MDCodeArray = "\uf168"; public static readonly string MDCodeBraces = "\uf169"; public static readonly string MDCodeBrackets = "\uf16a"; public static readonly string MDCodeEqual = "\uf16b"; public static readonly string MDCodeGreaterThan = "\uf16c"; public static readonly string MDCodeGreaterThanOrEqual = "\uf16d"; public static readonly string MDCodeLessThan = "\uf16e"; public static readonly string MDCodeLessThanOrEqual = "\uf16f"; public static readonly string MDCodeNotEqual = "\uf170"; public static readonly string MDCodeNotEqualVariant = "\uf171"; public static readonly string MDCodeParentheses = "\uf172"; public static readonly string MDCodeString = "\uf173"; public static readonly string MDCodeTags = "\uf174"; public static readonly string MDCodeTagsCheck = "\uf693"; public static readonly string MDCodepen = "\uf175"; public static readonly string MDCoffee = "\uf176"; public static readonly string MDCoffeeOutline = "\uf6c9"; public static readonly string MDCoffeeToGo = "\uf177"; public static readonly string MDCoin = "\uf178"; public static readonly string MDCoins = "\uf694"; public static readonly string MDCollage = "\uf640"; public static readonly string MDColorHelper = "\uf179"; public static readonly string MDComment = "\uf17a"; public static readonly string MDCommentAccount = "\uf17b"; public static readonly string MDCommentAccountOutline = "\uf17c"; public static readonly string MDCommentAlert = "\uf17d"; public static readonly string MDCommentAlertOutline = "\uf17e"; public static readonly string MDCommentCheck = "\uf17f"; public static readonly string MDCommentCheckOutline = "\uf180"; public static readonly string MDCommentMultipleOutline = "\uf181"; public static readonly string MDCommentOutline = "\uf182"; public static readonly string MDCommentPlusOutline = "\uf183"; public static readonly string MDCommentProcessing = "\uf184"; public static readonly string MDCommentProcessingOutline = "\uf185"; public static readonly string MDCommentQuestionOutline = "\uf186"; public static readonly string MDCommentRemoveOutline = "\uf187"; public static readonly string MDCommentText = "\uf188"; public static readonly string MDCommentTextOutline = "\uf189"; public static readonly string MDCompare = "\uf18a"; public static readonly string MDCompass = "\uf18b"; public static readonly string MDCompassOutline = "\uf18c"; public static readonly string MDConsole = "\uf18d"; public static readonly string MDContactMail = "\uf18e"; public static readonly string MDContacts = "\uf6ca"; public static readonly string MDContentCopy = "\uf18f"; public static readonly string MDContentCut = "\uf190"; public static readonly string MDContentDuplicate = "\uf191"; public static readonly string MDContentPaste = "\uf192"; public static readonly string MDContentSave = "\uf193"; public static readonly string MDContentSaveAll = "\uf194"; public static readonly string MDContentSaveSettings = "\uf61b"; public static readonly string MDContrast = "\uf195"; public static readonly string MDContrastBox = "\uf196"; public static readonly string MDContrastCircle = "\uf197"; public static readonly string MDCookie = "\uf198"; public static readonly string MDCopyright = "\uf5e6"; public static readonly string MDCounter = "\uf199"; public static readonly string MDCow = "\uf19a"; public static readonly string MDCreation = "\uf1c9"; public static readonly string MDCreditCard = "\uf19b"; public static readonly string MDCreditCardMultiple = "\uf19c"; public static readonly string MDCreditCardOff = "\uf5e4"; public static readonly string MDCreditCardPlus = "\uf675"; public static readonly string MDCreditCardScan = "\uf19d"; public static readonly string MDCrop = "\uf19e"; public static readonly string MDCropFree = "\uf19f"; public static readonly string MDCropLandscape = "\uf1a0"; public static readonly string MDCropPortrait = "\uf1a1"; public static readonly string MDCropRotate = "\uf695"; public static readonly string MDCropSquare = "\uf1a2"; public static readonly string MDCrosshairs = "\uf1a3"; public static readonly string MDCrosshairsGps = "\uf1a4"; public static readonly string MDCrown = "\uf1a5"; public static readonly string MDCube = "\uf1a6"; public static readonly string MDCubeOutline = "\uf1a7"; public static readonly string MDCubeSend = "\uf1a8"; public static readonly string MDCubeUnfolded = "\uf1a9"; public static readonly string MDCup = "\uf1aa"; public static readonly string MDCupOff = "\uf5e5"; public static readonly string MDCupWater = "\uf1ab"; public static readonly string MDCurrencyBtc = "\uf1ac"; public static readonly string MDCurrencyEur = "\uf1ad"; public static readonly string MDCurrencyGbp = "\uf1ae"; public static readonly string MDCurrencyInr = "\uf1af"; public static readonly string MDCurrencyNgn = "\uf1b0"; public static readonly string MDCurrencyRub = "\uf1b1"; public static readonly string MDCurrencyTry = "\uf1b2"; public static readonly string MDCurrencyUsd = "\uf1b3"; public static readonly string MDCurrencyUsdOff = "\uf679"; public static readonly string MDCursorDefault = "\uf1b4"; public static readonly string MDCursorDefaultOutline = "\uf1b5"; public static readonly string MDCursorMove = "\uf1b6"; public static readonly string MDCursorPointer = "\uf1b7"; public static readonly string MDCursorText = "\uf5e7"; public static readonly string MDDatabase = "\uf1b8"; public static readonly string MDDatabaseMinus = "\uf1b9"; public static readonly string MDDatabasePlus = "\uf1ba"; public static readonly string MDDebugStepInto = "\uf1bb"; public static readonly string MDDebugStepOut = "\uf1bc"; public static readonly string MDDebugStepOver = "\uf1bd"; public static readonly string MDDecimalDecrease = "\uf1be"; public static readonly string MDDecimalIncrease = "\uf1bf"; public static readonly string MDDelete = "\uf1c0"; public static readonly string MDDeleteCircle = "\uf682"; public static readonly string MDDeleteEmpty = "\uf6cb"; public static readonly string MDDeleteForever = "\uf5e8"; public static readonly string MDDeleteSweep = "\uf5e9"; public static readonly string MDDeleteVariant = "\uf1c1"; public static readonly string MDDelta = "\uf1c2"; public static readonly string MDDeskphone = "\uf1c3"; public static readonly string MDDesktopMac = "\uf1c4"; public static readonly string MDDesktopTower = "\uf1c5"; public static readonly string MDDetails = "\uf1c6"; public static readonly string MDDeveloperBoard = "\uf696"; public static readonly string MDDeviantart = "\uf1c7"; public static readonly string MDDialpad = "\uf61c"; public static readonly string MDDiamond = "\uf1c8"; public static readonly string MDDice1 = "\uf1ca"; public static readonly string MDDice2 = "\uf1cb"; public static readonly string MDDice3 = "\uf1cc"; public static readonly string MDDice4 = "\uf1cd"; public static readonly string MDDice5 = "\uf1ce"; public static readonly string MDDice6 = "\uf1cf"; public static readonly string MDDiceD20 = "\uf5ea"; public static readonly string MDDiceD4 = "\uf5eb"; public static readonly string MDDiceD6 = "\uf5ec"; public static readonly string MDDiceD8 = "\uf5ed"; public static readonly string MDDictionary = "\uf61d"; public static readonly string MDDirections = "\uf1d0"; public static readonly string MDDirectionsFork = "\uf641"; public static readonly string MDDiscord = "\uf66f"; public static readonly string MDDisk = "\uf5ee"; public static readonly string MDDiskAlert = "\uf1d1"; public static readonly string MDDisqus = "\uf1d2"; public static readonly string MDDisqusOutline = "\uf1d3"; public static readonly string MDDivision = "\uf1d4"; public static readonly string MDDivisionBox = "\uf1d5"; public static readonly string MDDna = "\uf683"; public static readonly string MDDns = "\uf1d6"; public static readonly string MDDoNotDisturb = "\uf697"; public static readonly string MDDoNotDisturbOff = "\uf698"; public static readonly string MDDolby = "\uf6b2"; public static readonly string MDDomain = "\uf1d7"; public static readonly string MDDotsHorizontal = "\uf1d8"; public static readonly string MDDotsVertical = "\uf1d9"; public static readonly string MDDouban = "\uf699"; public static readonly string MDDownload = "\uf1da"; public static readonly string MDDrag = "\uf1db"; public static readonly string MDDragHorizontal = "\uf1dc"; public static readonly string MDDragVertical = "\uf1dd"; public static readonly string MDDrawing = "\uf1de"; public static readonly string MDDrawingBox = "\uf1df"; public static readonly string MDDribbble = "\uf1e0"; public static readonly string MDDribbbleBox = "\uf1e1"; public static readonly string MDDrone = "\uf1e2"; public static readonly string MDDropbox = "\uf1e3"; public static readonly string MDDrupal = "\uf1e4"; public static readonly string MDDuck = "\uf1e5"; public static readonly string MDDumbbell = "\uf1e6"; public static readonly string MDEarth = "\uf1e7"; public static readonly string MDEarthBox = "\uf6cc"; public static readonly string MDEarthBoxOff = "\uf6cd"; public static readonly string MDEarthOff = "\uf1e8"; public static readonly string MDEdge = "\uf1e9"; public static readonly string MDEject = "\uf1ea"; public static readonly string MDElevationDecline = "\uf1eb"; public static readonly string MDElevationRise = "\uf1ec"; public static readonly string MDElevator = "\uf1ed"; public static readonly string MDEmail = "\uf1ee"; public static readonly string MDEmailAlert = "\uf6ce"; public static readonly string MDEmailOpen = "\uf1ef"; public static readonly string MDEmailOpenOutline = "\uf5ef"; public static readonly string MDEmailOutline = "\uf1f0"; public static readonly string MDEmailSecure = "\uf1f1"; public static readonly string MDEmailVariant = "\uf5f0"; public static readonly string MDEmby = "\uf6b3"; public static readonly string MDEmoticon = "\uf1f2"; public static readonly string MDEmoticonCool = "\uf1f3"; public static readonly string MDEmoticonDead = "\uf69a"; public static readonly string MDEmoticonDevil = "\uf1f4"; public static readonly string MDEmoticonExcited = "\uf69b"; public static readonly string MDEmoticonHappy = "\uf1f5"; public static readonly string MDEmoticonNeutral = "\uf1f6"; public static readonly string MDEmoticonPoop = "\uf1f7"; public static readonly string MDEmoticonSad = "\uf1f8"; public static readonly string MDEmoticonTongue = "\uf1f9"; public static readonly string MDEngine = "\uf1fa"; public static readonly string MDEngineOutline = "\uf1fb"; public static readonly string MDEqual = "\uf1fc"; public static readonly string MDEqualBox = "\uf1fd"; public static readonly string MDEraser = "\uf1fe"; public static readonly string MDEraserVariant = "\uf642"; public static readonly string MDEscalator = "\uf1ff"; public static readonly string MDEthernet = "\uf200"; public static readonly string MDEthernetCable = "\uf201"; public static readonly string MDEthernetCableOff = "\uf202"; public static readonly string MDEtsy = "\uf203"; public static readonly string MDEvStation = "\uf5f1"; public static readonly string MDEvernote = "\uf204"; public static readonly string MDExclamation = "\uf205"; public static readonly string MDExitToApp = "\uf206"; public static readonly string MDExport = "\uf207"; public static readonly string MDEye = "\uf208"; public static readonly string MDEyeOff = "\uf209"; public static readonly string MDEyeOutline = "\uf6cf"; public static readonly string MDEyeOutlineOff = "\uf6d0"; public static readonly string MDEyedropper = "\uf20a"; public static readonly string MDEyedropperVariant = "\uf20b"; public static readonly string MDFace = "\uf643"; public static readonly string MDFaceProfile = "\uf644"; public static readonly string MDFacebook = "\uf20c"; public static readonly string MDFacebookBox = "\uf20d"; public static readonly string MDFacebookMessenger = "\uf20e"; public static readonly string MDFactory = "\uf20f"; public static readonly string MDFan = "\uf210"; public static readonly string MDFastForward = "\uf211"; public static readonly string MDFastForwardOutline = "\uf6d1"; public static readonly string MDFax = "\uf212"; public static readonly string MDFeather = "\uf6d2"; public static readonly string MDFerry = "\uf213"; public static readonly string MDFile = "\uf214"; public static readonly string MDFileChart = "\uf215"; public static readonly string MDFileCheck = "\uf216"; public static readonly string MDFileCloud = "\uf217"; public static readonly string MDFileDelimited = "\uf218"; public static readonly string MDFileDocument = "\uf219"; public static readonly string MDFileDocumentBox = "\uf21a"; public static readonly string MDFileExcel = "\uf21b"; public static readonly string MDFileExcelBox = "\uf21c"; public static readonly string MDFileExport = "\uf21d"; public static readonly string MDFileFind = "\uf21e"; public static readonly string MDFileHidden = "\uf613"; public static readonly string MDFileImage = "\uf21f"; public static readonly string MDFileImport = "\uf220"; public static readonly string MDFileLock = "\uf221"; public static readonly string MDFileMultiple = "\uf222"; public static readonly string MDFileMusic = "\uf223"; public static readonly string MDFileOutline = "\uf224"; public static readonly string MDFilePdf = "\uf225"; public static readonly string MDFilePdfBox = "\uf226"; public static readonly string MDFilePowerpoint = "\uf227"; public static readonly string MDFilePowerpointBox = "\uf228"; public static readonly string MDFilePresentationBox = "\uf229"; public static readonly string MDFileRestore = "\uf670"; public static readonly string MDFileSend = "\uf22a"; public static readonly string MDFileTree = "\uf645"; public static readonly string MDFileVideo = "\uf22b"; public static readonly string MDFileWord = "\uf22c"; public static readonly string MDFileWordBox = "\uf22d"; public static readonly string MDFileXml = "\uf22e"; public static readonly string MDFilm = "\uf22f"; public static readonly string MDFilmstrip = "\uf230"; public static readonly string MDFilmstripOff = "\uf231"; public static readonly string MDFilter = "\uf232"; public static readonly string MDFilterOutline = "\uf233"; public static readonly string MDFilterRemove = "\uf234"; public static readonly string MDFilterRemoveOutline = "\uf235"; public static readonly string MDFilterVariant = "\uf236"; public static readonly string MDFindReplace = "\uf6d3"; public static readonly string MDFingerprint = "\uf237"; public static readonly string MDFire = "\uf238"; public static readonly string MDFirefox = "\uf239"; public static readonly string MDFish = "\uf23a"; public static readonly string MDFlag = "\uf23b"; public static readonly string MDFlagCheckered = "\uf23c"; public static readonly string MDFlagOutline = "\uf23d"; public static readonly string MDFlagOutlineVariant = "\uf23e"; public static readonly string MDFlagTriangle = "\uf23f"; public static readonly string MDFlagVariant = "\uf240"; public static readonly string MDFlash = "\uf241"; public static readonly string MDFlashAuto = "\uf242"; public static readonly string MDFlashOff = "\uf243"; public static readonly string MDFlashOutline = "\uf6d4"; public static readonly string MDFlashRedEye = "\uf67a"; public static readonly string MDFlashlight = "\uf244"; public static readonly string MDFlashlightOff = "\uf245"; public static readonly string MDFlask = "\uf093"; public static readonly string MDFlaskEmpty = "\uf094"; public static readonly string MDFlaskEmptyOutline = "\uf095"; public static readonly string MDFlaskOutline = "\uf096"; public static readonly string MDFlattr = "\uf246"; public static readonly string MDFlipToBack = "\uf247"; public static readonly string MDFlipToFront = "\uf248"; public static readonly string MDFloppy = "\uf249"; public static readonly string MDFlower = "\uf24a"; public static readonly string MDFolder = "\uf24b"; public static readonly string MDFolderAccount = "\uf24c"; public static readonly string MDFolderDownload = "\uf24d"; public static readonly string MDFolderGoogleDrive = "\uf24e"; public static readonly string MDFolderImage = "\uf24f"; public static readonly string MDFolderLock = "\uf250"; public static readonly string MDFolderLockOpen = "\uf251"; public static readonly string MDFolderMove = "\uf252"; public static readonly string MDFolderMultiple = "\uf253"; public static readonly string MDFolderMultipleImage = "\uf254"; public static readonly string MDFolderMultipleOutline = "\uf255"; public static readonly string MDFolderOutline = "\uf256"; public static readonly string MDFolderPlus = "\uf257"; public static readonly string MDFolderRemove = "\uf258"; public static readonly string MDFolderStar = "\uf69c"; public static readonly string MDFolderUpload = "\uf259"; public static readonly string MDFontAwesome = "\uf03a"; public static readonly string MDFood = "\uf25a"; public static readonly string MDFoodApple = "\uf25b"; public static readonly string MDFoodForkDrink = "\uf5f2"; public static readonly string MDFoodOff = "\uf5f3"; public static readonly string MDFoodVariant = "\uf25c"; public static readonly string MDFootball = "\uf25d"; public static readonly string MDFootballAustralian = "\uf25e"; public static readonly string MDFootballHelmet = "\uf25f"; public static readonly string MDFormatAlignCenter = "\uf260"; public static readonly string MDFormatAlignJustify = "\uf261"; public static readonly string MDFormatAlignLeft = "\uf262"; public static readonly string MDFormatAlignRight = "\uf263"; public static readonly string MDFormatAnnotationPlus = "\uf646"; public static readonly string MDFormatBold = "\uf264"; public static readonly string MDFormatClear = "\uf265"; public static readonly string MDFormatColorFill = "\uf266"; public static readonly string MDFormatColorText = "\uf69d"; public static readonly string MDFormatFloatCenter = "\uf267"; public static readonly string MDFormatFloatLeft = "\uf268"; public static readonly string MDFormatFloatNone = "\uf269"; public static readonly string MDFormatFloatRight = "\uf26a"; public static readonly string MDFormatFont = "\uf6d5"; public static readonly string MDFormatHeader1 = "\uf26b"; public static readonly string MDFormatHeader2 = "\uf26c"; public static readonly string MDFormatHeader3 = "\uf26d"; public static readonly string MDFormatHeader4 = "\uf26e"; public static readonly string MDFormatHeader5 = "\uf26f"; public static readonly string MDFormatHeader6 = "\uf270"; public static readonly string MDFormatHeaderDecrease = "\uf271"; public static readonly string MDFormatHeaderEqual = "\uf272"; public static readonly string MDFormatHeaderIncrease = "\uf273"; public static readonly string MDFormatHeaderPound = "\uf274"; public static readonly string MDFormatHorizontalAlignCenter = "\uf61e"; public static readonly string MDFormatHorizontalAlignLeft = "\uf61f"; public static readonly string MDFormatHorizontalAlignRight = "\uf620"; public static readonly string MDFormatIndentDecrease = "\uf275"; public static readonly string MDFormatIndentIncrease = "\uf276"; public static readonly string MDFormatItalic = "\uf277"; public static readonly string MDFormatLineSpacing = "\uf278"; public static readonly string MDFormatLineStyle = "\uf5c8"; public static readonly string MDFormatLineWeight = "\uf5c9"; public static readonly string MDFormatListBulleted = "\uf279"; public static readonly string MDFormatListBulletedType = "\uf27a"; public static readonly string MDFormatListNumbers = "\uf27b"; public static readonly string MDFormatPageBreak = "\uf6d6"; public static readonly string MDFormatPaint = "\uf27c"; public static readonly string MDFormatParagraph = "\uf27d"; public static readonly string MDFormatPilcrow = "\uf6d7"; public static readonly string MDFormatQuote = "\uf27e"; public static readonly string MDFormatRotate90 = "\uf6a9"; public static readonly string MDFormatSection = "\uf69e"; public static readonly string MDFormatSize = "\uf27f"; public static readonly string MDFormatStrikethrough = "\uf280"; public static readonly string MDFormatStrikethroughVariant = "\uf281"; public static readonly string MDFormatSubscript = "\uf282"; public static readonly string MDFormatSuperscript = "\uf283"; public static readonly string MDFormatText = "\uf284"; public static readonly string MDFormatTextdirectionLToR = "\uf285"; public static readonly string MDFormatTextdirectionRToL = "\uf286"; public static readonly string MDFormatTitle = "\uf5f4"; public static readonly string MDFormatUnderline = "\uf287"; public static readonly string MDFormatVerticalAlignBottom = "\uf621"; public static readonly string MDFormatVerticalAlignCenter = "\uf622"; public static readonly string MDFormatVerticalAlignTop = "\uf623"; public static readonly string MDFormatWrapInline = "\uf288"; public static readonly string MDFormatWrapSquare = "\uf289"; public static readonly string MDFormatWrapTight = "\uf28a"; public static readonly string MDFormatWrapTopBottom = "\uf28b"; public static readonly string MDForum = "\uf28c"; public static readonly string MDForward = "\uf28d"; public static readonly string MDFoursquare = "\uf28e"; public static readonly string MDFridge = "\uf28f"; public static readonly string MDFridgeFilled = "\uf290"; public static readonly string MDFridgeFilledBottom = "\uf291"; public static readonly string MDFridgeFilledTop = "\uf292"; public static readonly string MDFullscreen = "\uf293"; public static readonly string MDFullscreenExit = "\uf294"; public static readonly string MDFunction = "\uf295"; public static readonly string MDGamepad = "\uf296"; public static readonly string MDGamepadVariant = "\uf297"; public static readonly string MDGarage = "\uf6d8"; public static readonly string MDGarageOpen = "\uf6d9"; public static readonly string MDGasCylinder = "\uf647"; public static readonly string MDGasStation = "\uf298"; public static readonly string MDGate = "\uf299"; public static readonly string MDGauge = "\uf29a"; public static readonly string MDGavel = "\uf29b"; public static readonly string MDGenderFemale = "\uf29c"; public static readonly string MDGenderMale = "\uf29d"; public static readonly string MDGenderMaleFemale = "\uf29e"; public static readonly string MDGenderTransgender = "\uf29f"; public static readonly string MDGhost = "\uf2a0"; public static readonly string MDGift = "\uf2a1"; public static readonly string MDGit = "\uf2a2"; public static readonly string MDGithubBox = "\uf2a3"; public static readonly string MDGithubCircle = "\uf2a4"; public static readonly string MDGithubFace = "\uf6da"; public static readonly string MDGlassFlute = "\uf2a5"; public static readonly string MDGlassMug = "\uf2a6"; public static readonly string MDGlassStange = "\uf2a7"; public static readonly string MDGlassTulip = "\uf2a8"; public static readonly string MDGlassdoor = "\uf2a9"; public static readonly string MDGlasses = "\uf2aa"; public static readonly string MDGmail = "\uf2ab"; public static readonly string MDGnome = "\uf2ac"; public static readonly string MDGondola = "\uf685"; public static readonly string MDGoogle = "\uf2ad"; public static readonly string MDGoogleCardboard = "\uf2ae"; public static readonly string MDGoogleChrome = "\uf2af"; public static readonly string MDGoogleCircles = "\uf2b0"; public static readonly string MDGoogleCirclesCommunities = "\uf2b1"; public static readonly string MDGoogleCirclesExtended = "\uf2b2"; public static readonly string MDGoogleCirclesGroup = "\uf2b3"; public static readonly string MDGoogleController = "\uf2b4"; public static readonly string MDGoogleControllerOff = "\uf2b5"; public static readonly string MDGoogleDrive = "\uf2b6"; public static readonly string MDGoogleEarth = "\uf2b7"; public static readonly string MDGoogleGlass = "\uf2b8"; public static readonly string MDGoogleKeep = "\uf6db"; public static readonly string MDGoogleMaps = "\uf5f5"; public static readonly string MDGoogleNearby = "\uf2b9"; public static readonly string MDGooglePages = "\uf2ba"; public static readonly string MDGooglePhotos = "\uf6dc"; public static readonly string MDGooglePhysicalWeb = "\uf2bb"; public static readonly string MDGooglePlay = "\uf2bc"; public static readonly string MDGooglePlus = "\uf2bd"; public static readonly string MDGooglePlusBox = "\uf2be"; public static readonly string MDGoogleTranslate = "\uf2bf"; public static readonly string MDGoogleWallet = "\uf2c0"; public static readonly string MDGradient = "\uf69f"; public static readonly string MDGreasePencil = "\uf648"; public static readonly string MDGrid = "\uf2c1"; public static readonly string MDGridOff = "\uf2c2"; public static readonly string MDGroup = "\uf2c3"; public static readonly string MDGuitarElectric = "\uf2c4"; public static readonly string MDGuitarPick = "\uf2c5"; public static readonly string MDGuitarPickOutline = "\uf2c6"; public static readonly string MDHackernews = "\uf624"; public static readonly string MDHamburger = "\uf684"; public static readonly string MDHandPointingRight = "\uf2c7"; public static readonly string MDHanger = "\uf2c8"; public static readonly string MDHangouts = "\uf2c9"; public static readonly string MDHarddisk = "\uf2ca"; public static readonly string MDHeadphones = "\uf2cb"; public static readonly string MDHeadphonesBox = "\uf2cc"; public static readonly string MDHeadphonesSettings = "\uf2cd"; public static readonly string MDHeadset = "\uf2ce"; public static readonly string MDHeadsetDock = "\uf2cf"; public static readonly string MDHeadsetOff = "\uf2d0"; public static readonly string MDHeart = "\uf2d1"; public static readonly string MDHeartBox = "\uf2d2"; public static readonly string MDHeartBoxOutline = "\uf2d3"; public static readonly string MDHeartBroken = "\uf2d4"; public static readonly string MDHeartHalfOutline = "\uf6dd"; public static readonly string MDHeartHalfPart = "\uf6de"; public static readonly string MDHeartHalfPartOutline = "\uf6df"; public static readonly string MDHeartOutline = "\uf2d5"; public static readonly string MDHeartPulse = "\uf5f6"; public static readonly string MDHelp = "\uf2d6"; public static readonly string MDHelpCircle = "\uf2d7"; public static readonly string MDHelpCircleOutline = "\uf625"; public static readonly string MDHexagon = "\uf2d8"; public static readonly string MDHexagonMultiple = "\uf6e0"; public static readonly string MDHexagonOutline = "\uf2d9"; public static readonly string MDHighway = "\uf5f7"; public static readonly string MDHistory = "\uf2da"; public static readonly string MDHololens = "\uf2db"; public static readonly string MDHome = "\uf2dc"; public static readonly string MDHomeMapMarker = "\uf5f8"; public static readonly string MDHomeModern = "\uf2dd"; public static readonly string MDHomeOutline = "\uf6a0"; public static readonly string MDHomeVariant = "\uf2de"; public static readonly string MDHook = "\uf6e1"; public static readonly string MDHookOff = "\uf6e2"; public static readonly string MDHops = "\uf2df"; public static readonly string MDHospital = "\uf2e0"; public static readonly string MDHospitalBuilding = "\uf2e1"; public static readonly string MDHospitalMarker = "\uf2e2"; public static readonly string MDHotel = "\uf2e3"; public static readonly string MDHouzz = "\uf2e4"; public static readonly string MDHouzzBox = "\uf2e5"; public static readonly string MDHuman = "\uf2e6"; public static readonly string MDHumanChild = "\uf2e7"; public static readonly string MDHumanFemale = "\uf649"; public static readonly string MDHumanGreeting = "\uf64a"; public static readonly string MDHumanHandsdown = "\uf64b"; public static readonly string MDHumanHandsup = "\uf64c"; public static readonly string MDHumanMale = "\uf64d"; public static readonly string MDHumanMaleFemale = "\uf2e8"; public static readonly string MDHumanPregnant = "\uf5cf"; public static readonly string MDImage = "\uf2e9"; public static readonly string MDImageAlbum = "\uf2ea"; public static readonly string MDImageArea = "\uf2eb"; public static readonly string MDImageAreaClose = "\uf2ec"; public static readonly string MDImageBroken = "\uf2ed"; public static readonly string MDImageBrokenVariant = "\uf2ee"; public static readonly string MDImageFilter = "\uf2ef"; public static readonly string MDImageFilterBlackWhite = "\uf2f0"; public static readonly string MDImageFilterCenterFocus = "\uf2f1"; public static readonly string MDImageFilterCenterFocusWeak = "\uf2f2"; public static readonly string MDImageFilterDrama = "\uf2f3"; public static readonly string MDImageFilterFrames = "\uf2f4"; public static readonly string MDImageFilterHdr = "\uf2f5"; public static readonly string MDImageFilterNone = "\uf2f6"; public static readonly string MDImageFilterTiltShift = "\uf2f7"; public static readonly string MDImageFilterVintage = "\uf2f8"; public static readonly string MDImageMultiple = "\uf2f9"; public static readonly string MDImport = "\uf2fa"; public static readonly string MDInbox = "\uf686"; public static readonly string MDInboxArrowDown = "\uf2fb"; public static readonly string MDInboxArrowUp = "\uf3d1"; public static readonly string MDIncognito = "\uf5f9"; public static readonly string MDInfinity = "\uf6e3"; public static readonly string MDInformation = "\uf2fc"; public static readonly string MDInformationOutline = "\uf2fd"; public static readonly string MDInformationVariant = "\uf64e"; public static readonly string MDInstagram = "\uf2fe"; public static readonly string MDInstapaper = "\uf2ff"; public static readonly string MDInternetExplorer = "\uf300"; public static readonly string MDInvertColors = "\uf301"; public static readonly string MDItunes = "\uf676"; public static readonly string MDJeepney = "\uf302"; public static readonly string MDJira = "\uf303"; public static readonly string MDJsfiddle = "\uf304"; public static readonly string MDJson = "\uf626"; public static readonly string MDKeg = "\uf305"; public static readonly string MDKettle = "\uf5fa"; public static readonly string MDKey = "\uf306"; public static readonly string MDKeyChange = "\uf307"; public static readonly string MDKeyMinus = "\uf308"; public static readonly string MDKeyPlus = "\uf309"; public static readonly string MDKeyRemove = "\uf30a"; public static readonly string MDKeyVariant = "\uf30b"; public static readonly string MDKeyboard = "\uf30c"; public static readonly string MDKeyboardBackspace = "\uf30d"; public static readonly string MDKeyboardCaps = "\uf30e"; public static readonly string MDKeyboardClose = "\uf30f"; public static readonly string MDKeyboardOff = "\uf310"; public static readonly string MDKeyboardReturn = "\uf311"; public static readonly string MDKeyboardTab = "\uf312"; public static readonly string MDKeyboardVariant = "\uf313"; public static readonly string MDKodi = "\uf314"; public static readonly string MDLabel = "\uf315"; public static readonly string MDLabelOutline = "\uf316"; public static readonly string MDLambda = "\uf627"; public static readonly string MDLamp = "\uf6b4"; public static readonly string MDLan = "\uf317"; public static readonly string MDLanConnect = "\uf318"; public static readonly string MDLanDisconnect = "\uf319"; public static readonly string MDLanPending = "\uf31a"; public static readonly string MDLanguageC = "\uf671"; public static readonly string MDLanguageCpp = "\uf672"; public static readonly string MDLanguageCsharp = "\uf31b"; public static readonly string MDLanguageCss3 = "\uf31c"; public static readonly string MDLanguageHtml5 = "\uf31d"; public static readonly string MDLanguageJavascript = "\uf31e"; public static readonly string MDLanguagePhp = "\uf31f"; public static readonly string MDLanguagePython = "\uf320"; public static readonly string MDLanguagePythonText = "\uf321"; public static readonly string MDLanguageSwift = "\uf6e4"; public static readonly string MDLanguageTypescript = "\uf6e5"; public static readonly string MDLaptop = "\uf322"; public static readonly string MDLaptopChromebook = "\uf323"; public static readonly string MDLaptopMac = "\uf324"; public static readonly string MDLaptopOff = "\uf6e6"; public static readonly string MDLaptopWindows = "\uf325"; public static readonly string MDLastfm = "\uf326"; public static readonly string MDLaunch = "\uf327"; public static readonly string MDLayers = "\uf328"; public static readonly string MDLayersOff = "\uf329"; public static readonly string MDLeadPencil = "\uf64f"; public static readonly string MDLeaf = "\uf32a"; public static readonly string MDLedOff = "\uf32b"; public static readonly string MDLedOn = "\uf32c"; public static readonly string MDLedOutline = "\uf32d"; public static readonly string MDLedVariantOff = "\uf32e"; public static readonly string MDLedVariantOn = "\uf32f"; public static readonly string MDLedVariantOutline = "\uf330"; public static readonly string MDLibrary = "\uf331"; public static readonly string MDLibraryBooks = "\uf332"; public static readonly string MDLibraryMusic = "\uf333"; public static readonly string MDLibraryPlus = "\uf334"; public static readonly string MDLightbulb = "\uf335"; public static readonly string MDLightbulbOn = "\uf6e7"; public static readonly string MDLightbulbOnOutline = "\uf6e8"; public static readonly string MDLightbulbOutline = "\uf336"; public static readonly string MDLink = "\uf337"; public static readonly string MDLinkOff = "\uf338"; public static readonly string MDLinkVariant = "\uf339"; public static readonly string MDLinkVariantOff = "\uf33a"; public static readonly string MDLinkedin = "\uf33b"; public static readonly string MDLinkedinBox = "\uf33c"; public static readonly string MDLinux = "\uf33d"; public static readonly string MDLock = "\uf33e"; public static readonly string MDLockOpen = "\uf33f"; public static readonly string MDLockOpenOutline = "\uf340"; public static readonly string MDLockOutline = "\uf341"; public static readonly string MDLockPattern = "\uf6e9"; public static readonly string MDLockPlus = "\uf5fb"; public static readonly string MDLogin = "\uf342"; public static readonly string MDLoginVariant = "\uf5fc"; public static readonly string MDLogout = "\uf343"; public static readonly string MDLogoutVariant = "\uf5fd"; public static readonly string MDLooks = "\uf344"; public static readonly string MDLoop = "\uf6ea"; public static readonly string MDLoupe = "\uf345"; public static readonly string MDLumx = "\uf346"; public static readonly string MDMagnet = "\uf347"; public static readonly string MDMagnetOn = "\uf348"; public static readonly string MDMagnify = "\uf349"; public static readonly string MDMagnifyMinus = "\uf34a"; public static readonly string MDMagnifyMinusOutline = "\uf6eb"; public static readonly string MDMagnifyPlus = "\uf34b"; public static readonly string MDMagnifyPlusOutline = "\uf6ec"; public static readonly string MDMailRu = "\uf34c"; public static readonly string MDMailbox = "\uf6ed"; public static readonly string MDMap = "\uf34d"; public static readonly string MDMapMarker = "\uf34e"; public static readonly string MDMapMarkerCircle = "\uf34f"; public static readonly string MDMapMarkerMinus = "\uf650"; public static readonly string MDMapMarkerMultiple = "\uf350"; public static readonly string MDMapMarkerOff = "\uf351"; public static readonly string MDMapMarkerPlus = "\uf651"; public static readonly string MDMapMarkerRadius = "\uf352"; public static readonly string MDMargin = "\uf353"; public static readonly string MDMarkdown = "\uf354"; public static readonly string MDMarker = "\uf652"; public static readonly string MDMarkerCheck = "\uf355"; public static readonly string MDMartini = "\uf356"; public static readonly string MDMaterialUi = "\uf357"; public static readonly string MDMathCompass = "\uf358"; public static readonly string MDMatrix = "\uf628"; public static readonly string MDMaxcdn = "\uf359"; public static readonly string MDMedicalBag = "\uf6ee"; public static readonly string MDMedium = "\uf35a"; public static readonly string MDMemory = "\uf35b"; public static readonly string MDMenu = "\uf35c"; public static readonly string MDMenuDown = "\uf35d"; public static readonly string MDMenuDownOutline = "\uf6b5"; public static readonly string MDMenuLeft = "\uf35e"; public static readonly string MDMenuRight = "\uf35f"; public static readonly string MDMenuUp = "\uf360"; public static readonly string MDMenuUpOutline = "\uf6b6"; public static readonly string MDMessage = "\uf361"; public static readonly string MDMessageAlert = "\uf362"; public static readonly string MDMessageBulleted = "\uf6a1"; public static readonly string MDMessageBulletedOff = "\uf6a2"; public static readonly string MDMessageDraw = "\uf363"; public static readonly string MDMessageImage = "\uf364"; public static readonly string MDMessageOutline = "\uf365"; public static readonly string MDMessagePlus = "\uf653"; public static readonly string MDMessageProcessing = "\uf366"; public static readonly string MDMessageReply = "\uf367"; public static readonly string MDMessageReplyText = "\uf368"; public static readonly string MDMessageSettings = "\uf6ef"; public static readonly string MDMessageSettingsVariant = "\uf6f0"; public static readonly string MDMessageText = "\uf369"; public static readonly string MDMessageTextOutline = "\uf36a"; public static readonly string MDMessageVideo = "\uf36b"; public static readonly string MDMeteor = "\uf629"; public static readonly string MDMicrophone = "\uf36c"; public static readonly string MDMicrophoneOff = "\uf36d"; public static readonly string MDMicrophoneOutline = "\uf36e"; public static readonly string MDMicrophoneSettings = "\uf36f"; public static readonly string MDMicrophoneVariant = "\uf370"; public static readonly string MDMicrophoneVariantOff = "\uf371"; public static readonly string MDMicroscope = "\uf654"; public static readonly string MDMicrosoft = "\uf372"; public static readonly string MDMinecraft = "\uf373"; public static readonly string MDMinus = "\uf374"; public static readonly string MDMinusBox = "\uf375"; public static readonly string MDMinusBoxOutline = "\uf6f1"; public static readonly string MDMinusCircle = "\uf376"; public static readonly string MDMinusCircleOutline = "\uf377"; public static readonly string MDMinusNetwork = "\uf378"; public static readonly string MDMixcloud = "\uf62a"; public static readonly string MDMonitor = "\uf379"; public static readonly string MDMonitorMultiple = "\uf37a"; public static readonly string MDMore = "\uf37b"; public static readonly string MDMotorbike = "\uf37c"; public static readonly string MDMouse = "\uf37d"; public static readonly string MDMouseOff = "\uf37e"; public static readonly string MDMouseVariant = "\uf37f"; public static readonly string MDMouseVariantOff = "\uf380"; public static readonly string MDMoveResize = "\uf655"; public static readonly string MDMoveResizeVariant = "\uf656"; public static readonly string MDMovie = "\uf381"; public static readonly string MDMultiplication = "\uf382"; public static readonly string MDMultiplicationBox = "\uf383"; public static readonly string MDMusicBox = "\uf384"; public static readonly string MDMusicBoxOutline = "\uf385"; public static readonly string MDMusicCircle = "\uf386"; public static readonly string MDMusicNote = "\uf387"; public static readonly string MDMusicNoteBluetooth = "\uf5fe"; public static readonly string MDMusicNoteBluetoothOff = "\uf5ff"; public static readonly string MDMusicNoteEighth = "\uf388"; public static readonly string MDMusicNoteHalf = "\uf389"; public static readonly string MDMusicNoteOff = "\uf38a"; public static readonly string MDMusicNoteQuarter = "\uf38b"; public static readonly string MDMusicNoteSixteenth = "\uf38c"; public static readonly string MDMusicNoteWhole = "\uf38d"; public static readonly string MDNature = "\uf38e"; public static readonly string MDNaturePeople = "\uf38f"; public static readonly string MDNavigation = "\uf390"; public static readonly string MDNearMe = "\uf5cd"; public static readonly string MDNeedle = "\uf391"; public static readonly string MDNestProtect = "\uf392"; public static readonly string MDNestThermostat = "\uf393"; public static readonly string MDNetwork = "\uf6f2"; public static readonly string MDNetworkDownload = "\uf6f3"; public static readonly string MDNetworkQuestion = "\uf6f4"; public static readonly string MDNetworkUpload = "\uf6f5"; public static readonly string MDNewBox = "\uf394"; public static readonly string MDNewspaper = "\uf395"; public static readonly string MDNfc = "\uf396"; public static readonly string MDNfcTap = "\uf397"; public static readonly string MDNfcVariant = "\uf398"; public static readonly string MDNodejs = "\uf399"; public static readonly string MDNote = "\uf39a"; public static readonly string MDNoteMultiple = "\uf6b7"; public static readonly string MDNoteMultipleOutline = "\uf6b8"; public static readonly string MDNoteOutline = "\uf39b"; public static readonly string MDNotePlus = "\uf39c"; public static readonly string MDNotePlusOutline = "\uf39d"; public static readonly string MDNoteText = "\uf39e"; public static readonly string MDNotificationClearAll = "\uf39f"; public static readonly string MDNpm = "\uf6f6"; public static readonly string MDNuke = "\uf6a3"; public static readonly string MDNumeric = "\uf3a0"; public static readonly string MDNumeric0Box = "\uf3a1"; public static readonly string MDNumeric0BoxMultipleOutline = "\uf3a2"; public static readonly string MDNumeric0BoxOutline = "\uf3a3"; public static readonly string MDNumeric1Box = "\uf3a4"; public static readonly string MDNumeric1BoxMultipleOutline = "\uf3a5"; public static readonly string MDNumeric1BoxOutline = "\uf3a6"; public static readonly string MDNumeric2Box = "\uf3a7"; public static readonly string MDNumeric2BoxMultipleOutline = "\uf3a8"; public static readonly string MDNumeric2BoxOutline = "\uf3a9"; public static readonly string MDNumeric3Box = "\uf3aa"; public static readonly string MDNumeric3BoxMultipleOutline = "\uf3ab"; public static readonly string MDNumeric3BoxOutline = "\uf3ac"; public static readonly string MDNumeric4Box = "\uf3ad"; public static readonly string MDNumeric4BoxMultipleOutline = "\uf3ae"; public static readonly string MDNumeric4BoxOutline = "\uf3af"; public static readonly string MDNumeric5Box = "\uf3b0"; public static readonly string MDNumeric5BoxMultipleOutline = "\uf3b1"; public static readonly string MDNumeric5BoxOutline = "\uf3b2"; public static readonly string MDNumeric6Box = "\uf3b3"; public static readonly string MDNumeric6BoxMultipleOutline = "\uf3b4"; public static readonly string MDNumeric6BoxOutline = "\uf3b5"; public static readonly string MDNumeric7Box = "\uf3b6"; public static readonly string MDNumeric7BoxMultipleOutline = "\uf3b7"; public static readonly string MDNumeric7BoxOutline = "\uf3b8"; public static readonly string MDNumeric8Box = "\uf3b9"; public static readonly string MDNumeric8BoxMultipleOutline = "\uf3ba"; public static readonly string MDNumeric8BoxOutline = "\uf3bb"; public static readonly string MDNumeric9Box = "\uf3bc"; public static readonly string MDNumeric9BoxMultipleOutline = "\uf3bd"; public static readonly string MDNumeric9BoxOutline = "\uf3be"; public static readonly string MDNumeric9PlusBox = "\uf3bf"; public static readonly string MDNumeric9PlusBoxMultipleOutline = "\uf3c0"; public static readonly string MDNumeric9PlusBoxOutline = "\uf3c1"; public static readonly string MDNut = "\uf6f7"; public static readonly string MDNutrition = "\uf3c2"; public static readonly string MDOar = "\uf67b"; public static readonly string MDOctagon = "\uf3c3"; public static readonly string MDOctagonOutline = "\uf3c4"; public static readonly string MDOctagram = "\uf6f8"; public static readonly string MDOdnoklassniki = "\uf3c5"; public static readonly string MDOffice = "\uf3c6"; public static readonly string MDOil = "\uf3c7"; public static readonly string MDOilTemperature = "\uf3c8"; public static readonly string MDOmega = "\uf3c9"; public static readonly string MDOnedrive = "\uf3ca"; public static readonly string MDOpacity = "\uf5cc"; public static readonly string MDOpenInApp = "\uf3cb"; public static readonly string MDOpenInNew = "\uf3cc"; public static readonly string MDOpenid = "\uf3cd"; public static readonly string MDOpera = "\uf3ce"; public static readonly string MDOrnament = "\uf3cf"; public static readonly string MDOrnamentVariant = "\uf3d0"; public static readonly string MDOwl = "\uf3d2"; public static readonly string MDPackage = "\uf3d3"; public static readonly string MDPackageDown = "\uf3d4"; public static readonly string MDPackageUp = "\uf3d5"; public static readonly string MDPackageVariant = "\uf3d6"; public static readonly string MDPackageVariantClosed = "\uf3d7"; public static readonly string MDPageFirst = "\uf600"; public static readonly string MDPageLast = "\uf601"; public static readonly string MDPageLayoutBody = "\uf6f9"; public static readonly string MDPageLayoutFooter = "\uf6fa"; public static readonly string MDPageLayoutHeader = "\uf6fb"; public static readonly string MDPageLayoutSidebarLeft = "\uf6fc"; public static readonly string MDPageLayoutSidebarRight = "\uf6fd"; public static readonly string MDPalette = "\uf3d8"; public static readonly string MDPaletteAdvanced = "\uf3d9"; public static readonly string MDPanda = "\uf3da"; public static readonly string MDPandora = "\uf3db"; public static readonly string MDPanorama = "\uf3dc"; public static readonly string MDPanoramaFisheye = "\uf3dd"; public static readonly string MDPanoramaHorizontal = "\uf3de"; public static readonly string MDPanoramaVertical = "\uf3df"; public static readonly string MDPanoramaWideAngle = "\uf3e0"; public static readonly string MDPaperCutVertical = "\uf3e1"; public static readonly string MDPaperclip = "\uf3e2"; public static readonly string MDParking = "\uf3e3"; public static readonly string MDPause = "\uf3e4"; public static readonly string MDPauseCircle = "\uf3e5"; public static readonly string MDPauseCircleOutline = "\uf3e6"; public static readonly string MDPauseOctagon = "\uf3e7"; public static readonly string MDPauseOctagonOutline = "\uf3e8"; public static readonly string MDPaw = "\uf3e9"; public static readonly string MDPawOff = "\uf657"; public static readonly string MDPen = "\uf3ea"; public static readonly string MDPencil = "\uf3eb"; public static readonly string MDPencilBox = "\uf3ec"; public static readonly string MDPencilBoxOutline = "\uf3ed"; public static readonly string MDPencilCircle = "\uf6fe"; public static readonly string MDPencilLock = "\uf3ee"; public static readonly string MDPencilOff = "\uf3ef"; public static readonly string MDPentagon = "\uf6ff"; public static readonly string MDPentagonOutline = "\uf700"; public static readonly string MDPercent = "\uf3f0"; public static readonly string MDPharmacy = "\uf3f1"; public static readonly string MDPhone = "\uf3f2"; public static readonly string MDPhoneBluetooth = "\uf3f3"; public static readonly string MDPhoneClassic = "\uf602"; public static readonly string MDPhoneForward = "\uf3f4"; public static readonly string MDPhoneHangup = "\uf3f5"; public static readonly string MDPhoneInTalk = "\uf3f6"; public static readonly string MDPhoneIncoming = "\uf3f7"; public static readonly string MDPhoneLocked = "\uf3f8"; public static readonly string MDPhoneLog = "\uf3f9"; public static readonly string MDPhoneMinus = "\uf658"; public static readonly string MDPhoneMissed = "\uf3fa"; public static readonly string MDPhoneOutgoing = "\uf3fb"; public static readonly string MDPhonePaused = "\uf3fc"; public static readonly string MDPhonePlus = "\uf659"; public static readonly string MDPhoneSettings = "\uf3fd"; public static readonly string MDPhoneVoip = "\uf3fe"; public static readonly string MDPi = "\uf3ff"; public static readonly string MDPiBox = "\uf400"; public static readonly string MDPiano = "\uf67c"; public static readonly string MDPig = "\uf401"; public static readonly string MDPill = "\uf402"; public static readonly string MDPillar = "\uf701"; public static readonly string MDPin = "\uf403"; public static readonly string MDPinOff = "\uf404"; public static readonly string MDPineTree = "\uf405"; public static readonly string MDPineTreeBox = "\uf406"; public static readonly string MDPinterest = "\uf407"; public static readonly string MDPinterestBox = "\uf408"; public static readonly string MDPistol = "\uf702"; public static readonly string MDPizza = "\uf409"; public static readonly string MDPlaneShield = "\uf6ba"; public static readonly string MDPlay = "\uf40a"; public static readonly string MDPlayBoxOutline = "\uf40b"; public static readonly string MDPlayCircle = "\uf40c"; public static readonly string MDPlayCircleOutline = "\uf40d"; public static readonly string MDPlayPause = "\uf40e"; public static readonly string MDPlayProtectedContent = "\uf40f"; public static readonly string MDPlaylistCheck = "\uf5c7"; public static readonly string MDPlaylistMinus = "\uf410"; public static readonly string MDPlaylistPlay = "\uf411"; public static readonly string MDPlaylistPlus = "\uf412"; public static readonly string MDPlaylistRemove = "\uf413"; public static readonly string MDPlaystation = "\uf414"; public static readonly string MDPlex = "\uf6b9"; public static readonly string MDPlus = "\uf415"; public static readonly string MDPlusBox = "\uf416"; public static readonly string MDPlusBoxOutline = "\uf703"; public static readonly string MDPlusCircle = "\uf417"; public static readonly string MDPlusCircleMultipleOutline = "\uf418"; public static readonly string MDPlusCircleOutline = "\uf419"; public static readonly string MDPlusNetwork = "\uf41a"; public static readonly string MDPlusOne = "\uf41b"; public static readonly string MDPlusOutline = "\uf704"; public static readonly string MDPocket = "\uf41c"; public static readonly string MDPokeball = "\uf41d"; public static readonly string MDPolaroid = "\uf41e"; public static readonly string MDPoll = "\uf41f"; public static readonly string MDPollBox = "\uf420"; public static readonly string MDPolymer = "\uf421"; public static readonly string MDPool = "\uf606"; public static readonly string MDPopcorn = "\uf422"; public static readonly string MDPot = "\uf65a"; public static readonly string MDPotMix = "\uf65b"; public static readonly string MDPound = "\uf423"; public static readonly string MDPoundBox = "\uf424"; public static readonly string MDPower = "\uf425"; public static readonly string MDPowerPlug = "\uf6a4"; public static readonly string MDPowerPlugOff = "\uf6a5"; public static readonly string MDPowerSettings = "\uf426"; public static readonly string MDPowerSocket = "\uf427"; public static readonly string MDPrescription = "\uf705"; public static readonly string MDPresentation = "\uf428"; public static readonly string MDPresentationPlay = "\uf429"; public static readonly string MDPrinter = "\uf42a"; public static readonly string MDPrinter3d = "\uf42b"; public static readonly string MDPrinterAlert = "\uf42c"; public static readonly string MDPrinterSettings = "\uf706"; public static readonly string MDPriorityHigh = "\uf603"; public static readonly string MDPriorityLow = "\uf604"; public static readonly string MDProfessionalHexagon = "\uf42d"; public static readonly string MDProjector = "\uf42e"; public static readonly string MDProjectorScreen = "\uf42f"; public static readonly string MDPublish = "\uf6a6"; public static readonly string MDPulse = "\uf430"; public static readonly string MDPuzzle = "\uf431"; public static readonly string MDQqchat = "\uf605"; public static readonly string MDQrcode = "\uf432"; public static readonly string MDQrcodeScan = "\uf433"; public static readonly string MDQuadcopter = "\uf434"; public static readonly string MDQualityHigh = "\uf435"; public static readonly string MDQuicktime = "\uf436"; public static readonly string MDRadar = "\uf437"; public static readonly string MDRadiator = "\uf438"; public static readonly string MDRadio = "\uf439"; public static readonly string MDRadioHandheld = "\uf43a"; public static readonly string MDRadioTower = "\uf43b"; public static readonly string MDRadioactive = "\uf43c"; public static readonly string MDRadioboxBlank = "\uf43d"; public static readonly string MDRadioboxMarked = "\uf43e"; public static readonly string MDRaspberrypi = "\uf43f"; public static readonly string MDRayEnd = "\uf440"; public static readonly string MDRayEndArrow = "\uf441"; public static readonly string MDRayStart = "\uf442"; public static readonly string MDRayStartArrow = "\uf443"; public static readonly string MDRayStartEnd = "\uf444"; public static readonly string MDRayVertex = "\uf445"; public static readonly string MDRdio = "\uf446"; public static readonly string MDReact = "\uf707"; public static readonly string MDRead = "\uf447"; public static readonly string MDReadability = "\uf448"; public static readonly string MDReceipt = "\uf449"; public static readonly string MDRecord = "\uf44a"; public static readonly string MDRecordRec = "\uf44b"; public static readonly string MDRecycle = "\uf44c"; public static readonly string MDReddit = "\uf44d"; public static readonly string MDRedo = "\uf44e"; public static readonly string MDRedoVariant = "\uf44f"; public static readonly string MDRefresh = "\uf450"; public static readonly string MDRegex = "\uf451"; public static readonly string MDRelativeScale = "\uf452"; public static readonly string MDReload = "\uf453"; public static readonly string MDRemote = "\uf454"; public static readonly string MDRenameBox = "\uf455"; public static readonly string MDReorderHorizontal = "\uf687"; public static readonly string MDReorderVertical = "\uf688"; public static readonly string MDRepeat = "\uf456"; public static readonly string MDRepeatOff = "\uf457"; public static readonly string MDRepeatOnce = "\uf458"; public static readonly string MDReplay = "\uf459"; public static readonly string MDReply = "\uf45a"; public static readonly string MDReplyAll = "\uf45b"; public static readonly string MDReproduction = "\uf45c"; public static readonly string MDResizeBottomRight = "\uf45d"; public static readonly string MDResponsive = "\uf45e"; public static readonly string MDRestart = "\uf708"; public static readonly string MDRestore = "\uf6a7"; public static readonly string MDRewind = "\uf45f"; public static readonly string MDRewindOutline = "\uf709"; public static readonly string MDRhombus = "\uf70a"; public static readonly string MDRhombusOutline = "\uf70b"; public static readonly string MDRibbon = "\uf460"; public static readonly string MDRoad = "\uf461"; public static readonly string MDRoadVariant = "\uf462"; public static readonly string MDRobot = "\uf6a8"; public static readonly string MDRocket = "\uf463"; public static readonly string MDRoomba = "\uf70c"; public static readonly string MDRotate3d = "\uf464"; public static readonly string MDRotateLeft = "\uf465"; public static readonly string MDRotateLeftVariant = "\uf466"; public static readonly string MDRotateRight = "\uf467"; public static readonly string MDRotateRightVariant = "\uf468"; public static readonly string MDRoundedCorner = "\uf607"; public static readonly string MDRouterWireless = "\uf469"; public static readonly string MDRoutes = "\uf46a"; public static readonly string MDRowing = "\uf608"; public static readonly string MDRss = "\uf46b"; public static readonly string MDRssBox = "\uf46c"; public static readonly string MDRuler = "\uf46d"; public static readonly string MDRun = "\uf70d"; public static readonly string MDRunFast = "\uf46e"; public static readonly string MDSale = "\uf46f"; public static readonly string MDSatellite = "\uf470"; public static readonly string MDSatelliteVariant = "\uf471"; public static readonly string MDSaxophone = "\uf609"; public static readonly string MDScale = "\uf472"; public static readonly string MDScaleBalance = "\uf5d1"; public static readonly string MDScaleBathroom = "\uf473"; public static readonly string MDScanner = "\uf6aa"; public static readonly string MDSchool = "\uf474"; public static readonly string MDScreenRotation = "\uf475"; public static readonly string MDScreenRotationLock = "\uf476"; public static readonly string MDScrewdriver = "\uf477"; public static readonly string MDScript = "\uf478"; public static readonly string MDSd = "\uf479"; public static readonly string MDSeal = "\uf47a"; public static readonly string MDSearchWeb = "\uf70e"; public static readonly string MDSeatFlat = "\uf47b"; public static readonly string MDSeatFlatAngled = "\uf47c"; public static readonly string MDSeatIndividualSuite = "\uf47d"; public static readonly string MDSeatLegroomExtra = "\uf47e"; public static readonly string MDSeatLegroomNormal = "\uf47f"; public static readonly string MDSeatLegroomReduced = "\uf480"; public static readonly string MDSeatReclineExtra = "\uf481"; public static readonly string MDSeatReclineNormal = "\uf482"; public static readonly string MDSecurity = "\uf483"; public static readonly string MDSecurityHome = "\uf689"; public static readonly string MDSecurityNetwork = "\uf484"; public static readonly string MDSelect = "\uf485"; public static readonly string MDSelectAll = "\uf486"; public static readonly string MDSelectInverse = "\uf487"; public static readonly string MDSelectOff = "\uf488"; public static readonly string MDSelection = "\uf489"; public static readonly string MDSend = "\uf48a"; public static readonly string MDSerialPort = "\uf65c"; public static readonly string MDServer = "\uf48b"; public static readonly string MDServerMinus = "\uf48c"; public static readonly string MDServerNetwork = "\uf48d"; public static readonly string MDServerNetworkOff = "\uf48e"; public static readonly string MDServerOff = "\uf48f"; public static readonly string MDServerPlus = "\uf490"; public static readonly string MDServerRemove = "\uf491"; public static readonly string MDServerSecurity = "\uf492"; public static readonly string MDSettings = "\uf493"; public static readonly string MDSettingsBox = "\uf494"; public static readonly string MDShapeCirclePlus = "\uf65d"; public static readonly string MDShapePlus = "\uf495"; public static readonly string MDShapePolygonPlus = "\uf65e"; public static readonly string MDShapeRectanglePlus = "\uf65f"; public static readonly string MDShapeSquarePlus = "\uf660"; public static readonly string MDShare = "\uf496"; public static readonly string MDShareVariant = "\uf497"; public static readonly string MDShield = "\uf498"; public static readonly string MDShieldOutline = "\uf499"; public static readonly string MDShopping = "\uf49a"; public static readonly string MDShoppingMusic = "\uf49b"; public static readonly string MDShovel = "\uf70f"; public static readonly string MDShovelOff = "\uf710"; public static readonly string MDShredder = "\uf49c"; public static readonly string MDShuffle = "\uf49d"; public static readonly string MDShuffleDisabled = "\uf49e"; public static readonly string MDShuffleVariant = "\uf49f"; public static readonly string MDSigma = "\uf4a0"; public static readonly string MDSigmaLower = "\uf62b"; public static readonly string MDSignCaution = "\uf4a1"; public static readonly string MDSignal = "\uf4a2"; public static readonly string MDSignal2g = "\uf711"; public static readonly string MDSignal3g = "\uf712"; public static readonly string MDSignal4g = "\uf713"; public static readonly string MDSignalHspa = "\uf714"; public static readonly string MDSignalHspaPlus = "\uf715"; public static readonly string MDSignalVariant = "\uf60a"; public static readonly string MDSilverware = "\uf4a3"; public static readonly string MDSilverwareFork = "\uf4a4"; public static readonly string MDSilverwareSpoon = "\uf4a5"; public static readonly string MDSilverwareVariant = "\uf4a6"; public static readonly string MDSim = "\uf4a7"; public static readonly string MDSimAlert = "\uf4a8"; public static readonly string MDSimOff = "\uf4a9"; public static readonly string MDSitemap = "\uf4aa"; public static readonly string MDSkipBackward = "\uf4ab"; public static readonly string MDSkipForward = "\uf4ac"; public static readonly string MDSkipNext = "\uf4ad"; public static readonly string MDSkipNextCircle = "\uf661"; public static readonly string MDSkipNextCircleOutline = "\uf662"; public static readonly string MDSkipPrevious = "\uf4ae"; public static readonly string MDSkipPreviousCircle = "\uf663"; public static readonly string MDSkipPreviousCircleOutline = "\uf664"; public static readonly string MDSkull = "\uf68b"; public static readonly string MDSkype = "\uf4af"; public static readonly string MDSkypeBusiness = "\uf4b0"; public static readonly string MDSlack = "\uf4b1"; public static readonly string MDSleep = "\uf4b2"; public static readonly string MDSleepOff = "\uf4b3"; public static readonly string MDSmoking = "\uf4b4"; public static readonly string MDSmokingOff = "\uf4b5"; public static readonly string MDSnapchat = "\uf4b6"; public static readonly string MDSnowflake = "\uf716"; public static readonly string MDSnowman = "\uf4b7"; public static readonly string MDSoccer = "\uf4b8"; public static readonly string MDSofa = "\uf4b9"; public static readonly string MDSolid = "\uf68c"; public static readonly string MDSort = "\uf4ba"; public static readonly string MDSortAlphabetical = "\uf4bb"; public static readonly string MDSortAscending = "\uf4bc"; public static readonly string MDSortDescending = "\uf4bd"; public static readonly string MDSortNumeric = "\uf4be"; public static readonly string MDSortVariant = "\uf4bf"; public static readonly string MDSoundcloud = "\uf4c0"; public static readonly string MDSourceBranch = "\uf62c"; public static readonly string MDSourceCommit = "\uf717"; public static readonly string MDSourceCommitEnd = "\uf718"; public static readonly string MDSourceCommitEndLocal = "\uf719"; public static readonly string MDSourceCommitLocal = "\uf71a"; public static readonly string MDSourceCommitNextLocal = "\uf71b"; public static readonly string MDSourceCommitStart = "\uf71c"; public static readonly string MDSourceCommitStartNextLocal = "\uf71d"; public static readonly string MDSourceFork = "\uf4c1"; public static readonly string MDSourceMerge = "\uf62d"; public static readonly string MDSourcePull = "\uf4c2"; public static readonly string MDSpeaker = "\uf4c3"; public static readonly string MDSpeakerOff = "\uf4c4"; public static readonly string MDSpeakerWireless = "\uf71e"; public static readonly string MDSpeedometer = "\uf4c5"; public static readonly string MDSpellcheck = "\uf4c6"; public static readonly string MDSpotify = "\uf4c7"; public static readonly string MDSpotlight = "\uf4c8"; public static readonly string MDSpotlightBeam = "\uf4c9"; public static readonly string MDSpray = "\uf665"; public static readonly string MDSquareInc = "\uf4ca"; public static readonly string MDSquareIncCash = "\uf4cb"; public static readonly string MDStackexchange = "\uf60b"; public static readonly string MDStackoverflow = "\uf4cc"; public static readonly string MDStadium = "\uf71f"; public static readonly string MDStairs = "\uf4cd"; public static readonly string MDStar = "\uf4ce"; public static readonly string MDStarCircle = "\uf4cf"; public static readonly string MDStarHalf = "\uf4d0"; public static readonly string MDStarOff = "\uf4d1"; public static readonly string MDStarOutline = "\uf4d2"; public static readonly string MDSteam = "\uf4d3"; public static readonly string MDSteering = "\uf4d4"; public static readonly string MDStepBackward = "\uf4d5"; public static readonly string MDStepBackward2 = "\uf4d6"; public static readonly string MDStepForward = "\uf4d7"; public static readonly string MDStepForward2 = "\uf4d8"; public static readonly string MDStethoscope = "\uf4d9"; public static readonly string MDSticker = "\uf5d0"; public static readonly string MDStocking = "\uf4da"; public static readonly string MDStop = "\uf4db"; public static readonly string MDStopCircle = "\uf666"; public static readonly string MDStopCircleOutline = "\uf667"; public static readonly string MDStore = "\uf4dc"; public static readonly string MDStore24Hour = "\uf4dd"; public static readonly string MDStove = "\uf4de"; public static readonly string MDSubdirectoryArrowLeft = "\uf60c"; public static readonly string MDSubdirectoryArrowRight = "\uf60d"; public static readonly string MDSubway = "\uf6ab"; public static readonly string MDSubwayVariant = "\uf4df"; public static readonly string MDSunglasses = "\uf4e0"; public static readonly string MDSurroundSound = "\uf5c5"; public static readonly string MDSvg = "\uf720"; public static readonly string MDSwapHorizontal = "\uf4e1"; public static readonly string MDSwapVertical = "\uf4e2"; public static readonly string MDSwim = "\uf4e3"; public static readonly string MDSwitch = "\uf4e4"; public static readonly string MDSword = "\uf4e5"; public static readonly string MDSync = "\uf4e6"; public static readonly string MDSyncAlert = "\uf4e7"; public static readonly string MDSyncOff = "\uf4e8"; public static readonly string MDTab = "\uf4e9"; public static readonly string MDTabUnselected = "\uf4ea"; public static readonly string MDTable = "\uf4eb"; public static readonly string MDTableColumnPlusAfter = "\uf4ec"; public static readonly string MDTableColumnPlusBefore = "\uf4ed"; public static readonly string MDTableColumnRemove = "\uf4ee"; public static readonly string MDTableColumnWidth = "\uf4ef"; public static readonly string MDTableEdit = "\uf4f0"; public static readonly string MDTableLarge = "\uf4f1"; public static readonly string MDTableRowHeight = "\uf4f2"; public static readonly string MDTableRowPlusAfter = "\uf4f3"; public static readonly string MDTableRowPlusBefore = "\uf4f4"; public static readonly string MDTableRowRemove = "\uf4f5"; public static readonly string MDTablet = "\uf4f6"; public static readonly string MDTabletAndroid = "\uf4f7"; public static readonly string MDTabletIpad = "\uf4f8"; public static readonly string MDTag = "\uf4f9"; public static readonly string MDTagFaces = "\uf4fa"; public static readonly string MDTagHeart = "\uf68a"; public static readonly string MDTagMultiple = "\uf4fb"; public static readonly string MDTagOutline = "\uf4fc"; public static readonly string MDTagPlus = "\uf721"; public static readonly string MDTagRemove = "\uf722"; public static readonly string MDTagTextOutline = "\uf4fd"; public static readonly string MDTarget = "\uf4fe"; public static readonly string MDTaxi = "\uf4ff"; public static readonly string MDTeamviewer = "\uf500"; public static readonly string MDTelegram = "\uf501"; public static readonly string MDTelevision = "\uf502"; public static readonly string MDTelevisionGuide = "\uf503"; public static readonly string MDTemperatureCelsius = "\uf504"; public static readonly string MDTemperatureFahrenheit = "\uf505"; public static readonly string MDTemperatureKelvin = "\uf506"; public static readonly string MDTennis = "\uf507"; public static readonly string MDTent = "\uf508"; public static readonly string MDTerrain = "\uf509"; public static readonly string MDTestTube = "\uf668"; public static readonly string MDTextShadow = "\uf669"; public static readonly string MDTextToSpeech = "\uf50a"; public static readonly string MDTextToSpeechOff = "\uf50b"; public static readonly string MDTextbox = "\uf60e"; public static readonly string MDTexture = "\uf50c"; public static readonly string MDTheater = "\uf50d"; public static readonly string MDThemeLightDark = "\uf50e"; public static readonly string MDThermometer = "\uf50f"; public static readonly string MDThermometerLines = "\uf510"; public static readonly string MDThumbDown = "\uf511"; public static readonly string MDThumbDownOutline = "\uf512"; public static readonly string MDThumbUp = "\uf513"; public static readonly string MDThumbUpOutline = "\uf514"; public static readonly string MDThumbsUpDown = "\uf515"; public static readonly string MDTicket = "\uf516"; public static readonly string MDTicketAccount = "\uf517"; public static readonly string MDTicketConfirmation = "\uf518"; public static readonly string MDTicketPercent = "\uf723"; public static readonly string MDTie = "\uf519"; public static readonly string MDTilde = "\uf724"; public static readonly string MDTimelapse = "\uf51a"; public static readonly string MDTimer = "\uf51b"; public static readonly string MDTimer10 = "\uf51c"; public static readonly string MDTimer3 = "\uf51d"; public static readonly string MDTimerOff = "\uf51e"; public static readonly string MDTimerSand = "\uf51f"; public static readonly string MDTimerSandEmpty = "\uf6ac"; public static readonly string MDTimetable = "\uf520"; public static readonly string MDToggleSwitch = "\uf521"; public static readonly string MDToggleSwitchOff = "\uf522"; public static readonly string MDTooltip = "\uf523"; public static readonly string MDTooltipEdit = "\uf524"; public static readonly string MDTooltipImage = "\uf525"; public static readonly string MDTooltipOutline = "\uf526"; public static readonly string MDTooltipOutlinePlus = "\uf527"; public static readonly string MDTooltipText = "\uf528"; public static readonly string MDTooth = "\uf529"; public static readonly string MDTor = "\uf52a"; public static readonly string MDTowerBeach = "\uf680"; public static readonly string MDTowerFire = "\uf681"; public static readonly string MDTrafficLight = "\uf52b"; public static readonly string MDTrain = "\uf52c"; public static readonly string MDTram = "\uf52d"; public static readonly string MDTranscribe = "\uf52e"; public static readonly string MDTranscribeClose = "\uf52f"; public static readonly string MDTransfer = "\uf530"; public static readonly string MDTransitTransfer = "\uf6ad"; public static readonly string MDTranslate = "\uf5ca"; public static readonly string MDTreasureChest = "\uf725"; public static readonly string MDTree = "\uf531"; public static readonly string MDTrello = "\uf532"; public static readonly string MDTrendingDown = "\uf533"; public static readonly string MDTrendingNeutral = "\uf534"; public static readonly string MDTrendingUp = "\uf535"; public static readonly string MDTriangle = "\uf536"; public static readonly string MDTriangleOutline = "\uf537"; public static readonly string MDTrophy = "\uf538"; public static readonly string MDTrophyAward = "\uf539"; public static readonly string MDTrophyOutline = "\uf53a"; public static readonly string MDTrophyVariant = "\uf53b"; public static readonly string MDTrophyVariantOutline = "\uf53c"; public static readonly string MDTruck = "\uf53d"; public static readonly string MDTruckDelivery = "\uf53e"; public static readonly string MDTruckTrailer = "\uf726"; public static readonly string MDTshirtCrew = "\uf53f"; public static readonly string MDTshirtV = "\uf540"; public static readonly string MDTumblr = "\uf541"; public static readonly string MDTumblrReblog = "\uf542"; public static readonly string MDTune = "\uf62e"; public static readonly string MDTuneVertical = "\uf66a"; public static readonly string MDTwitch = "\uf543"; public static readonly string MDTwitter = "\uf544"; public static readonly string MDTwitterBox = "\uf545"; public static readonly string MDTwitterCircle = "\uf546"; public static readonly string MDTwitterRetweet = "\uf547"; public static readonly string MDUbuntu = "\uf548"; public static readonly string MDUmbraco = "\uf549"; public static readonly string MDUmbrella = "\uf54a"; public static readonly string MDUmbrellaOutline = "\uf54b"; public static readonly string MDUndo = "\uf54c"; public static readonly string MDUndoVariant = "\uf54d"; public static readonly string MDUnfoldLess = "\uf54e"; public static readonly string MDUnfoldMore = "\uf54f"; public static readonly string MDUngroup = "\uf550"; public static readonly string MDUnity = "\uf6ae"; public static readonly string MDUntappd = "\uf551"; public static readonly string MDUpdate = "\uf6af"; public static readonly string MDUpload = "\uf552"; public static readonly string MDUsb = "\uf553"; public static readonly string MDVectorArrangeAbove = "\uf554"; public static readonly string MDVectorArrangeBelow = "\uf555"; public static readonly string MDVectorCircle = "\uf556"; public static readonly string MDVectorCircleVariant = "\uf557"; public static readonly string MDVectorCombine = "\uf558"; public static readonly string MDVectorCurve = "\uf559"; public static readonly string MDVectorDifference = "\uf55a"; public static readonly string MDVectorDifferenceAb = "\uf55b"; public static readonly string MDVectorDifferenceBa = "\uf55c"; public static readonly string MDVectorIntersection = "\uf55d"; public static readonly string MDVectorLine = "\uf55e"; public static readonly string MDVectorPoint = "\uf55f"; public static readonly string MDVectorPolygon = "\uf560"; public static readonly string MDVectorPolyline = "\uf561"; public static readonly string MDVectorRectangle = "\uf5c6"; public static readonly string MDVectorSelection = "\uf562"; public static readonly string MDVectorSquare = "\uf001"; public static readonly string MDVectorTriangle = "\uf563"; public static readonly string MDVectorUnion = "\uf564"; public static readonly string MDVerified = "\uf565"; public static readonly string MDVibrate = "\uf566"; public static readonly string MDVideo = "\uf567"; public static readonly string MDVideoOff = "\uf568"; public static readonly string MDVideoSwitch = "\uf569"; public static readonly string MDViewAgenda = "\uf56a"; public static readonly string MDViewArray = "\uf56b"; public static readonly string MDViewCarousel = "\uf56c"; public static readonly string MDViewColumn = "\uf56d"; public static readonly string MDViewDashboard = "\uf56e"; public static readonly string MDViewDay = "\uf56f"; public static readonly string MDViewGrid = "\uf570"; public static readonly string MDViewHeadline = "\uf571"; public static readonly string MDViewList = "\uf572"; public static readonly string MDViewModule = "\uf573"; public static readonly string MDViewParallel = "\uf727"; public static readonly string MDViewQuilt = "\uf574"; public static readonly string MDViewSequential = "\uf728"; public static readonly string MDViewStream = "\uf575"; public static readonly string MDViewWeek = "\uf576"; public static readonly string MDVimeo = "\uf577"; public static readonly string MDVine = "\uf578"; public static readonly string MDViolin = "\uf60f"; public static readonly string MDVisualstudio = "\uf610"; public static readonly string MDVk = "\uf579"; public static readonly string MDVkBox = "\uf57a"; public static readonly string MDVkCircle = "\uf57b"; public static readonly string MDVlc = "\uf57c"; public static readonly string MDVoice = "\uf5cb"; public static readonly string MDVoicemail = "\uf57d"; public static readonly string MDVolumeHigh = "\uf57e"; public static readonly string MDVolumeLow = "\uf57f"; public static readonly string MDVolumeMedium = "\uf580"; public static readonly string MDVolumeOff = "\uf581"; public static readonly string MDVpn = "\uf582"; public static readonly string MDWalk = "\uf583"; public static readonly string MDWallet = "\uf584"; public static readonly string MDWalletGiftcard = "\uf585"; public static readonly string MDWalletMembership = "\uf586"; public static readonly string MDWalletTravel = "\uf587"; public static readonly string MDWan = "\uf588"; public static readonly string MDWashingMachine = "\uf729"; public static readonly string MDWatch = "\uf589"; public static readonly string MDWatchExport = "\uf58a"; public static readonly string MDWatchImport = "\uf58b"; public static readonly string MDWatchVibrate = "\uf6b0"; public static readonly string MDWater = "\uf58c"; public static readonly string MDWaterOff = "\uf58d"; public static readonly string MDWaterPercent = "\uf58e"; public static readonly string MDWaterPump = "\uf58f"; public static readonly string MDWatermark = "\uf612"; public static readonly string MDWeatherCloudy = "\uf590"; public static readonly string MDWeatherFog = "\uf591"; public static readonly string MDWeatherHail = "\uf592"; public static readonly string MDWeatherLightning = "\uf593"; public static readonly string MDWeatherLightningRainy = "\uf67d"; public static readonly string MDWeatherNight = "\uf594"; public static readonly string MDWeatherPartlycloudy = "\uf595"; public static readonly string MDWeatherPouring = "\uf596"; public static readonly string MDWeatherRainy = "\uf597"; public static readonly string MDWeatherSnowy = "\uf598"; public static readonly string MDWeatherSnowyRainy = "\uf67e"; public static readonly string MDWeatherSunny = "\uf599"; public static readonly string MDWeatherSunset = "\uf59a"; public static readonly string MDWeatherSunsetDown = "\uf59b"; public static readonly string MDWeatherSunsetUp = "\uf59c"; public static readonly string MDWeatherWindy = "\uf59d"; public static readonly string MDWeatherWindyVariant = "\uf59e"; public static readonly string MDWeb = "\uf59f"; public static readonly string MDWebcam = "\uf5a0"; public static readonly string MDWebhook = "\uf62f"; public static readonly string MDWebpack = "\uf72a"; public static readonly string MDWechat = "\uf611"; public static readonly string MDWeight = "\uf5a1"; public static readonly string MDWeightKilogram = "\uf5a2"; public static readonly string MDWhatsapp = "\uf5a3"; public static readonly string MDWheelchairAccessibility = "\uf5a4"; public static readonly string MDWhiteBalanceAuto = "\uf5a5"; public static readonly string MDWhiteBalanceIncandescent = "\uf5a6"; public static readonly string MDWhiteBalanceIridescent = "\uf5a7"; public static readonly string MDWhiteBalanceSunny = "\uf5a8"; public static readonly string MDWidgets = "\uf72b"; public static readonly string MDWifi = "\uf5a9"; public static readonly string MDWifiOff = "\uf5aa"; public static readonly string MDWii = "\uf5ab"; public static readonly string MDWiiu = "\uf72c"; public static readonly string MDWikipedia = "\uf5ac"; public static readonly string MDWindowClose = "\uf5ad"; public static readonly string MDWindowClosed = "\uf5ae"; public static readonly string MDWindowMaximize = "\uf5af"; public static readonly string MDWindowMinimize = "\uf5b0"; public static readonly string MDWindowOpen = "\uf5b1"; public static readonly string MDWindowRestore = "\uf5b2"; public static readonly string MDWindows = "\uf5b3"; public static readonly string MDWordpress = "\uf5b4"; public static readonly string MDWorker = "\uf5b5"; public static readonly string MDWrap = "\uf5b6"; public static readonly string MDWrench = "\uf5b7"; public static readonly string MDWunderlist = "\uf5b8"; public static readonly string MDXaml = "\uf673"; public static readonly string MDXbox = "\uf5b9"; public static readonly string MDXboxController = "\uf5ba"; public static readonly string MDXboxControllerOff = "\uf5bb"; public static readonly string MDXda = "\uf5bc"; public static readonly string MDXing = "\uf5bd"; public static readonly string MDXingBox = "\uf5be"; public static readonly string MDXingCircle = "\uf5bf"; public static readonly string MDXml = "\uf5c0"; public static readonly string MDYeast = "\uf5c1"; public static readonly string MDYelp = "\uf5c2"; public static readonly string MDYinYang = "\uf67f"; public static readonly string MDYoutubePlay = "\uf5c3"; public static readonly string MDZipBox = "\uf5c4"; } }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("001.TransportPrice")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("001.TransportPrice")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("a9a00a78-475d-492a-9619-a6dadfd83266")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
var game = new Phaser.Game(375, 667, Phaser.AUTO, 'gameDiv'); // var game = new Phaser.Game(720, 1280, Phaser.AUTO, 'gameDiv'); game.global = { taps: 0, enemyHP: 0, enemyHPTotal: 0, level: 1, enemyNumber: 1, coins: 0, player: { name: 'mr. hero', level: 1, skillLevel: [0, 0, 0, 0, 0, 0] } }; game.state.add('boot', bootState); game.state.add('load', loadState); game.state.add('menu', menuState); game.state.add('play', playState); game.state.start('boot');
package Wallet import scala.reflect.BeanProperty import org.joda.time._ import org.hibernate.validator.constraints.NotEmpty import org.apache.commons.lang3.time.DateFormatUtils class BankAcc { @BeanProperty @NotEmpty var ba_id : String = _ @BeanProperty var account_name : String = _ @BeanProperty @NotEmpty var routing_number :String = _ @BeanProperty @NotEmpty var account_number :String = _ }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>CommentNode | parse5</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">parse5</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/ast.html">AST</a> </li> <li> <a href="../modules/ast.htmlparser2.html">HtmlParser2</a> </li> <li> <a href="ast.htmlparser2.commentnode.html">CommentNode</a> </li> </ul> <h1>Interface CommentNode</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p><a href="../globals.html#treeadapters">htmlparser2 tree adapter</a> CommentNode interface.</p> </div> </div> </section> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <a href="ast.htmlparser2.node.html" class="tsd-signature-type">Node</a> <ul class="tsd-hierarchy"> <li> <span class="target">CommentNode</span> </li> </ul> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="ast.htmlparser2.commentnode.html#___location" class="tsd-kind-icon">___location</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="ast.htmlparser2.commentnode.html#data" class="tsd-kind-icon">data</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="ast.htmlparser2.commentnode.html#name" class="tsd-kind-icon">name</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#next" class="tsd-kind-icon">next</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#nextsibling" class="tsd-kind-icon">next<wbr>Sibling</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#nodetype" class="tsd-kind-icon">node<wbr>Type</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="ast.htmlparser2.commentnode.html#nodevalue" class="tsd-kind-icon">node<wbr>Value</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#parent" class="tsd-kind-icon">parent</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#parentnode" class="tsd-kind-icon">parent<wbr>Node</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#prev" class="tsd-kind-icon">prev</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#previoussibling" class="tsd-kind-icon">previous<wbr>Sibling</a></li> <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ast.htmlparser2.commentnode.html#type" class="tsd-kind-icon">type</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="___location" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagOptional">Optional</span> ___location</h3> <div class="tsd-signature tsd-kind-icon">___location<span class="tsd-signature-symbol">:</span> <a href="markupdata.location.html" class="tsd-signature-type">Location</a></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L443">index.d.ts:443</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Comment source code location info. Available if location info is enabled via <a href="options.parseroptions.html">Options.ParserOptions</a>.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="data" class="tsd-anchor"></a> <h3>data</h3> <div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L435">index.d.ts:435</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Comment text.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="name" class="tsd-anchor"></a> <h3>name</h3> <div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"comment"</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L431">index.d.ts:431</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The name of the node.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="next" class="tsd-anchor"></a> <h3>next</h3> <div class="tsd-signature tsd-kind-icon">next<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.node.html" class="tsd-signature-type">Node</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#next">next</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L299">index.d.ts:299</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Next sibling.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="nextsibling" class="tsd-anchor"></a> <h3>next<wbr>Sibling</h3> <div class="tsd-signature tsd-kind-icon">next<wbr>Sibling<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.node.html" class="tsd-signature-type">Node</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#nextsibling">nextSibling</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L303">index.d.ts:303</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Same as <a href="ast.htmlparser2.commentnode.html#next">next</a>. <a href="https://dom.spec.whatwg.org">DOM spec</a>-compatible alias.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="nodetype" class="tsd-anchor"></a> <h3>node<wbr>Type</h3> <div class="tsd-signature tsd-kind-icon">node<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#nodetype">nodeType</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L279">index.d.ts:279</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p><a href="https://dom.spec.whatwg.org/#dom-node-nodetype">DOM spec</a>-compatible node <a href="ast.htmlparser2.commentnode.html#type">type</a>.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="nodevalue" class="tsd-anchor"></a> <h3>node<wbr>Value</h3> <div class="tsd-signature tsd-kind-icon">node<wbr>Value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L439">index.d.ts:439</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Same as <a href="ast.htmlparser2.commentnode.html#data">data</a>. <a href="https://dom.spec.whatwg.org">DOM spec</a>-compatible alias.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="parent" class="tsd-anchor"></a> <h3>parent</h3> <div class="tsd-signature tsd-kind-icon">parent<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.parentnode.html" class="tsd-signature-type">ParentNode</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#parent">parent</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L283">index.d.ts:283</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Parent node.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="parentnode" class="tsd-anchor"></a> <h3>parent<wbr>Node</h3> <div class="tsd-signature tsd-kind-icon">parent<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.parentnode.html" class="tsd-signature-type">ParentNode</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#parentnode">parentNode</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L287">index.d.ts:287</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Same as <a href="ast.htmlparser2.commentnode.html#parent">parent</a>. <a href="https://dom.spec.whatwg.org">DOM spec</a>-compatible alias.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="prev" class="tsd-anchor"></a> <h3>prev</h3> <div class="tsd-signature tsd-kind-icon">prev<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.node.html" class="tsd-signature-type">Node</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#prev">prev</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L291">index.d.ts:291</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Previous sibling.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="previoussibling" class="tsd-anchor"></a> <h3>previous<wbr>Sibling</h3> <div class="tsd-signature tsd-kind-icon">previous<wbr>Sibling<span class="tsd-signature-symbol">:</span> <a href="ast.htmlparser2.node.html" class="tsd-signature-type">Node</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#previoussibling">previousSibling</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L295">index.d.ts:295</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Same as <a href="ast.htmlparser2.commentnode.html#prev">prev</a>. <a href="https://dom.spec.whatwg.org">DOM spec</a>-compatible alias.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a name="type" class="tsd-anchor"></a> <h3>type</h3> <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="ast.htmlparser2.node.html">Node</a>.<a href="ast.htmlparser2.node.html#type">type</a></p> <ul> <li>Defined in <a href="https://github.com/inikulin/parse5/blob/f605e9b/lib/index.d.ts#L275">index.d.ts:275</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The type of the node. E.g. <a href="ast.htmlparser2.document.html">Document</a> will have <code>type</code> equal to &#39;root&#39;`.</p> </div> </div> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class=" tsd-kind-module tsd-is-not-exported"> <a href="../modules/ast.html">AST</a> </li> <li class=" tsd-kind-module tsd-parent-kind-module tsd-is-not-exported"> <a href="../modules/ast.default.html">AST.<wbr>Default</a> </li> <li class="current tsd-kind-module tsd-parent-kind-module tsd-is-not-exported"> <a href="../modules/ast.htmlparser2.html">AST.<wbr>Html<wbr>Parser2</a> </li> <li class=" tsd-kind-module tsd-is-not-exported"> <a href="../modules/markupdata.html">Markup<wbr>Data</a> </li> <li class=" tsd-kind-module tsd-is-not-exported"> <a href="../modules/options.html">Options</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.commentnode.html" class="tsd-kind-icon">Comment<wbr>Node</a> <ul> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="ast.htmlparser2.commentnode.html#___location" class="tsd-kind-icon">___location</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="ast.htmlparser2.commentnode.html#data" class="tsd-kind-icon">data</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="ast.htmlparser2.commentnode.html#name" class="tsd-kind-icon">name</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#next" class="tsd-kind-icon">next</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#nextsibling" class="tsd-kind-icon">next<wbr>Sibling</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#nodetype" class="tsd-kind-icon">node<wbr>Type</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="ast.htmlparser2.commentnode.html#nodevalue" class="tsd-kind-icon">node<wbr>Value</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#parent" class="tsd-kind-icon">parent</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#parentnode" class="tsd-kind-icon">parent<wbr>Node</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#prev" class="tsd-kind-icon">prev</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#previoussibling" class="tsd-kind-icon">previous<wbr>Sibling</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"> <a href="ast.htmlparser2.commentnode.html#type" class="tsd-kind-icon">type</a> </li> </ul> </li> </ul> <ul class="after-current"> <li class=" tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.document.html" class="tsd-kind-icon">Document</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.documentfragment.html" class="tsd-kind-icon">Document<wbr>Fragment</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.documenttype.html" class="tsd-kind-icon">Document<wbr>Type</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.element.html" class="tsd-kind-icon">Element</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module tsd-is-not-exported"> <a href="ast.htmlparser2.node.html" class="tsd-kind-icon">Node</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module tsd-is-not-exported"> <a href="ast.htmlparser2.parentnode.html" class="tsd-kind-icon">Parent<wbr>Node</a> </li> <li class=" tsd-kind-interface tsd-parent-kind-module"> <a href="ast.htmlparser2.textnode.html" class="tsd-kind-icon">Text<wbr>Node</a> </li> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li> <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>成語&nbsp;</b></th><td class="ztd2">以佚待勞</td></tr> <tr><th class="ztd1"><b>典源&nbsp;</b></th><td class="ztd2"> 此處所列為「<a href="/cgi-bin/cydic/gsweb.cgi?o=dcydic&schfmt=text&gourl=%3De0%26sec%3Dsec1%26op%3Dsid%3D%22CW0000000974%22.%26v%3D-1" class="clink" target=_blank>以逸待勞</a>」之典源,提供參考。</font> <font class="dianuan_mark">《孫子.軍爭》</font><br><font size=4 color="#808080">三軍可奪氣,將軍可奪心。是故朝氣銳,晝氣惰,暮氣歸。</font>故善用兵者,避其銳氣,擊其惰歸<font size=-2 color="#999900"><font class="dianyuanfont"><b><i>1></i></b></font></font>,此治氣者也。以治待亂,以靜待譁<font size=-2 color="#999900"><font class="dianyuanfont"><b><i>2></i></b></font></font>,此治心者也。以近待遠,以佚<font size=-2 color="#999900"><font class="dianyuanfont"><b><i>3></i></b></font></font>待勞,以飽待飢,此治力者也。<font size=4 color="#808080">無邀正正之旗,勿擊堂堂之陳,此治變者也。</font></font> <br><font class="dianuan_mark2">〔注解〕</font><br></font> <div class="Rulediv"><font class="english_word">(1)</font> 惰歸:鬆懈返回。</font></div> <div class="Rulediv"><font class="english_word">(2)</font> 譁:音ㄏㄨㄚˊ,大聲喧鬧、吵雜。</font></div> <div class="Rulediv"><font class="english_word">(3)</font> 佚:音|ˋ,通「逸」。安閑。</font></div> </td></tr> </td></tr></table></div> <!-- layoutclass_first_pic --><div class="layoutclass_second_pic"></div> <!-- layoutclass_second_pic --></div> <!-- layoutclass_pic --></td></tr></table>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Data step with merge - by (10-Dec-1999)</TITLE> <!-- Created by: Lars Vilhuber, 10-Dec-1999 --> <!-- Changed by: Lars Vilhuber, 10-Dec-1999 --> </HEAD> <body bgcolor="#FFFFFF"> <H1>Data step with merge - by</H1> The resulting dataset is sorted by ein and su. <pre> data md92_92; merge md92_92 mu; by ein su; run; </pre> </BODY> </HTML>
/***************************************************************************************** * * * OpenSpace * * * * Copyright (c) 2014-2022 * * * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * * software and associated documentation files (the "Software"), to deal in the Software * * without restriction, including without limitation the rights to use, copy, modify, * * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to * * permit persons to whom the Software is furnished to do so, subject to the following * * conditions: * * * * The above copyright notice and this permission notice shall be included in all copies * * or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE * * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ****************************************************************************************/ #include <modules/fieldlinessequence/util/fieldlinesstate.h> #include <openspace/json.h> #include <openspace/util/time.h> #include <ghoul/fmt.h> #include <ghoul/logging/logmanager.h> #include <fstream> #include <iomanip> namespace { constexpr const char* _loggerCat = "FieldlinesState"; constexpr const int CurrentVersion = 0; using json = nlohmann::json; } // namespace namespace openspace { /** * Converts all glm::vec3 in _vertexPositions from spherical (radius, latitude, longitude) * coordinates into cartesian coordinates. The longitude and latitude coordinates are * expected to be in degrees. scale is an optional scaling factor. */ void FieldlinesState::convertLatLonToCartesian(float scale) { for (glm::vec3& p : _vertexPositions) { const float r = p.x * scale; const float lat = glm::radians(p.y); const float lon = glm::radians(p.z); const float rCosLat = r * cos(lat); p = glm::vec3(rCosLat * cos(lon), rCosLat* sin(lon), r * sin(lat)); } } void FieldlinesState::scalePositions(float scale) { for (glm::vec3& p : _vertexPositions) { p *= scale; } } bool FieldlinesState::loadStateFromOsfls(const std::string& pathToOsflsFile) { std::ifstream ifs(pathToOsflsFile, std::ifstream::binary); if (!ifs.is_open()) { LERROR("Couldn't open file: " + pathToOsflsFile); return false; } int binFileVersion; ifs.read(reinterpret_cast<char*>(&binFileVersion), sizeof(int)); switch (binFileVersion) { case 0: // No need to put everything in this scope now, as only version 0 exists! break; default: LERROR("VERSION OF BINARY FILE WAS NOT RECOGNIZED!"); return false; } // Define tmp variables to store meta data in size_t nLines; size_t nPoints; size_t nExtras; size_t byteSizeAllNames; // Read single value variables ifs.read(reinterpret_cast<char*>(&_triggerTime), sizeof(double)); ifs.read(reinterpret_cast<char*>(&_model), sizeof(int32_t)); ifs.read(reinterpret_cast<char*>(&_isMorphable), sizeof(bool)); ifs.read(reinterpret_cast<char*>(&nLines), sizeof(uint64_t)); ifs.read(reinterpret_cast<char*>(&nPoints), sizeof(uint64_t)); ifs.read(reinterpret_cast<char*>(&nExtras), sizeof(uint64_t)); ifs.read(reinterpret_cast<char*>(&byteSizeAllNames), sizeof(uint64_t)); _lineStart.resize(nLines); _lineCount.resize(nLines); _vertexPositions.resize(nPoints); _extraQuantities.resize(nExtras); _extraQuantityNames.resize(nExtras); // Read vertex position data ifs.read(reinterpret_cast<char*>(_lineStart.data()), sizeof(int32_t) * nLines); ifs.read(reinterpret_cast<char*>(_lineCount.data()), sizeof(uint32_t) * nLines); ifs.read( reinterpret_cast<char*>(_vertexPositions.data()), 3 * sizeof(float) * nPoints ); // Read all extra quantities for (std::vector<float>& vec : _extraQuantities) { vec.resize(nPoints); ifs.read(reinterpret_cast<char*>(vec.data()), sizeof(float) * nPoints); } // Read all extra quantities' names. Stored as multiple c-strings std::string allNamesInOne; std::vector<char> buffer(byteSizeAllNames); ifs.read(buffer.data(), byteSizeAllNames); allNamesInOne.assign(buffer.data(), byteSizeAllNames); size_t offset = 0; for (size_t i = 0; i < nExtras; ++i) { auto endOfVarName = allNamesInOne.find('\0', offset); endOfVarName -= offset; const std::string varName = allNamesInOne.substr(offset, endOfVarName); offset += varName.size() + 1; _extraQuantityNames[i] = varName; } return true; } bool FieldlinesState::loadStateFromJson(const std::string& pathToJsonFile, fls::Model Model, float coordToMeters) { // --------------------- ENSURE FILE IS VALID, THEN PARSE IT --------------------- // std::ifstream ifs(pathToJsonFile); if (!ifs.is_open()) { LERROR(fmt::format("FAILED TO OPEN FILE: {}", pathToJsonFile)); return false; } json jFile; ifs >> jFile; // -------------------------------------------------------------------------------- // _model = Model; const char* sData = "data"; const char* sTrace = "trace"; // ----- EXTRACT THE EXTRA QUANTITY NAMES & TRIGGER TIME (same for all lines) ----- // { const char* sTime = "time"; const json& jTmp = *(jFile.begin()); // First field line in the file _triggerTime = Time::convertTime(jTmp[sTime]); const char* sColumns = "columns"; const json::value_type& variableNameVec = jTmp[sTrace][sColumns]; const size_t nVariables = variableNameVec.size(); const size_t nPosComponents = 3; // x,y,z if (nVariables < nPosComponents) { LERROR( pathToJsonFile + ": Each field '" + sColumns + "' must contain the variables: 'x', 'y' and 'z' (order is important)." ); return false; } for (size_t i = nPosComponents ; i < nVariables ; ++i) { _extraQuantityNames.push_back(variableNameVec[i]); } } const size_t nExtras = _extraQuantityNames.size(); _extraQuantities.resize(nExtras); size_t lineStartIdx = 0; // Loop through all fieldlines for (json::iterator lineIter = jFile.begin(); lineIter != jFile.end(); ++lineIter) { // The 'data' field in the 'trace' variable contains all vertex positions and the // extra quantities. Each element is an array related to one vertex point. const std::vector<std::vector<float>>& jData = (*lineIter)[sTrace][sData]; const size_t nPoints = jData.size(); for (size_t j = 0; j < nPoints; ++j) { const std::vector<float>& variables = jData[j]; // Expects the x, y and z variables to be stored first! const size_t xIdx = 0; const size_t yIdx = 1; const size_t zIdx = 2; _vertexPositions.push_back( coordToMeters * glm::vec3( variables[xIdx], variables[yIdx], variables[zIdx] ) ); // Add the extra quantites. Stored in the same array as the x,y,z variables. // Hence index of the first extra quantity = 3 for (size_t xtraIdx = 3, k = 0 ; k < nExtras; ++k, ++xtraIdx) { _extraQuantities[k].push_back(variables[xtraIdx]); } } _lineCount.push_back(static_cast<GLsizei>(nPoints)); _lineStart.push_back(static_cast<GLsizei>(lineStartIdx)); lineStartIdx += nPoints; } return true; } /** * \param absPath must be the path to the file (incl. filename but excl. extension!) * Directory must exist! File is created (or overwritten if already existing). * File is structured like this: (for version 0) * 0. int - version number of binary state file! (in case something * needs to be altered in the future, then increase * CurrentVersion) * 1. double - _triggerTime * 2. int - _model * 3. bool - _isMorphable * 4. size_t - Number of lines in the state == _lineStart.size() * == _lineCount.size() * 5. size_t - Total number of vertex points == _vertexPositions.size() * == _extraQuantities[i].size() * 6. size_t - Number of extra quantites == _extraQuantities.size() * == _extraQuantityNames.size() * 7. site_t - Number of total bytes that ALL _extraQuantityNames * consists of (Each such name is stored as a c_str which * means it ends with the null char '\0' ) * 7. std::vector<GLint> - _lineStart * 8. std::vector<GLsizei> - _lineCount * 9. std::vector<glm::vec3> - _vertexPositions * 10. std::vector<float> - _extraQuantities * 11. array of c_str - Strings naming the extra quantities (elements of * _extraQuantityNames). Each string ends with null char '\0' */ void FieldlinesState::saveStateToOsfls(const std::string& absPath) { // ------------------------------- Create the file ------------------------------- // std::string pathSafeTimeString = std::string(Time(_triggerTime).ISO8601()); pathSafeTimeString.replace(13, 1, "-"); pathSafeTimeString.replace(16, 1, "-"); pathSafeTimeString.replace(19, 1, "-"); const std::string& fileName = pathSafeTimeString + ".osfls"; std::ofstream ofs(absPath + fileName, std::ofstream::binary | std::ofstream::trunc); if (!ofs.is_open()) { LERROR(fmt::format( "Failed to save state to binary file: {}{}", absPath, fileName )); return; } // --------- Add each string of _extraQuantityNames into one long string --------- // std::string allExtraQuantityNamesInOne = ""; for (const std::string& str : _extraQuantityNames) { allExtraQuantityNamesInOne += str + '\0'; // Add null char '\0' for easier reading } const size_t nLines = _lineStart.size(); const size_t nPoints = _vertexPositions.size(); const size_t nExtras = _extraQuantities.size(); const size_t nStringBytes = allExtraQuantityNamesInOne.size(); //----------------------------- WRITE EVERYTHING TO FILE ----------------------------- // VERSION OF BINARY FIELDLINES STATE FILE - IN CASE STRUCTURE CHANGES IN THE FUTURE ofs.write(reinterpret_cast<const char*>(&CurrentVersion), sizeof(int)); //-------------------- WRITE META DATA FOR STATE -------------------------------- ofs.write(reinterpret_cast<const char*>(&_triggerTime), sizeof(_triggerTime)); ofs.write(reinterpret_cast<const char*>(&_model), sizeof(int32_t)); ofs.write(reinterpret_cast<const char*>(&_isMorphable), sizeof(bool)); ofs.write(reinterpret_cast<const char*>(&nLines), sizeof(uint64_t)); ofs.write(reinterpret_cast<const char*>(&nPoints), sizeof(uint64_t)); ofs.write(reinterpret_cast<const char*>(&nExtras), sizeof(uint64_t)); ofs.write(reinterpret_cast<const char*>(&nStringBytes), sizeof(uint64_t)); //---------------------- WRITE ALL ARRAYS OF DATA -------------------------------- ofs.write(reinterpret_cast<char*>(_lineStart.data()), sizeof(int32_t) * nLines); ofs.write(reinterpret_cast<char*>(_lineCount.data()), sizeof(uint32_t) * nLines); ofs.write( reinterpret_cast<char*>(_vertexPositions.data()), 3 * sizeof(float) * nPoints ); // Write the data for each vector in _extraQuantities for (std::vector<float>& vec : _extraQuantities) { ofs.write(reinterpret_cast<char*>(vec.data()), sizeof(float) * nPoints); } ofs.write(allExtraQuantityNamesInOne.c_str(), nStringBytes); } // TODO: This should probably be rewritten, but this is the way the files were structured // by CCMC // Structure of File! NO TRAILING COMMAS ALLOWED! // Additional info can be stored within each line as the code only extracts the keys it // needs (time, trace & data) // The key/name of each line ("0" & "1" in the example below) is arbitrary // { // "0":{ // "time": "YYYY-MM-DDTHH:MM:SS.XXX", // "trace": { // "columns": ["x","y","z","s","temperature","rho","j_para"], // "data": [[8.694,127.853,115.304,0.0,0.047,9.249,-5e-10],..., // [8.698,127.253,114.768,0.800,0.0,9.244,-5e-10]] // }, // }, // "1":{ // "time": "YYYY-MM-DDTHH:MM:SS.XXX // "trace": { // "columns": ["x","y","z","s","temperature","rho","j_para"], // "data": [[8.694,127.853,115.304,0.0,0.047,9.249,-5e-10],..., // [8.698,127.253,114.768,0.800,0.0,9.244,-5e-10]] // }, // } // } void FieldlinesState::saveStateToJson(const std::string& absPath) { // Create the file const char* ext = ".json"; std::ofstream ofs(absPath + ext, std::ofstream::trunc); if (!ofs.is_open()) { LERROR(fmt::format( "Failed to save state to json file at location: {}{}", absPath, ext )); return; } LINFO(fmt::format("Saving fieldline state to: {}{}", absPath, ext)); json jColumns = { "x", "y", "z" }; for (const std::string& s : _extraQuantityNames) { jColumns.push_back(s); } json jFile; std::string_view timeStr = Time(_triggerTime).ISO8601(); const size_t nLines = _lineStart.size(); // const size_t nPoints = _vertexPositions.size(); const size_t nExtras = _extraQuantities.size(); size_t pointIndex = 0; for (size_t lineIndex = 0; lineIndex < nLines; ++lineIndex) { json jData = json::array(); for (GLsizei i = 0; i < _lineCount[lineIndex]; i++, ++pointIndex) { const glm::vec3 pos = _vertexPositions[pointIndex]; json jDataElement = { pos.x, pos.y, pos.z }; for (size_t extraIndex = 0; extraIndex < nExtras; ++extraIndex) { jDataElement.push_back(_extraQuantities[extraIndex][pointIndex]); } jData.push_back(jDataElement); } jFile[std::to_string(lineIndex)] = { { "time", timeStr }, { "trace", { { "columns", jColumns }, { "data", jData } }} }; } //----------------------------- WRITE EVERYTHING TO FILE ----------------------------- const int indentationSpaces = 2; ofs << std::setw(indentationSpaces) << jFile << std::endl; LINFO(fmt::format("Saved fieldline state to: {}{}", absPath, ext)); } void FieldlinesState::setModel(fls::Model m) { _model = m; } void FieldlinesState::setTriggerTime(double t) { _triggerTime = t; } // Returns one of the extra quantity vectors, _extraQuantities[index]. // If index is out of scope an empty vector is returned and the referenced bool is false. std::vector<float> FieldlinesState::extraQuantity(size_t index, bool& isSuccessful) const { if (index < _extraQuantities.size()) { isSuccessful = true; return _extraQuantities[index]; } else { isSuccessful = false; LERROR("Provided Index was out of scope!"); return {}; } } // Moves the points in @param line over to _vertexPositions and updates // _lineStart & _lineCount accordingly. void FieldlinesState::addLine(std::vector<glm::vec3>& line) { const size_t nNewPoints = line.size(); const size_t nOldPoints = _vertexPositions.size(); _lineStart.push_back(static_cast<GLint>(nOldPoints)); _lineCount.push_back(static_cast<GLsizei>(nNewPoints)); _vertexPositions.reserve(nOldPoints + nNewPoints); _vertexPositions.insert( _vertexPositions.end(), std::make_move_iterator(line.begin()), std::make_move_iterator(line.end()) ); line.clear(); } void FieldlinesState::appendToExtra(size_t idx, float val) { _extraQuantities[idx].push_back(val); } void FieldlinesState::setExtraQuantityNames(std::vector<std::string> names) { _extraQuantityNames = std::move(names); _extraQuantities.resize(_extraQuantityNames.size()); } const std::vector<std::vector<float>>& FieldlinesState::extraQuantities() const { return _extraQuantities; } const std::vector<std::string>& FieldlinesState::extraQuantityNames() const { return _extraQuantityNames; } const std::vector<GLsizei>& FieldlinesState::lineCount() const { return _lineCount; } const std::vector<GLint>& FieldlinesState::lineStart() const { return _lineStart; } fls::Model FieldlinesState::FieldlinesState::model() const { return _model; } size_t FieldlinesState::nExtraQuantities() const { return _extraQuantities.size(); } double FieldlinesState::triggerTime() const { return _triggerTime; } const std::vector<glm::vec3>& FieldlinesState::vertexPositions() const { return _vertexPositions; } } // namespace openspace
//using Microsoft.CodeAnalysis; //using Microsoft.CodeAnalysis.Diagnostics; //using System.Collections.Immutable; //namespace RefactoringEssentials.CSharp.Diagnostics //{ // [DiagnosticAnalyzer(LanguageNames.CSharp)] // [NotPortedYet] // public class ReferenceEqualsWithValueTypeAnalyzer : DiagnosticAnalyzer // { // static readonly DiagnosticDescriptor descriptor = new DiagnosticDescriptor( // CSharpDiagnosticIDs.ReferenceEqualsWithValueTypeAnalyzerID, // GettextCatalog.GetString("Check for reference equality instead"), // GettextCatalog.GetString("'Object.ReferenceEquals' is always false because it is called with value type"), // DiagnosticAnalyzerCategories.PracticesAndImprovements, // DiagnosticSeverity.Info, // isEnabledByDefault: true, // helpLinkUri: HelpLink.CreateFor(CSharpDiagnosticIDs.ReferenceEqualsWithValueTypeAnalyzerID) // ); // public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(descriptor); // public override void Initialize(AnalysisContext context) // { // context.EnableConcurrentExecution(); // context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); // //context.RegisterSyntaxNodeAction( // // (nodeContext) => { // // Diagnostic diagnostic; // // if (TryGetDiagnostic (nodeContext, out diagnostic)) { // // nodeContext.ReportDiagnostic(diagnostic); // // } // // }, // // new SyntaxKind[] { SyntaxKind.None } // //); // } // static bool TryGetDiagnostic(SyntaxNodeAnalysisContext nodeContext, out Diagnostic diagnostic) // { // diagnostic = default(Diagnostic); // //var node = nodeContext.Node as ; // //diagnostic = Diagnostic.Create (descriptor, node.GetLocation ()); // //return true; // return false; // } // // class GatherVisitor : GatherVisitorBase<ReferenceEqualsWithValueTypeAnalyzer> // // { // // public GatherVisitor(SemanticModel semanticModel, Action<Diagnostic> addDiagnostic, CancellationToken cancellationToken) // // : base (semanticModel, addDiagnostic, cancellationToken) // // { // // } // //// public override void VisitInvocationExpression(InvocationExpression invocationExpression) // //// { // //// base.VisitInvocationExpression(invocationExpression); // //// // //// // Quickly determine if this invocation is eligible to speed up the inspector // //// var nameToken = invocationExpression.Target.GetChildByRole(Roles.Identifier); // //// if (nameToken.Name != "ReferenceEquals") // //// return; // //// // //// var resolveResult = ctx.Resolve(invocationExpression) as InvocationResolveResult; // //// if (resolveResult == null || // //// resolveResult.Member.DeclaringTypeDefinition == null || // //// resolveResult.Member.DeclaringTypeDefinition.KnownTypeCode != KnownTypeCode.Object || // //// resolveResult.Member.Name != "ReferenceEquals" || // //// invocationExpression.Arguments.All(arg => ctx.Resolve(arg).Type.IsReferenceType ?? true)) // //// return; // //// // //// var action1 = new CodeAction(ctx.TranslateString("Replace expression with 'false'"), // //// script => script.Replace(invocationExpression, new PrimitiveExpression(false)), invocationExpression); // //// // //// var action2 = new CodeAction(ctx.TranslateString("Use Equals()"), // //// script => script.Replace(invocationExpression.Target, // //// new PrimitiveType("object").Member("Equals")), invocationExpression); // //// // //// AddDiagnosticAnalyzer(new CodeIssue(invocationExpression, // //// ctx.TranslateString("'Object.ReferenceEquals' is always false because it is called with value type"), // //// new [] { action1, action2 })); // //// } // // } // } //}
/** * Default model configuration * (sails.config.models) * * Unless you override them, the following properties will be included * in each of your models. * * For more info on Sails models, see: * http://sailsjs.org/#!/documentation/concepts/ORM */ module.exports.models = { /*************************************************************************** * * * Your app's default connection. i.e. the name of one of your app's * * connections (see `config/connections.js`) * * * ***************************************************************************/ // connection: 'localDiskDb', /*************************************************************************** * * * How and whether Sails will attempt to automatically rebuild the * * tables/collections/etc. in your schema. * * * * See http://sailsjs.org/#!/documentation/concepts/ORM/model-settings.html * * * ***************************************************************************/ migrate: 'safe', schema: true, /** * This method adds records to the database * * To use add a variable 'seedData' in your model and call the * method in the bootstrap.js file */ seed: function (callback) { var self = this; var modelName = self.adapter.identity.charAt(0).toUpperCase() + self.adapter.identity.slice(1); if (!self.seedData) { sails.log.debug('No data avaliable to seed ' + modelName); callback(); return; } self.count().exec(function (err, count) { if (!err && count === 0) { sails.log.debug('Seeding ' + modelName + '...'); if (self.seedData instanceof Array) { self.seedArray(callback); }else{ self.seedObject(callback); } } else { sails.log.debug(modelName + ' had models, so no seed needed'); callback(); } }); }, seedArray: function (callback) { var self = this; var modelName = self.adapter.identity.charAt(0).toUpperCase() + self.adapter.identity.slice(1); self.createEach(self.seedData).exec(function (err, results) { if (err) { sails.log.debug(err); callback(); } else { sails.log.debug(modelName + ' seed planted'); callback(); } }); }, seedObject: function (callback) { var self = this; var modelName = self.adapter.identity.charAt(0).toUpperCase() + self.adapter.identity.slice(1); self.create(self.seedData).exec(function (err, results) { if (err) { sails.log.debug(err); callback(); } else { sails.log.debug(modelName + ' seed planted'); callback(); } }); } };
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>LDAPLibrary: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">LDAPLibrary &#160;<span id="projectnumber">3.3</span> </div> <div id="projectbrief">Library that wrap the S.DS.P Microsoft libraries and provide a better interface and management for all the LDAP infrastructures</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="namespaces.html"><span>Packages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>, including all inherited members.</p> <table class="directory"> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>GetTestUserCn</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>GetTestUserDn</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>GetTestUserOtherAttributes</b>(string attributeKey) (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>GetTestUserOtherAttributesKeys</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>GetTestUserSn</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>GetUserToSearch</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>SetupTestUser</b>(string testUserDn, string testUserCn, string testUserSn, Dictionary&lt; string, List&lt; string &gt;&gt; testUserOtherAttribute) (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>SetupUsersToSearch</b>(string[] list) (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>TestUser</b> (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>TestUserNewDescription</b> (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>TestUserNewPassword</b> (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>TestUserRepository</b>() (defined in <a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a>)</td><td class="entry"><a class="el" href="class_g_u_i___l_d_a_p_unit_test_1_1_tests_1_1_business_logic_1_1_test_user_repository.html">GUI_LDAPUnitTest.Tests.BusinessLogic.TestUserRepository</a></td><td class="entry"></td></tr> </table></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Thu Dec 3 2015 14:53:28 for LDAPLibrary by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li> </ul> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>propcalc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.8.0 / propcalc - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> propcalc <small> 8.7.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-20 01:17:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-20 01:17:33 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.8.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/propcalc&quot; license: &quot;BSD&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/PropCalc&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: propositional calculus&quot; &quot;keyword: classical logic&quot; &quot;keyword: completeness&quot; &quot;keyword: natural deduction&quot; &quot;keyword: sequent calculus&quot; &quot;keyword: cut elimination&quot; &quot;category: Mathematics/Logic/Foundations&quot; ] authors: [ &quot;Floris van Doorn &lt;fpvdoorn@gmail.com&gt; [http://www.contrib.andrew.cmu.edu/~fpv/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/propcalc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/propcalc.git&quot; synopsis: &quot;Propositional Calculus&quot; description: &quot;&quot;&quot; http://arxiv.org/abs/1503.08744 Formalization of basic theorems about classical propositional logic. The main theorems are (1) the soundness and completeness of natural deduction calculus, (2) the equivalence between natural deduction calculus, Hilbert systems and sequent calculus and (3) cut elimination for sequent calculus.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/propcalc/archive/v8.7.0.tar.gz&quot; checksum: &quot;md5=201c4c6bb4453482fae1c75e3a3a9d6b&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-propcalc.8.7.0 coq.8.8.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0). The following dependencies couldn&#39;t be met: - coq-propcalc -&gt; coq &lt; 8.8~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-propcalc.8.7.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
'use strict'; const mongoose = require('mongoose-q')(require('mongoose')); const League = mongoose.model('League'); function LeagueHandler (leagueService) { this.service = leagueService; } LeagueHandler.prototype.getLeaguesByCountry = function(req, res, next) { return this.service.getByCountry(req.params.country) .then(function(countryLeagues) { return res.status(200).send(countryLeagues) }) .catch(function(err) { next(err) }) }; module.exports = LeagueHandler;
<?php /** * */ namespace Mvc5\Route\Match; use Mvc5\Arg; use Mvc5\Http\Request; use Mvc5\Route\Route; use function array_merge; class Merge { /** * @param Route $route * @param Route $parent * @param array $config * @return Route */ protected function merge(Route $route, Route $parent, array $config = []) : Route { ($options = $parent->options()) && $config[Arg::OPTIONS] = $route->options() + $options; ($middleware = $parent[Arg::MIDDLEWARE]) && $config[Arg::MIDDLEWARE] = array_merge($middleware, $route[Arg::MIDDLEWARE] ?? []); !isset($route[Arg::CSRF_TOKEN]) && isset($parent[Arg::CSRF_TOKEN]) && $config[Arg::CSRF_TOKEN] = $parent[Arg::CSRF_TOKEN]; !isset($route[Arg::AUTHENTICATE]) && isset($parent[Arg::AUTHENTICATE]) && $config[Arg::AUTHENTICATE] = $parent[Arg::AUTHENTICATE]; return $config ? $route->with($config) : $route; } /** * @param Route $route * @param Request $request * @param callable $next * @return Request|mixed */ function __invoke(Route $route, Request $request, callable $next) { return $next($route[Arg::PARENT] ? $this->merge($route, $route[Arg::PARENT]) : $route, $request); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ProgramTree; namespace SimpleLang.Visitors { public class CommonlyUsedVarVisitor : AutoVisitor { public string mostCommonlyUsedVar() { throw new NotImplementedException(); } } }
using System; namespace Zergatul.Security.Paddings { class PKCS7Padding : SymmetricPadding { public override byte[] GetPadding(int position, int blockSize) { if (position < 0 || position >= blockSize) throw new InvalidOperationException(); byte[] padding = new byte[blockSize - position]; for (int i = 0; i < padding.Length; i++) padding[i] = (byte)padding.Length; return padding; } public override int RemovePadding(byte[] block, int offset, int length) { int fill = block[offset + length - 1]; if (fill > length) return -1; for (int i = offset + length - fill; i > offset + length; i++) if (block[i] != fill) return -1; return length - fill; } } }
namespace TraktApiSharp.Objects.Post.Syncs.Collection.Responses.Json.Writer { using Newtonsoft.Json; using Objects.Json; using Syncs.Responses.Json.Writer; using System; using System.Threading; using System.Threading.Tasks; internal class SyncCollectionRemovePostResponseObjectJsonWriter : AObjectJsonWriter<ITraktSyncCollectionRemovePostResponse> { public override async Task WriteObjectAsync(JsonTextWriter jsonWriter, ITraktSyncCollectionRemovePostResponse obj, CancellationToken cancellationToken = default) { if (jsonWriter == null) throw new ArgumentNullException(nameof(jsonWriter)); await jsonWriter.WriteStartObjectAsync(cancellationToken).ConfigureAwait(false); if (obj.Deleted != null) { var syncPostResponseGroupObjectJsonWriter = new SyncPostResponseGroupObjectJsonWriter(); await jsonWriter.WritePropertyNameAsync(JsonProperties.SYNC_COLLECTION_REMOVE_POST_RESPONSE_PROPERTY_NAME_DELETED, cancellationToken).ConfigureAwait(false); await syncPostResponseGroupObjectJsonWriter.WriteObjectAsync(jsonWriter, obj.Deleted, cancellationToken).ConfigureAwait(false); } if (obj.NotFound != null) { var syncCollectionPostResponseNotFoundGroupObjectJsonWriter = new SyncPostResponseNotFoundGroupObjectJsonWriter(); await jsonWriter.WritePropertyNameAsync(JsonProperties.SYNC_COLLECTION_REMOVE_POST_RESPONSE_PROPERTY_NAME_NOT_FOUND, cancellationToken).ConfigureAwait(false); await syncCollectionPostResponseNotFoundGroupObjectJsonWriter.WriteObjectAsync(jsonWriter, obj.NotFound, cancellationToken).ConfigureAwait(false); } await jsonWriter.WriteEndObjectAsync(cancellationToken).ConfigureAwait(false); } } }
// // PlayingCard.h // Matchismo // // Created by Horia Jurcut on 02/07/16. // Copyright © 2016 Horia Jurcut. All rights reserved. // #import <Foundation/Foundation.h> #import "Card.h" @interface PlayingCard : Card @property (strong, nonatomic) NSString *suit; @property (nonatomic) NSUInteger rank; + (NSArray *)validSuits; + (NSUInteger)maxRank; @end
app.controller('JoinGameController', function ($scope, $location, authorization, identity, ticTacToeData, notifier) { 'use strict'; $scope.joinGame = function (gameId) { if (identity.isAuthenticated() === true) { ticTacToeData.joinGame(authorization.getAuthorizationHeader(), gameId) .then(function () { notifier.success('Game joined!'); }, function () { notifier.error('Invalid data!'); }); } else { notifier.error('Please login!'); } }; $scope.joinRandomGame = function () { if (identity.isAuthenticated() === true) { ticTacToeData.joinRandomGame(authorization.getAuthorizationHeader()) .then(function () { notifier.success('Game joined!'); }); } else { notifier.error('Please login!'); } } });
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CityDemo")] [assembly: AssemblyProduct("CityDemo")] [assembly: AssemblyDescription("")] [assembly: AssemblyCompany("")] [assembly: AssemblyCopyright("Copyright © 2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. Only Windows // assemblies support COM. [assembly: ComVisible(false)] // On Windows, the following GUID is for the ID of the typelib if this // project is exposed to COM. On other platforms, it unique identifies the // title storage container when deploying this assembly to the device. [assembly: Guid("6e16bf7a-b58e-47dc-b233-a0c2e87ba3bb")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // [assembly: AssemblyVersion("1.0.0.0")]
-- ATIVIDADE 12.06.13 -- Desc: implementação dos XML SCHEMAS no SGDB. -- Autor: Lucas Oliveira David 407917 -- SGDB designado: DB2 -- INICIO DO BLOCO DE INICIALIZACAO DA BASE DE DADOS -- Retire o comentario da linha 12 apos a primeira execucao DROP DATABASE casaxml; CREATE DATABASE casaxml USING CODESET UTF-8 TERRITORY US; CONNECT TO casaxml; -- Retire o comentario das linhas abaixo apos a primeira execucao -- DROP TABLE tipo_funcionario; -- DROP TABLE pagamento_funcionario; -- DROP TABLE funcionario; -- FIM DO BLOCO DE INICIALIZACAO DA BASE DE DADOS -- INICIO DO BLOCO DE CRIACAO DA ESTRUTURA SQL CREATE TABLE tipo_funcionario ( id INTEGER NOT NULL PRIMARY KEY, conteudo XML ); CREATE TABLE funcionario ( id INTEGER NOT NULL PRIMARY KEY, tipo INTEGER, conteudo XML, FOREIGN KEY fk_func_tipo(tipo) REFERENCES tipo_funcionario ); CREATE TABLE pagamento_funcionario ( funcionario INTEGER NOT NULL, conteudo XML, FOREIGN KEY fkPagFunc(funcionario) REFERENCES funcionario ); -- FIM DO BLOCO DE CRIACAO DA ESTRUTURA SQ -- -- FIM DO ARQUIVO
# Inspired from VecEnv from OpenAI Baselines class VecEnv(object): """ An abstract asynchronous, vectorized environment. """ def __init__(self, num_envs, observation_space, action_space): self.num_envs = num_envs self.observation_space = observation_space self.action_space = action_space def reset(self): """ Reset all the environments and return an array of observations, or a tuple of observation arrays. If step_async is still doing work, that work will be cancelled and step_wait() should not be called until step_async() is invoked again. """ pass def step_async(self, actions): """ Tell all the environments to start taking a step with the given actions. Call step_wait() to get the results of the step. You should not call this if a step_async run is already pending. """ raise NotImplementedError() def step_wait(self): """ Wait for the step taken with step_async(). Returns (obs, rews, dones, infos): - obs: an array of observations, or a tuple of arrays of observations. - rews: an array of rewards - dones: an array of "episode done" booleans - infos: a sequence of info objects """ raise NotImplementedError() def close(self): """ Clean up the environments' resources. """ raise NotImplementedError() def step(self, actions): self.step_async(actions) return self.step_wait() def render(self, mode='human'): logger.warn('Render not defined for %s' % self) def seed(self, i): raise NotImplementedError() @property def unwrapped(self): if isinstance(self, VecEnvWrapper): return self.venv.unwrapped else: return self class CloudpickleWrapper(object): """ Uses cloudpickle to serialize contents (otherwise multiprocessing tries to use pickle) """ def __init__(self, x): self.x = x def __getstate__(self): import cloudpickle return cloudpickle.dumps(self.x) def __setstate__(self, ob): import pickle self.x = pickle.loads(ob)
# php-travelport-air-api PHP library for Travelport's Air Universal API Currently this is a work in progress.
/* The MIT License (MIT) * * Copyright (c) 2015 Reinventing Geospatial, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.rgi.suite.tilestoreadapter; import java.io.File; import java.util.Collection; import javax.swing.JComponent; import com.rgi.store.tiles.TileStoreException; import com.rgi.store.tiles.TileStoreReader; import com.rgi.store.tiles.TileStoreWriter; import com.rgi.suite.Settings; /** * Abstract base class for UI adapters for tile store writers * * @author Luke Lambert * */ public abstract class TileStoreWriterAdapter { /** * Constructor * * @param settings * Handle to the application's settings object */ public TileStoreWriterAdapter(final Settings settings) { this.settings = settings; } /** * Use an input file to hint at possible values for the UI elements * * @param inputFile * Input file * @throws TileStoreException * if there's a problem with the tile store */ public abstract void hint(final File inputFile) throws TileStoreException; /** * Provides UI elements to use as input to construct a tile store writer * * @return Returns a matrix of UI elements to build an input form that will * provide the inputs to build a corresponding tile store * writer */ public abstract Collection<Collection<JComponent>> getWriterParameterControls(); /** * Constructs a tile store writer based on the values of the UI elements * * @param tileStoreReader * Tile store reader that may be required to know how to build * a tile scheme for our new tile store writer * @return A {@link TileStoreWriter} * @throws TileStoreException * if construction of the tile store reader fails */ public abstract TileStoreWriter getTileStoreWriter(final TileStoreReader tileStoreReader) throws TileStoreException; /** * In the case of a failed tile store operation (e.g. packaging, or tiling) * call this method to clean up the process started by calling {@link * #getTileStoreWriter(TileStoreReader)} * * @throws TileStoreException * if tile store removal fails */ public abstract void removeStore() throws TileStoreException; protected final Settings settings; }
import http from 'node:http'; import {expectType} from 'tsd'; import decompressResponse, {UncompressedIncomingMessage} from './index.js'; http.get('localhost', response => { expectType<UncompressedIncomingMessage>(decompressResponse(response)); });
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "addressbookpage.h" #include "ui_addressbookpage.h" #include "addresstablemodel.h" #include "bitcoingui.h" #include "csvmodelwriter.h" #include "editaddressdialog.h" #include "guiutil.h" #include "platformstyle.h" #include <QIcon> #include <QMenu> #include <QMessageBox> #include <QSortFilterProxyModel> AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent) : QDialog(parent), ui(new Ui::AddressBookPage), model(0), mode(mode), tab(tab) { ui->setupUi(this); if (!platformStyle->getImagesOnButtons()) { ui->newAddress->setIcon(QIcon()); ui->copyAddress->setIcon(QIcon()); ui->deleteAddress->setIcon(QIcon()); ui->exportButton->setIcon(QIcon()); } else { ui->newAddress->setIcon(platformStyle->SingleColorIcon(":/icons/add")); ui->copyAddress->setIcon(platformStyle->SingleColorIcon(":/icons/editcopy")); ui->deleteAddress->setIcon(platformStyle->SingleColorIcon(":/icons/remove")); ui->exportButton->setIcon(platformStyle->SingleColorIcon(":/icons/export")); } switch(mode) { case ForSelection: switch(tab) { case SendingTab: setWindowTitle(tr("Choose the address to send coins to")); break; case ReceivingTab: setWindowTitle(tr("Choose the address to receive coins with")); break; } connect(ui->tableView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(accept())); ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers); ui->tableView->setFocus(); ui->closeButton->setText(tr("C&hoose")); ui->exportButton->hide(); break; case ForEditing: switch(tab) { case SendingTab: setWindowTitle(tr("Sending addresses")); break; case ReceivingTab: setWindowTitle(tr("Receiving addresses")); break; } break; } switch(tab) { case SendingTab: ui->labelExplanation->setText(tr("These are your Aurumcoin address for sending payments. Always check the amount and the receiving address before sending coins.")); ui->deleteAddress->setVisible(true); break; case ReceivingTab: ui->labelExplanation->setText(tr("These are your Aurumcoin address for receiving payments. It is recommended to use a new receiving address for each transaction.")); ui->deleteAddress->setVisible(false); break; } // Context menu actions QAction *copyAddressAction = new QAction(tr("&Copy Address"), this); QAction *copyLabelAction = new QAction(tr("Copy &Label"), this); QAction *editAction = new QAction(tr("&Edit"), this); deleteAction = new QAction(ui->deleteAddress->text(), this); // Build context menu contextMenu = new QMenu(); contextMenu->addAction(copyAddressAction); contextMenu->addAction(copyLabelAction); contextMenu->addAction(editAction); if(tab == SendingTab) contextMenu->addAction(deleteAction); contextMenu->addSeparator(); // Connect signals for context menu actions connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(on_copyAddress_clicked())); connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(onCopyLabelAction())); connect(editAction, SIGNAL(triggered()), this, SLOT(onEditAction())); connect(deleteAction, SIGNAL(triggered()), this, SLOT(on_deleteAddress_clicked())); connect(ui->tableView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint))); connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(accept())); } AddressBookPage::~AddressBookPage() { delete ui; } void AddressBookPage::setModel(AddressTableModel *model) { this->model = model; if(!model) return; proxyModel = new QSortFilterProxyModel(this); proxyModel->setSourceModel(model); proxyModel->setDynamicSortFilter(true); proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive); proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); switch(tab) { case ReceivingTab: // Receive filter proxyModel->setFilterRole(AddressTableModel::TypeRole); proxyModel->setFilterFixedString(AddressTableModel::Receive); break; case SendingTab: // Send filter proxyModel->setFilterRole(AddressTableModel::TypeRole); proxyModel->setFilterFixedString(AddressTableModel::Send); break; } ui->tableView->setModel(proxyModel); ui->tableView->sortByColumn(0, Qt::AscendingOrder); // Set column widths #if QT_VERSION < 0x050000 ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Label, QHeaderView::Stretch); ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents); #else ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Label, QHeaderView::Stretch); ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents); #endif connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(selectionChanged())); // Select row for newly created address connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(selectNewAddress(QModelIndex,int,int))); selectionChanged(); } void AddressBookPage::on_copyAddress_clicked() { GUIUtil::copyEntryData(ui->tableView, AddressTableModel::Address); } void AddressBookPage::onCopyLabelAction() { GUIUtil::copyEntryData(ui->tableView, AddressTableModel::Label); } void AddressBookPage::onEditAction() { if(!model) return; if(!ui->tableView->selectionModel()) return; QModelIndexList indexes = ui->tableView->selectionModel()->selectedRows(); if(indexes.isEmpty()) return; EditAddressDialog dlg( tab == SendingTab ? EditAddressDialog::EditSendingAddress : EditAddressDialog::EditReceivingAddress, this); dlg.setModel(model); QModelIndex origIndex = proxyModel->mapToSource(indexes.at(0)); dlg.loadRow(origIndex.row()); dlg.exec(); } void AddressBookPage::on_newAddress_clicked() { if(!model) return; EditAddressDialog dlg( tab == SendingTab ? EditAddressDialog::NewSendingAddress : EditAddressDialog::NewReceivingAddress, this); dlg.setModel(model); if(dlg.exec()) { newAddressToSelect = dlg.getAddress(); } } void AddressBookPage::on_deleteAddress_clicked() { QTableView *table = ui->tableView; if(!table->selectionModel()) return; QModelIndexList indexes = table->selectionModel()->selectedRows(); if(!indexes.isEmpty()) { table->model()->removeRow(indexes.at(0).row()); } } void AddressBookPage::selectionChanged() { // Set button states based on selected tab and selection QTableView *table = ui->tableView; if(!table->selectionModel()) return; if(table->selectionModel()->hasSelection()) { switch(tab) { case SendingTab: // In sending tab, allow deletion of selection ui->deleteAddress->setEnabled(true); ui->deleteAddress->setVisible(true); deleteAction->setEnabled(true); break; case ReceivingTab: // Deleting receiving addresses, however, is not allowed ui->deleteAddress->setEnabled(false); ui->deleteAddress->setVisible(false); deleteAction->setEnabled(false); break; } ui->copyAddress->setEnabled(true); } else { ui->deleteAddress->setEnabled(false); ui->copyAddress->setEnabled(false); } } void AddressBookPage::done(int retval) { QTableView *table = ui->tableView; if(!table->selectionModel() || !table->model()) return; // Figure out which address was selected, and return it QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); Q_FOREACH (const QModelIndex& index, indexes) { QVariant address = table->model()->data(index); returnValue = address.toString(); } if(returnValue.isEmpty()) { // If no address entry selected, return rejected retval = Rejected; } QDialog::done(retval); } void AddressBookPage::on_exportButton_clicked() { // CSV is currently the only supported format QString filename = GUIUtil::getSaveFileName(this, tr("Export Address List"), QString(), tr("Comma separated file (*.csv)"), NULL); if (filename.isNull()) return; CSVModelWriter writer(filename); // name, column, role writer.setModel(proxyModel); writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole); writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole); if(!writer.write()) { QMessageBox::critical(this, tr("Exporting Failed"), tr("There was an error trying to save the address list to %1. Please try again.").arg(filename)); } } void AddressBookPage::contextualMenu(const QPoint &point) { QModelIndex index = ui->tableView->indexAt(point); if(index.isValid()) { contextMenu->exec(QCursor::pos()); } } void AddressBookPage::selectNewAddress(const QModelIndex &parent, int begin, int /*end*/) { QModelIndex idx = proxyModel->mapFromSource(model->index(begin, AddressTableModel::Address, parent)); if(idx.isValid() && (idx.data(Qt::EditRole).toString() == newAddressToSelect)) { // Select row of newly created address, once ui->tableView->setFocus(); ui->tableView->selectRow(idx.row()); newAddressToSelect.clear(); } }
# Be sure to restart your server when you modify this file. GenieacsGui::Application.config.session_store :cookie_store, key: '_genieacs-gui_session'
# MITH Research Explorer Data A WordPress plugin for exporting MITH's Research Projects as JSON for use in the [MITH Research Explorer]. You will want to clone this GitHub repository into your WordPress `wp-content/mu-plugins` directory, and then visit: * https://mith.umd.edu/wp-content/mu-plugins/mith-research-explorer-data/projects.json * https://mith.umd.edu/wp-content/mu-plugins/mith-research-explorer-data/topics.json [MITH Research Explorer]: https://github.com/umd-mith/mith-research-explorer
<!DOCTYPE html> <html lang="zh-CN,en,default"> <!-- Head tag --> <head><meta name="generator" content="Hexo 3.9.0"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--Description--> <meta name="description" content="A shelter for a lazy and terrible programmer, loving photograph and travelling!"> <!--Author--> <meta name="author" content="Haoxuan (Horace) Wang"> <!--Open Graph Title--> <meta property="og:title" content="写在2020的第一天"> <!--Open Graph Description--> <meta property="og:description" content="A shelter for a lazy and terrible programmer, loving photograph and travelling!"> <!--Open Graph Site Name--> <meta property="og:site_name" content="贝壳小屋"> <!--Type page--> <meta property="og:type" content="article"> <!--Page Cover--> <meta name="twitter:card" content="summary"> <!-- Title --> <title>写在2020的第一天 - 贝壳小屋</title> <!-- Bootstrap Core CSS --> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link rel="stylesheet" href="/css/style.css"> <!-- Custom Fonts --> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <!-- Gallery --> <link href="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.3.5/featherlight.min.css" type="text/css" rel="stylesheet"> <!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-79915174-1', 'auto'); ga('send', 'pageview'); </script> <!-- favicon --> <!-- mathjax support for latex math --> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true }, TeX: { Macros: { '\\_': '_' } } }); </script> <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> </head> <body> <!-- Menu --> <!-- Navigation --> <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">Shell Cottage</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li> <a href="/"> Home </a> </li> <li> <a href="/archives"> Archives </a> </li> <li> <a href="/categories"> Categories </a> </li> <li> <a href="/about"> About ME </a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> <!-- Main Content --> <!-- Page Header --> <!-- Set your background image for this header in your post front-matter: cover --> <header class="intro-header" style="background-image: url('https://source.unsplash.com/category/nature/2000x800?dark'), url('https://api.towdium.me/unsplash/source/category/nature/2000x800?dark')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="post-heading"> <h1>写在2020的第一天</h1> <span class="meta"> <!-- Date and Author --> Posted by Haoxuan (Horace) on 2020-01-01 </span> <!-- Tags and categories --> <!--<div class="col-lg-4 col-lg-offset-2 col-md-5 col-md-offset-1 post-tags">--> <div class="post-tags"> <a href="/tags/随手记/">#随手记</a> </div> <!-- <div class="col-lg-4 col-md-5 post-categories"> <a href="/categories/experience/" style="float: right">experience</a> </div>--> </div> </div> </div> </div> </header> <!-- Post Content --> <article> <div class="container"> <div class="row"> <!-- Gallery --> <!-- Post Main Content --> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <p>老实讲我也不知道为什么要写这篇东西,大概是因为睡不着觉吧。人睡不着的时候,脑子里多半是在想些东西的。鲁迅说,人总是想的太多而做的太少(鲁迅:我没说过)。老实说,一开始只打算在这个site谈论技术的,不然大概又会变成另一个QQ空间什么的。大概是最近生活太过自闭的缘故才促使我开始了<code>git clone</code>然后敲起了键盘开始敲这篇随笔…这种自闭的感觉大概是每一个在自己成为绝对少数派的环境里的自我保护吧。我想正在读这段文字的读者,如果在国外学习工作过,周围又非大厂或者聚集着一群中国留学生的情境下,便能够真切的体会我在说什么。我在英国小镇上的感受便如是。倘若您没有类似的体验,最确切的描述便如沙漠里的树苗或者从鱼塘捞出来的放进水池里的鱼,文化上的割离是最深刻的。 </p> <p>见过现实生活里太多的各种大佬,自我深知自己只是一个普通人,便不会对自己“失败的”境遇抱怨太多。做梦幻想的工作有三点特征,能学习到新的东西并且是自己感兴趣的方向;不加班且假期多;工资不太低能养活自己 – 这大概构成了另外的一个不可能三角。国内互联网大多可以满足第一和第三,而国外的SDE大多只满足后两项。当然了,归根揭底还是自己太菜了,空有抱负而疏于行动,整天投简历但懒得刷题看论文,结果自然是不大理想。焦虑产生于实际情况与期望状态差异得到的loss,以及缺乏相应的梯度的导引;因而我们很难知道自己是不是陷入了一个鞍点,或者我们知道自己在鞍点上但却不知道下一步如何选择。如果人生是一个凸优化问题或者像RL那样可以重复许多次得到许多经验,那么地球online的难度便没有这么爆炸,我们大概也可以少些焦虑,多些confidence。</p> <p>其实2019于我来说,是收获的一年。至少算是入了SDE的行,体验了规范的工作的环境,拿到了自己的研究生学位,破了大厂面试0封的尴尬记录。虽然不知道接下来的一年的境况,但希望不会太惨。 </p> <p>今天另一件惊讶的事情是在朋友圈看到了同龄人的结婚证,母胎单身的我深感自己可能要孤独终老了哈哈哈。以前总说希望自己能脱单,一年一年时间久了这个ticket一次一次从一个spirit移到了下一个,后来自己都快忘了。随缘吧。</p> <p>如果您读到这里,请允许我由衷的向您表示感谢。感谢您愿意浪费一点时间读我这些乱七八糟的文字。由衷的希望您新的一年里平安喜乐,万事胜意。 </p> <p>2020年1月1日于茨纳福德</p> </div> <!-- Comments --> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <hr /> <h3>留言:</h3> <div id="container"></div> <script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/> <script> var gitment = new Gitment({ id: 'Wed Jan 01 2020 03:00:00 GMT+0000', owner: 'billweasley', repo: 'billweasley.github.io', oauth: { client_id: '06199a23a20db6cd355e', client_secret: 'd58c16c76ab1b84dc65f24c25edcbc3974cc0a49', }, }) gitment.render('container') </script> </div> </div> </div> </article> <!-- Footer --> <hr /> <!-- Footer --> <footer> <div class="container"> <div class="row"> <h5 class="text-center">Friends</h5> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> <li> <a href="https://www.towdium.me/" target="_blank" style="text-decoration: none"> Towdium </a> </li> </ul> </div> </div> <hr /> <div class="row"> <h5 class="text-center">Contact Me</h5> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> <li> <a href="https://github.com/billweasley" target="_blank"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-github fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="https://www.linkedin.com/in/horace-haoxuan-wang" target="_blank"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-linkedin fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="mailto:billweasley20092@gmail.com" target="_blank"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-envelope-o fa-stack-1x fa-inverse"></i> </span> </a> </li> </ul> <p class="copyright text-muted">&copy; 2021 Haoxuan (Horace) Wang<br></p> <p class="copyright text-muted">Original Theme <a target="_blank" href="http://startbootstrap.com/template-overviews/clean-blog/">Clean Blog</a> from <a href="http://startbootstrap.com/" target="_blank">Start Bootstrap</a></p> <p class="copyright text-muted">Adapted for <a target="_blank" href="https://hexo.io/">Hexo</a> by <a href="http://www.codeblocq.com/" target="_blank">Jonathan Klughertz</a></p> </div> </div> </div> </footer> <!-- After footer scripts --> <!-- jQuery --> <script src="//code.jquery.com/jquery-2.1.4.min.js"></script> <!-- Bootstrap --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <!-- Gallery --> <script src="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.3.5/featherlight.min.js" type="text/javascript" charset="utf-8"></script> <!-- Disqus Comments --> </body> </html>
module FlipTheSwitch class Environment < Struct.new(:name, :features, :parent_name) def initialize(name, features = [], parent_name = nil) super(name, features, parent_name) end def has_parent? parent_name end end end
/****************************************************************************** * FILE: mpi_latency.c * DESCRIPTION: * MPI Latency Timing Program - C Version * In this example code, a MPI communication timing test is performed. * MPI task 0 will send "reps" number of 1 byte messages to MPI task 1, * waiting for a reply between each rep. Before and after timings are made * for each rep and an average calculated when completed. * AUTHOR: Blaise Barney * LAST REVISED: 04/13/05 ******************************************************************************/ #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #define NUMBER_REPS 1000 int main (int argc, char *argv[]) { int reps, /* number of samples per test */ tag, /* MPI message tag parameter */ numtasks, /* number of MPI tasks */ rank, /* my MPI task number */ dest, source, /* send/receive task designators */ avgT, /* average time per rep in microseconds */ rc, /* return code */ n; double T1, T2, /* start/end times per rep */ sumT, /* sum of all reps times */ deltaT; /* time for one rep */ char msg; /* buffer containing 1 byte message */ MPI_Status status; /* MPI receive routine parameter */ MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&numtasks); MPI_Comm_rank(MPI_COMM_WORLD,&rank); if (rank == 0 && numtasks != 2) { printf("Number of tasks = %d\n",numtasks); printf("Only need 2 tasks - extra will be ignored...\n"); } // MPI_Barrier(MPI_COMM_WORLD); sumT = 0; msg = 'x'; tag = 1; reps = NUMBER_REPS; if (rank == 0) { /* round-trip latency timing test */ printf("task %d has started...\n", rank); printf("Beginning latency timing test. Number of reps = %d.\n", reps); printf("***************************************************\n"); printf("Rep# T1 T2 deltaT\n"); dest = 1; source = 1; for (n = 1; n <= reps; n++) { T1 = MPI_Wtime(); /* start time */ /* send message to worker - message tag set to 1. */ /* If return code indicates error quit */ rc = MPI_Send(&msg, 1, MPI_BYTE, dest, tag, MPI_COMM_WORLD); if (rc != MPI_SUCCESS) { printf("Send error in task 0!\n"); MPI_Abort(MPI_COMM_WORLD, rc); exit(1); } /* Now wait to receive the echo reply from the worker */ /* If return code indicates error quit */ rc = MPI_Recv(&msg, 1, MPI_BYTE, source, tag, MPI_COMM_WORLD, &status); if (rc != MPI_SUCCESS) { printf("Receive error in task 0!\n"); MPI_Abort(MPI_COMM_WORLD, rc); exit(1); } T2 = MPI_Wtime(); /* end time */ /* calculate round trip time and print */ deltaT = T2 - T1; printf("%4d %8.8f %8.8f %2.8f\n", n, T1, T2, deltaT); sumT += deltaT; } avgT = (sumT*1000000)/reps; printf("***************************************************\n"); printf("\n*** Avg round trip time = %d microseconds\n", avgT); printf("*** Avg one way latency = %d microseconds\n", avgT/2); } else if (rank == 1) { printf("task %d has started...\n", rank); dest = 0; source = 0; for (n = 1; n <= reps; n++) { rc = MPI_Recv(&msg, 1, MPI_BYTE, source, tag, MPI_COMM_WORLD, &status); if (rc != MPI_SUCCESS) { printf("Receive error in task 1!\n"); MPI_Abort(MPI_COMM_WORLD, rc); exit(1); } rc = MPI_Send(&msg, 1, MPI_BYTE, dest, tag, MPI_COMM_WORLD); if (rc != MPI_SUCCESS) { printf("Send error in task 1!\n"); MPI_Abort(MPI_COMM_WORLD, rc); exit(1); } } } MPI_Finalize(); exit(0); }
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="MVC com CodeIgniter 3 e Bootstrap 3"> <meta name="author" content="Marcelo Garbin"> <title>PHP e MVC com CodeIgniter: Desenvolvimento Web com Framework</title> <!-- Bootstrap core CSS --> <link href="<?php echo base_url('assets/css/bootstrap.min.css'); ?>" rel="stylesheet"> <!-- Custom styles for this template --> <link href="<?php echo base_url('assets/css/style.css'); ?>" rel="stylesheet"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Fixed navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo base_url(); ?>"><span class="glyphicon glyphicon-fire"></span> PHP e MVC com CodeIgniter e Bootstrap</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="<?php echo base_url('sobre'); ?>"><span class="glyphicon glyphicon-star-empty"></span> Sobre</a></li> </ul> </div><!--/.nav-collapse --> </div> </nav> <!-- Begin page content --> <div class="container">
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { workbenchInstantiationService as browserWorkbenchInstantiationService, ITestInstantiationService, TestLifecycleService, TestFilesConfigurationService, TestFileService, TestFileDialogService, TestPathService } from 'vs/workbench/test/browser/workbenchTestServices'; import { Event } from 'vs/base/common/event'; import { ISharedProcessService } from 'vs/platform/ipc/electron-browser/sharedProcessService'; import { NativeWorkbenchEnvironmentService, INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-browser/environmentService'; import { NativeTextFileService, EncodingOracle, IEncodingOverride } from 'vs/workbench/services/textfile/electron-browser/nativeTextFileService'; import { IElectronService } from 'vs/platform/electron/node/electron'; import { INativeOpenDialogOptions } from 'vs/platform/dialogs/node/dialogs'; import { FileOperationError, IFileService } from 'vs/platform/files/common/files'; import { IUntitledTextEditorService } from 'vs/workbench/services/untitled/common/untitledTextEditorService'; import { ILifecycleService } from 'vs/platform/lifecycle/common/lifecycle'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { IModelService } from 'vs/editor/common/services/modelService'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService'; import { IDialogService, IFileDialogService } from 'vs/platform/dialogs/common/dialogs'; import { ITextResourceConfigurationService } from 'vs/editor/common/services/textResourceConfigurationService'; import { IProductService } from 'vs/platform/product/common/productService'; import { IFilesConfigurationService } from 'vs/workbench/services/filesConfiguration/common/filesConfigurationService'; import { ITextModelService } from 'vs/editor/common/services/resolverService'; import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'; import { URI } from 'vs/base/common/uri'; import { IReadTextFileOptions, ITextFileStreamContent, ITextFileService } from 'vs/workbench/services/textfile/common/textfiles'; import { createTextBufferFactoryFromStream } from 'vs/editor/common/model/textModel'; import { IOpenEmptyWindowOptions, IWindowOpenable, IOpenWindowOptions } from 'vs/platform/windows/common/windows'; import { parseArgs, OPTIONS } from 'vs/platform/environment/node/argv'; import { LogLevel, ILogService } from 'vs/platform/log/common/log'; import { IPathService } from 'vs/workbench/services/path/common/pathService'; import { IWorkingCopyFileService } from 'vs/workbench/services/workingCopy/common/workingCopyFileService'; import { UTF16le, UTF16be, UTF8_with_bom } from 'vs/base/node/encoding'; import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace'; import { ModelServiceImpl } from 'vs/editor/common/services/modelServiceImpl'; import { IBackupFileService } from 'vs/workbench/services/backup/common/backup'; import { NodeTestBackupFileService } from 'vs/workbench/services/backup/test/electron-browser/backupFileService.test'; import { IWorkingCopyService } from 'vs/workbench/services/workingCopy/common/workingCopyService'; import { IEditorService } from 'vs/workbench/services/editor/common/editorService'; import { INativeWindowConfiguration, IOpenedWindow } from 'vs/platform/windows/node/window'; import { TestContextService } from 'vs/workbench/test/common/workbenchTestServices'; export const TestWindowConfiguration: INativeWindowConfiguration = { windowId: 0, machineId: 'testMachineId', sessionId: 'testSessionId', logLevel: LogLevel.Error, mainPid: 0, partsSplashPath: '', appRoot: '', userEnv: {}, execPath: process.execPath, perfEntries: [], ...parseArgs(process.argv, OPTIONS) }; export const TestEnvironmentService = new NativeWorkbenchEnvironmentService(TestWindowConfiguration, process.execPath); export class TestTextFileService extends NativeTextFileService { private resolveTextContentError!: FileOperationError | null; constructor( @IFileService protected fileService: IFileService, @IUntitledTextEditorService untitledTextEditorService: IUntitledTextEditorService, @ILifecycleService lifecycleService: ILifecycleService, @IInstantiationService instantiationService: IInstantiationService, @IModelService modelService: IModelService, @IWorkbenchEnvironmentService environmentService: INativeWorkbenchEnvironmentService, @IDialogService dialogService: IDialogService, @IFileDialogService fileDialogService: IFileDialogService, @ITextResourceConfigurationService textResourceConfigurationService: ITextResourceConfigurationService, @IProductService productService: IProductService, @IFilesConfigurationService filesConfigurationService: IFilesConfigurationService, @ITextModelService textModelService: ITextModelService, @ICodeEditorService codeEditorService: ICodeEditorService, @IPathService athService: IPathService, @IWorkingCopyFileService workingCopyFileService: IWorkingCopyFileService, @ILogService logService: ILogService ) { super( fileService, untitledTextEditorService, lifecycleService, instantiationService, modelService, environmentService, dialogService, fileDialogService, textResourceConfigurationService, productService, filesConfigurationService, textModelService, codeEditorService, athService, workingCopyFileService, logService ); } setResolveTextContentErrorOnce(error: FileOperationError): void { this.resolveTextContentError = error; } async readStream(resource: URI, options?: IReadTextFileOptions): Promise<ITextFileStreamContent> { if (this.resolveTextContentError) { const error = this.resolveTextContentError; this.resolveTextContentError = null; throw error; } const content = await this.fileService.readFileStream(resource, options); return { resource: content.resource, name: content.name, mtime: content.mtime, ctime: content.ctime, etag: content.etag, encoding: 'utf8', value: await createTextBufferFactoryFromStream(content.value), size: 10 }; } } export class TestNativeTextFileServiceWithEncodingOverrides extends NativeTextFileService { private _testEncoding: TestEncodingOracle | undefined; get encoding(): TestEncodingOracle { if (!this._testEncoding) { this._testEncoding = this._register(this.instantiationService.createInstance(TestEncodingOracle)); } return this._testEncoding; } } class TestEncodingOracle extends EncodingOracle { protected get encodingOverrides(): IEncodingOverride[] { return [ { extension: 'utf16le', encoding: UTF16le }, { extension: 'utf16be', encoding: UTF16be }, { extension: 'utf8bom', encoding: UTF8_with_bom } ]; } protected set encodingOverrides(overrides: IEncodingOverride[]) { } } export class TestSharedProcessService implements ISharedProcessService { _serviceBrand: undefined; getChannel(channelName: string): any { return undefined; } registerChannel(channelName: string, channel: any): void { } async toggleSharedProcessWindow(): Promise<void> { } async whenSharedProcessReady(): Promise<void> { } } export class TestElectronService implements IElectronService { _serviceBrand: undefined; onWindowOpen: Event<number> = Event.None; onWindowMaximize: Event<number> = Event.None; onWindowUnmaximize: Event<number> = Event.None; onWindowFocus: Event<number> = Event.None; onWindowBlur: Event<number> = Event.None; windowCount = Promise.resolve(1); getWindowCount(): Promise<number> { return this.windowCount; } async getWindows(): Promise<IOpenedWindow[]> { return []; } async getActiveWindowId(): Promise<number | undefined> { return undefined; } openWindow(options?: IOpenEmptyWindowOptions): Promise<void>; openWindow(toOpen: IWindowOpenable[], options?: IOpenWindowOptions): Promise<void>; openWindow(arg1?: IOpenEmptyWindowOptions | IWindowOpenable[], arg2?: IOpenWindowOptions): Promise<void> { throw new Error('Method not implemented.'); } async toggleFullScreen(): Promise<void> { } async handleTitleDoubleClick(): Promise<void> { } async isMaximized(): Promise<boolean> { return true; } async maximizeWindow(): Promise<void> { } async unmaximizeWindow(): Promise<void> { } async minimizeWindow(): Promise<void> { } async focusWindow(options?: { windowId?: number | undefined; } | undefined): Promise<void> { } async showMessageBox(options: Electron.MessageBoxOptions): Promise<Electron.MessageBoxReturnValue> { throw new Error('Method not implemented.'); } async showSaveDialog(options: Electron.SaveDialogOptions): Promise<Electron.SaveDialogReturnValue> { throw new Error('Method not implemented.'); } async showOpenDialog(options: Electron.OpenDialogOptions): Promise<Electron.OpenDialogReturnValue> { throw new Error('Method not implemented.'); } async pickFileFolderAndOpen(options: INativeOpenDialogOptions): Promise<void> { } async pickFileAndOpen(options: INativeOpenDialogOptions): Promise<void> { } async pickFolderAndOpen(options: INativeOpenDialogOptions): Promise<void> { } async pickWorkspaceAndOpen(options: INativeOpenDialogOptions): Promise<void> { } async showItemInFolder(path: string): Promise<void> { } async setRepresentedFilename(path: string): Promise<void> { } async setDocumentEdited(edited: boolean): Promise<void> { } async openExternal(url: string): Promise<boolean> { return false; } async updateTouchBar(): Promise<void> { } async newWindowTab(): Promise<void> { } async showPreviousWindowTab(): Promise<void> { } async showNextWindowTab(): Promise<void> { } async moveWindowTabToNewWindow(): Promise<void> { } async mergeAllWindowTabs(): Promise<void> { } async toggleWindowTabsBar(): Promise<void> { } async relaunch(options?: { addArgs?: string[] | undefined; removeArgs?: string[] | undefined; } | undefined): Promise<void> { } async reload(): Promise<void> { } async closeWindow(): Promise<void> { } async closeWindowById(): Promise<void> { } async quit(): Promise<void> { } async openDevTools(options?: Electron.OpenDevToolsOptions | undefined): Promise<void> { } async toggleDevTools(): Promise<void> { } async startCrashReporter(options: Electron.CrashReporterStartOptions): Promise<void> { } async resolveProxy(url: string): Promise<string | undefined> { return undefined; } } export function workbenchInstantiationService(): ITestInstantiationService { const instantiationService = browserWorkbenchInstantiationService({ textFileService: insta => <ITextFileService>insta.createInstance(TestTextFileService), pathService: insta => <IPathService>insta.createInstance(TestNativePathService) }); instantiationService.stub(IElectronService, new TestElectronService()); return instantiationService; } export class TestServiceAccessor { constructor( @ILifecycleService public lifecycleService: TestLifecycleService, @ITextFileService public textFileService: TestTextFileService, @IFilesConfigurationService public filesConfigurationService: TestFilesConfigurationService, @IWorkspaceContextService public contextService: TestContextService, @IModelService public modelService: ModelServiceImpl, @IFileService public fileService: TestFileService, @IElectronService public electronService: TestElectronService, @IFileDialogService public fileDialogService: TestFileDialogService, @IBackupFileService public backupFileService: NodeTestBackupFileService, @IWorkingCopyService public workingCopyService: IWorkingCopyService, @IEditorService public editorService: IEditorService ) { } } export class TestNativePathService extends TestPathService { _serviceBrand: undefined; constructor(@IWorkbenchEnvironmentService environmentService: INativeWorkbenchEnvironmentService) { super(environmentService.userHome); } }
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateReportsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reports', function($table) { $table->increments('id'); $table->integer('user_id')->unsigned(); $table->string('ip_address', 45); //The one who reported... $table->text('reason'); $table->timestamps(); $table->softDeletes(); $table->foreign('user_id')->references('id')->on('users'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('reports'); } }
#include <iostream> using namespace std; main(){ char palavra[] = "."; cin.getline(palavra, 10, '\n'); // irá ler apenas 10 caracteres e vai ser delimitado até encontrar a quebra de linha cout << endl << palavra << endl; }
'use strict'; function Level(args) { if(!(this instanceof Level)) return new Level(args); this.context = args.context; this.player = args.player; this.gameplayObjects = args.gameplayObjects; this.outcomeListeners = []; this.finalMessageListeners = []; this.respawnInfoListeners = []; this.victoryMessages = args.victoryMessages; this.failureMessages = args.failureMessages; this.isPaused = true; this.isFinished = false; this.handleRespawnInfo(args.respawnInfo); this.player.setParentLevel(this); this.gameplayObjects.forEach(o => o.beginObservingPlayer(this.player)); } Level.prototype.draw = function() { this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); this.gameplayObjects.forEach(o => o.draw(this.context)); this.player.draw(this.context); } Level.prototype.update = function(dt) { this.player.update(dt); } Level.prototype.frame = function(dt) { this.update(dt); this.draw(); } Level.prototype.startGameLoop = function() { const gameLoopFrame = now => { if(!this.isPaused) { const dt = now - this.lastFrameTime; this.frame(dt); window.requestAnimationFrame(gameLoopFrame); } this.lastFrameTime = now; } this.isPaused = false; this.lastFrameTime = performance.now(); window.requestAnimationFrame(gameLoopFrame); } Level.prototype.pauseGameLoop = function() { this.isPaused = true; } Level.prototype.addOutcomeListener = function(listener) { this.outcomeListeners.push(listener); } Level.prototype.addFinalMessageListener = function(listener) { this.finalMessageListeners.push(listener); } Level.prototype.addRespawnInfoListener = function(listener) { this.respawnInfoListeners.push(listener); } Level.prototype.generateRespawnInfo = function() { return this.player.generateRespawnInfo(); } Level.prototype.handleRespawnInfo = function(respawnInfo) { this.player.handleRespawnInfo(respawnInfo); } Level.prototype.win = function() { this.finishWithOutcome(true); } Level.prototype.lose = function() { this.finishWithOutcome(false); } Level.prototype.finishWithOutcome = function(outcome) { if(this.isFinished) return; this.isFinished = true; this.pauseGameLoop(); this.player.stop(); this.outcomeListeners.forEach(listener => listener(outcome)); const finalMessage = this.getMessageForOutcome(outcome); this.finalMessageListeners.forEach(listener => listener(finalMessage)); if(!outcome) { const respawnInfo = this.generateRespawnInfo(); Object.freeze(respawnInfo); this.respawnInfoListeners.forEach(listener => listener(respawnInfo)); } } Level.prototype.getMessageForOutcome = function(outcome) { if(outcome) return mathUtils.randomArrayElement(this.victoryMessages); else return mathUtils.randomArrayElement(this.failureMessages); }
EGA2RGB = [ (0x00, 0x00, 0x00), (0x00, 0x00, 0xAA), (0x00, 0xAA, 0x00), (0x00, 0xAA, 0xAA), (0xAA, 0x00, 0x00), (0xAA, 0x00, 0xAA), (0xAA, 0x55, 0x00), (0xAA, 0xAA, 0xAA), (0x55, 0x55, 0x55), (0x55, 0x55, 0xFF), (0x55, 0xFF, 0x55), (0x55, 0xFF, 0xFF), (0xFF, 0x55, 0x55), (0xFF, 0x55, 0xFF), (0xFF, 0xFF, 0x55), (0xFF, 0xFF, 0xFF), ] def load_shapes(): shapes = [] bytes = open("ULT/SHAPES.EGA").read() for i in range(256): shape = [] for j in range(16): for k in range(8): d = ord(bytes[k + 8 * j + 128 * i]) a, b = divmod(d, 16) shape.append(EGA2RGB[a]) shape.append(EGA2RGB[b]) shapes.append(shape) return shapes
from django.apps import AppConfig class BallerShotCallerConfig(AppConfig): name = 'baller_shot_caller'
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: AssemblyTitle("PaVe")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("PaVe")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar // für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von // COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. [assembly: ComVisible(false)] // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird [assembly: Guid("b6e5fdd5-71de-45bd-932a-ace7dc3ade9f")] // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: // // Hauptversion // Nebenversion // Buildnummer // Revision // // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
#!/bin/bash dotnet restore dotnet publish -c Release -o out docker build -t docker-101:final -f ./Dockerfile.prod .
/* * defs.h * * Created on: Jul 4, 2016 * Author: kosmaz */ #ifndef DEFS_H_ #define DEFS_H_ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "lcd.h" //#define TEST #define F_CPU 12000000UL //External clock frequency 12 MHz #define HIGH 0x01 //8 bit value for 1 #define LOW 0x00 //8 bit value for 0 #define TRUE HIGH //define our own true variable since C doesn't come with one by default #define FALSE LOW //define our own false variable since C doesn't come with one by default #define BATTERY_LEVEL PA2 //Analog read pin for detecting voltage battery level #define BUZZER_ON PORTA |= (1 << PA3) //Turn ON buzzer #define BUZZER_OFF PORTA &= ~(1 << PA3) //Turn OFF buzzer #define EXTERNAL_POWER_AVAILABLE PINC & (1 << PC4) //input pin used to check the availability of external power supply #define BATTERY_CHARGE_ON PORTA |= (1 << PA1) //Enable battery charging from external power supply #define BATTERY_CHARGE_OFF PORTA &= ~(1 << PA1) //Disable battery charging from external power supply #define LOAD_SUPPLY_ON PORTA |= (1 << PA0) //Enable power supply to a connected load #define LOAD_SUPPLY_OFF PORTA &= ~(1 << PA0) //Disable power supply to a connected load #define ENABLE_LED(a) PORTC |= (1 << a) //enable or turn ON a LED bulb connected to pin a #define DISABLE_LED(a) PORTC &= ~(1 << a) //disable or turn OFF a LED bulb connected to pin a /*************** MATRIX KEYPAD MAPPING START **********************/ //this enables a PIN by sending a HIGH signal to it #define MATRIX_KEYPAD_OUTPUT_ENABLE(a) PORTB |= (1 << a) //this disables a PIN by sending a LOW signal to it #define MATRIX_KEYPAD_OUTPUT_DISABLE(b) PORTB &= ~(1 << b) //this is used to scan a PIN register to indicate when a the pin has been set HIGH from user interaction #define MATRIX_KEYPAD_INPUT_ENABLED(c) PINB & (1 << c) /************** MATRIX KEYPAD MAPPING ENG *************************/ #define DEFAULT_SOC_VALUE 50 //default SOC value to be used by the module (unit = %) #define BATTERY_MAX_VOLTAGE 12.0 //defines the maximum voltage of the battery in use (unit = V) #define LCDInit() {\ lcd_init();\ lcd_on();\ lcd_disable_blinking();\ lcd_disable_cursor();\ lcd_disable_autoscroll();\ } #define LCDClear() lcd_clear() #define LCDData(b) lcd_write(b) #define LCDWriteStringXY(x, y, msg) {\ lcd_set_cursor(x, y);\ lcd_puts(msg);\ } #define LCDWriteIntXY(x, y, val, fl) {\ lcd_set_cursor(x, y);\ LCDWriteInt(val,fl);\ } void LCDWriteInt(int val,unsigned int field_length) { /*************************************************************** This function writes a integer type value to LCD module Arguments: 1)int val : Value to print 2)unsigned int field_length :total length of field in which the value is printed must be between 1-5 if it is -1 the field length is no of digits in the val ****************************************************************/ char str[5] = {0, 0, 0, 0, 0}; int i = 4, j = 0; while(val) { str[i] = val % 10; val = val / 10; i--; } if(field_length == -1) while(str[j] == 0) j++; else j = 5 - field_length; if(val < 0) LCDData('-'); for(i = j; i < 5; i++) { LCDData(48 + str[i]); } } #endif /* DEFS_H_ */
package me.rbrickis.mojo.utils; public final class PrimitiveUtils { public static Object toPrimitiveNumber(Number number) { if (number instanceof Byte) { return number.byteValue(); } else if (number instanceof Long) { return number.longValue(); } else if (number instanceof Short) { return number.shortValue(); } else if (number instanceof Integer) { return number.intValue(); } else if (number instanceof Float) { return number.floatValue(); } else if (number instanceof Double) { return number.doubleValue(); } return 0; } public static Object toPrimitiveBoolean(Boolean booleans) { return booleans.booleanValue(); } }
package com.gpshub.api; import android.util.Log; import com.gpshub.utils.Preferences; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class AccountManager { private static final String TAG = AccountManager.class.getSimpleName(); public static final int RESULT_SUCCESS = 1; public static final int RESULT_WRONG_NUMBER = 2; public static final int RESULT_ERROR = 3; public static int login(String url, String driver_id) { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("company_hash", "qwerty")); nameValuePairs.add(new BasicNameValuePair("id", driver_id)); String paramString = URLEncodedUtils.format(nameValuePairs, "utf-8"); HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(url + "/actions/drivers.php?" + paramString); try { HttpResponse response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); String responseText = EntityUtils.toString(entity); Log.i(TAG, "login result: " + responseText); if ("OK".equals(responseText)) { Preferences.setServerUrl(url); Preferences.setDriverID(driver_id); return RESULT_SUCCESS; } } catch (IOException e) { return RESULT_ERROR; } return RESULT_WRONG_NUMBER; } public static void logout() { Preferences.wipeAccountSettings(); Log.i(TAG, "logout"); } public static boolean isLoggedIn() { String server_url = Preferences.getServerUrl(); String driver_id = Preferences.getDriverID(); Log.i(TAG, "logged in: server_url: " + server_url + ", driver_id: " + driver_id); return server_url != null && driver_id != null || Preferences.tryMigration(); } }
{% extends "layout.html" %} {% block body %} <div id="login" class="dialog"> <h2>Login</h2> {% if error %}<p class=error><strong>Error:</strong>{{ error }}</p>{% endif %} <form action="{{ url_for('login') }}" method=post> <p> <label for=email>Email:</label><br> <input type=email id=email name=email placeholder="john.doe@example.org" value="{{ email }}"> </p> <p> <label for=password>Password:</label><br> <input type=password id=password name=password placeholder="My secret..."> </p> <p> <button type=submit>Login</button> </p> </form> </div> <script> (function (){ // focus on email or password field var emailElem = document.getElementById('email'); var email = emailElem.getAttribute('value'); var pwElem = document.getElementById('password'); if (email) pwElem.focus(); else emailElem.focus(); })(); </script> {% endblock %}
/****************************************************************************** Copyright (c) 2014 Gorka Suárez García Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ #include "SaveManager.h" #include <System/File.h> #include <System/ForEach.h> #include <Menu/MenuManager.h> #include <Games/AlienParty/AlienManager.h> #include <Games/Checkers/CheckersManager.h> #include <Games/Checkers/CheckersSaveGames.h> #include <Games/Chess/ChessManager.h> #include <Games/Chess/ChessSaveGames.h> #include <Games/Puckman/PuckmanManager.h> #include <Games/Puckman/PuckmanGameData.h> #include <Games/Reversi/ReversiManager.h> #include <Games/Reversi/ReversiSaveGames.h> #include <Games/Snake/SnakeManager.h> #include <Games/Tetraminoes/TetraminoesManager.h> //******************************************************************************** // Defines //******************************************************************************** #define SAVE_DATA_PATH "savedata.bin" //******************************************************************************** // Static //******************************************************************************** bool SaveManager::SaveAfterChanges = true; //******************************************************************************** // InnerData //******************************************************************************** struct CheckersSaveData { CheckersSaveGames saves; }; struct ChessSaveData { ChessSaveGames saves; }; struct PuckmanSaveData { int highScore; }; struct ReversiSaveData { ReversiSaveGames saves; }; struct SnakeSaveData { SnakeManager::RankingArray ranking; }; struct TetraminoesSaveData { TetraminoesManager::RankingArray ranking; }; struct SaveManager::InnerData { // Fields CheckersSaveData checkers; ChessSaveData chess; PuckmanSaveData puckman; ReversiSaveData reversi; SnakeSaveData snake; TetraminoesSaveData tetraminoes; // Methods void Reset(); void Load(); void Save(); }; //-------------------------------------------------------------------------------- void SaveManager::InnerData::Reset() { //SnakeSaveData for (int i = 0; i < SnakeManager::MAX_RANKING_ENTRIES; ++i) { snake.ranking[i] = SnakeManager::RankingEntry(); } //TetraminoesSaveData for (int i = 0; i < TetraminoesManager::MAX_RANKING_ENTRIES; ++i) { tetraminoes.ranking[i] = TetraminoesManager::RankingEntry(); } //CheckersSaveData for (int i = 0; i < CheckersSaveGames::MAX_ENTRIES; ++i) { checkers.saves.data_[i] = CheckersSaveGames::Entry(); } //ReversiSaveData for (int i = 0; i < ReversiSaveGames::MAX_ENTRIES; ++i) { reversi.saves.data_[i] = ReversiSaveGames::Entry(); } //ChessSaveData for (int i = 0; i < ChessSaveGames::MAX_ENTRIES; ++i) { chess.saves.data_[i] = ChessSaveGames::Entry(); } //PuckmanSaveData puckman.highScore = 0; } //-------------------------------------------------------------------------------- void SaveManager::InnerData::Load() { try { File file; if (file.OpenForRead(SAVE_DATA_PATH)) { //SnakeSaveData for (int i = 0; i < SnakeManager::MAX_RANKING_ENTRIES; ++i) { file.Read(snake.ranking[i].Name); file.Read(snake.ranking[i].Score); } //TetraminoesSaveData for (int i = 0; i < TetraminoesManager::MAX_RANKING_ENTRIES; ++i) { file.Read(tetraminoes.ranking[i].Name); file.Read(tetraminoes.ranking[i].Score); } //CheckersSaveData for (int i = 0; i < CheckersSaveGames::MAX_ENTRIES; ++i) { file.Read(checkers.saves.data_[i].used); file.Read(checkers.saves.data_[i].name); file.Read(checkers.saves.data_[i].data.singlePlayer_); file.Read(checkers.saves.data_[i].data.difficulty_); file.Read(checkers.saves.data_[i].data.playerSide_); file.Read(checkers.saves.data_[i].data.winner_); file.Read(checkers.saves.data_[i].data.turn_); file.Read(checkers.saves.data_[i].data.nextPieceToMove_.x); file.Read(checkers.saves.data_[i].data.nextPieceToMove_.y); checkers.saves.data_[i].data.ForEachInBoard([&] (int, int r, int c) { file.Read(checkers.saves.data_[i].data.board_[r][c]); }); int candidatesSize = 0; file.Read(candidatesSize); checkers.saves.data_[i].data.candidates_.clear(); for (int j = 0; j < candidatesSize; ++j) { sf::Vector2i candidate; file.Read(candidate.x); file.Read(candidate.y); checkers.saves.data_[i].data.candidates_.push_back(candidate); } } //ReversiSaveData for (int i = 0; i < ReversiSaveGames::MAX_ENTRIES; ++i) { file.Read(reversi.saves.data_[i].used); file.Read(reversi.saves.data_[i].name); file.Read(reversi.saves.data_[i].data.singlePlayer_); file.Read(reversi.saves.data_[i].data.difficulty_); file.Read(reversi.saves.data_[i].data.playerSide_); file.Read(reversi.saves.data_[i].data.winner_); file.Read(reversi.saves.data_[i].data.turn_); file.Read(reversi.saves.data_[i].data.beginningState_); file.Read(reversi.saves.data_[i].data.whiteSideBlocked_); file.Read(reversi.saves.data_[i].data.blackSideBlocked_); reversi.saves.data_[i].data.ForEachInBoard([&] (int, int r, int c) { file.Read(reversi.saves.data_[i].data.board_[r][c]); }); int candidatesSize = 0; file.Read(candidatesSize); reversi.saves.data_[i].data.candidates_.clear(); for (int j = 0; j < candidatesSize; ++j) { sf::Vector2i candidate; file.Read(candidate.x); file.Read(candidate.y); reversi.saves.data_[i].data.candidates_.push_back(candidate); } } //ChessSaveData for (int i = 0; i < ChessSaveGames::MAX_ENTRIES; ++i) { file.Read(chess.saves.data_[i].used); file.Read(chess.saves.data_[i].name); file.Read(chess.saves.data_[i].data.singlePlayer_); file.Read(chess.saves.data_[i].data.difficulty_); file.Read(chess.saves.data_[i].data.playerSide_); file.Read(chess.saves.data_[i].data.winner_); file.Read(chess.saves.data_[i].data.turn_); file.Read(chess.saves.data_[i].data.whiteCheck_); file.Read(chess.saves.data_[i].data.blackCheck_); chess.saves.data_[i].data.ForEachInPieces( [&] (ChessGameData::Piece &, int idx) { file.Read(chess.saves.data_[i].data.pieces_[idx]); } ); } //PuckmanSaveData file.Read(puckman.highScore); file.Close(); } else { Reset(); } } catch (...) { Reset(); } } //-------------------------------------------------------------------------------- void SaveManager::InnerData::Save() { try { File file; if (file.OpenForWrite(SAVE_DATA_PATH)) { //SnakeSaveData for (int i = 0; i < SnakeManager::MAX_RANKING_ENTRIES; ++i) { file.Write(snake.ranking[i].Name); file.Write(snake.ranking[i].Score); } //TetraminoesSaveData for (int i = 0; i < TetraminoesManager::MAX_RANKING_ENTRIES; ++i) { file.Write(tetraminoes.ranking[i].Name); file.Write(tetraminoes.ranking[i].Score); } //CheckersSaveData for (int i = 0; i < CheckersSaveGames::MAX_ENTRIES; ++i) { file.Write(checkers.saves.data_[i].used); file.Write(checkers.saves.data_[i].name); file.Write(checkers.saves.data_[i].data.singlePlayer_); file.Write(checkers.saves.data_[i].data.difficulty_); file.Write(checkers.saves.data_[i].data.playerSide_); file.Write(checkers.saves.data_[i].data.winner_); file.Write(checkers.saves.data_[i].data.turn_); file.Write(checkers.saves.data_[i].data.nextPieceToMove_.x); file.Write(checkers.saves.data_[i].data.nextPieceToMove_.y); checkers.saves.data_[i].data.ForEachInBoard([&] (int item, int, int) { file.Write(item); }); int candidatesSize = checkers.saves.data_[i].data.candidates_.size(); file.Write(candidatesSize); for (int j = 0; j < candidatesSize; ++j) { file.Write(checkers.saves.data_[i].data.candidates_[j].x); file.Write(checkers.saves.data_[i].data.candidates_[j].y); } } //ReversiSaveData for (int i = 0; i < ReversiSaveGames::MAX_ENTRIES; ++i) { file.Write(reversi.saves.data_[i].used); file.Write(reversi.saves.data_[i].name); file.Write(reversi.saves.data_[i].data.singlePlayer_); file.Write(reversi.saves.data_[i].data.difficulty_); file.Write(reversi.saves.data_[i].data.playerSide_); file.Write(reversi.saves.data_[i].data.winner_); file.Write(reversi.saves.data_[i].data.turn_); file.Write(reversi.saves.data_[i].data.beginningState_); file.Write(reversi.saves.data_[i].data.whiteSideBlocked_); file.Write(reversi.saves.data_[i].data.blackSideBlocked_); reversi.saves.data_[i].data.ForEachInBoard([&] (int item, int, int) { file.Write(item); }); int candidatesSize = reversi.saves.data_[i].data.candidates_.size(); file.Write(candidatesSize); for (int j = 0; j < candidatesSize; ++j) { file.Write(reversi.saves.data_[i].data.candidates_[j].x); file.Write(reversi.saves.data_[i].data.candidates_[j].y); } } //ChessSaveData for (int i = 0; i < ChessSaveGames::MAX_ENTRIES; ++i) { file.Write(chess.saves.data_[i].used); file.Write(chess.saves.data_[i].name); file.Write(chess.saves.data_[i].data.singlePlayer_); file.Write(chess.saves.data_[i].data.difficulty_); file.Write(chess.saves.data_[i].data.playerSide_); file.Write(chess.saves.data_[i].data.winner_); file.Write(chess.saves.data_[i].data.turn_); file.Write(chess.saves.data_[i].data.whiteCheck_); file.Write(chess.saves.data_[i].data.blackCheck_); chess.saves.data_[i].data.ForEachInPieces( [&] (ChessGameData::Piece &, int idx) { file.Write(chess.saves.data_[i].data.pieces_[idx]); } ); } //PuckmanSaveData file.Write(puckman.highScore); file.Close(); } } catch (...) { } } //******************************************************************************** // Methods //******************************************************************************** void SaveManager::Initialize() { if (!initialized_) { data_.reset(new InnerData()); data_->Load(); initialized_ = true; } } //-------------------------------------------------------------------------------- void SaveManager::Release() { if (initialized_) { if (data_) { data_->Save(); data_.reset(nullptr); } initialized_ = false; } } //******************************************************************************** // Checkers Methods //******************************************************************************** void SaveManager::CheckersLoad() { auto * manager = CheckersManager::Instance(); auto & saves = manager->Saves(); saves = data_->checkers.saves; } //-------------------------------------------------------------------------------- void SaveManager::CheckersSave() { auto * manager = CheckersManager::Instance(); data_->checkers.saves = manager->Saves(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Chess Methods //******************************************************************************** void SaveManager::ChessLoad() { auto * manager = ChessManager::Instance(); auto & saves = manager->Saves(); saves = data_->chess.saves; } //-------------------------------------------------------------------------------- void SaveManager::ChessSave() { auto * manager = ChessManager::Instance(); data_->chess.saves = manager->Saves(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Puckman Methods //******************************************************************************** void SaveManager::PuckmanLoad() { auto * manager = Puckman::Manager::Instance(); manager->DataInstance()->HighScore(data_->puckman.highScore); } //-------------------------------------------------------------------------------- void SaveManager::PuckmanSave() { auto * manager = Puckman::Manager::Instance(); data_->puckman.highScore = manager->DataInstance()->HighScore(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Reversi Methods //******************************************************************************** void SaveManager::ReversiLoad() { auto * manager = ReversiManager::Instance(); auto & saves = manager->Saves(); saves = data_->reversi.saves; } //-------------------------------------------------------------------------------- void SaveManager::ReversiSave() { auto * manager = ReversiManager::Instance(); data_->reversi.saves = manager->Saves(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Snake Methods //******************************************************************************** void SaveManager::SnakeLoad() { auto * manager = SnakeManager::Instance(); auto & ranking = manager->Ranking(); ranking = data_->snake.ranking; } //-------------------------------------------------------------------------------- void SaveManager::SnakeSave() { auto * manager = SnakeManager::Instance(); data_->snake.ranking = manager->Ranking(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Tetraminoes Methods //******************************************************************************** void SaveManager::TetraminoesLoad() { auto * manager = TetraminoesManager::Instance(); auto & ranking = manager->Ranking(); ranking = data_->tetraminoes.ranking; } //-------------------------------------------------------------------------------- void SaveManager::TetraminoesSave() { auto * manager = TetraminoesManager::Instance(); data_->tetraminoes.ranking = manager->Ranking(); if (SaveAfterChanges) { data_->Save(); } } //******************************************************************************** // Singleton pattern ( http://en.wikipedia.org/wiki/Singleton_pattern ) //******************************************************************************** /** * The main instance of the class. */ SaveManager * SaveManager::instance_ = nullptr; //-------------------------------------------------------------------------------- /** * Constructs a new object. */ SaveManager::SaveManager() : initialized_(false), data_(nullptr) {} //-------------------------------------------------------------------------------- /** * The destructor of the object. */ SaveManager::~SaveManager() {} //-------------------------------------------------------------------------------- /** * Gets the main instance of the class. */ SaveManager * SaveManager::Instance() { if (!instance_) { instance_ = new SaveManager(); } return instance_; } //-------------------------------------------------------------------------------- /** * Gets the main instance of the class. */ SaveManager & SaveManager::Reference() { return *(Instance()); }
# frozen_string_literal: true require "spec_helper" describe "Get type information" do context "when etag not set" do before { VCR.insert_cassette "esi/universe/types/192" } after { VCR.eject_cassette } let(:options) { {id: 192, language: "en-us"} } subject { EveOnline::ESI::UniverseType.new(options) } specify { expect(subject.scope).to eq(nil) } specify { expect(subject.not_modified?).to eq(false) } specify do expect(subject.as_json).to eq(capacity: 0.0, description: "Medium Projectile Ammo. This ammo uses a similar plasma containment core as hybrid charges except that it is mounted in a standard cannon shell.\r\n\r\n50% reduced optimal range.", graphic_id: 1297, group_id: 83, icon_id: 1297, market_group_id: 112, mass: 1.0, name: "Phased Plasma M", packaged_volume: 0.0125, portion_size: 100, published: true, radius: 1.0, type_id: 192, volume: 0.0125) end specify { expect(subject.dogma_attributes.size).to eq(17) } specify { expect(subject.dogma_attributes.first.as_json).to eq(attribute_id: 128, value: 2.0) } specify { expect(subject.dogma_effects.size).to eq(3) } specify { expect(subject.dogma_effects.first.as_json).to eq(effect_id: 596, is_default: false) } specify { expect(subject.etag).to eq("37a39e7a5f5ecc07b19a3128c319f1198d035aee10052d0a21ccdd94") } specify { expect(subject.error_limit_remain).to eq(100) } specify { expect(subject.error_limit_reset).to eq(30) } end context "when etag is set" do let(:options) do { id: 192, language: "en-us", etag: "37a39e7a5f5ecc07b19a3128c319f1198d035aee10052d0a21ccdd94" } end before { VCR.insert_cassette "esi/universe/types/192_with_etag" } after { VCR.eject_cassette } subject { EveOnline::ESI::UniverseType.new(options) } specify { expect(subject.not_modified?).to eq(true) } specify { expect(subject.etag).to eq("37a39e7a5f5ecc07b19a3128c319f1198d035aee10052d0a21ccdd94") } specify { expect(subject.error_limit_remain).to eq(100) } specify { expect(subject.error_limit_reset).to eq(18) } end end
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateAbsensisTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('absensis', function(Blueprint $table) { $table->increments('id'); $table->string(' kd_karyawan'); $table->string('kd_absen'); $table->date('tanggal'); $table->string('cuti'); $table->string('ijin'); $table->string('sakit'); $table->string ('alpha'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('absensis'); } }
/* Simple DirectMedia Layer Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /** * \file SDL_gamecontroller.h * * Include file for SDL game controller event handling */ #ifndef _SDL_gamecontroller_h #define _SDL_gamecontroller_h #include "SDL_stdinc.h" #include "SDL_error.h" #include "SDL_rwops.h" #include "SDL_joystick.h" #include "begin_code.h" /* Set up for C function definitions, even when using C++ */ #ifdef __cplusplus extern "C" { #endif /** * \file SDL_gamecontroller.h * * In order to use these functions, SDL_Init() must have been called * with the ::SDL_INIT_JOYSTICK flag. This causes SDL to scan the system * for game controllers, and load appropriate drivers. * * If you would like to receive controller updates while the application * is in the background, you should set the following hint before calling * SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS */ /* The gamecontroller structure used to identify an SDL game controller */ struct _SDL_GameController; typedef struct _SDL_GameController SDL_GameController; typedef enum { SDL_CONTROLLER_BINDTYPE_NONE = 0, SDL_CONTROLLER_BINDTYPE_BUTTON, SDL_CONTROLLER_BINDTYPE_AXIS, SDL_CONTROLLER_BINDTYPE_HAT } SDL_GameControllerBindType; /** * Get the SDL joystick layer binding for this controller button/axis mapping */ typedef struct SDL_GameControllerButtonBind { SDL_GameControllerBindType bindType; union { int button; int axis; struct { int hat; int hat_mask; } hat; } value; } SDL_GameControllerButtonBind; /** * To count the number of game controllers in the system for the following: * int nJoysticks = SDL_NumJoysticks(); * int nGameControllers = 0; * for ( int i = 0; i < nJoysticks; i++ ) { * if ( SDL_IsGameController(i) ) { * nGameControllers++; * } * } * * Using the SDL_HINT_GAMECONTROLLERCONFIG hint or the *SDL_GameControllerAddMapping you can add support for controllers SDL is *unaware of or cause an existing controller to have a different binding. The *format is: * guid,name,mappings * * Where GUID is the string value from SDL_JoystickGetGUIDString(), name is the *human readable string for the device and mappings are controller mappings to *joystick ones. * Under Windows there is a reserved GUID of "xinput" that covers any XInput *devices. * The mapping format for joystick is: * bX - a joystick button, index X * hX.Y - hat X with value Y * aX - axis X of the joystick * Buttons can be used as a controller axis and vice versa. * * This string shows an example of a valid mapping for a controller * "341a3608000000000000504944564944,Afterglow PS3 *Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7", * */ /** * Load a set of mappings from a seekable SDL data stream (memory or file), *filtered by the current SDL_GetPlatform() * A community sourced database of controllers is available at *https://raw.github.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt * * If \c freerw is non-zero, the stream will be closed after being read. * * \return number of mappings added, -1 on error */ extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW (SDL_RWops* rw, int freerw); /** * Load a set of mappings from a file, filtered by the current *SDL_GetPlatform() * * Convenience macro. */ #define SDL_GameControllerAddMappingsFromFile(file) \ SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1) /** * Add or update an existing mapping configuration * * \return 1 if mapping is added, 0 if updated, -1 on error */ extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping (const char* mappingString); /** * Get a mapping string for a GUID * * \return the mapping string. Must be freed with SDL_free. Returns NULL if *no mapping is available */ extern DECLSPEC char* SDLCALL SDL_GameControllerMappingForGUID (SDL_JoystickGUID guid); /** * Get a mapping string for an open GameController * * \return the mapping string. Must be freed with SDL_free. Returns NULL if *no mapping is available */ extern DECLSPEC char* SDLCALL SDL_GameControllerMapping (SDL_GameController* gamecontroller); /** * Is the joystick on this index supported by the game controller interface? */ extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController (int joystick_index); /** * Get the implementation dependent name of a game controller. * This can be called before any controllers are opened. * If no name can be found, this function returns NULL. */ extern DECLSPEC const char* SDLCALL SDL_GameControllerNameForIndex (int joystick_index); /** * Open a game controller for use. * The index passed as an argument refers to the N'th game controller on the *system. * This index is the value which will identify this controller in future *controller * events. * * \return A controller identifier, or NULL if an error occurred. */ extern DECLSPEC SDL_GameController* SDLCALL SDL_GameControllerOpen (int joystick_index); /** * Return the name for this currently opened controller */ extern DECLSPEC const char* SDLCALL SDL_GameControllerName (SDL_GameController* gamecontroller); /** * Returns SDL_TRUE if the controller has been opened and currently connected, * or SDL_FALSE if it has not. */ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerGetAttached (SDL_GameController* gamecontroller); /** * Get the underlying joystick object used by a controller */ extern DECLSPEC SDL_Joystick* SDLCALL SDL_GameControllerGetJoystick (SDL_GameController* gamecontroller); /** * Enable/disable controller event polling. * * If controller events are disabled, you must call SDL_GameControllerUpdate() * yourself and check the state of the controller when you want controller * information. * * The state can be one of ::SDL_QUERY, ::SDL_ENABLE or ::SDL_IGNORE. */ extern DECLSPEC int SDLCALL SDL_GameControllerEventState (int state); /** * Update the current state of the open game controllers. * * This is called automatically by the event loop if any game controller * events are enabled. */ extern DECLSPEC void SDLCALL SDL_GameControllerUpdate (void); /** * The list of axes available from a controller */ typedef enum { SDL_CONTROLLER_AXIS_INVALID = -1, SDL_CONTROLLER_AXIS_LEFTX, SDL_CONTROLLER_AXIS_LEFTY, SDL_CONTROLLER_AXIS_RIGHTX, SDL_CONTROLLER_AXIS_RIGHTY, SDL_CONTROLLER_AXIS_TRIGGERLEFT, SDL_CONTROLLER_AXIS_TRIGGERRIGHT, SDL_CONTROLLER_AXIS_MAX } SDL_GameControllerAxis; /** * turn this string into a axis mapping */ extern DECLSPEC SDL_GameControllerAxis SDLCALL SDL_GameControllerGetAxisFromString (const char* pchString); /** * turn this axis enum into a string mapping */ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForAxis (SDL_GameControllerAxis axis); /** * Get the SDL joystick layer binding for this controller button mapping */ extern DECLSPEC SDL_GameControllerButtonBind SDLCALL SDL_GameControllerGetBindForAxis (SDL_GameController* gamecontroller, SDL_GameControllerAxis axis); /** * Get the current state of an axis control on a game controller. * * The state is a value ranging from -32768 to 32767. * * The axis indices start at index 0. */ extern DECLSPEC Sint16 SDLCALL SDL_GameControllerGetAxis (SDL_GameController* gamecontroller, SDL_GameControllerAxis axis); /** * The list of buttons available from a controller */ typedef enum { SDL_CONTROLLER_BUTTON_INVALID = -1, SDL_CONTROLLER_BUTTON_A, SDL_CONTROLLER_BUTTON_B, SDL_CONTROLLER_BUTTON_X, SDL_CONTROLLER_BUTTON_Y, SDL_CONTROLLER_BUTTON_BACK, SDL_CONTROLLER_BUTTON_GUIDE, SDL_CONTROLLER_BUTTON_START, SDL_CONTROLLER_BUTTON_LEFTSTICK, SDL_CONTROLLER_BUTTON_RIGHTSTICK, SDL_CONTROLLER_BUTTON_LEFTSHOULDER, SDL_CONTROLLER_BUTTON_RIGHTSHOULDER, SDL_CONTROLLER_BUTTON_DPAD_UP, SDL_CONTROLLER_BUTTON_DPAD_DOWN, SDL_CONTROLLER_BUTTON_DPAD_LEFT, SDL_CONTROLLER_BUTTON_DPAD_RIGHT, SDL_CONTROLLER_BUTTON_MAX } SDL_GameControllerButton; /** * turn this string into a button mapping */ extern DECLSPEC SDL_GameControllerButton SDLCALL SDL_GameControllerGetButtonFromString (const char* pchString); /** * turn this button enum into a string mapping */ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForButton (SDL_GameControllerButton button); /** * Get the SDL joystick layer binding for this controller button mapping */ extern DECLSPEC SDL_GameControllerButtonBind SDLCALL SDL_GameControllerGetBindForButton (SDL_GameController* gamecontroller, SDL_GameControllerButton button); /** * Get the current state of a button on a game controller. * * The button indices start at index 0. */ extern DECLSPEC Uint8 SDLCALL SDL_GameControllerGetButton (SDL_GameController* gamecontroller, SDL_GameControllerButton button); /** * Close a controller previously opened with SDL_GameControllerOpen(). */ extern DECLSPEC void SDLCALL SDL_GameControllerClose (SDL_GameController* gamecontroller); /* Ends C function definitions when using C++ */ #ifdef __cplusplus } #endif #include "close_code.h" #endif /* _SDL_gamecontroller_h */ /* vi: set ts=4 sw=4 expandtab: */
require("./18.js"); require("./37.js"); require("./74.js"); require("./147.js"); module.exports = 148;
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Model class that wraps table submission * * This is the active record class wrapper for table 'submission' from the database. * * @package models * @author Ashar Fuadi <fushar@gmail.com> */ class Submission_manager extends AR_Model { /** * Constructs a new model object * * This function constructs a new model. */ public function __construct() { parent::__construct('submission'); } /** * Retrieves an existing row from table 'submission' * * This function returns a single row whose ID is $id from the wrapped table. If there is no such row, FALSE will be * returned instead. * * This function overrides AR_Model::get_row(). * * @param int $clarification_id The row ID to be retrieved. * * @return mixed The row whose ID is $clarification_id as an array of <attribute-name> => * <attribute-value> pairs, or FALSE if there is no such row. */ public function get_row($submission_id) { $this->db->select('submission.id AS id, user_id, submission.contest_id, submission.problem_id, language_id, submit_time, start_judge_time, end_judge_time, verdict, user.name AS user_name, contest.name AS contest_name, problem.name AS problem_name, language.name AS language_name, language.source_name AS language_source_name, alias AS problem_alias'); $this->db->from('submission'); $this->db->join('contest', 'contest.id=contest_id'); $this->db->join('problem', 'problem.id=problem_id'); $this->db->join('user', 'user.id=user_id'); $this->db->join('language', 'language.id=language_id'); $this->db->join('contest_problem', 'contest_problem.contest_id=submission.contest_id AND contest_problem.problem_id=submission.problem_id'); $this->db->where('submission.id', $submission_id); $this->db->limit(1); $q = $this->db->get(); if ($q->num_rows() == 0) return FALSE; $res = $q->row_array(); $res['source_code'] = file_get_contents($this->setting->get('submission_path') . '/' . $submission_id . '/source/' . $res['language_source_name']); if ($res['verdict'] > 0) $res['compile_result'] = file_get_contents($this->setting->get('submission_path') . '/' . $submission_id . '/source/compile'); return $res; } /** * Retrieves zero or more rows from table 'submission' satisfying some criteria * * This function returns zero or more rows from the wrapped table that satisfy the given criteria. All attributes * are returned. * * This function overrides AR_Model::get_rows(). * * @param array $criteria An array of <attribute-name> => <attribute-value> pairs. Only rows that satisfy all * criteria will be retrieved. * @param array $conditions An array of zero or more of the following pairs: * - 'limit' => The maximum number of rows to be retrieved. * - 'offset' => The starting number of the rows to be retrieved. * - 'order_by' => The resulting rows order as an array of zero or more * <attribute-name> => ('ASC' | 'DESC') pairs. * * @return array Zero or more rows that satisfies the criteria as an array of <row-ID> => <row>. */ public function get_rows($criteria = array(), $conditions = array()) { $this->db->select('submission.id AS id, user_id, submission.contest_id, submission.problem_id, language_id, submit_time, start_judge_time, end_judge_time, verdict, user.name AS user_name, contest.name AS contest_name, problem.name AS problem_name, language.name AS language_name, alias AS problem_alias'); $this->db->join('contest', 'contest.id=contest_id'); $this->db->join('problem', 'problem.id=problem_id'); $this->db->join('user', 'user.id=user_id'); $this->db->join('language', 'language.id=language_id'); $this->db->join('contest_problem', 'contest_problem.contest_id=submission.contest_id AND contest_problem.problem_id=submission.problem_id'); return parent::get_rows($criteria, $conditions); } /** * Inserts a new row into the table * * This function inserts a new row described by $attributes into the wrapped table. If a certain attribute is not * present in $attributes, its default value will be inserted instead. * * This function overrides AR_Model::insert_row(). It will also create the directory for the judging. * * @param array $args The row to be inserted as an array of <attribute name> => <attribute value> pairs. * * @return int The newly inserted row ID. */ public function insert_row($args) { $this->load->model('language_manager'); $this->db->set('user_id', $args['user_id']); $this->db->set('contest_id', $args['contest_id']); $this->db->set('problem_id', $args['problem_id']); $this->db->set('language_id', $args['language_id']); $this->db->set('submit_time', date('Y-m-d H:i:s')); $this->db->set('start_judge_time', '1000-01-01 00:00:00'); $this->db->set('end_judge_time', '1000-01-01 00:00:00'); // temporarily sets the verdict to 99 so that the grader will not judge this submission yet $this->db->set('verdict', 99); $insert_id = $this->db->insert('submission'); $submission_id = $this->db->insert_id(); $submission_path = $this->setting->get('submission_path') . '/' . $submission_id; // create the directories if ( ! is_dir($submission_path)) { mkdir($submission_path); chmod($submission_path, 0777); mkdir($submission_path . '/source'); chmod($submission_path . '/source', 0777); mkdir($submission_path . '/judging'); chmod($submission_path . '/judging', 0777); } $language = $this->language_manager->get_row($args['language_id']); $config['upload_path'] = $submission_path . '/source'; $config['allowed_types'] = '*'; $config['file_name'] = $language['source_name']; $config['max_size'] = '100'; $config['overwrite'] = true; // uploads the source code $this->load->library('upload', $config); $this->upload->do_upload('source_code'); $this->db->set('verdict', 0); $this->db->where('id', $submission_id); $this->db->update('submission'); return $insert_id; } /** * Retrieves the judge results for a particular submission * * This function returns the judge result against all testcases for the submission whose ID is $submission_id. * * @param int $submission_id The submission ID. * * @return array The judge results. */ public function get_judgings($submission_id) { $this->db->select('testcase_id, input, output, time, memory, verdict'); $this->db->from('judging'); $this->db->join('testcase', 'testcase.id=testcase_id'); $this->db->where('submission_id', $submission_id); $q = $this->db->get(); return $q->result_array(); } /** * Marks a particular submission to be regraded * * This function marks the submission whose ID is $submission_id to be regraded, by negating the current verdict. * * @param int $submission_id The submission ID. */ public function regrade($submission_id) { $this->db->where('submission_id', $submission_id); $this->db->delete('judging'); $this->db->select('verdict'); $this->db->from('submission'); $this->db->where('id', $submission_id); $q = $this->db->get(); $res = $q->row_array(); $new_verdict = $res['verdict']; if ($res['verdict'] == 99) $new_verdict = 0; $this->db->set('verdict', - $new_verdict); $this->db->where('id', $submission_id); $this->db->update('submission'); } /** * Marks a particular submission to be ignored * * This function marks the submission whose ID is $submission_id to be ignored, by setting the verdict to -99. * * @param int $submission_id The submission ID. */ public function ignore($submission_id) { $this->db->set('verdict', -99); $this->db->where('id', $submission_id); $this->db->update('submission'); } } /* End of file submission_manager.php */ /* Location: ./application/models/submission_manager.php */
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Módulos para Angular JS</title> <meta name="description" content="" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="shortcut icon" href="http://www.willcrisis.com/favicon.ico"> <link rel="stylesheet" type="text/css" href="//www.willcrisis.com/themes/casper/assets/css/screen.css?v=1495802284297" /> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" /> <link rel="canonical" href="http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" /> <meta name="referrer" content="origin" /> <meta property="og:site_name" content="Relatos de um Desenvolvedor Aventureiro" /> <meta property="og:type" content="article" /> <meta property="og:title" content="Módulos para Angular JS" /> <meta property="og:description" content="Nossa&amp;#8230;&amp;#8203; Quanto tempo desde a última vez que apareci por aqui! Esse post é pra falar sobre alguns projetos que venho desenvolvendo para AngularJS. Nos últimos meses, comecei a trabalhar efetivamente com Angular 1, e diante de algumas necessidades bem específicas dos projetos nos quais trabalhei, me vi" /> <meta property="og:url" content="http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" /> <meta property="article:published_time" content="2016-06-10T00:00:00.000Z" /> <meta property="article:tag" content="AngularJS" /> <meta property="article:tag" content=" Plugins" /> <meta property="article:tag" content=" OpenSource" /> <meta property="article:tag" content=" GitHub" /> <meta property="article:tag" content=" Módulos" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:title" content="Módulos para Angular JS" /> <meta name="twitter:description" content="Nossa&amp;#8230;&amp;#8203; Quanto tempo desde a última vez que apareci por aqui! Esse post é pra falar sobre alguns projetos que venho desenvolvendo para AngularJS. Nos últimos meses, comecei a trabalhar efetivamente com Angular 1, e diante de algumas necessidades bem específicas dos projetos nos quais trabalhei, me vi" /> <meta name="twitter:url" content="http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" /> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "publisher": "Relatos de um Desenvolvedor Aventureiro", "author": { "@type": "Person", "name": "Willian Krause", "image": "https://avatars1.githubusercontent.com/u/1250489?v=3", "url": "http://www.willcrisis.com/author/willcrisis/", "sameAs": "http://www.willcrisis.com" }, "headline": "Módulos para Angular JS", "url": "http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html", "datePublished": "2016-06-10T00:00:00.000Z", "keywords": "AngularJS, Plugins, OpenSource, GitHub, Módulos", "description": "Nossa&amp;#8230;&amp;#8203; Quanto tempo desde a última vez que apareci por aqui! Esse post é pra falar sobre alguns projetos que venho desenvolvendo para AngularJS. Nos últimos meses, comecei a trabalhar efetivamente com Angular 1, e diante de algumas necessidades bem específicas dos projetos nos quais trabalhei, me vi" } </script> <meta name="generator" content="HubPress" /> <link rel="alternate" type="application/rss+xml" title="Relatos de um Desenvolvedor Aventureiro" href="http://www.willcrisis.com/rss/" /> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/styles/atom-one-dark.min.css"> </head> <body class="post-template tag-AngularJS tag-Plugins tag-Open-Source tag-Git-Hub tag-Modulos nav-closed"> <div class="site-wrapper"> <header class="main-header post-head no-cover"> <nav class="main-nav clearfix"> </nav> </header> <main class="content" role="main"> <article class="post tag-AngularJS tag-Plugins tag-Open-Source tag-Git-Hub tag-Modulos"> <header class="post-header"> <h1 class="post-title">Módulos para Angular JS</h1> <section class="post-meta"> <time class="post-date" datetime="2016-06-10">10 June 2016</time> on <a href="http://www.willcrisis.com/tag/AngularJS/">AngularJS</a>, <a href="http://www.willcrisis.com/tag/Plugins/"> Plugins</a>, <a href="http://www.willcrisis.com/tag/Open-Source/"> OpenSource</a>, <a href="http://www.willcrisis.com/tag/Git-Hub/"> GitHub</a>, <a href="http://www.willcrisis.com/tag/Modulos/"> Módulos</a> </section> </header> <section class="post-content"> <div id="preamble"> <div class="sectionbody"> <div class="paragraph"> <p>Nossa&#8230;&#8203; Quanto tempo desde a última vez que apareci por aqui!</p> </div> <div class="paragraph"> <p>Esse post é pra falar sobre alguns projetos que venho desenvolvendo para AngularJS.</p> </div> <div class="paragraph"> <p>Nos últimos meses, comecei a trabalhar efetivamente com Angular 1, e diante de algumas necessidades bem específicas dos projetos nos quais trabalhei, me vi obrigado a desenvolver alguns módulos para facilitar a implementação dessas necessidades. Com isso, surgiram alguns projetos que visam facilitar a vida de nós, desenvolvedores apertados por prazos minúsculos.</p> </div> </div> </div> <div class="sect1"> <h2 id="__a_href_https_github_com_willcrisis_angular_auth_angular_auth_a"><a href="https://github.com/willcrisis/angular-auth">Angular Auth</a></h2> <div class="sectionbody"> <div class="paragraph"> <p>Esse foi o meu primeiro módulo criado para o AngularJS 1. É um módulo para encapsular as regras de autenticação e autorização do projeto. Com ele, é só configurar alguns atributos e informar uma URL de backend que a autenticação já estará funcionando. Também suporta validação de regras por Papéis (Roles), que podem ser definidas direto no State (ele depende do fenomenal <a href="https://github.com/angular-ui/ui-router">Ui-Router</a>). Aí no <a href="https://github.com/willcrisis/angular-auth">link</a> tem as informações de instalação e configuração. Também estou evoluindo ele para trabalhar em conjunto com o Firebase, mas essa integração ainda é experimental.</p> </div> </div> </div> <div class="sect1"> <h2 id="__a_href_https_github_com_willcrisis_angular_select2_angular_select2_a"><a href="https://github.com/willcrisis/angular-select2">Angular Select2</a></h2> <div class="sectionbody"> <div class="paragraph"> <p>Esse projeto nasceu a partir da necessidade de implementar Selects usando o <a href="https://select2.github.io/">Select2</a>. Encontrei alguns módulos para Angular que fazem isso, mas achei a complexidade deles muito grande para uma coisa tão simples. Por isso decidi implementar minha própria solução. Compartilhei a mesma no GitHub caso alguém também queira uma solução simples pra esse problema.</p> </div> <div class="sect2"> <h3 id="_ajude_a_melhorar">Ajude a melhorar!</h3> <div class="paragraph"> <p>Se você interessar em algum desses projetos, sinta-se a vontade para abrir Issues ou fazer um fork! Não deixe de fazer seu PR!!</p> </div> </div> </div> </div> </section> <footer class="post-footer"> <figure class="author-image"> <a class="img" href="http://www.willcrisis.com/author/willcrisis/" style="background-image: url(https://avatars1.githubusercontent.com/u/1250489?v&#x3D;3)"><span class="hidden">Willian Krause's Picture</span></a> </figure> <section class="author"> <h4><a href="http://www.willcrisis.com/author/willcrisis/">Willian Krause</a></h4> <p>Read <a href="http://www.willcrisis.com/author/willcrisis/">more posts</a> by this author.</p> <div class="author-meta"> <span class="author-location icon-location">Goiania, GO, Brazil</span> <span class="author-link icon-link"><a href="http://www.willcrisis.com">http://www.willcrisis.com</a></span> </div> </section> <section class="share"> <h4>Share this post</h4> <a class="icon-twitter" href="https://twitter.com/intent/tweet?text=M%C3%B3dulos%20para%20Angular%20JS&amp;url=http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> <span class="hidden">Twitter</span> </a> <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u=http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> <span class="hidden">Facebook</span> </a> <a class="icon-google-plus" href="https://plus.google.com/share?url=http://www.willcrisis.com/2016/06/10/Modulos-para-Angular-JS.html" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> <span class="hidden">Google+</span> </a> </section> </footer> <section class="post-comments"> <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = 'willcrisis-site'; // required: replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> </section> </article> </main> <aside class="read-next"> </aside> <footer class="site-footer clearfix"> <section class="copyright"><a href="http://www.willcrisis.com">Relatos de um Desenvolvedor Aventureiro</a> &copy; 2017</section> <section class="poweredby">Proudly published with <a href="http://hubpress.io">HubPress</a></section> </footer> </div> <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js?v="></script> <script type="text/javascript"> jQuery( document ).ready(function() { // change date with ago jQuery('ago.ago').each(function(){ var element = jQuery(this).parent(); element.html( moment(element.text()).fromNow()); }); }); hljs.initHighlightingOnLoad(); </script> <script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script> <script type="text/javascript" src="//www.willcrisis.com/themes/casper/assets/js/jquery.fitvids.js?v=1495802284297"></script> <script type="text/javascript" src="//www.willcrisis.com/themes/casper/assets/js/index.js?v=1495802284297"></script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-58331805-2', 'auto'); ga('send', 'pageview'); </script> </body> </html>
package com.daeliin.components.persistence.resource.repository; import com.daeliin.components.core.pagination.Page; import com.daeliin.components.core.pagination.PageRequest; import com.querydsl.core.types.OrderSpecifier; import com.querydsl.core.types.Predicate; import com.querydsl.sql.RelationalPathBase; import com.querydsl.sql.SQLQuery; import com.querydsl.sql.SQLQueryFactory; import org.springframework.transaction.annotation.Transactional; import javax.inject.Inject; import java.util.Collection; import java.util.Objects; import java.util.Optional; /** * @param <R> row type */ public class BaseRepository<R> implements PagingRepository<R> { @Inject protected SQLQueryFactory queryFactory; protected final RowOrder rowOrder; protected final RelationalPathBase<R> rowPath; public BaseRepository(RelationalPathBase<R> rowPath) { this.rowPath = Objects.requireNonNull(rowPath); this.rowOrder = new RowOrder(rowPath); } @Override public RelationalPathBase<R> rowPath() { return rowPath; } @Transactional(readOnly = true) @Override public Optional<R> findOne(Predicate predicate) { if (predicate == null) { return Optional.empty(); } return Optional.ofNullable(queryFactory.select(rowPath) .from(rowPath) .where(predicate) .fetchOne()); } @Transactional(readOnly = true) @Override public Collection<R> findAll(Predicate predicate) { SQLQuery<R> query = queryFactory.select(rowPath) .from(rowPath); if (predicate != null) { query = query.where(predicate); } return query.fetch(); } @Transactional(readOnly = true) @Override public Page<R> findAll(PageRequest pageRequest) { return findAll(null, pageRequest); } @Transactional(readOnly = true) @Override public Page<R> findAll(Predicate predicate, PageRequest pageRequest) { long totalItems = count(predicate); long totalPages = rowOrder.computeTotalPages(totalItems, pageRequest.size); OrderSpecifier[] orders = rowOrder.computeOrders(pageRequest); SQLQuery<R> query = queryFactory.select(rowPath) .from(rowPath) .limit(pageRequest.size) .offset(pageRequest.offset) .orderBy(orders); if (predicate != null) { query = query.where(predicate); } return new Page<>(query.fetch(), totalItems, totalPages); } @Transactional(readOnly = true) @Override public Collection<R> findAll() { return queryFactory.select(rowPath) .from(rowPath) .fetch(); } @Transactional(readOnly = true) @Override public long count() { return queryFactory.select(rowPath) .from(rowPath) .fetchCount(); } @Transactional(readOnly = true) @Override public long count(Predicate predicate) { SQLQuery<R> query = queryFactory.select(rowPath) .from(rowPath); if (predicate != null) { query = query.where(predicate); } return query.fetchCount(); } @Transactional @Override public boolean delete(Predicate predicate) { if (predicate == null) { throw new IllegalArgumentException("Predicate should not be null on a delete, otherwise whole table will be deleted, " + "call deleteAll() instead if it's the desired operation"); } return queryFactory.delete(rowPath).where(predicate).execute() > 0; } @Transactional @Override public boolean deleteAll() { return queryFactory.delete(rowPath).execute() > 0; } }
module Kiv7 module Authenticatable module_function def verify true end end end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Técnico em Automação Industrial</title> <link rel="shortcut icon" href="media/favicon.ico"> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="css/modern-business.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Barra de navegação</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="media/logo.png" alt="" width="150" style="margin: -6px 0px 0px 40px;"></a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li> <a href="index.html">Início</a> </li> <li> <a href="curso.html">Curso</a> </li> <li> <a href="docentes.html">Docentes</a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Projetos <b class="caret"></b></a> <ul class="dropdown-menu"> <li> <a href="projetos_tcc.html">TCC</a> </li> <li> <a href="projetos_pesquisa.html">Pesquisa</a> </li> <li> <a href="projetos_extensao.html">Extensão</a> </li> <li> <a href="projetos_ensino.html">Ensino</a> </li> </ul> </li> <li> <a href="laboratorios.html">Laboratórios</a> </li> <li> <a href="contact.html">Contato</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> <!-- Page Content --> <div class="container"> <!-- Page Heading/Breadcrumbs --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Automação Industrial <small></small> </h1> <ol class="breadcrumb"> <li><a href="index.html">Início</a> </li> <li class="active">Curso</li> </ol> </div> </div> <!-- /.row --> <!-- Image Header --> <div class="row"> <div class="col-lg-12"> <img class="img-responsive" src="http://placehold.it/1200x300" alt=""> </div> </div> <!-- /.row --> <br> <br> <div class="row"> <div class="col-md-3"> <div class="list-group"> <ul id="myTab" class="nav nav-tabs nav-justified"> <a href="#home" class="list-group-item " data-toggle="tab">Início</a> <a href="#perfil" class="list-group-item " data-toggle="tab">Perfil Profissional</a> <a href="#planos" class="list-group-item" data-toggle="tab">Planos de Curso</a> <a href="#atuacao" class="list-group-item" data-toggle="tab">Atuação Profissional</a> <a href="#coordenacao" class="list-group-item" data-toggle="tab">Coordenação</a> </ul> </div> </div> <!-- Content Column --> <div id="myTabContent" class="tab-content"> <div class="col-md-9 tab-pane fade active in" id="home"> <h3>Informações Sobre o Curso de Automação Industrial: </h3> <p>O curso, que está sendo oferecido desde 2010, abrange tecnologias associadas aos processos mecânicos, eletro-eletrônicos e físico-químicos. O técnico em automação industrial poderá atuar no projeto, execução e instalação de sistemas de controle de automação utilizados nos processos industriais, realizando a manutenção, medições e testes em equipamentos utilizados em automação de processos industriais.</p> <li><a href="http://www.riogrande.ifrs.edu.br/site/midias/arquivos/2015110102429589automacao_-_integrado.pdf"><h5>Horários das turmas do curso Integrado de 2015</h5></a></li> <li><a href="http://www.riogrande.ifrs.edu.br/site/midias/arquivos/2015110102429589automacao_-_subsequente.pdf"><h5>Horários das turmas do curso Subsequente de 2015</h5></a></li> </div> <div class="col-md-9 tab-pane fade" id="perfil"> <h3>Perfil Profissional: </h3> <p>Curso Técnico de Nível Médio do Eixo Tecnológico Controle e Processos Industriais, Modalidade Integrado e com habilitação em Automação Industrial. Organizado em séries anuais e com duração de quatro anos, possui uma carga horária total 3.752 de horas, sendo 2.072 horas destinadas ao Ensino Médio, 370 horas ao Núcleo Integrador e 1.310 horas ao Núcleo de Formação Profissional específica em Automação Industrial, incluídas as 200 horas destinadas à prática profissional (estágio supervisionado).</p> <h4>O candidato deverá apresentar as seguintes aptidões: </h4> <ul> <li><h5>Interesse pelo estudo dos conteúdos de Física, Química e Matemática</h5></li> <li><h5>Criatividade e curiosidade científica</h5></li> <li><h5>Capacidade de desenvolver raciocínios lógicos</h5></li> <li><h5>Disposição para trabalhar em equipe</h5></li> </ul> </div> <div class="col-md-9 tab-pane fade" id="coordenacao"> <h3>Coordenação: </h3> <p></p> </div> <div class="col-md-9 tab-pane fade" id="planos"> <h3>Planos de Curso - Integrado: </h3> <ul> <li><h5>Ingresso: Teste de classificação</h5></li> <li><h5>Turno: Diurno (manhã e tarde)</h5></li> <li><h5>Vagas: 36 vagas anuais</h5></li> <li><h5>Estrutura: 4 séries anuas (3200 h)</h5></li> <li><h5>Estágio profissional supervisionado (200 h)</h5></li> </ul> <div style="float: right; margin: -206px 80px 10px 0px"> <h3>Planos de Curso - Subsequente: </h3> <ul> <li><h5>Ingresso: Teste de classificação/ENEM</h5></li> <li><h5>Turno: Noturno</h5></li> <li><h5>Vagas: 80 vagas anuais (2 ingressos)</h5></li> <li><h5>Estrutura: 4 módulos semestrais (1200 h)</h5></li> <li><h5>Estágio profissional supervisionado (200 h)</h5></li> </ul> </div> </div> <div class="col-md-9 tab-pane fade" id="atuacao"> <h3>Atuação Profissional: </h3> <p>O Técnico de Nível Médio Integrado em Automação Industrial deverá apresentar um conjunto de conhecimentos, atitudes e habilidades que permitam a sua atuação na indústria, tendo uma sólida e avançada formação científica e tecnológica e preparado para construir novos conhecimentos, compreendendo que essa capacitação é inicial e, portanto, deve ser ponto de partida para a busca constante na sua formação.</p> <p> Conforme o Catálogo Nacional de Cursos Técnicos, ao final de sua formação,deverá ser capaz de atuar em:</p> <p> 1. Indústrias, preferencialmente as de processos de fabricação contínuos, tais como petroquímicas, de alimentos e de energia;</p> <p> 2. Laboratórios de controle de qualidade, de manutenção e pesquisa;</p> <p> 3. Empresas integradoras e prestadoras de serviço. </p> </div> </div> </div> <hr> <!-- Footer --> <footer> <div class="row"> <div class="col-lg-12"> <center> <p>Copyright &copy; Automação Industrial 2015</p> </center> </div> </div> </footer> </div> <!-- /.container --> <!-- jQuery --> <script src="js/jquery.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> </body> </html>
<!DOCTYPE html> <html> <meta charset='utf-8'> <head> <script src="../dialog-polyfill.js"></script> <meta name="viewport" content="width=device-width, user-scalable=no"> <link rel="stylesheet" type="text/css" href="../dialog-polyfill.css"> <style> dialog { width: 100px; } </style> </head> <body> <p>Test for modal dialog. The test passes if you can click on "Click me" button, but can't click or tab to the "Can't click me!" button</p> <div id="console"></div> <input type="text" placeholder="Test 1" tabindex="1" /> <input type="text" placeholder="Test 2" tabindex="2" /> <input type="text" placeholder="Test 2.1" tabindex="2" /> <input type="text" placeholder="Test 3" tabindex="3" /> <input type="text" placeholder="Before dialog" /> <dialog> <button id="dialog-button">Click me</button> <input type="text" placeholder="Focus me" /> <input type="text" placeholder="Focus me again" /> </dialog> <button id="inert-button">Can't click me</button> <input type="text" placeholder="Can't focus me" /> <script> function writeToConsole(s) { var console = document.getElementById('console'); var span = document.createElement('span'); span.textContent = s; console.appendChild(span); console.appendChild(document.createElement('br')); } var dialog = document.querySelector('dialog'); dialogPolyfill.registerDialog(dialog); dialog.showModal(); var dialogButton = document.getElementById('dialog-button'); dialogButton.addEventListener('click', function(e) { writeToConsole("SUCCESS: dialog's button was clicked"); }); var inertButton = document.getElementById('inert-button'); inertButton.addEventListener('click', function(e) { writeToConsole('FAIL: inert button was clicked'); }); </script> </body> </html>
<?php namespace Asmolding\Bundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manages your bundle configuration * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} */ class AsmoldingExtension extends Extension { /** * {@inheritDoc} */ public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yml'); } }
var Leap = require("leapjs"); var keyboard = require('node_keyboard'); //Each var individually declared below so they refence different objects in memory. I.e work independantly. //These vars log when a particular action / gesture last ran. var last_fav = new Date().getTime(); var last_swipe = new Date().getTime(); var last_up = new Date().getTime(); var last_down = new Date().getTime(); var current_time; var delay = 1000; //Number of milliseconds forced between each gesture. var controller = Leap.loop({enableGestures: true}, function(frame){ if(frame.valid && frame.gestures.length > 0){ frame.gestures.forEach(function(gesture){ switch (gesture.type){ case "circle": current_time = new Date().getTime(); if(last_fav+delay < current_time){ keyboard.press(keyboard.Key_Numpad0); keyboard.release(keyboard.Key_Numpad0); console.log("Circle Gesture"); last_fav = new Date().getTime(); } break; case "swipe": current_time = new Date().getTime(); if(last_swipe+delay < current_time){ //Classify swipe as either horizontal or vertical var isHorizontal = Math.abs(gesture.direction[0]) > Math.abs(gesture.direction[1]); //Classify as right-left or up-down if(isHorizontal){ if(gesture.direction[0] > 0){ swipeDirection = "Swipe Right"; keyboard.press(keyboard.Key_Up); //Key_Up keycode and Key_Right keycode are swapped in node_keyboard dependancy keyboard.release(keyboard.Key_Up);//Key_Up keycode and Key_Right keycode are swapped in node_keyboard dependancy } else { swipeDirection = "Swipe Left"; keyboard.press(keyboard.Key_Left); keyboard.release(keyboard.Key_Left); } } else { //vertical if(gesture.direction[1] > 0){ swipeDirection = "Swipe Up"; } else { swipeDirection = "Swipe Down"; } } console.log(swipeDirection); last_swipe = new Date().getTime(); } break; } }); } if(frame.pointables.length == 5){ var pointable = frame.pointables; current_time = new Date().getTime(); if(last_up+delay < current_time){ if(pointable[0].direction[1] > 0.78 && pointable[1].direction[1] > 0.78 && pointable[2].direction[1] > 0.78 && pointable[3].direction[1] > 0.78 && pointable[4].direction[1] > 0.78 ){ console.log("Up Vote"); keyboard.press(keyboard.Key_NumpadAdd); keyboard.release(keyboard.Key_NumpadAdd); last_up = new Date().getTime(); } } if(last_down+delay < current_time){ if(pointable[0].direction[1] < -0.78 && pointable[1].direction[1] < -0.78 && pointable[2].direction[1] < -0.78 && pointable[3].direction[1] < -0.78 && pointable[4].direction[1] < -0.78 ){ console.log("Down Vote"); keyboard.press(keyboard.Key_NumpadSubtract); keyboard.release(keyboard.Key_NumpadSubtract); last_down = new Date().getTime(); } } } }); console.log('Leap Imgur Controller Running');
package com.tempestasludi.java.p14_cssp.pcss.selectors; import static org.junit.Assert.*; import org.junit.Test; public class IdTest { @Test public void testId() { Id id = new Id("main"); assertEquals("main", id.getName()); } @Test public void testToString() { Id id = new Id("main"); assertEquals("#main", id.toString()); } }
import 'leaflet'; import './main.scss'; import "reflect-metadata"; import "zone.js/dist/zone"; import "zone.js/dist/long-stack-trace-zone"; import { BrowserModule } from "@angular/platform-browser"; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; import { Component, NgModule, ComponentRef, Injector, ApplicationRef, ComponentFactoryResolver, Injectable, NgZone } from "@angular/core"; // ########################################### // App component // ########################################### @Component({ selector: "app", template: `<section class="app"><map></map></section>` }) class AppComponent { } // ########################################### // Popup component // ########################################### @Component({ selector: "popup", template: `<section class="popup">Popup Component! :D {{ param }}</section>` }) class PopupComponent { } // ########################################### // $compile for Angular 4! :D // ########################################### @Injectable() class CustomCompileService { private appRef: ApplicationRef; constructor( private injector: Injector, private resolver: ComponentFactoryResolver ) { } configure(appRef) { this.appRef = appRef; } compile(component, onAttach) { const compFactory = this.resolver.resolveComponentFactory(component); let compRef = compFactory.create(this.injector); if (onAttach) onAttach(compRef); this.appRef.attachView(compRef.hostView); compRef.onDestroy(() => this.appRef.detachView(compRef.hostView)); let div = document.createElement('div'); div.appendChild(compRef.location.nativeElement); return div; } } // ########################################### // Leaflet map service // ########################################### @Injectable() class MapService { map: any; baseMaps: any; markersLayer: any; appRef: ApplicationRef; constructor(private compileService: CustomCompileService) { compileService.configure(this.appRef); } init(selector, appRef: ApplicationRef) { this.appRef = appRef; this.baseMaps = { CartoDB: L.tileLayer("http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png", { attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="http://cartodb.com/attributions">CartoDB</a>' }) }; L.Icon.Default.imagePath = '.'; L.Icon.Default.mergeOptions({ iconUrl: require('leaflet/dist/images/marker-icon.png'), shadowUrl: require('leaflet/dist/images/marker-shadow.png') }); this.map = L.map(selector); this.baseMaps.CartoDB.addTo(this.map); this.map.setView([51.505, -0.09], 13); this.markersLayer = new L.FeatureGroup(null); this.markersLayer.clearLayers(); this.markersLayer.addTo(this.map); this.compileService.configure(this.appRef); } addMarker() { var m = L.marker([51.510, -0.09]); m.bindTooltip('Angular 4 marker (PopupComponent)'); m.bindPopup(null); m.on('click', (e) => { m.setPopupContent( this.compileService.compile(PopupComponent, (c) => { c.instance.param = 0; setInterval(() => c.instance.param++, 1000); }) ); }); this.markersLayer.addLayer(m); return m; } } // ########################################### // Map component. These imports must be made // here, they can't be in a service as they // seem to depend on being loaded inside a // component. // ########################################### @Component({ selector: "map", template: `<section class="map"><div id="map"></div></section>`, }) class MapComponent { marker: any; constructor( private appRef: ApplicationRef, private mapService: MapService ) { } ngOnInit() { this.mapService.init('map', this.appRef); this.marker = this.mapService.addMarker(); } } // ########################################### // Main module // ########################################### @NgModule({ imports: [ BrowserModule ], providers: [ MapService, CustomCompileService ], declarations: [ AppComponent, MapComponent, PopupComponent ], entryComponents: [ PopupComponent ], bootstrap: [AppComponent] }) class AppModule { } platformBrowserDynamic().bootstrapModule(AppModule);
import json from util import d import os __home = os.path.expanduser("~").replace('\\', '/') + "/PixelWeb/" BASE_SERVER_CONFIG = d({ "id":"server_config", "display": "server_config", "preconfig": False, "presets":[], "params": [{ "id": "external_access", "label": "Allow External Access", "type": "bool", "default": True, "help":"On: Other computers on your network can access PixelWeb. Off: LocalHost access only." },{ "id": "port", "label": "Server Port", "type": "int", "default": 8080, "help":"Port to listen on." },{ "id": "load_defaults", "label": "Load Last Config on Start", "type": "bool", "default": False, "help":"Load last driver/controller configuration on application start." }, { "id": "show_debug", "label": "Show Debug in Console", "type": "bool", "default": False, "help":"Show BiblioPixel debug in server console (not in main UI)." },{ "id": "mod_dirs", "label": "Module Directories", "type": "str_multi", "default": [], "help":"Directories from which to load modules (animations, drivers, controllers, pre-configs).", "replace": {"\\":"/"} }, { "id": "off_anim_time", "label": "All Off Timeout", "type": "int", "default": 10, "min": 0, "max": 3600, "help":"Keep display off when not running an animation by actively turning all pixels off every X seconds. Set to 0 to disable." },] }); def setHome(home): global __home __home = home def genDefaultConfig(params): c = {} for p in params: p = d(p) c[p.id] = p.default return c def initConfig(): try: if not os.path.exists(__home): print "Creating {}".format(__home) os.makedirs(__home) except: print "Failed to initialize PixelWeb config!" def readConfig(file, key = None, path=None): if not path: path = __home data = {} try: with open(path + "/" + file + ".json", "r") as fp: data = json.load(fp, encoding='utf-8') if key: if key in data: data = data[key] else: data = {} except Exception, e: pass return d(data) def writeConfig(file, data, key = None, path=None): if not path: path = __home base = data if key: base = readConfig(file, path=path) base[key] = data with open(path + "/" + file + ".json", "w") as fp: json.dump(base, fp, indent=4, sort_keys=True) def paramsToDict(params): data = {} for p in params: if "default" not in p: p.default = None data[p.id] = p.default return data def readServerConfig(): data = readConfig("config", path=__home) base = paramsToDict(BASE_SERVER_CONFIG.params) if len(data.keys()) == 0: data = paramsToDict(BASE_SERVER_CONFIG.params) elif len(data.keys()) != len(base.keys()): data.upgrade(base) return d(data) def writeServerConfig(data): writeConfig("config", data) def upgradeServerConfig(): b = genDefaultConfig(BASE_SERVER_CONFIG.params) cfg = readServerConfig() cfg.upgrade(b) writeServerConfig(cfg)
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.billtracker; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Customize dimensions originally defined in res/values/dimens.xml (such as screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080002; public static final int calendar_main=0x7f080001; public static final int text_view_calendar=0x7f080000; } public static final class layout { public static final int activity_calendar=0x7f030000; } public static final class menu { public static final int calendar=0x7f070000; public static final int main=0x7f070001; } public static final class string { public static final int action_settings=0x7f050001; public static final int app_name=0x7f050000; public static final int hello_world=0x7f050002; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } }
//****************************************************************************************************** // ZeroMQClient.h - Gbtc // // Copyright © 2015, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may // not use this file except in compliance with the License. You may obtain a copy of the License at: // // http://opensource.org/licenses/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 09/09/2015 - Ritchie // Generated original version of source code. // //****************************************************************************************************** #ifndef _ZEROMQCLIENT_H #define _ZEROMQCLIENT_H #include "MiddlewareEngine.h" #include <czmq.h> #include <string> #include "../Thread.h" using namespace std; // Represents a fully asynchronous ZeroMQ client style middleware engine implementation class ZeroMQClient : public MiddlewareEngine { public: // Constructors explicit ZeroMQClient(BufferReceivedCallback callback, bool securityEnabled, int inactiveClientTimeout, bool verboseOutput, const UUID& connectionID, zcert_t* localCertificate); ~ZeroMQClient(); // Methods void Initialize(const string endPoint, const string instanceName, const string instanceID) override; void Shutdown() override; bool SendBuffer(const Buffer& buffer) override; bool SendBuffer(const UUID& /*connectionID*/, const Buffer& buffer) override; private: void Dispose(); zsock_t* GetConnectedSocket(char mode); static void ReceiveDataHandler(void* arg); // Fields string m_endPoint; zsock_t* m_sendSocket; // TCP dealer client-like socket - send only zsock_t* m_receiveSocket; // TCP dealer client-like socket - receive only zactor_t* m_monitor; // Socket event monitor zcert_t* m_localCertificate; // Complete local certificate used for curve security zcert_t* m_serverCertificate; // Public server certificate used for curve security Thread* m_receiveDataThread; volatile bool m_enabled; bool m_disposed; }; #endif
<?php namespace App\Http\Controllers\API; use App\Http\Requests\API\PlaylistStoreRequest; use App\Models\Playlist; use Illuminate\Http\Request; class PlaylistController extends Controller { /** * Create a new playlist. * * @param PlaylistStoreRequest $request * * @return \Illuminate\Http\JsonResponse */ public function store(PlaylistStoreRequest $request) { $playlist = auth()->user()->playlists()->create($request->only('name')); $playlist->songs()->sync($request->input('songs')); $playlist->songs = $playlist->songs->fetch('id'); return response()->json($playlist); } /** * Rename a playlist. * * @param \Illuminate\Http\Request $request * @param Playlist $playlist * * @return \Illuminate\Http\JsonResponse */ public function update(Request $request, Playlist $playlist) { $this->authorize('owner', $playlist); $playlist->update($request->only('name')); return response()->json($playlist); } /** * Sync a playlist with songs. * Any songs that are not populated here will be removed from the playlist. * * @param \Illuminate\Http\Request $request * @param Playlist $playlist * * @return \Illuminate\Http\JsonResponse */ public function sync(Request $request, Playlist $playlist) { $this->authorize('owner', $playlist); $playlist->songs()->sync($request->input('songs')); return response()->json(); } /** * Delete a playlist. * * @param Playlist $playlist * * @return \Illuminate\Http\JsonResponse */ public function destroy(Playlist $playlist) { $this->authorize('owner', $playlist); $playlist->delete(); return response()->json(); } }
--- layout: post title: "我在思考什么?" date: 2015-09-10 author: "GoTT" header-img: "img/post-bg-2015.jpg" category : 生活 tags: 生活 --- # 我在思考什么? 真有意思,我在思考什么?
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Struct template modable</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.TypeErasure"> <link rel="up" href="../../boost_typeerasure/reference.html#header.boost.type_erasure.operators_hpp" title="Header &lt;boost/type_erasure/operators.hpp&gt;"> <link rel="prev" href="dividable.html" title="Struct template dividable"> <link rel="next" href="left_shiftable.html" title="Struct template left_shiftable"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="dividable.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_typeerasure/reference.html#header.boost.type_erasure.operators_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="left_shiftable.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.type_erasure.modable"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Struct template modable</span></h2> <p>boost::type_erasure::modable</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_typeerasure/reference.html#header.boost.type_erasure.operators_hpp" title="Header &lt;boost/type_erasure/operators.hpp&gt;">boost/type_erasure/operators.hpp</a>&gt; </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T <span class="special">=</span> <a class="link" href="_self.html" title="Struct _self">_self</a><span class="special">,</span> <span class="keyword">typename</span> U <span class="special">=</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> R <span class="special">=</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="modable.html" title="Struct template modable">modable</a> <span class="special">{</span> <span class="comment">// <a class="link" href="modable.html#idp10536944-bb">public static functions</a></span> <span class="keyword">static</span> <span class="identifier">R</span> <a class="link" href="modable.html#idp10537504-bb"><span class="identifier">apply</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="idp12627184"></a><h2>Description</h2> <div class="refsect2"> <a name="idp12627600"></a><h3> <a name="idp10536944-bb"></a><code class="computeroutput">modable</code> public static functions</h3> <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">R</span> <a name="idp10537504-bb"></a><span class="identifier">apply</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div> </div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2011-2013 Steven Watanabe<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="dividable.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_typeerasure/reference.html#header.boost.type_erasure.operators_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="left_shiftable.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
class AzDefinition < OwnedActiveRecord belongs_to :az_base_project belongs_to :matrix, :class_name=>'AzDefinition', :foreign_key=>'copy_of' validates_presence_of :name validates_presence_of :definition include Statuses def validate validate_owner_id_common('definition', 'Project') end def self.get_model_name return "Определние" end def before_create self.set_initial_position end def self.get_by_company(company) return AzDefinition.find_all_by_owner_id(company.id, :conditions => { :az_base_project_id => nil }, :order => :position) end def self.get_seeds return find_all_by_seed(true) end def self.from_az_hash(attributes, project) definition = AzDefinition.new(attributes) definition.az_base_project = project definition.owner = project.owner definition.copy_of = attributes['id'] return definition end def make_copy_definition(owner, project) dup = self.clone dup.copy_of = id dup.owner = owner dup.az_base_project = project dup.seed = false dup.save! return dup end def update_from_source(src) self.name = src.name self.definition = src.definition self.save end def sow(owner) result = nil if self.seed != true return result end definition_to_update = AzDefinition.find(:first, :conditions => {:owner_id => owner.id, :copy_of => self.id}) if definition_to_update == nil self.make_copy_definition(owner, nil) result = [self, 'copied'] else definition_to_update.update_from_source(self) result = [self, 'updated'] end return [result] end def self.update_from_seed(owner) result = [] seeds = AzDefinition.get_seeds seeds.each do |s| res = s.sow(owner) if res != nil result.concat(res) end end return result end def move_up conditions = "position < #{self.position} " if self.az_base_project_id == nil conditions += " AND az_base_project_id is NULL" else conditions += " AND az_base_project_id=#{self.az_base_project_id}" end definition = AzDefinition.find_last_by_owner_id(self.owner_id, :conditions => conditions, :order => 'position asc') if definition == nil return # Мы выше всех end definition.position, self.position = self.position, definition.position definition.save self.save end def move_down conditions = "position > #{self.position} " if self.az_base_project_id == nil conditions += " AND az_base_project_id is NULL" else conditions += " AND az_base_project_id=#{self.az_base_project_id}" end definition = AzDefinition.find_last_by_owner_id(self.owner_id, :conditions => conditions, :order => 'position desc') if definition == nil return # Мы ниже всех end definition.position, self.position = self.position, definition.position definition.save self.save end def set_initial_position d = AzDefinition.find(:last, :order => :id) if d == nil self.position = 1 else self.position = d.id + 1 end end def to_az_hash attrs = attributes #attrs.delete("id") #attrs.delete("created_at") #attrs.delete("updated_at") return attrs end end
declare -ri EX_OSERR=71
# -*- coding: utf-8 -*- """ Created on Mon Sep 29 21:25:13 2014 @author: 27182_000 """ # A palindromic number reads the same both ways. The largest palindrome made # from the product of two 2-digit numbers is 9009 = 91 × 99. # Find the largest palindrome made from the product of two 3-digit numbers. import sys ans = 1 for n in range(999,1,-1): for m in range(999,1,-1): num = n*m if str(num) == str(num)[::-1] and num > ans: ans = num print ans
FROM node:10-alpine ENV HOST 0.0.0.0 WORKDIR /usr/app/ COPY . . RUN npm ci
/* * Copyright 2010-2015 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. */ #import <Foundation/Foundation.h> #import "../AWSMobileAnalyticsContext.h" @protocol AWSMobileAnalyticsUniqueIdService <NSObject> @required -(NSString*)getUniqueIdWithContext:(id<AWSMobileAnalyticsContext>)insightsContext; @end
from django.http import HttpResponse from django.shortcuts import render def index(request): return HttpResponse('Page content') def custom(request): return render(request, 'custom.html', {})
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Nito.AsyncEx; using NUnit.Framework; using SJP.Schematic.Core; using SJP.Schematic.Core.Extensions; using SJP.Schematic.Tests.Utilities; namespace SJP.Schematic.Oracle.Tests.Integration { internal sealed class OracleDatabaseViewProviderTests : OracleTest { private IDatabaseViewProvider ViewProvider => new OracleDatabaseViewProvider(Connection, IdentifierDefaults, IdentifierResolver); [OneTimeSetUp] public async Task Init() { await DbConnection.ExecuteAsync("create view db_test_view_1 as select 1 as dummy from dual", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create view view_test_view_1 as select 1 as test from dual", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table view_test_table_1 (table_id number)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create materialized view view_test_view_2 as select table_id as test from view_test_table_1", CancellationToken.None).ConfigureAwait(false); } [OneTimeTearDown] public async Task CleanUp() { await DbConnection.ExecuteAsync("drop view db_test_view_1", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop view view_test_view_1", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop materialized view view_test_view_2", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table view_test_table_1", CancellationToken.None).ConfigureAwait(false); } private Task<IDatabaseView> GetViewAsync(Identifier viewName) { if (viewName == null) throw new ArgumentNullException(nameof(viewName)); return GetViewAsyncCore(viewName); } private async Task<IDatabaseView> GetViewAsyncCore(Identifier viewName) { using (await _lock.LockAsync().ConfigureAwait(false)) { if (!_viewsCache.TryGetValue(viewName, out var lazyView)) { lazyView = new AsyncLazy<IDatabaseView>(() => ViewProvider.GetView(viewName).UnwrapSomeAsync()); _viewsCache[viewName] = lazyView; } return await lazyView.ConfigureAwait(false); } } private readonly AsyncLock _lock = new(); private readonly Dictionary<Identifier, AsyncLazy<IDatabaseView>> _viewsCache = new(); [Test] public async Task GetView_WhenViewPresent_ReturnsView() { var viewIsSome = await ViewProvider.GetView("db_test_view_1").IsSome.ConfigureAwait(false); Assert.That(viewIsSome, Is.True); } [Test] public async Task GetView_WhenViewPresent_ReturnsViewWithCorrectName() { var viewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "db_test_view_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewPresentGivenLocalNameOnly_ShouldBeQualifiedCorrectly() { var viewName = new Identifier("DB_TEST_VIEW_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewPresentGivenSchemaAndLocalNameOnly_ShouldBeQualifiedCorrectly() { var viewName = new Identifier(IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewPresentGivenDatabaseAndSchemaAndLocalNameOnly_ShouldBeQualifiedCorrectly() { var viewName = new Identifier(IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewPresentGivenFullyQualifiedName_ShouldBeQualifiedCorrectly() { var viewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(viewName)); } [Test] public async Task GetView_WhenViewPresentGivenFullyQualifiedNameWithDifferentServer_ShouldBeQualifiedCorrectly() { var viewName = new Identifier("A", IdentifierDefaults.Database, IdentifierDefaults.Schema, "db_test_view_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewPresentGivenFullyQualifiedNameWithDifferentServerAndDatabase_ShouldBeQualifiedCorrectly() { var viewName = new Identifier("A", "B", IdentifierDefaults.Schema, "db_test_view_1"); var expectedViewName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_VIEW_1"); var view = await ViewProvider.GetView(viewName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(view.Name, Is.EqualTo(expectedViewName)); } [Test] public async Task GetView_WhenViewMissing_ReturnsNone() { var viewIsNone = await ViewProvider.GetView("view_that_doesnt_exist").IsNone.ConfigureAwait(false); Assert.That(viewIsNone, Is.True); } [Test] public async Task GetAllViews_WhenEnumerated_ContainsViews() { var hasViews = await ViewProvider.GetAllViews() .AnyAsync() .ConfigureAwait(false); Assert.That(hasViews, Is.True); } [Test] public async Task GetAllViews_WhenEnumerated_ContainsTestView() { const string viewName = "DB_TEST_VIEW_1"; var containsTestView = await ViewProvider.GetAllViews() .AnyAsync(v => string.Equals(v.Name.LocalName, viewName, StringComparison.Ordinal)) .ConfigureAwait(false); Assert.That(containsTestView, Is.True); } [Test] public async Task Definition_PropertyGet_ReturnsCorrectDefinition() { var view = await GetViewAsync("VIEW_TEST_VIEW_1").ConfigureAwait(false); var definition = view.Definition; const string expected = "select 1 as test from dual"; Assert.That(definition, Is.EqualTo(expected)); } [Test] public async Task IsMaterialized_WhenViewIsNotMaterialized_ReturnsFalse() { var view = await GetViewAsync("VIEW_TEST_VIEW_1").ConfigureAwait(false); Assert.That(view.IsMaterialized, Is.False); } [Test] public async Task Columns_WhenViewContainsSingleColumn_ContainsOneValueOnly() { var view = await GetViewAsync("VIEW_TEST_VIEW_1").ConfigureAwait(false); Assert.That(view.Columns, Has.Exactly(1).Items); } [Test] public async Task Columns_WhenViewContainsSingleColumn_ContainsColumnName() { const string expectedColumnName = "TEST"; var view = await GetViewAsync("VIEW_TEST_VIEW_1").ConfigureAwait(false); var containsColumn = view.Columns.Any(c => c.Name == expectedColumnName); Assert.That(containsColumn, Is.True); } [Test] public async Task GetAllViews_WhenEnumerated_ContainsTestMaterializedView() { const string viewName = "VIEW_TEST_VIEW_2"; var containsTestView = await ViewProvider.GetAllViews() .AnyAsync(v => string.Equals(v.Name.LocalName, viewName, StringComparison.Ordinal)) .ConfigureAwait(false); Assert.That(containsTestView, Is.True); } [Test] public async Task Definition_PropertyGet_ReturnsCorrectDefinitionForMaterializedView() { var viewName = new Identifier(IdentifierDefaults.Schema, "VIEW_TEST_VIEW_2"); var view = await GetViewAsync(viewName).ConfigureAwait(false); var definition = view.Definition; const string expected = "select table_id as test from view_test_table_1"; Assert.That(definition, Is.EqualTo(expected)); } [Test] public async Task IsMaterialized_WhenViewIsMaterialized_ReturnsTrue() { var view = await GetViewAsync("VIEW_TEST_VIEW_2").ConfigureAwait(false); Assert.That(view.IsMaterialized, Is.True); } [Test] public async Task Columns_WhenMaterializedViewContainsSingleColumn_ContainsOneValueOnly() { var viewName = new Identifier(IdentifierDefaults.Schema, "VIEW_TEST_VIEW_2"); var view = await GetViewAsync(viewName).ConfigureAwait(false); Assert.That(view.Columns, Has.Exactly(1).Items); } [Test] public async Task Columns_WhenMaterializedViewContainsSingleColumn_ContainsColumnName() { var viewName = new Identifier(IdentifierDefaults.Schema, "VIEW_TEST_VIEW_2"); var view = await GetViewAsync(viewName).ConfigureAwait(false); var containsColumn = view.Columns.Any(c => c.Name == "TEST"); Assert.That(containsColumn, Is.True); } } }
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.utils.timezone import utc import datetime class Migration(migrations.Migration): dependencies = [ ('content', '0009_auto_20150829_1417'), ] operations = [ migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('msg_subject', models.CharField(max_length=255, verbose_name='Subject')), ('msg_text', models.TextField(verbose_name='Text')), ('msg_author', models.EmailField(max_length=75, verbose_name='From')), ('recv_date', models.DateTimeField(editable=False, verbose_name='Date Received', default=datetime.datetime(2015, 10, 19, 4, 10, 29, 712166, tzinfo=utc))), ], options={ }, bases=(models.Model,), ), migrations.AlterField( model_name='event', name='pub_date', field=models.DateTimeField(editable=False, verbose_name='Date Published', default=datetime.datetime(2015, 10, 19, 4, 10, 29, 711232, tzinfo=utc)), preserve_default=True, ), migrations.AlterField( model_name='post', name='pub_date', field=models.DateTimeField(editable=False, verbose_name='Date Published', default=datetime.datetime(2015, 10, 19, 4, 10, 29, 711716, tzinfo=utc)), preserve_default=True, ), ]
''' Manage Ruby gem packages. (see https://rubygems.org/ ) ''' from pyinfra.api import operation from pyinfra.facts.gem import GemPackages from .util.packaging import ensure_packages @operation def packages(packages=None, present=True, latest=False, state=None, host=None): ''' Add/remove/update gem packages. + packages: list of packages to ensure + present: whether the packages should be installed + latest: whether to upgrade packages without a specified version Versions: Package versions can be pinned like gem: ``<pkg>:<version>``. Example: .. code:: python # Note: Assumes that 'gem' is installed. gem.packages( name='Install rspec', packages=['rspec'], ) ''' yield ensure_packages( host, packages, host.get_fact(GemPackages), present, install_command='gem install', uninstall_command='gem uninstall', upgrade_command='gem update', version_join=':', latest=latest, )
// eslint-disable-next-line function getCookie(cname) { const name = `${cname}=`; const ca = document.cookie.split(';'); for (let i = 0; i < ca.length; i += 1) { let c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1); if (c.indexOf(name) !== -1) return c.substring(name.length, c.length); } return ''; }
package TeamTwoHTMLEditor.command; import TeamTwoHTMLEditor.CommandDistributor; import TeamTwoHTMLEditor.CommandMediator; import TeamTwoHTMLEditor.GUI.EditorFrame; import javax.swing.*; /** * Created with IntelliJ IDEA. User: Kocsen Date: 3/22/13 Time: 2:16 PM */ public class ShutDownCommand implements Command{ private final ActiveContext context; public ShutDownCommand(ActiveContext context){ this.context = context; } /** * Checks if the editor can quit based on the save state of the files. If * all files are saved, the editor quit, else an interruption option pane is * shown to prevent the shutdown operation. * * @param c - Command distributor who has a reference access to the * FileManager */ @Override public void execute(CommandDistributor c, CommandMediator cmd){ if(c.getFileManager().canQuit()){ context.getParent().dispose(); System.out.println("Shutting Down System"); } else{ int n = JOptionPane.showConfirmDialog( context.getParent(), "There are some unsaved files, would you like to quit anyway?", "Unsaved Files", JOptionPane.YES_NO_OPTION); if(n == JOptionPane.YES_OPTION){ context.getParent().dispose(); System.out.println("Shutting Down System"); } else{ } } c.getFileManager().printStatus(); } }
--- layout: post date: 2016-12-11 title: "Sherri Hill Prom Dresses Style 11216 Sleeveless Short/Mini Aline/Princess" category: Sherri Hill tags: [Sherri Hill ,Sherri Hill,Aline/Princess ,Sweetheart,Short/Mini,Sleeveless] --- ### Sherri Hill Prom Dresses Style 11216 Just **$559.99** ### Sleeveless Short/Mini Aline/Princess <table><tr><td>BRANDS</td><td>Sherri Hill</td></tr><tr><td>Silhouette</td><td>Aline/Princess </td></tr><tr><td>Neckline</td><td>Sweetheart</td></tr><tr><td>Hemline/Train</td><td>Short/Mini</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr></table> <a href="https://www.readybrides.com/en/sherri-hill-/50545-sherri-hill-prom-dresses-style-11216.html"><img src="//img.readybrides.com/116783/sherri-hill-prom-dresses-style-11216.jpg" alt="Sherri Hill Prom Dresses Style 11216" style="width:100%;" /></a> <!-- break --> Buy it: [https://www.readybrides.com/en/sherri-hill-/50545-sherri-hill-prom-dresses-style-11216.html](https://www.readybrides.com/en/sherri-hill-/50545-sherri-hill-prom-dresses-style-11216.html)
<html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="app.css"> </head> <body> <div id="please-wait"> <img src="ajax-loader-lg.gif"> </div> <div id="controls" style="display: none;"> <a id="github" target="_blank" href="https://github.com/marriola/SWAPI-demo"></a> <select id="resources" v-model="selected" @change="selectResource"> <option v-for="resource in store" value="{{ $index }}">{{ resource.displayName }}</option> </select> <button id="btnGet" disabled>Get</button> <button id="btnClear">Clear link cache</button> <br/> <button id="btnPrev" disabled="">&lt;&lt;</button> <button id="btnNext" disabled="">&gt;&gt;</button> <img src="ajax-loader-dark.gif" id="spinner" style="display: none;"> <!-- Column filter --> <br/> <div id="columnFilter"> <a id="columnFilterExpand" href="javascript:void(0)"><div> <h3 style="display: inline-block; margin: 0px;">Columns</h3> <span id="expandIndicator" style="float: right;" class="closed"></span> </div></a> <div id="columns" style="display: none;"> <div class="columnNameHeader"> <a v-for="resource in resources" href="javascript:void(0)" class="columnName" @click="showColumns(resource)" data-index="{{ resource.index }}"> {{ resource.displayName }} </a> </div> <div v-for="resource in resources" style="display: none" class="columnPage" data-index="{{ resource.index }}"> <div class="columnContainer"> <label v-for="column in resource.columns" v-bind:class="{ 'bold': column.hasUrl }" draggable="true"> <input type="checkbox" name="{{ column.name }}" v-model="column.show" @change="saveFilter(resource)"> {{ column.displayName }} </label> </div> </div> </div> </div> </div> <div id="overlay" style="display: none"></div> <div id="rest"></div> <!-- Templates --> <template id="entity-col-template"> <span> <template v-if="isArray(value)"> <a v-for="(index, url) in value" href="{{ url }}" @click="clickLink(url, $event)" class="link" v-bind:class="{ 'not-set': !linkStore[url] }">{{ linkStore[url] }}</a> </template> <template v-else> <template v-if="hasUrl && value"> <a href="{{ value }}" @click="clickLink(value, $event)" class="link" v-bind:class="{ 'not-set': !linkStore[value] }">{{ linkStore[value] }}</a> </template> <template v-else>{{ sanitize(value) }}</template> </template> </span> </template> <div id="table-template" style="display: none;"> <p>Displaying results <b>{{ pageStart }}</b> to <b>{{ pageEnd }}</b> out of <b>{{ count }}</b></p> <table> <thead> <tr> <th v-for="column in resource.columns" v-if="column.show" transition="fade-out" v-class:bind="{ 'mobile': showOnMobile(column.name) }">{{ column.displayName }}</th> </tr> </thead> <tbody> <tr v-for="result in results"> <td v-for="column in resource.columns" v-if="column.show" transition="fade-out" v-class:bind="{ 'mobile': showOnMobile(column.name) }"> <value :has-url="column.hasUrl" :value="result[column.name]" :link-store="linkStore"></value> </td> </tr> </tbody> </table> </div> <div id="table-popup-template" style="display: none"> <a id="btnClose" class="link" href="javascript:$VueDemo.default.tablePopup.hideOverlay()">[x]</a> <div id="table-popup-scroll"> <table> <tbody> <tr v-for="row in shown"> <td>{{ row.displayName }}</td> <td><value :has-url="row.hasUrl" :value="row.value" :link-store="linkStore"></value></td> </tr> <tr v-if="hidden.length > 0" v-bind:class="{ 'hidden-column': showHidden }"> <td colspan="2"> <div class="hidden-columns-expander" v-bind:class="{ 'hidden-column': showHidden }" transition="slide"> <a href="javascript:void(0)" @click="showHidden = true">{{ hidden.length }} more...</a> </div> </td> </tr> <tr v-for="row in hidden" v-bind:class="{ 'hidden-column': !showHidden }"> <td> <div class="hidden-column" v-bind:class="{ 'hidden-column': !showHidden }" transition="slide"> {{ row.displayName }} </div> </td> <td> <value :has-url="row.hasUrl" :value="row.value" :link-store="linkStore" v-bind:class="{ 'hidden-column': !showHidden }" transition="slide"></value> </td> </tr> </tbody> </table> </div> </div> <!--<script src="https://code.jquery.com/jquery-2.2.3.js"></script>--> <!-- <script src="http://cdn.jsdelivr.net/vue/1.0.16/vue.js"></script> --> <script src="https://code.jquery.com/jquery-2.2.3.min.js"></script> <script src="https://cdn.jsdelivr.net/vue/1.0.21/vue.min.js"></script> <script src="vendor.js" type="text/javascript"></script> <script src="app.js" type="text/javascript"></script> <script type="text/javascript"> var $VueDemo = require("sw-demo.js"); </script> </body> </html>
/** * Size: breakpoint 2 (medium) */ /** * Make an element shrink wrap its content. */ .u-sizeFit, .u-sizeFitAlt { display: block !important; float: left !important; width: auto !important; -md-raswa: auto; } .u-sizeFitAlt { float: right !important; }
# -*- coding: utf-8 -*- # # partpy documentation build configuration file, created by # sphinx-quickstart on Sat Feb 16 18:56:06 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('../')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.doctest'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'partpy' copyright = u'2013, Taylor "Nekroze" Lawson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '1.2' # The full version, including alpha/beta/rc tags. release = '1.2.4' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a <link> tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'partpydoc' # -- Options for LaTeX output -------------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'partpy.tex', u'partpy Documentation', u'Taylor "Nekroze" Lawson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'partpy', u'partpy Documentation', [u'Taylor "Nekroze" Lawson'], 1) ] # If true, show URL addresses after external links. #man_show_urls = False # -- Options for Texinfo output ------------------------------------------------ # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'partpy', u'partpy Documentation', u'Taylor "Nekroze" Lawson', 'partpy', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. epub_title = u'partpy' epub_author = u'Taylor "Nekroze" Lawson' epub_publisher = u'Taylor "Nekroze" Lawson' epub_copyright = u'2013, Taylor "Nekroze" Lawson' # The language of the text. It defaults to the language option # or en if the language is not set. #epub_language = '' # The scheme of the identifier. Typical schemes are ISBN or URL. #epub_scheme = '' # The unique identifier of the text. This can be a ISBN number # or the project homepage. #epub_identifier = '' # A unique identification for the text. #epub_uid = '' # A tuple containing the cover image and cover page html template filenames. #epub_cover = () # HTML files that should be inserted before the pages created by sphinx. # The format is a list of tuples containing the path and title. #epub_pre_files = [] # HTML files shat should be inserted after the pages created by sphinx. # The format is a list of tuples containing the path and title. #epub_post_files = [] # A list of files that should not be packed into the epub file. #epub_exclude_files = [] # The depth of the table of contents in toc.ncx. #epub_tocdepth = 3 # Allow duplicate toc entries. #epub_tocdup = True
<?php declare(strict_types=1); /* * This file is part of the MediaModule for Zikula. * * (c) Christian Flach <hi@christianflach.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cmfcmf\Module\MediaModule\MediaType; use Cmfcmf\Module\MediaModule\Entity\Media\AbstractMediaEntity; use Cmfcmf\Module\MediaModule\Entity\Media\MarkdownEntity; use Cmfcmf\Module\MediaModule\Entity\Media\PlaintextEntity; use Michelf\MarkdownExtra; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\UploadedFile; class Markdown extends AbstractFileMediaType implements UploadableMediaTypeInterface { /** * @var MarkdownExtra */ private $markdownExtraParser; /** * {@inheritdoc} */ public function getDisplayName() { return $this->translator->trans('Markdown', [], 'cmfcmfmediamodule'); } /** * {@inheritdoc} */ public function getIcon() { return 'fa-align-right'; } public function setMarkdownParser(MarkdownExtra $markdownExtraParser) { $this->markdownExtraParser = $markdownExtraParser; } public function renderFullpage(AbstractMediaEntity $entity) { /** @var MarkdownEntity $entity */ $raw = file_get_contents($entity->getPath()); $rendered = $this->markdownExtraParser->transform($raw); return $this->renderEngine->render('CmfcmfMediaModule:MediaType/Markdown:fullpage.html.twig', [ 'entity' => $entity, 'rendered' => $rendered, 'raw' => $raw ]); } public function getExtendedMetaInformation(AbstractMediaEntity $entity) { return []; } /** * {@inheritdoc} */ public function canUpload(File $file) { if ('text/plain' === $file->getMimeType()) { if ('md' === $file->getExtension() || ($file instanceof UploadedFile && 'md' === $file->getClientOriginalExtension())) { return 5; } } return 0; } /** * {@inheritdoc} */ public function mightUpload($mimeType, $size, $name) { if ('text/plain' === $mimeType && 'md' === pathinfo($name, PATHINFO_EXTENSION)) { return 5; } return 0; } public function getThumbnail(AbstractMediaEntity $entity, $width, $height, $format = 'html', $mode = 'outbound', $optimize = true) { /** @var PlaintextEntity $entity */ return $this->getIconThumbnailByFileExtension($entity, $width, $height, $format, $mode, $optimize, 'txt'); } public function isEmbeddable() { return false; } }
/* * Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ (function(f, define){ define([], f); })(function(){ (function( window, undefined ) { var kendo = window.kendo || (window.kendo = { cultures: {} }); kendo.cultures["kok"] = { name: "kok", numberFormat: { pattern: ["-n"], decimals: 2, ",": ",", ".": ".", groupSize: [3,2], percent: { pattern: ["-n %","n %"], decimals: 2, ",": ",", ".": ".", groupSize: [3,2], symbol: "%" }, currency: { pattern: ["$ -n","$ n"], decimals: 2, ",": ",", ".": ".", groupSize: [3,2], symbol: "₹" } }, calendars: { standard: { days: { names: ["आयतार","सोमार","मंगळार","बुधवार","बिरेस्तार","सुक्रार","शेनवार"], namesAbbr: ["आय.","सोम.","मंगळ.","बुध.","बिरे.","सुक्र.","शेन."], namesShort: ["आ","स","म","ब","ब","स","श"] }, months: { names: ["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर"], namesAbbr: ["जाने","फेब्रु","मार्च","एप्रिल","मे","जून","जुलै","ऑग.","सप्टें.","ऑक्टो.","नोवे.","डिसें"] }, AM: ["म.पू.","म.पू.","म.पू."], PM: ["म.नं.","म.नं.","म.नं."], patterns: { d: "dd-MM-yyyy", D: "dd MMMM yyyy", F: "dd MMMM yyyy HH:mm:ss", g: "dd-MM-yyyy HH:mm", G: "dd-MM-yyyy HH:mm:ss", m: "dd MMMM", M: "dd MMMM", s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", t: "HH:mm", T: "HH:mm:ss", u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", y: "MMMM, yyyy", Y: "MMMM, yyyy" }, "/": "-", ":": ":", firstDay: 1 } } } })(this); return window.kendo; }, typeof define == 'function' && define.amd ? define : function(_, f){ f(); });
package me.writeily.pro.settings; import android.app.Activity; import android.app.FragmentManager; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceFragment; import android.preference.PreferenceManager; import android.support.v7.app.ActionBarActivity; import me.writeily.pro.AlphanumericPinActivity; import me.writeily.pro.PinActivity; import me.writeily.pro.R; import me.writeily.pro.dialog.FilesystemDialog; import me.writeily.pro.model.Constants; /** * Created by jeff on 2014-04-11. */ public class SettingsFragment extends PreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener { WriteilySettingsListener mCallback; ListPreference pinPreference; Context context; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); context = getActivity().getApplicationContext(); pinPreference = (ListPreference) findPreference(getString(R.string.pref_lock_type_key)); updateLockSummary(); // Listen for Pin Preference change pinPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { @Override public boolean onPreferenceChange(Preference preference, Object o) { String lockType = (String) o; if (lockType == null || lockType.equals("") || getString(R.string.pref_no_lock_value).equals(lockType)) { SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(context).edit(); editor.putString(Constants.USER_PIN_KEY, "").apply(); editor.putString(getString(R.string.pref_lock_type_key), getString(R.string.pref_no_lock_value)).apply(); pinPreference.setSummary(PreferenceManager.getDefaultSharedPreferences(context) .getString(getString(R.string.pref_no_lock_value), getString(R.string.pref_no_lock))); return true; } else if (getString(R.string.pref_pin_lock_value).equals(lockType)) { Intent pinIntent = new Intent(context, PinActivity.class); pinIntent.setAction(Constants.SET_PIN_ACTION); startActivityForResult(pinIntent, Constants.SET_PIN_REQUEST_CODE); } else if (getString(R.string.pref_alpha_pin_lock_value).equals(lockType)) { Intent pinIntent = new Intent(context, AlphanumericPinActivity.class); pinIntent.setAction(Constants.SET_PIN_ACTION); startActivityForResult(pinIntent, Constants.SET_PIN_REQUEST_CODE); } return false; } }); // Register PreferenceChangeListener getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); // Workaround for About-Screen Preference aboutScreen = (Preference) findPreference(getString(R.string.pref_about_key)); aboutScreen.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { if (mCallback == null) { return false; } mCallback.onAboutClicked(); return true; } }); setUpStorageDirPreference(); } private void setUpStorageDirPreference() { final Preference rootDir = (Preference) findPreference(getString(R.string.pref_root_directory)); rootDir.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { FragmentManager fragManager = getFragmentManager(); Bundle args = new Bundle(); args.putString(Constants.FILESYSTEM_ACTIVITY_ACCESS_TYPE_KEY, Constants.FILESYSTEM_SELECT_FOLDER_ACCESS_TYPE); FilesystemDialog filesystemDialog = new FilesystemDialog(); filesystemDialog.setArguments(args); filesystemDialog.show(fragManager, Constants.FILESYSTEM_SELECT_FOLDER_TAG); return true; } }); updateRootDirSummary(); } public void updateRootDirSummary() { Preference rootDir = findPreference(getString(R.string.pref_root_directory));; rootDir.setSummary(PreferenceManager.getDefaultSharedPreferences(context).getString(getString(R.string.pref_root_directory), Constants.DEFAULT_WRITEILY_STORAGE_FOLDER)); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == Constants.SET_PIN_REQUEST_CODE) { if (resultCode == Activity.RESULT_OK) { updateLockSummary(); } } } private void updateLockSummary() { Integer currentLockType = Integer.valueOf(PreferenceManager.getDefaultSharedPreferences(context).getString(getString(R.string.pref_lock_type_key), "0")); pinPreference.setSummary(getResources().getStringArray(R.array.possibleLocksStrings)[currentLockType]); } @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { ActionBarActivity activity = (ActionBarActivity) mCallback; if (activity.getString(R.string.pref_theme_key).equals(key)) { mCallback.onThemeChanged(); } } @Override public void onAttach(Activity activity) { super.onAttach(activity); // Make sure the container has implemented the callback interface try { mCallback = (WriteilySettingsListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + "must implement OnThemeChangedListener"); } } // Needed for callback to container activity public interface WriteilySettingsListener { public void onThemeChanged(); public void onAboutClicked(); } }
/* * The MIT License (MIT) * * Copyright (c) 2015 QAware GmbH, Munich, Germany * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package de.qaware.campus.secpro.mlr01; import sun.misc.Unsafe; import java.lang.reflect.Field; /** * Special factory to obtain unsafe instance. Ideas and code are taken from * http://mishadoff.com/blog/java-magic-part-4-sun-dot-misc-dot-unsafe/ * * @author mario-leander.reimer */ public final class TheUnsafe { /** * Utility factory class. No instances. */ private TheUnsafe() { } /** * Factory method for Unsafe instances. * * @return an Unsafe instance */ public static Unsafe getInstance() { try { Field f = Unsafe.class.getDeclaredField("theUnsafe"); f.setAccessible(true); return (Unsafe) f.get(null); } catch (NoSuchFieldException | SecurityException | IllegalAccessException e) { throw new IllegalStateException(e); } } /** * Convert object to its address in memory. * * @param obj the object * @return the address in memory */ public static long toAddress(Object obj) { Object[] array = new Object[]{obj}; long baseOffset = getInstance().arrayBaseOffset(Object[].class); return normalize(getInstance().getInt(array, baseOffset)); } /** * Convert address to associated object in memory. * * @param address the address * @return the object */ public static Object fromAddress(long address) { Object[] array = new Object[]{null}; long baseOffset = getInstance().arrayBaseOffset(Object[].class); getInstance().putLong(array, baseOffset, address); return array[0]; } /** * Obtain a copy of the given object. No Cloneable required. * * @param obj the object to copy * @return the copy */ public static Object shallowCopy(Object obj) { long size = sizeOf(obj); long start = toAddress(obj); Unsafe instance = getInstance(); long address = instance.allocateMemory(size); instance.copyMemory(start, address, size); return fromAddress(address); } /** * Much simpler sizeOf can be achieved if we just read size value from the class * struct for this object, which located with offset 12 in JVM 1.7 32 bit. * * @param object the object instance * @return the size of the object */ public static long sizeOf(Object object) { Unsafe instance = getInstance(); return instance.getAddress(normalize(instance.getInt(object, 4L)) + 12L); } /** * Normalize is a method for casting signed int to unsigned long, for correct address usage. * * @param value the signed int * @return an unsigned long */ private static long normalize(int value) { if (value >= 0) return value; return (~0L >>> 32) & value; } }
/* * monitor.c - Routines for monitors within the runtime. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * Authors: Thong Nguyen (tum@veridicus.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "engine.h" #include "lib_defs.h" #include "../support/interlocked.h" #ifdef __cplusplus extern "C" { #endif /* * See engine/lib_monitor.c for notes on the monitor algorithm. */ #ifdef IL_CONFIG_USE_THIN_LOCKS #define DEFAULT_HASHTABLE_SIZE (523) /* * An entry in the monitor Hashtable. */ typedef struct _tagILMonitorEntry ILMonitorEntry; struct _tagILMonitorEntry { volatile ILObject *obj; volatile ILLockWord lockWord; volatile ILMonitorEntry *next; }; #endif /* IL_CONFIG_USE_THIN_LOCKS */ /* * Intialize the monitor system for this process. */ int _ILExecMonitorProcessCreate(ILExecProcess *process) { #ifdef IL_CONFIG_USE_THIN_LOCKS ILMonitorEntry **table; /* Initialize the monitor system lock */ process->monitorSystemLock = ILMutexCreate(); if(!(process->monitorSystemLock)) { return 0; } table = (ILMonitorEntry **)ILGCAlloc(sizeof(ILMonitorEntry *) * DEFAULT_HASHTABLE_SIZE); if (table == 0) { ILMutexDestroy(process->monitorSystemLock); return 0; } process->monitorTable = table; return 1; #else return 1; #endif } /* * Clean up the monitor system for this process. */ int _ILExecMonitorProcessDestroy(ILExecProcess *process) { #ifdef IL_CONFIG_USE_THIN_LOCKS if (process->monitorSystemLock) { ILMutexDestroy(process->monitorSystemLock); } return 1; #else return 1; #endif } /* * Finalizer for monitors. */ static void ILExecMonitorFinalizer(void *block, void *data) { ILExecMonitor *monitor = (ILExecMonitor *)block; ILWaitHandleClose(monitor->waitMutex); } /* * Create a new monitor. */ ILExecMonitor *_ILExecMonitorCreate(void) { ILExecMonitor *monitor; /* Allocate memory for the ILExecMonitor */ if((monitor = (ILExecMonitor *)ILGCAlloc(sizeof(ILExecMonitor))) == 0) { return 0; } /* Allocate memory for the wait monitor */ if((monitor->waitMutex = ILWaitMonitorCreate()) == 0) { ILFree(monitor); return 0; } monitor->waiters = 0; monitor->next = 0; ILGCRegisterFinalizer(monitor, ILExecMonitorFinalizer, 0); return monitor; } #ifdef IL_CONFIG_USE_THIN_LOCKS /* * Gets a pointer to the WaitHandle object used by the object. */ static IL_INLINE ILLockWord *GetObjectLockWordPtr(ILExecThread *thread, ILObject *obj) { ILNativeInt x; volatile ILMonitorEntry **table, *entry, *preventry, *ghost, *ghostparent; ILMutexLock(thread->process->monitorSystemLock); table = thread->process->monitorTable; /* Get the hashtable index */ x = (ILNativeInt)obj; x = x ^ (x / sizeof(int)); x %= DEFAULT_HASHTABLE_SIZE; entry = table[x]; ghost = 0; ghostparent = 0; preventry = 0; for (;;) { if (entry == 0) { if (ghost == 0) { /* No ghost found. Create a whole new entry. */ if ((entry = (ILMonitorEntry *)ILGCAlloc(sizeof(ILMonitorEntry))) == 0) { ILMutexUnlock(thread->process->monitorSystemLock); ILExecThreadThrowOutOfMemory(thread); return 0; } } else { /* Use the entry that no longer points to a live object */ entry = ghost; /* Remove ghost from list */ if (ghostparent == 0) { table[x] = ghost->next; } else { ghostparent->next = ghost->next; } ILGCUnregisterWeak((void *)&entry->obj); } /* Setup the new entry */ entry->obj = obj; entry->next = table[x]; entry->lockWord = 0; table[x] = entry; /* Tells the GC to zero entry->obj if obj is GC-ed */ ILGCRegisterGeneralWeak((void *)&entry->obj, obj); ILMutexUnlock(thread->process->monitorSystemLock); return (ILLockWord *)&entry->lockWord; } else if (entry->obj == obj) { /* Entry was found. Return it */ ILMutexUnlock(thread->process->monitorSystemLock); return (ILLockWord *)&entry->lockWord; } else if (entry->obj == 0) { /* Found an entry pointing to a dead object */ if (ghost == 0) { ghost = entry; /* Save the parent so we can remove the ghost from the list if it is used */ ghostparent = preventry; } } preventry = entry; entry = entry->next; } ILMutexUnlock(thread->process->monitorSystemLock); return 0; } /* * Implementation of GetObjectLockWord using hashtables. */ ILLockWord GetObjectLockWord(ILExecThread *thread, ILObject *obj) { return *GetObjectLockWordPtr(thread, obj); } /* * Implementation of SetObjectLockWord using hashtables. */ void SetObjectLockWord(ILExecThread *thread, ILObject *obj, ILLockWord value) { *GetObjectLockWordPtr(thread, obj) = value; } /* * Implementation of CompareAndExchangeObjectLockWord using hashtables. */ ILLockWord CompareAndExchangeObjectLockWord(ILExecThread *thread, ILObject *obj, ILLockWord value, ILLockWord comparand) { ILLockWord oldValue; ILLockWord *lockWordPtr; /* Lockdown the monitor hashtable */ ILMutexLock(thread->process->monitorSystemLock); lockWordPtr = GetObjectLockWordPtr(thread, obj); /* Do the compare & exchange */ if ((oldValue = *lockWordPtr ) == comparand) { *lockWordPtr = value; } /* Unlock the monitor hashtable */ ILMutexUnlock(thread->process->monitorSystemLock); return oldValue; } #endif /* IL_CONFIG_USE_THIN_LOCKS */ #ifdef __cplusplus }; #endif
<HTML><HEAD> <TITLE>Review for Trouble in Mind (1985)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0090209">Trouble in Mind (1985)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Lon+Ponschock">Lon Ponschock</A></H3><HR WIDTH="40%" SIZE="4"> <PRE> TROUBLE IN MIND A film review by Lons Ponschock Copyright 1995 Lons Ponschock</PRE> <P>A film by Alan Rudolph Music by Mark Isham Stars Kris Kristofferson, Keith Carradine, Lori Singer, and Genevieve Bujold</P> <PRE> "When his ship comes in, there's going to be a dock strike."</PRE> <PRE> -- from TROUBLE IN MIND --</PRE> <PRE> Couldn't resist that. My favorite line in the picture.</PRE> <P> This is an old film (1985). Alan Rudolph is a special director. I've written about his films such as CHOOSE ME and the MODERNS and also EQUINOX which is his most recent starring Mathew Modine.</P> <P> There's a quietness about an Alan Rudolph piece. And his pictures are often set out of time and place. Here, for instance, the scene is a place which is a major metropolitan area simply called Rain City. The cars on the street are autos like the 1971 'Batmobile' sharkback Buick and also one of the earliest Barracudas or 'back-a-rudas' as the old commercial had it: Cool stuff in other words.</P> <P> A new friend lent me a personal copy of this piece: a purchased copy. So I expected something special.</P> <PRE> I got it too.</PRE> <P> Rain City, with all it's detail is just slightly skewed. The costumes are a bit different, the language is a bit different. Oh yes, and Divine is in this and she is a bit different as well.</P> <P> Kris Kristofferson (THE SAILOR WHO FELL FROM GRACE WITH THE SEA, THE SILVER BEARS, MILLENNIUM) was never my favorite actor. Let's face it, I hate the somebitch. Having said that, I can still recommend TROUBLE IN MIND. The story is a fairly simple tale of low life in the big city. But with light, sound and a wonderful score by Mark Isham (QUIZ SHOW and THE BEAST, something that was barely released but the music was broadcast as part of a new age prog. on public radio) Rain City becomes a magical place... a place that cities always seem to be to those who don't live in them I think. But magical anyway.</P> <P> It's about low life, small time hoods and ex-cops--the stuff of which most B-movies are made. A few elements appear here which on a single viewing didn't make sense: a Shinto ceremony, an enemy killed in the style of a Vietnam jungle fight, a shoot-out which has the effect of looking like a custard pie fight in a Mack Sennet comedy at the end.</P> <P> And through all this strangeness, these images out of the mind of the director, comes that landscape of art deco and modern, almost campy stylishness there is ... cool stuff.</P> <PRE> So TROUBLE IN MIND is a special film.</PRE> <PRE>-- lon</PRE> <HR><P CLASS=flush><SMALL>The review above was posted to the <A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR> The Internet Movie Database accepts no responsibility for the contents of the review and has no editorial control. Unless stated otherwise, the copyright belongs to the author.<BR> Please direct comments/criticisms of the review to relevant newsgroups.<BR> Broken URLs inthe reviews are the responsibility of the author.<BR> The formatting of the review is likely to differ from the original due to ASCII to HTML conversion. </SMALL></P> <P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P> </P></BODY></HTML>
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef js_Id_h #define js_Id_h // A jsid is an identifier for a property or method of an object which is // either a 31-bit signed integer, interned string or object. // // Also, there is an additional jsid value, JSID_VOID, which does not occur in // JS scripts but may be used to indicate the absence of a valid jsid. A void // jsid is not a valid id and only arises as an exceptional API return value, // such as in JS_NextProperty. Embeddings must not pass JSID_VOID into JSAPI // entry points expecting a jsid and do not need to handle JSID_VOID in hooks // receiving a jsid except when explicitly noted in the API contract. // // A jsid is not implicitly convertible to or from a jsval; JS_ValueToId or // JS_IdToValue must be used instead. #include "mozilla/NullPtr.h" #include "jstypes.h" #include "js/HeapAPI.h" #include "js/RootingAPI.h" #include "js/TypeDecls.h" #include "js/Utility.h" struct jsid { size_t asBits; bool operator==(jsid rhs) const { return asBits == rhs.asBits; } bool operator!=(jsid rhs) const { return asBits != rhs.asBits; } }; #define JSID_BITS(id) (id.asBits) #define JSID_TYPE_STRING 0x0 #define JSID_TYPE_INT 0x1 #define JSID_TYPE_VOID 0x2 #define JSID_TYPE_SYMBOL 0x4 #define JSID_TYPE_MASK 0x7 // Avoid using canonical 'id' for jsid parameters since this is a magic word in // Objective-C++ which, apparently, wants to be able to #include jsapi.h. #define id iden static MOZ_ALWAYS_INLINE bool JSID_IS_STRING(jsid id) { return (JSID_BITS(id) & JSID_TYPE_MASK) == 0; } static MOZ_ALWAYS_INLINE JSString * JSID_TO_STRING(jsid id) { MOZ_ASSERT(JSID_IS_STRING(id)); return (JSString *)JSID_BITS(id); } /* * Only JSStrings that have been interned via the JSAPI can be turned into * jsids by API clients. * * N.B. if a jsid is backed by a string which has not been interned, that * string must be appropriately rooted to avoid being collected by the GC. */ JS_PUBLIC_API(jsid) INTERNED_STRING_TO_JSID(JSContext *cx, JSString *str); static MOZ_ALWAYS_INLINE bool JSID_IS_ZERO(jsid id) { return JSID_BITS(id) == 0; } static MOZ_ALWAYS_INLINE bool JSID_IS_INT(jsid id) { return !!(JSID_BITS(id) & JSID_TYPE_INT); } static MOZ_ALWAYS_INLINE int32_t JSID_TO_INT(jsid id) { MOZ_ASSERT(JSID_IS_INT(id)); return ((uint32_t)JSID_BITS(id)) >> 1; } #define JSID_INT_MIN 0 #define JSID_INT_MAX INT32_MAX static MOZ_ALWAYS_INLINE bool INT_FITS_IN_JSID(int32_t i) { return i >= 0; } static MOZ_ALWAYS_INLINE jsid INT_TO_JSID(int32_t i) { jsid id; MOZ_ASSERT(INT_FITS_IN_JSID(i)); JSID_BITS(id) = ((i << 1) | JSID_TYPE_INT); return id; } static MOZ_ALWAYS_INLINE bool JSID_IS_SYMBOL(jsid id) { return (JSID_BITS(id) & JSID_TYPE_MASK) == JSID_TYPE_SYMBOL && JSID_BITS(id) != JSID_TYPE_SYMBOL; } static MOZ_ALWAYS_INLINE JS::Symbol * JSID_TO_SYMBOL(jsid id) { MOZ_ASSERT(JSID_IS_SYMBOL(id)); return (JS::Symbol *)(JSID_BITS(id) & ~(size_t)JSID_TYPE_MASK); } static MOZ_ALWAYS_INLINE jsid SYMBOL_TO_JSID(JS::Symbol *sym) { jsid id; MOZ_ASSERT(sym != nullptr); MOZ_ASSERT((size_t(sym) & JSID_TYPE_MASK) == 0); JS_ASSERT(!js::gc::IsInsideNursery(JS::AsCell(sym))); JS_ASSERT(!JS::IsPoisonedPtr(sym)); JSID_BITS(id) = (size_t(sym) | JSID_TYPE_SYMBOL); return id; } static MOZ_ALWAYS_INLINE bool JSID_IS_GCTHING(jsid id) { return JSID_IS_STRING(id) || JSID_IS_SYMBOL(id); } static MOZ_ALWAYS_INLINE void * JSID_TO_GCTHING(jsid id) { return (void *)(JSID_BITS(id) & ~(size_t)JSID_TYPE_MASK); } static MOZ_ALWAYS_INLINE bool JSID_IS_VOID(const jsid id) { MOZ_ASSERT_IF(((size_t)JSID_BITS(id) & JSID_TYPE_MASK) == JSID_TYPE_VOID, JSID_BITS(id) == JSID_TYPE_VOID); return (size_t)JSID_BITS(id) == JSID_TYPE_VOID; } static MOZ_ALWAYS_INLINE bool JSID_IS_EMPTY(const jsid id) { return (size_t)JSID_BITS(id) == JSID_TYPE_SYMBOL; } extern JS_PUBLIC_DATA(const jsid) JSID_VOID; extern JS_PUBLIC_DATA(const jsid) JSID_EMPTY; extern JS_PUBLIC_DATA(const JS::HandleId) JSID_VOIDHANDLE; extern JS_PUBLIC_DATA(const JS::HandleId) JSID_EMPTYHANDLE; namespace js { inline bool IsPoisonedId(jsid id) { if (JSID_IS_STRING(id)) return JS::IsPoisonedPtr(JSID_TO_STRING(id)); if (JSID_IS_SYMBOL(id)) return JS::IsPoisonedPtr(JSID_TO_SYMBOL(id)); return false; } template <> struct GCMethods<jsid> { static jsid initial() { return JSID_VOID; } static bool poisoned(jsid id) { return IsPoisonedId(id); } static bool needsPostBarrier(jsid id) { return false; } #ifdef JSGC_GENERATIONAL static void postBarrier(jsid *idp) {} static void relocate(jsid *idp) {} #endif }; #undef id } #endif /* js_Id_h */