code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cfgv: 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.12.2 / cfgv - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> cfgv <small> 8.9.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-09 06:27:18 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-09 06:27:18 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;http://www.nuprl.org/html/CFGVLFMTP2014/&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CFGV&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9.1&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: generic programming&quot; &quot;keyword: variable bindings&quot; &quot;keyword: context free grammars&quot; &quot;keyword: substitution&quot; &quot;keyword: alpha equality&quot; &quot;keyword: equivariance&quot; &quot;category: Computer Science/Lambda Calculi&quot; ] authors: [ &quot;Abhishek &lt;abhishek.anand.iitg@gmail.com&gt; [http://www.cs.cornell.edu/~aa755/]&quot; &quot;Vincent Rahli &lt;vincent.rahli@gmail.com&gt; [http://www.cs.cornell.edu/~rahli/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/cfgv/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/cfgv.git&quot; synopsis: &quot;Generic Proofs about Alpha Equality and Substitution&quot; description: &quot;&quot;&quot; Please read the following paper&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/cfgv/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=cd43cb9753c4c89e2decf15e76e52525&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-cfgv.8.9.0 coq.8.12.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2). The following dependencies couldn&#39;t be met: - coq-cfgv -&gt; coq &lt; 8.10~ -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) 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-cfgv.8.9.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.2/cfgv/8.9.0.html
HTML
mit
6,931
--- author: chipoglesby comments: true date: 2012-05-09 13:39:16+00:00 excerpt: Rambling thoughts about posting more and the future of online only newspapers. layout: post slug: back-to-blogging-focus-on-passion-and-keep-it-short title: 'Back to blogging: Focus on passion and keep it short' wordpress_id: 27606 categories: - Journalism - The Future tags: - online journalism --- The number one question I get asked a lot about my site "Why aren't you blogging any more?" The truth? I don't have time for it! Okay, so that's only part of it, but I also don't want to blog for the sake of blogging. I'd like to wait until I have something really good to say. Chris Brogan, someone whose site I haven't read in forever has some [really great advice for any blogger](http://www.chrisbrogan.com/nobody-reads-agency-blogs-or-why-you-need-skin-in-the-game/). His two best pieces of advice, focus on what you're passionate about and keep it short and sweet. Less than five hundred words if possible. If you're using wordpress, there's even a word count feature at the bottom of the compose screen to tell you where you're at. So about this who passion thing... I went to speak at the South Carolina chapter of PRSA and spent a good hour afterwards talking to the fine folks at the South Carolina Press Association. We talked about every aspect of the future of newspapers; what they're doing right, where they're failing, what could be done to save it and how you change the old guard mentality. I've got to say, it was great to have that conversation. I haven't talked about the future of newspapers in a long time and while some of us disagreed about what's wrong and how to fix it, we all realize that something needs to be done. On the ride home, I couldn't help but think that I could spend the rest of my life trying to educate people during these fast changing times. One other thing we discussed was how an ideal online only/online first, print secondary model would look if it weren't tied to an institutional legacy. By that I mean, if we started from scratch with the best and brightest minds in all aspects of news and online advertising with a completely virtual office, what would that look like? Would it be successful? I dunno, just something to think about. So, my pledge to you dear readers and mom is to get back in the habit of posting more. Hold me accountable won't you?
chipoglesby/chipoglesby.github.io
_posts/blog/2012-05-09-back-to-blogging-focus-on-passion-and-keep-it-short.md
Markdown
mit
2,394
# Maps the jobs database table and validates the data. class Job < ActiveRecord::Base has_many :offers validates :name, presence: true validates :description, presence: true validates :owner_id, presence: true validate :owner_id_should_be_string validates :status, presence: true, inclusion: { in: %w(CREATED ACTIVE INACTIVE CLOSED STARTED FINISHED) } validates :due_date, presence: true validates_datetime :due_date, on_or_after: lambda { Date.today }, on_or_before: :start_date validates :start_date, presence: true validates_datetime :start_date, on_or_after: lambda { Date.today } validates :finish_date, presence: true validates_datetime :finish_date, on_or_after: :start_date validates_datetime :closed_date, allow_nil: true, on_or_before: :due_date # Determines whether the job is active or not. # @return [Boolean] true if the job is active, false otherwise. def active? status.to_sym == :ACTIVE end # Custom validation method, checks whether the owner_id field is String or not. def owner_id_should_be_string errors.add(:owner_id, 'is not a string') unless owner_id.is_a?(String) end end
talosdigital/TDJobs
app/models/job.rb
Ruby
mit
1,185
--- layout: post status: publish published: true title: Drizzle 2011.02.10 (RC) tarball has been released author: Patrick Crews author_login: pcrews author_email: gleebix@gmail.com wordpress_id: 1031 wordpress_url: http://blog.drizzle.org/?p=1031 date: 2011-02-15 10:10:00.000000000 +00:00 categories: - Release tags: [] comments: - id: 72 author: Tweets that mention drizzle.org -- Topsy.com author_email: '' author_url: http://topsy.com/blog.drizzle.org/2011/02/15/drizzle-2011-02-10-tarball-has-been-released/?utm_source=pingback&amp;utm_campaign=L2 date: '2011-02-15 11:34:52 +0000' date_gmt: '2011-02-15 19:34:52 +0000' content: '[...] This post was mentioned on Twitter by drizzlenews, drizzlenews. drizzlenews said: DrizzleBlog Drizzle 2011.02.10 tarball has been released: Drizzle source tarball, version 2011.02.10 has been re... http://bit.ly/gr4pEX [...] ' - id: 73 author: Tweets that mention drizzle.org -- Topsy.com author_email: '' author_url: http://topsy.com/trackback?url=http%3A%2F%2Fblog.drizzle.org%2F2011%2F02%2F15%2Fdrizzle-2011-02-10-tarball-has-been-released%2F%3Fat_xt%3D4d5b3511d5c66272%252C0%26sms_ss%3Dtwitter&amp;utm_source=pingb date: '2011-02-16 01:04:25 +0000' date_gmt: '2011-02-16 09:04:25 +0000' content: '[...] This post was mentioned on Twitter by MySQL Boy, Drizzle DB Project. Drizzle DB Project said: Drizzle 2011.02.10 (RC) has been released http://t.co/9acIWfs [...] ' - id: 74 author: workcenter220 &raquo; Blog Archive &raquo; Drizzle&#8217;s slave plugin is working! author_email: '' author_url: http://www.wc220.com/?p=135 date: '2011-02-24 09:51:31 +0000' date_gmt: '2011-02-24 17:51:31 +0000' content: '[...] are exciting times for the Drizzle team.  We just released our first RC and things are finally coming together into some awesome new features.  I&#8217;m excited to bring [...] ' --- Drizzle source tarball, version 2011.02.10 has been released.  We are proud to announce that this is an RC (Release Candidate) release. With a GA not too far away, we would greatly appreciate folks helping us to check things out.  We have been working hard on a <a href="http://www.linuxjedi.co.uk/?p=90">number of features</a> and would like your feedback. <ul> <li>New BOOLEAN type</li> <li>New UUID type</li> <li>Drizzle can now <a href="https://bugs.launchpad.net/drizzle/+bug/565053">fork to background</a> via --daemon: https://bugs.launchpad.net/drizzle/+bug/565053</li> <li>NOTE: <a href="https://bugs.launchpad.net/drizzle/+bug/713347">Cartesian joins no longer work</a> and will throw an error - this might break some applications.  They can still be achieved via CROSS JOIN or through the use of a WHERE clause.  It was put in place to prevent runaway queries.</li> <li> Innodb transaction log is working and tested.  Both the file-based and innodb-based logs are available.</li> <li> Continued work on system variables</li> <li> Removed lint.am file as Drizzle no longer uses it</li> <li> Continued work on catalogs</li> <li> Continued work on our documentation</li> <li> Various other bug fixes</li> </ul> The Drizzle download file can be found <a href="https://launchpad.net/drizzle/elliott/2011-02-14">here</a>
DrizzleFoundation/DrizzleFoundation.github.io
_posts/2011-02-15-drizzle-2011-02-10-tarball-has-been-released.markdown
Markdown
mit
3,249
#ifndef SFC_COLORBUFFER_H #define SFC_COLORBUFFER_H #include <algorithm> #include "../color/colorArray.h" template <typename Display, typename Frontend, size_t Size, size_t ChunkSize, bool EqualColors> class ColorBufferT; /** \brief ColorBufferT specialized for equal color types in backend and frontend * \tparam Display the display type * \tparam Frontend the frontend type * \tparam Size the number of pixels in the buffer **/ template <typename Display, typename Frontend, size_t Size, size_t ChunkSize> class ColorBufferT<Display, Frontend, Size, ChunkSize, true> { public: typedef color::ColorArray<typename Frontend::color_t, Size> array_type; typedef array_type frontend_array_type; typedef array_type backend_array_type; frontend_array_type& frontend() { return array_; } const frontend_array_type& frontend() const { return array_; } backend_array_type& backend() { return array_; } const backend_array_type& backend() const { return array_; } const uint8_t* makeChunk(const size_t& pixelOffset, const size_t& size) { std::cout << "ColorBuffer<sameTypes>::makeChunk(offset " << (size_t)pixelOffset << " , " << size << " bytes )\n"; std::cout << " storage size: " << (size_t)color::colorRepresentation_traits<typename Display::color_t>::storage_bit_size << "\n"; size_t byteOffset = (color::colorRepresentation_traits<typename Display::color_t>::storage_bit_size*pixelOffset)/8; return (const uint8_t*)(array_.data())+byteOffset; } private: array_type array_; }; /** \brief ColorBufferT specialized for different color types in display and frontend * \tparam Display the display type * \tparam Frontend the frontend type * \tparam Size the number of pixels in the buffer **/ template <typename Display, typename Frontend, size_t Size, size_t ChunkSize> class ColorBufferT<Display, Frontend, Size, ChunkSize, false> { public: typedef color::ColorArray<typename Frontend::color_t, Size> frontend_array_type; typedef color::ColorArray<typename Display::color_t, ChunkSize> backend_array_type; frontend_array_type& frontend() { return frontendArray_; } const frontend_array_type& frontend() const { return frontendArray_; } backend_array_type& backend() { return outputArray_; } const backend_array_type& backend() const { return outputArray_; } const uint8_t* makeChunk(const size_t& pixelOffset, const size_t& size) { std::cout << "ColorBuffer<diffTypes>::makeChunk(offset " << (size_t)pixelOffset << " , " << size << " bytes )\n"; std::copy_n(frontendArray_.begin() + pixelOffset, size, outputArray_.begin()); return (const uint8_t*)(outputArray_.data()); } private: frontend_array_type frontendArray_; backend_array_type outputArray_; }; template<typename Display, typename Frontend, size_t Size, size_t ChunkSize> class ColorBuffer : public ColorBufferT<Display, Frontend, Size, ChunkSize, std::is_same<typename Display::color_t, typename Frontend::color_t>::value> { }; #endif // SFC_COLORBUFFER_H
crteensy/sfc
pageBuffer/ColorBuffer.h
C
mit
3,270
#twitter_php Using the Twitter API in PHP to get the latest tweets from a user ###API Key To get an OAuth API Key, sign in to twitter.com and register an application from the https://apps.twitter.com page. Add your Keys to the twitter.php file. ###Changelog 12/11/2014 - Initial realease
qhaensler/twitter_php
README.md
Markdown
mit
291
module Plugins class Whoami def initialize # Any magic preparations needed go here end def self.info plugin = Hash.new plugin['name'] = 'whoami' plugin['author'] = 'lukaszraczylo' plugin['handle'] = 'whoami' plugin['description'] = 'Print information about myself' plugin['type'] = 'boolean' return plugin end def self.run # This is the main method executed on plugin run return "#{$connection.user.name} (#{$connection.user.login})" end end end
lukaszraczylo/github-manager
plugins/whoami.rb
Ruby
mit
559
# Automaton_Lib Automaton_Lib kompiliert das Beispiel MRT2_VL-3_Automaton zu einer statischen Bibliothek. Das Projekt ist schon so voreingstellt, dass es für die Platformen x86 und arm kompiliert werden kann. ### "automaton" Bibliothek für x86 kompilieren 1. Beispielprojekt MRT2_VL-3_Automaton_Lib aus dem Repository importieren. 2. Die Build Configuration auf "Debug (x86)" umschalten: Neben dem Build Symbol (Hammer Icon) ist eine Drop-Down-Liste, in der die gewünschte Build Configuration ausgewählt werden kann. Mit Auswahl eines Eintrags kompiliert Eclipse die Bibliothek für die entsprechend Zielplatform automatisch. 3. Die kompilierte Bibliothek befindet sich unter "Debug (x86)/libautomaton.a". Unter Umständen muss zuerst der Project Explorer aktualisiert werden (Rechtsklick >> Refresh (F5)), um die Datei sichtbar zu machen. ### "automaton" Bibliothek für arm kompilieren 1. Beispielprojekt MRT2_VL-3_Automaton_Lib aus dem Repository importieren. 2. Die Build Configuration auf "Debug (arm)" umschalten: Neben dem Build Symbol (Hammer Icon) ist eine Drop-Down-Liste, in der die gewünschte Build Configuration ausgewählt werden kann. Mit Auswahl eines Eintrags kompiliert Eclipse die Bibliothek für die entsprechend Zielplatform automatisch. 3. Die kompilierte Bibliothek befindet sich unter "Debug (arm)/libautomaton.a". Unter Umständen muss zuerst der Project Explorer aktualisiert werden (Rechtsklick >> Refresh (F5)), um die Datei sichtbar zu machen.
plt-tud/PLT_MRT_ARM-RPi2
Vorlesungsbeispiele/MRT2_VL-3_Automaton_Lib/README.md
Markdown
mit
1,482
<?php namespace Vdbf\Pushover\Exception; use Exception; class RequestClientException extends Exception { }
vdbf/pushover-php
src/Exception/RequestClientException.php
PHP
mit
116
using Twilio.TwiML; class Example { static void Main() { var response = new VoiceResponse(); response.Say("You will now be connected to an agent."); System.Console.WriteLine(response.ToString()); } }
teoreteetik/api-snippets
twiml/voice/queue/queue-2/queue-2.5.x.cs
C#
mit
239
/** * Factory based on OS output * */ var OS = require( "os" ); //Webcam types var FSWebcam = require( "./webcams/FSWebcam.js" ); var ImageSnapWebcam = require( "./webcams/ImageSnapWebcam.js" ); var WindowsWebcam = require( "./webcams/WindowsWebcam.js" ); //Main singleton var Factory = new function() { var scope = this; //Main Class get scope.create = function( options, type ) { var p = type || Factory.Platform; var Type = Factory.Types[ p ]; if( ! Type ) { throw new Error( "Sorry, no webcam type specified yet for platform " + p ); } return new Type( options ); }; }; Factory.Platform = OS.platform(); //OS Webcam types Factory.Types = { linux: FSWebcam, darwin: ImageSnapWebcam, fswebcam: FSWebcam, win32: WindowsWebcam, win64: WindowsWebcam }; //Export module.exports = Factory;
chuckfairy/node-webcam
src/Factory.js
JavaScript
mit
911
Personal blog using design of site by Leonard Lamprecht (http://leo.im).
pocoapoco/pocoapoco.github.io
README.md
Markdown
mit
74
<div class="row"> <div class="section-title text-center"> <h3>财政收支分类</h3> <p>我需要知道我的钱都花在那些方面了</p> </div> </div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <form name="form" role="form" novalidate> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group" style="margin-top: 42px;"> <md-input-container class="md-block"> <label>类型</label> <md-select ng-model="data.type"> <md-option ng-repeat="type in types" value="{{type.value}}">{{type.title}} </md-option> </md-select> </md-input-container> </div> </div> <div class="col-md-6"> <div class="form-group" style="margin-top: 42px;"> <md-input-container class="md-block" flex-gt-sm> <label>类别标题</label> <input type="text" name="title" ng-model="data.title" required /> <div class="error-text text-danger" ng-if="form.$submitted || form.title.$touched"> <span ng-if="form.title.$error.required" ng-bind="error.title"></span> </div> </md-input-container> </div> </div> <div class="clearfix"></div> <div class="col-md-12"> <div class="form-group text-center"> <button type="submit" class="btn btn-primary" ng-click="create()">保存</button> &nbsp; <a type="submit" class="btn btn-info" href="#create-finance">返回</a> </div> </div> </div> </div> </div> </form> <div class="box-body"> <div class="row"> <div class="col-md-12 table-responsive"> <table class="table table-bordered table-striped data-table"> <thead> <tr style="background-color: #FF432E; color: #fff;"> <th style="width: 400px">标题</th> <th style="width: 200px">类型</th> <th style="width: 1px">操作</th> </tr> </thead> <tbody> <tr ng-repeat="category in categories"> <td title="{{category.title}}"> <span ng-bind="category.title"></span> </td> <td title="{{charge.type}}"> <span ng-bind="(category.type | getFinanceCategoryType)"></span> </td> <td style="text-align: center;"> <button type="button" class="btn btn-info btn-flat btn-xs" ng-click="delete($event, category)"> 删 除 </button> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div>
benbenguo/family
family/web-app/modules/finance-category/create-finance-category.html
HTML
mit
3,830
// "C" is for cookie, that's good enough for me. function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(";"); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == " ") c = c.substring(1); if (c.indexOf(name) == 0) return c.substring(name.length, c.length); } return ""; } function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires + ";domain=.pokejisho.com;path=/"; } // COOKIE COOKIE COOKIE STARTS WITH "C"
mca62511/pokejisho
js/cookies.js
JavaScript
mit
655
body { margin: 0; font-size: 26px; font-family: Helvetica; } h1, h2, h4 { margin: 0; } h1 { font-family: Lobster, sans-serif; font-size: 100px; line-height: 80px; max-width: 200px; overflow: visible; } h2, h4 { color: grey; line-height: 30px; } h1 span { font-size: 70px; } .header { text-align: center; max-width: 300px; margin: 100px auto 100px auto; } img { display: block; max-width: 600px; margin: 10px auto; } .caption { max-width: 600px; margin: 10px auto 100px auto; } .caption p { max-width: 100%; margin: 20px 0; padding: 0; clear: both; } .float { width: 300px; float: left; margin: 10px 30px 20px 0; } .right { float: right; margin: 10px 0px 20px 30px; } /**/
rodrigodebenito/icp-design-and-code-3
week-4/workshop/css/main.css
CSS
mit
749
module SaucelabsAdapter class Tunnel def self.factory(selenium_config) tunnels = { :saucetunnel => SauceTunnel, :sauceconnecttunnel => SauceConnectTunnel, :sshtunnel => SshTunnel, :othertunnel => OtherTunnel } raise_with_message "Unknown tunnel type #{selenium_config.tunnel_method}" unless tunnels[selenium_config.tunnel_method.to_sym] return tunnels[selenium_config.tunnel_method].new(selenium_config) end def initialize(se_config) raise "#{self.class.name}.new requires a SeleniumConfig argument" unless se_config.is_a?(SeleniumConfig) @se_config = se_config end def start_tunnel raise "You need to override this method" end def shutdown raise "You need to override this method" end end end
pivotal/saucelabs-adapter
lib/saucelabs_adapter/tunnel.rb
Ruby
mit
815
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ptsf: 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.14.1 / ptsf - 8.8.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> ptsf <small> 8.8.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-08 04:38:57 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-08 04:38:57 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.14.1 Formal proof management system dune 3.0.3 Fast, portable, and opinionated build system ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/ptsf&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/PTSF&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} &quot;coq-ptsatr&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: pure type systems&quot; &quot;keyword: judgmental equality&quot; &quot;keyword: explicit equality proofs&quot; &quot;keyword: proof relevance&quot; &quot;category: Mathematics/Logic/Type theory&quot; ] authors: [ &quot;Floris van Doorn &lt;fpv@andrew.cmu.edu&gt; [http://www.andrew.cmu.edu/user/fpv/]&quot; &quot;Herman Geuvers &lt;herman@cs.ru.nl&gt; [http://www.cs.ru.nl/~herman/]&quot; &quot;Freek Wiedijk &lt;freek@cs.ru.nl&gt; [http://www.cs.ru.nl/~freek/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/ptsf/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/ptsf.git&quot; synopsis: &quot;Explicit Convertibility Proofs in Pure Type Systems&quot; description: &quot;&quot;&quot; http://www.andrew.cmu.edu/user/fpv/ptsf/ Formalization of the proof that PTS and PTS with explicit convertibility proofs (PTSf) are equivalent.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/ptsf/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=dd82b98b28be2cf0a46a8d6316397064&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-ptsf.8.8.0 coq.8.14.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.14.1). The following dependencies couldn&#39;t be met: - coq-ptsf -&gt; coq &lt; 8.9~ -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) 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-ptsf.8.8.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.1/ptsf/8.8.0.html
HTML
mit
7,258
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>aac-tactics: 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.6 / aac-tactics - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> aac-tactics <small> 8.9.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-18 12:47:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-18 12:47:20 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler 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.6 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 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;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/aac-tactics&quot; dev-repo: &quot;git+https://github.com/coq-community/aac-tactics.git&quot; bug-reports: &quot;https://github.com/coq-community/aac-tactics/issues&quot; license: &quot;LGPL-3.0-or-later&quot; synopsis: &quot;This Coq plugin provides tactics for rewriting universally quantified equations, modulo associative (and possibly commutative) operators&quot; description: &quot;&quot;&quot; This Coq plugin provides tactics for rewriting universally quantified equations, modulo associativity and commutativity of some operator. The tactics can be applied for custom operators by registering the operators and their properties as type class instances. Many common operator instances, such as for Z binary arithmetic and booleans, are provided with the plugin. &quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;category:Miscellaneous/Coq Extensions&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;keyword:reflexive tactic&quot; &quot;keyword:rewriting&quot; &quot;keyword:rewriting modulo associativity and commutativity&quot; &quot;keyword:rewriting modulo ac&quot; &quot;keyword:decision procedure&quot; &quot;logpath:AAC_tactics&quot; &quot;date:2019-05-16&quot; ] authors: [ &quot;Thomas Braibant&quot; &quot;Damien Pous&quot; &quot;Fabian Kunze&quot; ] url { src: &quot;https://github.com/coq-community/aac-tactics/archive/v8.9.0.tar.gz&quot; checksum: &quot;sha256=b4e124ccb2c0a9013af9d3dae6a0deb1962d224b36b64c11ec71c05c23fd2ea6&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-aac-tactics.8.9.0 coq.8.6</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.6). The following dependencies couldn&#39;t be met: - coq-aac-tactics -&gt; coq &gt;= 8.9 -&gt; ocaml &gt;= 4.05.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-aac-tactics.8.9.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.6/aac-tactics/8.9.0.html
HTML
mit
7,695
export default class Player extends Phaser.Sprite { constructor(game) { super(game, 0, 0, 'hero'); // enable physics for the player this.game.physics.arcade.enableBody(this); this.scale.setTo(1.1); this.body.collideWorldBounds = true; this.game.physics.arcade.enable(this); // camera follows player this.game.camera.follow(this); // walking animations for the player this.animations.add("walk-left", [117, 118, 119, 120, 121, 122, 123, 124, 125], 8, true); this.animations.add("walk-right", [143, 144, 145, 146, 147, 148, 149, 150, 151], 8, true); this.animations.add("walk-up", [104, 105, 106, 107, 108, 109, 110, 111, 112], 8, true); this.animations.add("walk-down", [130, 131, 132, 133, 134, 135, 136, 137, 138,], 8, true); // create control inputs for player this.cursors = this.game.input.keyboard.createCursorKeys(); } update() { this.body.velocity.x = 0; this.body.velocity.y = 0; // player moves in specified direction or stands still if (this.cursors.left.isDown) { this.animations.play("walk-left"); this.body.velocity.x =- 180; } else if (this.cursors.right.isDown) { this.animations.play("walk-right"); this.body.velocity.x =+ 180; } else { this.body.velocity.x = 0; } if (this.cursors.up.isDown) { this.animations.play("walk-up"); this.body.velocity.y =- 180; } else if (this.cursors.down.isDown) { this.animations.play("walk-down"); this.body.velocity.y =+ 180; } else { this.body.velocity.y = 0; } if (this.body.velocity.x === 0 && this.body.velocity.y === 0) { this.animations.stop(); } } }
wylie99998/OSUCS419RTS
src/prefabs/Player.js
JavaScript
mit
1,884
/* * Owl Carousel Owl Demo Theme * v1.3.3 */ .owl-theme .owl-controls { max-width: 500px; margin: 0 auto; } /* Styling Next and Prev buttons */ .owl-theme .owl-controls .owl-buttons div{ color: #FFF; display: inline-block; zoom: 1; *display: inline;/*IE7 life-saver */ margin: 5px; padding: 3px 10px; font-size: 12px; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; background: #869791; filter: Alpha(Opacity=50);/*IE7 fix*/ opacity: 0.5; } /* Clickable class fix problem with hover on touch devices */ /* Use it for non-touch hover action */ .owl-theme .owl-controls.clickable .owl-buttons div:hover{ filter: Alpha(Opacity=100);/*IE7 fix*/ opacity: 1; text-decoration: none; } /* Styling Pagination*/ .owl-theme .owl-controls .owl-page{ display: inline-block; zoom: 1; *display: inline;/*IE7 life-saver */ } .owl-theme .owl-controls .owl-page span{ display: block; width: 10px; height: 10px; margin: 0 7px 0 2px; filter: Alpha(Opacity=50);/*IE7 fix*/ opacity: 0.5; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; background: #556d7e; } .owl-theme .owl-controls .owl-page.active span, .owl-theme .owl-controls.clickable .owl-page:hover span{ filter: Alpha(Opacity=100);/*IE7 fix*/ opacity: 1; } /* If PaginationNumbers is true */ .owl-theme .owl-controls .owl-page span.owl-numbers{ height: auto; width: auto; color: #FFF; padding: 2px 10px; font-size: 12px; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; } /* preloading images */ .owl-item.loading{ min-height: 150px; background: url(AjaxLoader.gif) no-repeat center center }
mucyomiller/goohs
public/css/owl.theme.css
CSS
mit
1,672
//GET /quizes/question exports.question = function(req, res){ res.render('quizes/question', {pregunta: 'Capital de Italia'}); }; //GET quizes/answer exports.answer = function(req, res){ if(req.query.respuesta === 'Roma'){ res.render('quizes/answer', {respuesta: 'Correcto'}); }else{ res.render('quizes/answer', {respuesta: 'Incorrecto'}); } };
diegovknight/mod07
controllers/quiz_controller.js
JavaScript
mit
354
<ion-view view-title="Smile"> <ion-content> <div class="card"> <div class="item item-text-wrap"> <p>{{quote.quote}} - <span class="author">{{quote.author}}</span></p> </div> </div> <div id="smile-button-container"> <a id="smile-button" ng-click="addSmile()" class="button button-icon icon ion-android-happy"></a> </div> <div class="card"> <div class="item item-text-wrap"> <p>Smile! Press the button to tell the world you're happy!</p> </div> </div> <div class="card"> <div class="item item-divider item-balanced"> Today you were happy </div> <div class="item item-text-wrap"> <h1>{{happy_times}}</h1> <h3>times</h3> </div> </div> </ion-content> </ion-view> <script id="modal.html" type="text/ng-template"> <div class="modal"> <ion-header-bar class="bar-calm"> <h1 style="text-align:center;" class="title">Welcome to Smile!</h1> </ion-header-bar> <ion-content class="padding"> <div class="card"> <div class="item item-text-wrap"> Don't worry, be happy! <p>Smile puts your happiness in the cloud.</p> <p>Share your moments of joy with the world.</p> </div> </div> <div class="list card left"> <a href="#" class="item item-icon-left"> <i class="icon ion-android-hand"></i> Just press the button when you're happy. </a> <a href="#" class="item item-icon-left"> <i class="icon ion-android-create"></i> Record your happy moments of the day. </a> <a href="#" class="item item-icon-left"> <i class="icon ion-ios-location"></i> Look at a map of other people being happy. </a> <a href="#" class="item item-icon-left"> <i class="icon ion-android-happy"></i> Keep smiling! </a> </div> <button class="button button-full button-balanced" ng-click="closeModal()">Let's Go!</button> </ion-content> </div> </script>
ishg/Smile
www/templates/tab-smile.html
HTML
mit
2,095
using System.Runtime.InteropServices; namespace LibGit2Sharp.Core.Handles { internal class GitConfigEntryHandle : NotOwnedSafeHandleBase { public GitConfigEntry MarshalAsGitConfigEntry() { return (GitConfigEntry)Marshal.PtrToStructure(handle, typeof(GitConfigEntry)); } } }
yishaigalatzer/LibGit2SharpCheckOutTests
LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs
C#
mit
323
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>error-handlers: 13 s 🏆</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.5.2~camlp4 / error-handlers - 1.1.1</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> error-handlers <small> 1.1.1 <span class="label label-success">13 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-27 17:05:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-27 17:05:20 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp4 4.04+1 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils coq 8.5.2~camlp4 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0.14.1 OCamlbuild is a build system with builtin rules to easily build most OCaml projects # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/clarus/coq-error-handlers&quot; dev-repo: &quot;git+https://github.com/clarus/coq-error-handlers.git&quot; bug-reports: &quot;https://github.com/clarus/coq-error-handlers/issues&quot; authors: [&quot;Guillaume Claret&quot;] license: &quot;MIT&quot; build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/ErrorHandlers&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4pl4&quot;} ] synopsis: &quot;Simple and robust error handling functions&quot; flags: light-uninstall url { src: &quot;https://github.com/clarus/coq-error-handlers/archive/1.1.1.tar.gz&quot; checksum: &quot;md5=1457d5cb1fce4f9a8b2b6de2dec4b8c6&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-error-handlers.1.1.1 coq.8.5.2~camlp4</code></dd> <dt>Return code</dt> <dd>0</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>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-error-handlers.1.1.1 coq.8.5.2~camlp4</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>9 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-error-handlers.1.1.1 coq.8.5.2~camlp4</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>13 s</dd> </dl> <h2>Installation size</h2> <p>Total: 5 K</p> <ul> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/ErrorHandlers/All.vo</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-error-handlers.1.1.1</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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.2~camlp4/error-handlers/1.1.1.html
HTML
mit
6,675
""" The :mod:`sklearn.metrics` module includes score functions, performance metrics and pairwise metrics and distance computations. """ from . import cluster from .classification import accuracy_score from .classification import brier_score_loss from .classification import classification_report from .classification import confusion_matrix from .classification import f1_score from .classification import fbeta_score from .classification import hamming_loss from .classification import hinge_loss from .classification import jaccard_similarity_score from .classification import log_loss from .classification import matthews_corrcoef from .classification import precision_recall_fscore_support from .classification import precision_score from .classification import recall_score from .classification import zero_one_loss from .cluster import adjusted_mutual_info_score from .cluster import adjusted_rand_score from .cluster import completeness_score from .cluster import consensus_score from .cluster import homogeneity_completeness_v_measure from .cluster import homogeneity_score from .cluster import mutual_info_score from .cluster import normalized_mutual_info_score from .cluster import silhouette_samples from .cluster import silhouette_score from .cluster import v_measure_score from .pairwise import euclidean_distances from .pairwise import pairwise_distances from .pairwise import pairwise_distances_argmin from .pairwise import pairwise_distances_argmin_min from .pairwise import pairwise_kernels from .ranking import auc from .ranking import average_precision_score from .ranking import coverage_error from .ranking import label_ranking_average_precision_score from .ranking import label_ranking_loss from .ranking import precision_recall_curve from .ranking import roc_auc_score from .ranking import roc_curve from .regression import explained_variance_score from .regression import mean_absolute_error from .regression import mean_squared_error from .regression import median_absolute_error from .regression import r2_score from .scorer import SCORERS from .scorer import get_scorer from .scorer import make_scorer __all__ = [ 'accuracy_score', 'adjusted_mutual_info_score', 'adjusted_rand_score', 'auc', 'average_precision_score', 'classification_report', 'cluster', 'completeness_score', 'confusion_matrix', 'consensus_score', 'coverage_error', 'euclidean_distances', 'explained_variance_score', 'f1_score', 'fbeta_score', 'get_scorer', 'hamming_loss', 'hinge_loss', 'homogeneity_completeness_v_measure', 'homogeneity_score', 'jaccard_similarity_score', 'label_ranking_average_precision_score', 'label_ranking_loss', 'log_loss', 'make_scorer', 'matthews_corrcoef', 'mean_absolute_error', 'mean_squared_error', 'median_absolute_error', 'mutual_info_score', 'normalized_mutual_info_score', 'pairwise_distances', 'pairwise_distances_argmin', 'pairwise_distances_argmin_min', 'pairwise_distances_argmin_min', 'pairwise_kernels', 'precision_recall_curve', 'precision_recall_fscore_support', 'precision_score', 'r2_score', 'recall_score', 'roc_auc_score', 'roc_curve', 'SCORERS', 'silhouette_samples', 'silhouette_score', 'v_measure_score', 'zero_one_loss', 'brier_score_loss', ]
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/metrics/__init__.py
Python
mit
3,388
// Color.cpp // Sketchup C++ Wrapper for C API // MIT License // // Copyright (c) 2017 Tom Kaneko // // 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 "SUAPI-CppWrapper/Color.hpp" namespace CW { Color::Color(): m_color(SUColor{}), red(m_color.red), green(m_color.green), blue(m_color.blue), alpha(m_color.alpha) {} Color::Color(SUColor color_input): m_color(color_input), red(m_color.red), green(m_color.green), blue(m_color.blue), alpha(m_color.alpha) {} SUColor Color::ref() const { return m_color; } Color::operator SUColor() const { return ref(); } bool operator ==(const Color &lhs, const Color &rhs) { if (lhs.m_color.alpha == rhs.m_color.alpha && lhs.m_color.red == rhs.m_color.red && lhs.m_color.blue == rhs.m_color.blue && lhs.m_color.green == rhs.m_color.green) { return true; } return false; } } /* namespace CW */
TommyKaneko/Sketchup-API-C-Wrapper
src/SUAPI-CppWrapper/Color.cpp
C++
mit
1,920
/* * Injectors - Base Header * * Copyright (C) 2012-2014 LINK/2012 <dma_2012@hotmail.com> * * 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. * */ #pragma once #include <windows.h> #include <cstdint> #include <cstdio> namespace injector { #if 1 // GVM and Address Translator, Not very interesting for the users, so skip reading those... /* * game_version_manager * Detects the game, the game version and the game region * This assumes the executable is decrypted, so, Silent's ASI Loader is recommended. */ #ifndef INJECTOR_OWN_GVM #ifndef INJECTOR_GVM_DUMMY class game_version_manager { public: // Set this if you would like that MessagesBox contain PluginName as caption const char* PluginName; private: char game, region, major, minor, cracker, steam; public: game_version_manager() { #ifdef INJECTOR_GVM_PLUGIN_NAME PluginName = INJECTOR_GVM_PLUGIN_NAME; #else PluginName = "Unknown Plugin Name"; #endif this->Clear(); } // Clear any information about game version void Clear() { game = region = major = minor = cracker = steam = 0; } // Checks if I don't know the game we are attached to bool IsUnknown() { return game == 0; } // Checks if this is the steam version bool IsSteam() { return steam != 0; } // Gets the game we are attached to (0, '3', 'V', 'S') char GetGame() { return game; } // Gets the region from the game we are attached to (0, 'U', 'E'); char GetRegion() { return region; } // Get major and minor version of the game (e.g. [major = 1, minor = 0] = 1.0) int GetMajorVersion() { return major; } int GetMinorVersion() { return minor; } bool IsHoodlum() { return cracker == 'H'; } // Region conditions bool IsUS() { return region == 'U'; } bool IsEU() { return region == 'E'; } // Game Conditions bool IsIII() { return game == '3'; } bool IsVC () { return game == 'V'; } bool IsSA () { return game == 'S'; } // Detects game, region and version; returns false if could not detect it bool Detect(); // Gets the game version as text, the buffer must contain at least 32 bytes of space. char* GetVersionText(char* buffer) { if(this->IsUnknown()) { strcpy(buffer, "UNKNOWN GAME"); return buffer; } const char* g = this->IsIII()? "III" : this->IsVC()? "VC" : this->IsSA()? "SA" : "UNK"; const char* r = this->IsUS()? "US" : this->IsEU()? "EURO" : "UNK_REGION"; const char* s = this->IsSteam()? "Steam" : ""; sprintf(buffer, "GTA %s %d.%d %s%s", g, major, minor, r, s); return buffer; } public: // Raises a error saying that you could not detect the game version void RaiseCouldNotDetect() { MessageBoxA(0, "Could not detect the game version\nContact the mod creator!", PluginName, MB_ICONERROR ); } // Raises a error saying that the exe version is incompatible (and output the exe name) void RaiseIncompatibleVersion() { char buf[128], v[32]; sprintf(buf, "An incompatible exe version has been detected! (%s)\nContact the mod creator!", GetVersionText(v) ); MessageBoxA(0, buf, PluginName, MB_ICONERROR); } }; #else // INJECTOR_GVM_DUMMY class game_version_manager { public: bool Detect() { return true; } }; #endif // INJECTOR_GVM_DUMMY #endif // INJECTOR_OWN_GVM /* * address_manager * Address translator from 1.0 executables to other executables offsets * Inherits from game_version_manager ;) */ class address_manager : public game_version_manager { private: address_manager() { this->Detect(); } // You could implement your translator for the address your plugin uses // If not implemented, the translator won't translate anything, just return the samething as before #ifdef INJECTOR_GVM_HAS_TRANSLATOR void* translator(void* p); #else void* translator(void* p) { return p; } #endif public: // Translates address p to the running executable pointer void* translate(void* p) { return translator(p); } public: // Address manager singleton static address_manager& singleton() { static address_manager m; return m; } // Static version of translate() static void* translate_address(void* p) { return singleton().translate(p); } // static void set_name(const char* modname) { singleton().PluginName = modname; } public: // Functors for memory translation: // Translates nothing translator struct fn_mem_translator_nop { void* operator()(void* p) const { return p; } }; // Real translator struct fn_mem_translator { void* operator()(void* p) const { return translate_address(p); } }; }; #endif // #if 1 }
thelink2012/modloader
deps/injector/include/injector/gvm/gvm.hpp
C++
mit
6,224
require "test_helper" class TestOrangemmsNet < Test::Unit::TestCase include MMS2R::TestHelper def test_orangemms_subject # orangemms.net service mail = mail('orange-uk-image-01.mail') mms = MMS2R::Media.new(mail) assert_equal "5551234", mms.number assert_equal "orangemms.net", mms.carrier assert_equal "", mms.subject mms.purge end def test_orangemms_image # orangemms.net service mail = mail('orange-uk-image-01.mail') mms = MMS2R::Media.new(mail) assert_equal "5551234", mms.number assert_equal "orangemms.net", mms.carrier assert_equal 1, mms.media.size assert_nil mms.media['text/plain'] assert_nil mms.media['text/html'] assert_not_nil mms.media['image/jpeg'][0] assert_match(/picture.jpg$/, mms.media['image/jpeg'][0]) assert_file_size mms.media['image/jpeg'][0], 337 mms.purge end def test_orange_france_subject # orange.fr service mail = mail('orangefrance-text-and-image.mail') mms = MMS2R::Media.new(mail) assert_equal "0688675309", mms.number assert_equal "orange.fr", mms.carrier assert_equal "", mms.subject mms.purge end def test_orange_france_processed_content # orange.fr service mail = mail('orangefrance-text-and-image.mail') mms = MMS2R::Media.new(mail) assert_equal "0688675309", mms.number assert_equal "orange.fr", mms.carrier # there should be one text and one image assert_equal 2, mms.media.size #text # there is a text banner that Orange attaches but # that should be ignored assert_not_nil mms.media['text/plain'] assert_equal 1, mms.media['text/plain'].size file = mms.media['text/plain'].first assert File::exist?(file), "file #{file} does not exist" text = IO.read("#{file}") assert_match(/Test ma poule/, text) # image assert_not_nil mms.media['image/jpeg'] assert_equal 1, mms.media['image/jpeg'].size assert_match(/IMAGE.jpeg$/, mms.media['image/jpeg'].first) assert_file_size mms.media['image/jpeg'].first, 337 mms.purge end def test_orange_poland_subject # mmsemail.orange.pl service mail = mail('orangepoland-text-01.mail') mms = MMS2R::Media.new(mail) assert_equal "48508675309", mms.number assert_equal "mmsemail.orange.pl", mms.carrier assert_equal "", mms.subject mms.purge end def test_orange_poland_non_empty_subject # mmsemail.orange.pl service mail = mail('orangepoland-text-02.mail') mms = MMS2R::Media.new(mail) assert_equal "48508675309", mms.number assert_equal "mmsemail.orange.pl", mms.carrier assert mms.subject, "whazzup" mms.purge end def test_orange_poland_content # mmsemail.orange.pl service mail = mail('orangepoland-text-01.mail') mms = MMS2R::Media.new(mail) assert_equal "48508675309", mms.number assert_equal "mmsemail.orange.pl", mms.carrier assert_not_nil mms.media['text/plain'] file = mms.media['text/plain'][0] assert_not_nil file assert File::exist?(file), "file #{file} does not exist" text = IO.read("#{file}") assert_match(/pozdro600/, text) mms.purge end end
monde/mms2r
test/test_orangemms_net.rb
Ruby
mit
3,173
// WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema package com.getbase.services; import com.getbase.http.HttpClient; import com.getbase.models.Task; import com.getbase.serializer.JsonDeserializer; import com.getbase.serializer.JsonSerializer; import com.getbase.serializer.Views; import com.getbase.utils.Joiner; import java.util.*; import static com.getbase.utils.Lists.asList; import static com.getbase.utils.Precondition.*; public class TasksService extends BaseService { public TasksService(HttpClient httpClient) { super(httpClient); } public List<Task> list(Map<String, Object> params) { String url = "/v2/tasks"; return JsonDeserializer.deserializeList(this.httpClient.get(url, params).getBody(), Task.class); } public List<Task> list(SearchCriteria criteria) { return list(criteria.asMap()); } public Task create(Task task) { checkNotNull(task, "task parameter must not be null"); String url = "/v2/tasks"; String serialized = JsonSerializer.serialize(task, Views.ReadWrite.class); return JsonDeserializer.deserialize(this.httpClient.post(url, serialized).getBody(), Task.class); } public Task create(Map<String, Object> attributes) { checkNotNull(attributes, "attributes parameter must not be null"); String url = "/v2/tasks"; String serialized = JsonSerializer.serialize(attributes); return JsonDeserializer.deserialize(this.httpClient.post(url, serialized).getBody(), Task.class); } public Task get(long id) { checkArgument(id > 0, "id must be a valid id"); String url = String.format(Locale.US, "/v2/tasks/%d", id); return JsonDeserializer.deserialize(this.httpClient.get(url, null).getBody(), Task.class); } public Task update(Task task) { checkNotNull(task, "task parameter must not be null"); checkNotNull(task.getId(), "task must have id attribute set"); checkArgument(task.getId() > 0, "task id must be a valid id"); String url = String.format(Locale.US, "/v2/tasks/%d", task.getId()); String serialized = JsonSerializer.serialize(task, Views.ReadWrite.class); return JsonDeserializer.deserialize(this.httpClient.put(url, serialized).getBody(), Task.class); } public Task update(long id, Map<String, Object> attributes) { checkArgument(id > 0, "id must be a valid id"); checkNotNull(attributes, "attributes parameter must not be null"); String url = String.format(Locale.US, "/v2/tasks/%d", id); String serialized = JsonSerializer.serialize(attributes); return JsonDeserializer.deserialize(this.httpClient.put(url, serialized).getBody(), Task.class); } public boolean delete(long id) { checkArgument(id > 0, "id must be a valid id"); String url = String.format(Locale.US, "/v2/tasks/%d", id); return this.httpClient.delete(url, null).getHttpStatus() == 204; } public static class SearchCriteria { private Map<String, Object> queryParams; public SearchCriteria() { this.queryParams = new HashMap<String, Object>(); } public SearchCriteria page(long page) { queryParams.put("page", page); return this; } public SearchCriteria perPage(long perPage) { queryParams.put("per_page", perPage); return this; } public SearchCriteria sortBy(String criteria, String order) { queryParams.put("sort_by", criteria + ":" + order); return this; } public SearchCriteria sortBy(String criteria) { return sortBy(criteria, "asc"); } public SearchCriteria ids(List<Long> ids) { queryParams.put("ids", Joiner.join(",", ids)); return this; } public SearchCriteria ids(Long... ids) { return ids(asList(ids)); } public SearchCriteria creatorId(long creatorId) { queryParams.put("creator_id", creatorId); return this; } public SearchCriteria ownerId(long ownerId) { queryParams.put("owner_id", ownerId); return this; } public SearchCriteria resourceId(long resourceId) { queryParams.put("resource_id", resourceId); return this; } public SearchCriteria completed(boolean completed) { queryParams.put("completed", completed); return this; } public SearchCriteria overdue(boolean overdue) { queryParams.put("overdue", overdue); return this; } public SearchCriteria q(String q) { queryParams.put("q", q); return this; } public SearchCriteria remind(boolean remind) { queryParams.put("remind", remind); return this; } public SearchCriteria resourceType(String resourceType) { queryParams.put("resource_type", resourceType); return this; } public SearchCriteria type(String type) { queryParams.put("type", type); return this; } public Map<String, Object> asMap() { return Collections.unmodifiableMap(queryParams); } } }
basecrm/basecrm-java
src/main/java/com/getbase/services/TasksService.java
Java
mit
4,966
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>search-trees: 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.7.1+2 / search-trees - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> search-trees <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-22 02:42:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-22 02:42:01 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler 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.7.1+2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 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;matej.kosik@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/search-trees&quot; license: &quot;LGPL 2&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/SearchTrees&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:binary search trees&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;category:Miscellaneous/Extracted Programs/Data structures&quot; ] authors: [ &quot;Pierre Castéran &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/search-trees/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/search-trees.git&quot; synopsis: &quot;Binary Search Trees&quot; description: &quot;Algorithms for collecting, searching, inserting and deleting elements in binary search trees on Z&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/search-trees/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=a380d56da6baa4b60a68173226ddec9a&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-search-trees.8.5.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2). The following dependencies couldn&#39;t be met: - coq-search-trees -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.03.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-search-trees.8.5.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.7.1+2/search-trees/8.5.0.html
HTML
mit
7,055
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> /* Body style, for the entire document */ body { background: #F3F3F4; color: #1E1E1F; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0; margin: 0; } /* Header1 style, used for the main title */ h1 { padding: 10px 0px 10px 10px; font-size: 21pt; background-color: #E2E2E2; border-bottom: 1px #C1C1C2 solid; color: #201F20; margin: 0; font-weight: normal; } /* Header2 style, used for "Overview" and other sections */ h2 { font-size: 18pt; font-weight: normal; padding: 15px 0 5px 0; margin: 0; } /* Header3 style, used for sub-sections, such as project name */ h3 { font-weight: normal; font-size: 15pt; margin: 0; padding: 15px 0 5px 0; background-color: transparent; } h4 { font-weight: normal; font-size: 12pt; margin: 0; padding: 0 0 0 0; background-color: transparent; } /* Color all hyperlinks one color */ a { color: #1382CE; } /* Paragraph text (for longer informational messages) */ p { font-size: 10pt; } /* Table styles */ table { border-spacing: 0 0; border-collapse: collapse; font-size: 10pt; } table th { background: #E7E7E8; text-align: left; text-decoration: none; font-weight: normal; padding: 3px 6px 3px 6px; } table td { vertical-align: top; padding: 3px 6px 5px 5px; margin: 0px; border: 1px solid #E7E7E8; background: #F7F7F8; } .NoBreakingChanges { color: darkgreen; font-weight:bold; } .FewBreakingChanges { color: orange; font-weight:bold; } .ManyBreakingChanges { color: red; font-weight:bold; } .BreakDetails { margin-left: 30px; } .CompatMessage { font-style: italic; font-size: 10pt; } .GoodMessage { color: darkgreen; } /* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */ .localLink { color: #1E1E1F; background: #EEEEED; text-decoration: none; } .localLink:hover { color: #1382CE; background: #FFFF99; text-decoration: none; } /* Center text, used in the over views cells that contain message level counts */ .textCentered { text-align: center; } /* The message cells in message tables should take up all avaliable space */ .messageCell { width: 100%; } /* Padding around the content after the h1 */ #content { padding: 0px 12px 12px 12px; } /* The overview table expands to width, with a max width of 97% */ #overview table { width: auto; max-width: 75%; } /* The messages tables are always 97% width */ #messages table { width: 97%; } /* All Icons */ .IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded { min-width: 18px; min-height: 18px; background-repeat: no-repeat; background-position: center; } /* Success icon encoded */ .IconSuccessEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==); } /* Information icon encoded */ .IconInfoEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=); } /* Warning icon encoded */ .IconWarningEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==); } /* Error icon encoded */ .IconErrorEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=); } </style> </head> <body> <h1 _locid="PortabilityReport">.NET Portability Report</h1> <div id="content"> <div id="submissionId" style="font-size:8pt;"> <p> <i> Submission Id&nbsp; 0f8d49e6-6416-4188-b9af-94ac733405b5 </i> </p> </div> <h2 _locid="SummaryTitle"> <a name="Portability Summary"></a>Portability Summary </h2> <div id="summary"> <table> <tbody> <tr> <th>Assembly</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> </tr> <tr> <td><strong><a href="#Cirrious.MvvmCross">Cirrious.MvvmCross</a></strong></td> <td class="text-center">100.00 %</td> <td class="text-center">100.00 %</td> <td class="text-center">98.79 %</td> <td class="text-center">100.00 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="Cirrious.MvvmCross"><h3>Cirrious.MvvmCross</h3></a> <table> <tbody> <tr> <th>Target type</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> <th>Recommended changes</th> </tr> <tr> <td>System.Reflection.TypeInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Assembly</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_IsAbstract</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_IsEnum</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_IsInterface</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
kuhlenh/port-to-core
Reports/mv/mvvmcross.hottuna.mvvmcrosslibraries.3.5.1/Cirrious.MvvmCross-win81.html
HTML
mit
14,157
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Runtime.InteropServices; using System.Diagnostics; using CCT.NUI.Core; using CCT.NUI.Core.OpenNI; using CCT.NUI.Core.Video; using CCT.NUI.Visual; using CCT.NUI.HandTracking; using CCT.NUI.KinectSDK; using CCT.NUI.Core.Clustering; using System.Windows.Media.Media3D; using System.Threading; using System.Windows.Threading; using OpenNI; namespace CCT.NUI.WPFSamples { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { Microsoft.Kinect.KinectSensor sensor; // initialize the int public int resultfinger = -1; // int that cointains number of fingers public int palm = -1; // cointains number of palm public int rand = -1; // initialize the random int private HandInterfaceElement element = null; private IDataSourceFactory factory; private IHandDataSource handDataSource; private IClusterDataSource clusterDataSource; public MainWindow() { InitializeComponent(); this.Start(); this.ToggleLayers(); txtInfo.Text = "RPS Kinect v1.0 Developed by Niccolò Fabbri E-mail: niccolo.fabbri@stud.unifi.it Teacher: Prof. Andrew David Bagdanov"; textBox1.FontSize = 36; } // this method allows to choose the image enum GestureStatus { None = 0, Rock = 1, Paper = 2, Scissors = 3 } GestureStatus gs = GestureStatus.None; private void GestureReact() { switch (gs) { case GestureStatus.None: imgGesture.Source = new BitmapImage(new Uri("./Images/None.png", UriKind.Relative)); break; case GestureStatus.Rock: imgGesture.Source = new BitmapImage(new Uri("./Images/SASSO.png", UriKind.Relative)); break; case GestureStatus.Paper: imgGesture.Source = new BitmapImage(new Uri("./Images/CARTA.png", UriKind.Relative)); break; case GestureStatus.Scissors: imgGesture.Source = new BitmapImage(new Uri("./Images/FORBICE.png", UriKind.Relative)); break; } } // this method allows to choose the image for USER Icon enum GestureStatus1 { doubt = 0, smile = 1, nosmile = 2 } GestureStatus1 gs1 = GestureStatus1.doubt; private void GestureReact1() { switch (gs1) { case GestureStatus1.doubt: man.Source = new BitmapImage(new Uri("./Images/YELLOW.jpg", UriKind.Relative)); break; case GestureStatus1.smile: man.Source = new BitmapImage(new Uri("./Images/GREEN.jpg", UriKind.Relative)); break; case GestureStatus1.nosmile: man.Source = new BitmapImage(new Uri("./Images/RED.jpg", UriKind.Relative)); break; } } // this method allows to choose the image for CPU Icon enum GestureStatus2 { doubt = 0, smile = 1, nosmile = 2 } GestureStatus2 gs2 = GestureStatus2.doubt; private void GestureReact2() { switch (gs2) { case GestureStatus2.doubt: cpu.Source = new BitmapImage(new Uri("./Images/YELLOW.jpg", UriKind.Relative)); break; case GestureStatus2.smile: cpu.Source = new BitmapImage(new Uri("./Images/GREEN.jpg", UriKind.Relative)); break; case GestureStatus2.nosmile: cpu.Source = new BitmapImage(new Uri("./Images/RED.jpg", UriKind.Relative)); break; } } // Little logic to RPS Game, when no hand found, it reset the GetRandom Number public void RPS_Game() { if (resultfinger == 5 || resultfinger == 4) { GetWinner_Paper(rand); } if (resultfinger == 3 || resultfinger == 2) { GetWinner_Scissors(rand); } if (resultfinger == 1 || resultfinger == 0) { GetWinner_Rock(rand); resultfinger = -1; } else if ((palm == 1 && resultfinger == 0) || resultfinger == -1) // palm == 1 || || resultfinger == -1 || count == 0) { textBox1.Text = "No Hand Found"; imgGesture.Source = new BitmapImage(new Uri("./Images/banhand1.png", UriKind.Relative)); cpu.Source = new BitmapImage(new Uri("./Images/CPU.png", UriKind.Relative)); man.Source = new BitmapImage(new Uri("./Images/MAN.png", UriKind.Relative)); rand = GetRandomNumber(0, 3); } } public void HandInterfaceWindow(IHandDataSource handDataSource, IImageDataSource imageDataSource) { this.element = new HandInterfaceElement(); } private void Button_Click(object sender, RoutedEventArgs e) { this.Close(); } private void Start() { // initialize sensor Microsoft Kinect SDK sensor = Microsoft.Kinect.KinectSensor.KinectSensors.FirstOrDefault(); sensor.Start(); sensor.ElevationAngle = 13; // initialize some element this.Cursor = Cursors.Wait; this.factory = new SDKDataSourceFactory(); this.clusterDataSource = this.factory.CreateClusterDataSource(new Core.Clustering.ClusterDataSourceSettings { MaximumDepthThreshold = 900 }); this.handDataSource = new HandDataSource(this.factory.CreateShapeDataSource(this.clusterDataSource, new Core.Shape.ShapeDataSourceSettings())); var depthImageSource = this.factory.CreateDepthImageDataSource(); depthImageSource.NewDataAvailable += new NewDataHandler<ImageSource>(MainWindow_NewDataAvailable); handDataSource.NewDataAvailable += new NewDataHandler<HandCollection>(handDataSource_NewDataAvailable); HandInterfaceWindow(this.handDataSource, depthImageSource); //new HandInterfaceWindow(this.handDataSource, this.rgbImageDataSource).Show(); depthImageSource.Start(); handDataSource.Start(); this.Cursor = Cursors.Arrow; } void handDataSource_NewDataAvailable(HandCollection data) { // for each frame, count number of fingers (resultfinger), if no hand found is 0 for (int index = 0; index < data.Count; index++) { var hand = data.Hands[index]; resultfinger = hand.FingerCount; if (hand.HasPalmPoint == true) { palm = 1; } else { palm = 0; } this.element.Update(data); } } // random function to choose int between 0 and 2. 0 rock, 1 scissors, 2 paper public int GetRandomNumber(int min, int max) { Random r = new Random(); int rInt = r.Next(min, max); return rInt; } //function that calculates the win of paper gesture public void GetWinner_Paper(int rand) { GestureReact(); GestureReact1(); GestureReact2(); if (rand == 2) { gs = GestureStatus.Paper; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.doubt; gs2 = GestureStatus2.doubt; } else if (rand == 0) { gs = GestureStatus.Rock; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.smile; gs2 = GestureStatus2.nosmile; } else if (rand == 1) { gs = GestureStatus.Scissors; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.nosmile; gs2 = GestureStatus2.smile; } } //function that calculates the win of scissors gesture public void GetWinner_Scissors(int rand) { GestureReact(); GestureReact1(); GestureReact2(); if (rand == 1) { gs = GestureStatus.Scissors; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.doubt; gs2 = GestureStatus2.doubt; } else if (rand == 0) { gs = GestureStatus.Rock; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.nosmile; gs2 = GestureStatus2.smile; } else if (rand == 2) { gs = GestureStatus.Paper; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.smile; gs2 = GestureStatus2.nosmile; } } //function that calculates the win of rock gesture public void GetWinner_Rock(int rand) { GestureReact(); GestureReact1(); GestureReact2(); if (rand == 0) { gs = GestureStatus.Rock; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.doubt; gs2 = GestureStatus2.doubt; } else if (rand == 1) { gs = GestureStatus.Scissors; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.smile; gs2 = GestureStatus2.nosmile; } else if (rand == 2) { gs = GestureStatus.Paper; textBox1.Text = "Play Again? Remove your hand!"; gs1 = GestureStatus1.nosmile; gs2 = GestureStatus2.smile; } } void MainWindow_NewDataAvailable(ImageSource data) { RPS_Game(); this.videoControl.Dispatcher.Invoke(new Action(() => { this.videoControl.ShowImageSource(data); })); } private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { new Action(() => { this.handDataSource.Stop(); this.factory.Dispose(); }).BeginInvoke(null, null); } // add the layers (read report) around at the hand found private void ToggleLayers() { var layers = new List<IWpfLayer>(); layers.Add(new WpfHandLayer(this.handDataSource)); this.videoControl.Layers = layers; } private void TextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) { } private void txtInfo_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) { } private void TextBox_TextChanged_1(object sender, TextChangedEventArgs e) { } //button to show instruction private void btn_Click(object sender, RoutedEventArgs e) { popup.IsOpen = true; } private void focusTarger_TextChanged(object sender, TextChangedEventArgs e) { } } }
fabbrin/KinecTool
Kinect_RPS_Game/MainWindow.xaml.cs
C#
mit
12,719
using System; using System.Linq; using IDI.Central.Common; using IDI.Central.Common.Enums; using IDI.Central.Core; using IDI.Central.Domain.Modules.Sales.Commands; using IDI.Central.Domain.Modules.Sales.Queries; using IDI.Central.Models.Sales; using IDI.Core.Authentication; using IDI.Core.Common; using IDI.Core.Common.Enums; using IDI.Core.Infrastructure.Messaging; using Microsoft.AspNetCore.Mvc; namespace IDI.Central.Controllers { [Route("api/vchr"), ApplicationAuthorize] [Module(Configuration.Modules.Sales)] public class VoucherController : Controller, IAuthorizable { private readonly ICommandBus bus; private readonly IQuerier querier; public VoucherController(ICommandBus bus, IQuerier querier) { this.bus = bus; this.querier = querier; } [HttpGet("{id}")] [Permission("voucher", PermissionType.Read)] public Result<VoucherModel> Get(Guid id) { var condition = new QueryVoucherCondition { Id = id }; return querier.Execute<QueryVoucherCondition, VoucherModel>(condition); } [HttpPost] [Permission("voucher", PermissionType.Add)] public Result Post([FromBody]VoucherInput input) { var command = new VoucherCommand { Id = input.Id, OrderId = input.OrderId, Payment = input.Payment, PayMethod = input.PayMethod, Remark = input.Remark, Mode = CommandMode.Create, Group = ValidationGroup.Create, }; return bus.Send(command); } [HttpPut("{id}")] [Permission("voucher", PermissionType.Modify)] public Result Put(Guid id, [FromBody]VoucherInput input) { var command = new VoucherCommand { Id = id, OrderId = input.OrderId, Status = input.Status, Payment = input.Payment, PayMethod = input.PayMethod, Remark = input.Remark, Mode = CommandMode.Update, Group = ValidationGroup.Update, }; return bus.Send(command); } [HttpPut("paid/{id}")] [Permission("voucher", PermissionType.Paid)] public Result Paid(Guid id) { var command = new VoucherCommand { Id = id, Status = TradeStatus.Success, Mode = CommandMode.Update, Group = ValidationGroup.Update, }; return bus.Send(command); } [HttpPost("attach")] [Permission("voucher", PermissionType.Upload)] public Result Attach() { var command = new VoucherCommand { Id = this.HttpContext.Request.Form["vchrid"].ToString().ToGuid(), File = this.HttpContext.Request.Form.Files.FirstOrDefault(), Mode = CommandMode.Upload, Group = ValidationGroup.Upload, }; return bus.Send(command); } [HttpDelete("{id}")] [Permission("voucher", PermissionType.Remove)] public Result Delete(Guid id) { var command = new VoucherCommand { Id = id, Mode = CommandMode.Delete, Group = ValidationGroup.Delete }; return bus.Send(command); } } }
idi-studio/com.idi.central.api
src/IDI.Central/Controllers/VoucherController.cs
C#
mit
3,509
(function () { window._paddingsTest = function () { var test = function (padding) { for (var len = 0; len <= 32; len++) { var initialArray = random.default.getUint8Array(len); var padded = padding.pad(initialArray, 16, random.default); var padCount = padding.unpad(padded); if (padCount == -1) { console.log('Failed! 1'); return; } var unpadded = padded.subarray(0, padded.length - padCount); if (initialArray.length != unpadded.length) { console.log('Failed! 2'); return; } for (var i = 0; i < len; i++) if (initialArray[i] != unpadded[i]) { console.log('Failed! 3'); return; } } console.log('passed'); }; console.log('ANSI X.923 test'); test(paddings['ANSI X.923']); console.log('ISO 10126 test'); test(paddings['ISO 10126']); console.log('PKCS7 test'); test(paddings['PKCS7']); console.log('ISO/IEC 7816-4 test'); test(paddings['ISO/IEC 7816-4']); }; var a40 = [25, 215, 226, 12, 106, 44, 159, 200, 49, 56, 86, 185, 11, 129, 90, 44, 125, 56, 126, 161, 114, 118, 212, 181, 23, 207, 189, 3, 55, 60, 7, 51, 5, 40, 199, 63, 151, 19, 88, 63]; window._md2Test = function () { var test = function (bytes, hex) { return bh.byteArrayToHex(hashAlgorithms.md2.computeHash(bytes)) == hex; }; var result = true; result &= test([], '8350e5a3e24c153df2275c9f80692773'); result &= test([255], '0797438d0baf3d71b7194ab3c71746b6'); result &= test(a40, '92183ec96932db4a26396b23d4df87a3'); console.log(result ? 'Passed' : 'Failed'); }; window._md4Test = function () { var test = function (bytes, hex) { return bh.byteArrayToHex(hashAlgorithms.md4.computeHash(bytes)) == hex; }; var result = true; result &= test([], '31d6cfe0d16ae931b73c59d7e0c089c0'); result &= test([255], '82c167af8e345bd055487af8d2b540c9'); result &= test(a40, 'c146aadc86111c7de36c7f319fa8a15d'); console.log(result ? 'Passed' : 'Failed'); }; window._md5Test = function () { var test = function (bytes, hex) { return bh.byteArrayToHex(hashAlgorithms.md5.computeHash(bytes)) == hex; }; var result = true; result &= test([], 'd41d8cd98f00b204e9800998ecf8427e'); result &= test([255], '00594fd4f42ba43fc1ca0427a0576295'); result &= test(a40, '332f73d56f380cea8ab0d51e855bac41'); console.log(result ? 'Passed' : 'Failed'); } window._sha1Test = function () { var test = function (bytes, hex) { return bh.byteArrayToHex(hashAlgorithms.sha1.computeHash(bytes)) == hex; }; var result = true; result &= test([], 'da39a3ee5e6b4b0d3255bfef95601890afd80709'); result &= test([255], '85e53271e14006f0265921d02d4d736cdc580b0b'); result &= test(a40, '7a4ce8e483c6fb3460501e660fb164a4d2928c57'); console.log(result ? 'Passed' : 'Failed'); }; window._sha2Test = function () { var test = function (bytes, ver, hex) { if (ver == 224) return bh.byteArrayToHex(hashAlgorithms.sha224.computeHash(bytes)) == hex; if (ver == 256) return bh.byteArrayToHex(hashAlgorithms.sha256.computeHash(bytes)) == hex; if (ver == 384) return bh.byteArrayToHex(hashAlgorithms.sha384.computeHash(bytes)) == hex; if (ver == 512) return bh.byteArrayToHex(hashAlgorithms.sha512.computeHash(bytes)) == hex; }; console.log('SHA-224'); var result = true; result &= test([], 224, 'd14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f'); result &= test([255], 224, 'e33f9d75e6ae1369dbabf81b96b4591ae46bba30b591a6b6c62542b5'); result &= test(a40, 224, '4beabeb77adf912c2270c455dd215f818662c0d61b85508c7def6a73'); console.log(result ? 'Passed' : 'Failed'); console.log('SHA-256'); var result = true; result &= test([], 256, 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'); result &= test([255], 256, 'a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89'); result &= test(a40, 256, '9792f39846b22bee11dbaa2a34014141c90cb4ef2f2c16dc83a48b0456f4705d'); console.log(result ? 'Passed' : 'Failed'); console.log('SHA-384'); var result = true; result &= test([], 384, '38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b'); result &= test([255], 384, '43950796d9883503655e35b5190aee687a2dd99f265012625b95753978e4efff3e8414d178a6e2318480d8eb6ddee643'); result &= test(a40, 384, '1fde9ca46c6d627edfbda629ce47e9101e803674e9156f9706d7a9406e5fe1c91e981e4276b37c78ce8c329b4a30a765'); console.log(result ? 'Passed' : 'Failed'); console.log('SHA-512'); var result = true; result &= test([], 512, 'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e'); result &= test([255], 512, '6700df6600b118ab0432715a7e8a68b0bf37cdf4adaf0fb9e2b3ebe04ad19c7032cbad55e932792af360bafaa09962e2e690652bc075b2dad0c30688ba2f31a3'); result &= test([97, 98, 99], 512, 'ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f'); test(a40, 512, 'a8e64de4f5fa72e7a1a1bee705d87acc50748a810482a088535e53ad741ed68fb0c7cb08035802f63d466ba629b13823705db763f5ec043918f20c2266c0a783'); console.log(result ? 'Passed' : 'Failed'); }; window._ripemd160Test = function () { var test = function (bytes, hex) { return bh.byteArrayToHex(hashAlgorithms.ripemd160.computeHash(bytes)) == hex; }; var result = true; result &= test([], '9c1185a5c5e9fc54612808977ee8f548b2258d31'); result &= test([255], '2c0c45d3ecab80fe060e5f1d7057cd2f8de5e557'); result &= test(a40, '7b78ec9d05702f000dbb1d88c2c941795b4f62bd'); console.log(result ? 'Passed' : 'Failed'); }; window._hashAlgoTest = function () { console.log('md2'); _md2Test(); console.log('md4'); _md4Test(); console.log('md5'); _md5Test(); console.log('sha1'); _sha1Test(); _sha2Test(); console.log('ripemd160'); _ripemd160Test(); }; })();
Zergatul/zChat
client/unit.tests.js
JavaScript
mit
5,900
<html> <head> <title>Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2 <p> Detected by 7 of 8 providers<br /> As bot detected by 0 of 7 </p> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Actions</th></tr><tr><td>BrowscapPhp<br /><small>6011</small></td><td>Silk 3.2</td><td>WebKit </td><td>Android </td><td>Sony</td><td>Playstation Vita</td><td>Console</td><td>yes</td><td></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-cbfe2df3-330b-4abd-b5df-0ca181549ca9">Detail</a> <!-- Modal Structure --> <div id="modal-cbfe2df3-330b-4abd-b5df-0ca181549ca9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(playstation vita.*\) applewebkit\/.* \(khtml, like gecko\) silk\/3\.2.*$/ [browser_name_pattern] => mozilla/5.0 (playstation vita*) applewebkit/* (khtml, like gecko) silk/3.2* [parent] => Silk 3.2 [comment] => Silk 3.2 [browser] => Silk [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Amazon.com, Inc. [browser_modus] => unknown [version] => 3.2 [majorver] => 3 [minorver] => 2 [platform] => Android [platform_version] => unknown [platform_description] => Android OS [platform_bits] => 32 [platform_maker] => Google Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => [vbscript] => [javaapplets] => 1 [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [cssversion] => 2 [aolversion] => 0 [device_name] => Playstation Vita [device_maker] => Sony [device_type] => Console [device_pointing_method] => unknown [device_code_name] => Playstation Vita [device_brand_name] => Sony [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Browser 1.50</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-6fae891b-b0d5-4415-b07d-355015c3af67">Detail</a> <!-- Modal Structure --> <div id="modal-6fae891b-b0d5-4415-b07d-355015c3af67" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => PlayStation Vita [browser] => Browser [version] => 1.50 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.1</small></td><td>Mobile Silk 3.2</td><td>Blink </td><td>PlayStation Portable Vita</td><td>Sony</td><td>PlayStation Vita</td><td>console</td><td>yes</td><td></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-fc0f1b55-50d8-49c2-bb12-4cc1d8144ebf">Detail</a> <!-- Modal Structure --> <div id="modal-fc0f1b55-50d8-49c2-bb12-4cc1d8144ebf" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Mobile Silk [short_name] => MS [version] => 3.2 [engine] => Blink ) [operatingSystem] => Array ( [name] => PlayStation Portable [short_name] => PSP [version] => Vita [platform] => ) [device] => Array ( [brand] => SO [brandName] => Sony [model] => PlayStation Vita [device] => 4 [deviceName] => console ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => 1 [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td><td>Mozilla 5.0</td><td><i class="material-icons">close</i></td><td> </td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-8c08f104-4e61-421b-9405-291b09c383dc">Detail</a> <!-- Modal Structure --> <div id="modal-8c08f104-4e61-421b-9405-291b09c383dc" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2 ) [name:Sinergi\BrowserDetector\Browser:private] => Mozilla [version:Sinergi\BrowserDetector\Browser:private] => 5.0 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => unknown [version:Sinergi\BrowserDetector\Os:private] => unknown [isMobile:Sinergi\BrowserDetector\Os:private] => [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>Amazon Silk 3.2</td><td><i class="material-icons">close</i></td><td> </td><td>Amazon</td><td>Kindle</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td></td><td></td><td><i class="material-icons">close</i></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-8f4c86c5-433e-4536-b799-ad26d77264e0">Detail</a> <!-- Modal Structure --> <div id="modal-8f4c86c5-433e-4536-b799-ad26d77264e0" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 3 [minor] => 2 [patch] => [family] => Amazon Silk ) [os] => UAParser\Result\OperatingSystem Object ( [major] => [minor] => [patch] => [patchMinor] => [family] => Other ) [device] => UAParser\Result\Device Object ( [brand] => Amazon [model] => Kindle [family] => Kindle ) [originalUserAgent] => Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>2.0.9</small></td><td>Silk 3.2</td><td>Webkit 531.22.8</td><td> </td><td>Amazon</td><td>Kindle Fire</td><td>tablet</td><td>yes</td><td><i class="material-icons">close</i></td><td></td><td></td><td><i class="material-icons">close</i></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-62f1f3a3-0c44-4ecb-9ee2-48145e35736b">Detail</a> <!-- Modal Structure --> <div id="modal-62f1f3a3-0c44-4ecb-9ee2-48145e35736b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Silk [version] => 3.2 [type] => browser ) [engine] => Array ( [name] => Webkit [version] => 531.22.8 ) [device] => Array ( [type] => tablet [manufacturer] => Amazon [model] => Kindle Fire ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Amazon Silk Browser 1.1</td><td><i class="material-icons">close</i></td><td>Mac OS X 10.6.3</td><td>Amazon</td><td>D01400</td><td>Tablet</td><td>yes</td><td>yes</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3a72b31e-c3c1-4317-a357-7a6d5e3c7027">Detail</a> <!-- Modal Structure --> <div id="modal-3a72b31e-c3c1-4317-a357-7a6d5e3c7027" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => true [is_mobile] => true [is_robot] => false [is_smartphone] => false [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => Mac OS X [advertised_device_os_version] => 10.6.3 [advertised_browser] => Amazon Silk Browser [advertised_browser_version] => 1.1 [complete_device_name] => Amazon D01400 (Kindle Fire) [form_factor] => Tablet [is_phone] => false [is_app_webview] => false ) [all] => Array ( [brand_name] => Amazon [model_name] => D01400 [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => false [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [mobile_browser_version] => [device_os_version] => 2.3 [pointing_method] => touchscreen [release_date] => 2011_october [marketing_name] => Kindle Fire [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => false [is_tablet] => true [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => true [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => true [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => false [xhtml_document_title_support] => true [xhtml_preferred_charset] => utf8 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => none [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => none [xhtml_send_mms_string] => none [xhtml_file_upload] => not_supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => true [xhtml_can_embed_video] => play_and_stop [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 1 [preferred_markup] => html_web_4_0 [wml_1_1] => true [wml_1_2] => true [wml_1_3] => true [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => false [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 600 [resolution_height] => 1024 [columns] => 80 [max_image_width] => 600 [max_image_height] => 875 [rows] => 100 [physical_screen_width] => 90 [physical_screen_height] => 154 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => true [transparent_png_index] => true [svgt_1_1] => false [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => false [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 7200 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => false [max_deck_size] => 100000 [max_url_length_in_requests] => 128 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => false [inline_support] => false [oma_support] => false [ringtone] => false [ringtone_3gpp] => false [ringtone_midi_monophonic] => false [ringtone_midi_polyphonic] => false [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [wallpaper_max_height] => 0 [wallpaper_preferred_width] => 0 [wallpaper_preferred_height] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => false [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 2 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => 1.2 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => progressive_download [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => false [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => false [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => false [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => true [transcoder_ua_header] => [rss_support] => false [pdf_support] => false [progressive_download] => true [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => 10 [playback_vcodec_mpeg4_sp] => -1 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => -1 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => true [controlcap_is_smartphone] => default [controlcap_is_ios] => default [controlcap_is_android] => default [controlcap_is_robot] => default [controlcap_is_app] => default [controlcap_advertised_device_os] => default [controlcap_advertised_device_os_version] => default [controlcap_advertised_browser] => default [controlcap_advertised_browser_version] => default [controlcap_is_windows_phone] => default [controlcap_is_full_desktop] => default [controlcap_is_largescreen] => default [controlcap_is_mobile] => default [controlcap_is_touchscreen] => default [controlcap_is_wml_preferred] => default [controlcap_is_xhtmlmp_preferred] => default [controlcap_is_html_preferred] => default [controlcap_form_factor] => default [controlcap_complete_device_name] => default ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-01-26 16:41:58</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
ThaDafinser/UserAgentParserComparison
v3/user-agent-detail/4d/c1/4dc19ae0-ee8e-4d88-857c-a1d158548135.html
HTML
mit
37,712
/* -*-c-*- */ /* * included by eval.c */ static void warn_printf(const char *fmt, ...) { VALUE str; va_list args; va_init_list(args, fmt); str = rb_vsprintf(fmt, args); va_end(args); rb_write_error_str(str); } #define warn_print(x) rb_write_error(x) #define warn_print2(x,l) rb_write_error2((x),(l)) #define warn_print_str(x) rb_write_error_str(x) static void error_pos(void) { VALUE sourcefile = rb_sourcefilename(); int sourceline = rb_sourceline(); if (sourcefile) { ID caller_name; if (sourceline == 0) { warn_printf("%"PRIsVALUE, sourcefile); } else if ((caller_name = rb_frame_callee()) != 0) { warn_printf("%"PRIsVALUE":%d:in `%"PRIsVALUE"'", sourcefile, sourceline, rb_id2str(caller_name)); } else { warn_printf("%"PRIsVALUE":%d", sourcefile, sourceline); } } } static VALUE get_backtrace(VALUE info) { if (NIL_P(info)) return Qnil; info = rb_funcall(info, rb_intern("backtrace"), 0); if (NIL_P(info)) return Qnil; return rb_check_backtrace(info); } VALUE rb_get_backtrace(VALUE info) { return get_backtrace(info); } VALUE rb_exc_set_backtrace(VALUE exc, VALUE bt); static void set_backtrace(VALUE info, VALUE bt) { ID set_backtrace = rb_intern("set_backtrace"); if (rb_backtrace_p(bt)) { if (rb_method_basic_definition_p(CLASS_OF(info), set_backtrace)) { rb_exc_set_backtrace(info, bt); return; } else { bt = rb_backtrace_to_str_ary(bt); } } rb_funcall(info, rb_intern("set_backtrace"), 1, bt); } static void error_print(void) { volatile VALUE errat = Qundef; rb_thread_t *th = GET_THREAD(); VALUE errinfo = th->errinfo; int raised_flag = th->raised_flag; volatile VALUE eclass = Qundef, e = Qundef; const char *volatile einfo; volatile long elen; if (NIL_P(errinfo)) return; rb_thread_raised_clear(th); TH_PUSH_TAG(th); if (TH_EXEC_TAG() == 0) { errat = get_backtrace(errinfo); } else if (errat == Qundef) { errat = Qnil; } else if (eclass == Qundef || e != Qundef) { goto error; } else { goto no_message; } if (NIL_P(errat)) { const char *file = rb_sourcefile(); int line = rb_sourceline(); if (!file) warn_printf("%d", line); else if (!line) warn_printf("%s", file); else warn_printf("%s:%d", file, line); } else if (RARRAY_LEN(errat) == 0) { error_pos(); } else { VALUE mesg = RARRAY_AREF(errat, 0); if (NIL_P(mesg)) error_pos(); else { warn_print_str(mesg); } } eclass = CLASS_OF(errinfo); if (eclass != Qundef && (e = rb_check_funcall(errinfo, rb_intern("message"), 0, 0)) != Qundef && (RB_TYPE_P(e, T_STRING) || !NIL_P(e = rb_check_string_type(e)))) { einfo = RSTRING_PTR(e); elen = RSTRING_LEN(e); } else { no_message: einfo = ""; elen = 0; } if (eclass == rb_eRuntimeError && elen == 0) { warn_print(": unhandled exception\n"); } else { VALUE epath; epath = rb_class_name(eclass); if (elen == 0) { warn_print(": "); warn_print_str(epath); warn_print("\n"); } else { char *tail = 0; long len = elen; if (RSTRING_PTR(epath)[0] == '#') epath = 0; if ((tail = memchr(einfo, '\n', elen)) != 0) { len = tail - einfo; tail++; /* skip newline */ } warn_print(": "); warn_print_str(tail ? rb_str_subseq(e, 0, len) : e); if (epath) { warn_print(" ("); warn_print_str(epath); warn_print(")\n"); } if (tail) { warn_print_str(rb_str_substr(e, tail - einfo, elen - len - 1)); } if (tail ? einfo[elen-1] != '\n' : !epath) warn_print2("\n", 1); } } if (!NIL_P(errat)) { long i; long len = RARRAY_LEN(errat); int skip = eclass == rb_eSysStackError; #define TRACE_MAX (TRACE_HEAD+TRACE_TAIL+5) #define TRACE_HEAD 8 #define TRACE_TAIL 5 for (i = 1; i < len; i++) { VALUE line = RARRAY_AREF(errat, i); if (RB_TYPE_P(line, T_STRING)) { warn_printf("\tfrom %"PRIsVALUE"\n", line); } if (skip && i == TRACE_HEAD && len > TRACE_MAX) { warn_printf("\t ... %ld levels...\n", len - TRACE_HEAD - TRACE_TAIL); i = len - TRACE_TAIL; } } } error: TH_POP_TAG(); th->errinfo = errinfo; rb_thread_raised_set(th, raised_flag); } void ruby_error_print(void) { error_print(); } static const char * method_scope_name(int scope) { const char *v; switch (scope) { default: case NOEX_PUBLIC: v = ""; break; case NOEX_PRIVATE: v = " private"; break; case NOEX_PROTECTED: v = " protected"; break; } return v; } void rb_print_undef(VALUE klass, ID id, int scope) { const char *v = method_scope_name(scope); rb_name_error(id, "undefined%s method `%"PRIsVALUE"' for %s `% "PRIsVALUE"'", v, QUOTE_ID(id), (RB_TYPE_P(klass, T_MODULE)) ? "module" : "class", rb_class_name(klass)); } void rb_print_undef_str(VALUE klass, VALUE name) { rb_name_error_str(name, "undefined method `%"PRIsVALUE"' for %s `% "PRIsVALUE"'", QUOTE(name), (RB_TYPE_P(klass, T_MODULE)) ? "module" : "class", rb_class_name(klass)); } void rb_print_inaccessible(VALUE klass, ID id, int scope) { const char *v = method_scope_name(scope); rb_name_error(id, "method `%"PRIsVALUE"' for %s `% "PRIsVALUE"' is %s", QUOTE_ID(id), (RB_TYPE_P(klass, T_MODULE)) ? "module" : "class", rb_class_name(klass), v); } static int sysexit_status(VALUE err) { VALUE st = rb_iv_get(err, "status"); return NUM2INT(st); } static int error_handle(int ex) { int status = EXIT_FAILURE; rb_thread_t *th = GET_THREAD(); if (rb_threadptr_set_raised(th)) return EXIT_FAILURE; switch (ex & TAG_MASK) { case 0: status = EXIT_SUCCESS; break; case TAG_RETURN: error_pos(); warn_print(": unexpected return\n"); break; case TAG_NEXT: error_pos(); warn_print(": unexpected next\n"); break; case TAG_BREAK: error_pos(); warn_print(": unexpected break\n"); break; case TAG_REDO: error_pos(); warn_print(": unexpected redo\n"); break; case TAG_RETRY: error_pos(); warn_print(": retry outside of rescue clause\n"); break; case TAG_THROW: /* TODO: fix me */ error_pos(); warn_printf(": unexpected throw\n"); break; case TAG_RAISE: { VALUE errinfo = GET_THREAD()->errinfo; if (rb_obj_is_kind_of(errinfo, rb_eSystemExit)) { status = sysexit_status(errinfo); } else if (rb_obj_is_instance_of(errinfo, rb_eSignal) && rb_iv_get(errinfo, "signo") != INT2FIX(SIGSEGV)) { /* no message when exiting by signal */ } else { error_print(); } break; } case TAG_FATAL: error_print(); break; default: rb_bug("Unknown longjmp status %d", ex); break; } rb_threadptr_reset_raised(th); return status; }
ontouchstart/docker-ruby-2.2
ruby-2.2.0/eval_error.c
C
mit
6,859
package org.fuckboi import org.scalatest.{Matchers, FlatSpec} import java.io._ class InputTest extends FuckboiGeneratorTest{ it should "read integer from input" in { writeToFile(path, "123") val code = "NETFLIX\n" + "IS IT TOO LATE NOW TO SAY SORRY? \"Input a number:\"\n" + "YO result\n" + "ASL? 0\n" + "GET YOUR ASS HERE result\n" + "SNAP\n" + "WHAT DO YOU MEAN?\n" + "IS IT TOO LATE NOW TO SAY SORRY? result\n" + "IS IT TOO LATE NOW TO SAY SORRY? \"Bye\"\n" + "CHILL\n" getOutput(code) should equal("Input a number:\n123\nBye\n") } val path = "test.in" override val byteCodeExecutor = new ByteCodeExecutor{ override def getOutput(bytecode: Array[Byte], className: String): String = { val originalIn = System.in val outputRedirectionStream = new ByteArrayOutputStream() val fileInput = new BufferedInputStream(new FileInputStream(path)) System.setOut(new PrintStream(outputRedirectionStream)) System.setIn(fileInput) try { invokeMainMethod(bytecode, className) } finally { System.setOut(originalOutputStream) System.setIn(originalIn) } outputRedirectionStream.toString } } def writeToFile(file:String, data:String) = { val out = new FileOutputStream(file) out.write(data.getBytes) out.close() } }
VirenMohindra/Fuckboi
src/test/scala/org/fuckboi/InputTest.scala
Scala
mit
1,392
#!/usr/bin/env node const NumberUtil = require("../js/lib/number-util.js"); var Z80_assemble = require('../js/Z80/assembler'); var MZ_TapeHeader = require('../js/lib/mz-tape-header'); var changeExt = require('../js/lib/change-ext.js'); var fs = require('fs'); var getPackageJson = require("./lib/get-package-json"); var npmInfo = getPackageJson(__dirname + "/.."); var Getopt = require('node-getopt'); var getopt = new Getopt([ ['m', 'map=FILENAME', 'output map file name'], ['z', 'output-MZT-header', 'output MZT header'], ['a', 'loading-address=ADDR', 'set loading address'], ['e', 'execution-address=ADDR', 'set execution address'], ['t', 'reuse-mzt-header=FILENAME', "reuse the MZT header."], ['o', 'output-file=FILENAME', 'filename to output'], ['h', 'help', 'display this help'], ['v', 'version', 'show version'] ]); var cli = getopt.parseSystem(); var description = "A simple Z80 assembler -- " + npmInfo.name + "@" + npmInfo.version; getopt.setHelp( "Usage: mzasm [OPTION] filename [filename ...]\n" + description + "\n" + "\n" + "[[OPTIONS]]\n" + "\n" + "Installation: npm install -g mz700-js\n" + "Repository: https://github.com/takamin/mz700-js"); if(cli.options.help) { getopt.showHelp(); process.exit(0); } if(cli.options.version) { console.log(description); process.exit(0); } var args = require("hash-arg").get(["input_filenames:string[]"], cli.argv); if(cli.argv.length < 1) { console.error('error: no input file'); process.exit(-1); } // Determine the output filename var output_filename = null; if('output-file' in cli.options) { output_filename = cli.options['output-file']; } else { var ext = null; if('reuse-mzt-header' in cli.options || 'output-MZT-header' in cli.options) { ext = ".mzt"; } else { ext = ".bin"; } let input_filename = args.input_filenames[0]; output_filename = changeExt(input_filename, ext); } // Determine filename of address map var fnMap = null; if('map' in cli.options) { fnMap = cli.options['map']; } else { fnMap = changeExt(output_filename, ".map"); } // // MZT-Header // var mzt_header = null; if('reuse-mzt-header' in cli.options) { // // Load MZT-Header from other MZT-File. // var mzt_filebuf = fs.readFileSync(cli.options['reuse-mzt-header']); mzt_header = new MZ_TapeHeader(mzt_filebuf, 0); } else if('output-MZT-header' in cli.options) { // // Create MZT-Header from the informations specified in command line options // var load_addr = 0; var exec_addr = 0; if('loading-address' in cli.options) { load_addr = parseInt(cli.options['loading-address'], 0); exec_addr = load_addr; } if('execution-address' in cli.options) { exec_addr = parseInt(cli.options['execution-address'], 0); } mzt_header = MZ_TapeHeader.createNew(); mzt_header.setFilename(output_filename); mzt_header.setAddrLoad(load_addr); mzt_header.setAddrExec(exec_addr); } (async function() { let sources = []; await Promise.all(args.input_filenames.map( input_filename => { return new Promise( (resolve, reject) => { fs.readFile(input_filename, 'utf-8', function(err, data) { if(err) { reject(err); } else { sources.push(data); resolve(data); } }); }); })); // // Assemble // let asm = Z80_assemble.assemble(sources); // // Set binary size to MZT Header // var mzt_header_buf = []; if(mzt_header != null) { if(mzt_header.addrLoad == 0) { mzt_header.setAddrLoad(asm.minAddr); } if(mzt_header.addrExec == 0) { mzt_header.setAddrExec(asm.minAddr); } mzt_header.setFilesize(asm.buffer.length); mzt_header_buf = mzt_header.buffer; } // // Write out // fs.writeFileSync( output_filename, Buffer.from(mzt_header_buf.concat(asm.buffer))); // // Output address map // let map = Z80_assemble.hashMapArray(asm.label2value).map(function(item) { return [item.label, ":\t", NumberUtil.HEX(item.address, 4), "H"].join(''); }).join("\n"); if(map.length > 0) { fs.writeFileSync(fnMap, map); } }());
takamin/mz700-js
bin/mzasm.js
JavaScript
mit
4,492
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.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"> <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="../../../../.."><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="../../..">Unstable</a></li> <li class="active"><a href="">8.4.dev / contrib:amm11262 dev</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="../../../../../about.html">About</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../../..">« Up</a> <h1>contrib:amm11262 <small>dev</small></h1> <table class="table table-striped text-center"> <thead> <tr> <td>Date</td> <td>Time</td> <td>Relative</td> <td>Status</td> </tr> </thead> <tbody> <tr> <td>2015-01-31</td> <td>05:04:50</td> <td><script>document.write(moment("2015-01-31 05:04:50 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2015-01-31_05-04-50.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-12-13</td> <td>08:31:47</td> <td><script>document.write(moment("2014-12-13 08:31:47 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2014-12-13_08-31-47.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-12-03</td> <td>22:27:58</td> <td><script>document.write(moment("2014-12-03 22:27:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2014-12-03_22-27-58.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-11-29</td> <td>17:44:14</td> <td><script>document.write(moment("2014-11-29 17:44:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2014-11-29_17-44-14.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-11-20</td> <td>21:47:30</td> <td><script>document.write(moment("2014-11-20 21:47:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2014-11-20_21-47-30.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-11-19</td> <td>21:53:26</td> <td><script>document.write(moment("2014-11-19 21:53:26 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="info"><a href="2014-11-19_21-53-26.html">Not compatible with this Coq</a></td> </tr> <tr> <td>2014-11-18</td> <td>18:25:03</td> <td><script>document.write(moment("2014-11-18 18:25:03 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script></td> <td class="danger"><a href="2014-11-18_18-25-03.html">Lint error</a></td> </tr> </tbody> </table> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </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>
coq-bench/coq-bench.github.io-old
clean/Linux-x86_64-4.02.1-1.2.0/unstable/8.4.dev/contrib:amm11262/dev/index.html
HTML
mit
5,444
--- layout: page title: Sky Systems Award Ceremony date: 2016-05-24 author: Jennifer Swanson tags: weekly links, java status: published summary: Lorem ipsum dolor sit amet, consectetur. banner: images/banner/leisure-02.jpg booking: startDate: 11/01/2019 endDate: 11/03/2019 ctyhocn: DTTNVHX groupCode: SSAC published: true --- Donec vulputate tempus maximus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas feugiat diam eleifend, scelerisque enim et, ullamcorper nisl. Fusce tempor blandit sem. Duis hendrerit non quam ut vehicula. Cras vehicula, sem quis rutrum congue, ipsum felis pretium est, eget hendrerit felis sapien quis leo. Nulla scelerisque lorem ac imperdiet auctor. Suspendisse eget erat sed erat porttitor ullamcorper eget id felis. Curabitur accumsan lectus purus, id blandit ex mattis ut. Mauris a nulla mollis, pulvinar enim non, mollis dui. Aliquam sed semper nulla. Praesent tempor sed dolor facilisis tristique. Quisque varius leo lacinia, malesuada risus non, efficitur risus. In ornare nisi lectus, sed egestas velit tempor at. Curabitur leo dui, tincidunt eget turpis quis, vehicula venenatis odio. Cras laoreet euismod egestas. * Suspendisse a quam vel quam vulputate euismod * Donec luctus lectus quis arcu congue, ac volutpat dui tempus * Praesent pellentesque felis eu ligula consequat tempor. Aliquam suscipit, magna et ullamcorper pellentesque, erat nunc malesuada leo, ac pulvinar arcu enim at orci. Praesent dictum luctus elit ut tincidunt. Aliquam erat volutpat. Curabitur at mi hendrerit, egestas elit sit amet, convallis lectus. Sed arcu tellus, efficitur at neque at, sodales vestibulum diam. Donec porttitor, massa nec scelerisque maximus, sapien arcu sollicitudin elit, a auctor felis diam eu nunc. Sed imperdiet dui interdum, fringilla enim quis, interdum massa. Maecenas dapibus fringilla nisl vitae sollicitudin. Nunc rutrum pretium laoreet. Nunc semper tortor neque, ut fringilla ex euismod eget. Nullam mauris dolor, tempor ut tincidunt quis, consequat ac nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur commodo urna nunc, et posuere ligula ultricies eget. Aenean sem mauris, tristique pretium fermentum eget, efficitur sit amet enim. Praesent est ex, efficitur vel magna ac, ultricies accumsan elit. Donec bibendum consectetur arcu, vel pellentesque tellus tincidunt nec. Donec rutrum mi nisi, vel efficitur ante varius non. Suspendisse blandit, est at venenatis mattis, odio nisi dictum orci, id ullamcorper est eros et ligula. Sed accumsan mollis elit, eget pellentesque diam egestas quis. Phasellus varius lobortis lorem in pretium. Phasellus imperdiet eleifend tortor eu placerat. Nunc scelerisque velit vel libero commodo mollis. Nunc suscipit viverra tortor. Maecenas eget accumsan elit, sed semper elit. Quisque pulvinar arcu orci, vitae venenatis ante lacinia fermentum.
KlishGroup/prose-pogs
pogs/D/DTTNVHX/SSAC/index.md
Markdown
mit
2,916
var path = require('path'); var gulp = require('gulp'); var tsc = require('gulp-tsc'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var compass = require('gulp-compass'); const CONF_PATH = 'conf/'; const SRC_PATH = 'frontend_src/'; const PUBLIC_PATH = 'public/'; gulp.task('tsc', function() { gulp.src(_pj(SRC_PATH, 'ts/**/*.ts')) .pipe(tsc({ target: 'ES5' })) .pipe(concat('app.js')) .pipe(uglify({ outSourceMap: true })) .pipe(gulp.dest(_pj(PUBLIC_PATH, 'js'))) }); gulp.task('compass', function() { gulp.src(_pj(SRC_PATH, 'sass/**/*.sass')) .pipe(compass({ config_file : _pj(CONF_PATH, 'compass_config.rb'), sass : _pj(SRC_PATH, 'sass'), css : _pj(PUBLIC_PATH, 'css'), sourcemap : true, })); }); gulp.task('develop', ['default'], function() { gulp.watch([ _pj(SRC_PATH, 'ts/**/*.ts') ], ['tsc']); gulp.watch([ _pj(SRC_PATH, 'sass/**/*.sass') ], ['compass']); }); gulp.task('default', ['compass', 'tsc']); function _pj() { return path.join.apply(null, arguments); }
dameleon/doorman
gulpfile.js
JavaScript
mit
1,201
#Sequences of actual rotors used in WWII, format is name, sequences, turnover notch(es) rotor_sequences = { 'I': ('EKMFLGDQVZNTOWYHXUSPAIBRCJ', ('Q')), 'II': ('AJDKSIRUXBLHWTMCQGZNPYFVOE', ('E')), 'III': ('BDFHJLCPRTXVZNYEIWGAKMUSQO', ('V')), 'IV': ('ESOVPZJAYQUIRHXLNFTGKDCMWB', ('J')), 'V': ('VZBRGITYUPSDNHLXAWMJQOFECK', ('Z')), 'VI': ('JPGVOUMFYQBENHZRDKASXLICTW', ('Z', 'M')), 'VII': ('NZJHGRCXMYSWBOUFAIVLPEKQDT', ('Z', 'M')), 'VIII': ('FKQHTLXOCBJSPDZRAMEWNIUYGV', ('Z', 'M')), 'IC': ('DMTWSILRUYQNKFEJCAZBPGXOHV', ('Q')), #civilian 'IIC': ('HQZGPJTMOBLNCIFDYAWVEUSRKX', ('Q')), #civilian 'IIIC': ('UQNTLSZFMREHDPXKIBVYGJCWOA', ('Q')), #civilian 'BETA': ('LEYJVCNIXWPBQMDRTAKZGFUHOS', None), #Position 4 Only 'GAMMA': ('FSOKANUERHMBTIYCWLQPZXVGJD', None) #Position 4 Only } #Simple letter substitutions before the sequence is sent back through the rotors. Notably a letter cannot be encoded as itself here. reflector_sequences = { 'A': 'EJMZALYXVBWFCRQUONTSPIKHGD', 'B': 'YRUHQSLDPXNGOKMIEBFZCWVJAT', 'C': 'FVPJIAOYEDRZXWGCTKUQSBNMHL', 'B Thin': 'ENKQAUYWJICOPBLMDXZVFTHRGS', 'C Thin': 'RDOBJNTKVEHMLFCWZAXGYIPSUQ', 'None': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' #Early models had no reflector } #Entry wheel for Enigma I ETW = { 'STANDARD': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'NAVY': 'QWERTZUIOPASDFGHJKLYXCVBNM' } #Functions used to sort rotor_sequences.keys() into a logical order in frontend def cat_sort(x): '''Sort by categories (Civilian, Main, 1942)''' score_x = -1 if x[-1] == 'C': score_x = 0 elif x in ('BETA', 'GAMMA'): score_x = 1 return score_x def numeral_sort(x): '''Lazy numeral sort, not worth making a proper parser for so few values''' numerals = { 'I': 1, 'II': 2, 'III': 3, 'IV': 4, 'V': 5, 'VI': 6, 'VII': 7, 'VIII': 8, 'IX': 9, 'X': 10 } string = ''.join([i for i in x if i in ('I','V','X')]) return(numerals.get(string, 0))
jossthomas/Enigma-Machine
components/Default_Settings.py
Python
mit
2,231
GameLoop ======== C#でゲームループを回すためのクラス 動作は呼び出し元(GameStart()したスレッド)とは別のスレッドで動作します .NETの命名規則を無視していたりそもそも設計がひどかったりであまりオススメできません。 使い方: TNKTLib.FPSTimer timer = new FPSTimer(); timer.Fps = 30; timer.GameInit += () => {};//初期化処理を追加。他のイベントもこれと同じ型 timer.GameUpdate += timer_GameUpdate;//毎フレーム呼び出される更新処理を追加 timer.GameRender += timer_GameRender;//描画処理を追加 timer.GameStart();
tnkt37/GameLoop
README.md
Markdown
mit
665
/* * ui.c - Common UI routines. * * Written by * Andreas Boose <viceteam@t-online.de> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * 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 "vice.h" #include "fullscreenarch.h" #include "interrupt.h" #include "ui.h" #include "uiapi.h" #include "uiattach.h" #include "uicommands.h" #include "uifliplist.h" #include "uiromset.h" #include "uiscreenshot.h" #include "types.h" #include "vsync.h" #include "openGL_sync.h" static int is_paused = 0; static void pause_trap(WORD addr, void *data) { ui_display_paused(1); is_paused = 1; vsync_suspend_speed_eval(); while (is_paused) { ui_dispatch_next_event(); } } void ui_pause_emulation(int flag) { if (flag) { interrupt_maincpu_trigger_trap(pause_trap, 0); } else { ui_display_paused(0); is_paused = 0; } } int ui_emulation_is_paused(void) { return is_paused; } void ui_common_init(void) { uiromset_menu_init(); } void ui_common_shutdown(void) { #ifdef HAVE_FULLSCREEN fullscreen_shutdown(); #endif #if defined HAVE_OPENGL_SYNC && defined HAVE_XRANDR openGL_sync_shutdown(); #endif uiattach_shutdown(); uicommands_shutdown(); uifliplist_shutdown(); uiscreenshot_shutdown(); } void ui_display_joyport(BYTE *joyport) { } void ui_display_event_time(unsigned int current, unsigned int total) { } void ui_display_volume(int vol) { } char* ui_get_file(const char *format,...) { return NULL; }
century-arcade/src
c64/vice-2.4/src/arch/unix/gui/ui.c
C
mit
2,244
<?php /* SoccerLandingBundle:Base:footer.html.twig */ class __TwigTemplate_98c202dddf3369bfcba6f8cea3be40dcfe34562af54b73d19e740e42a2cba45d extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { $__internal_a0e32ad5a3e1099448e6bef5833516b1309e3e8019c2b54efd18348e6754bece = $this->env->getExtension("native_profiler"); $__internal_a0e32ad5a3e1099448e6bef5833516b1309e3e8019c2b54efd18348e6754bece->enter($__internal_a0e32ad5a3e1099448e6bef5833516b1309e3e8019c2b54efd18348e6754bece_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "SoccerLandingBundle:Base:footer.html.twig")); // line 1 echo " <div class=\"container\"> <div class=\"row\"> <div class=\"col-lg-12\"> <ul class=\"list-inline\"> <li> <a href=\"#\">Home</a> </li> <li class=\"footer-menu-divider\">&sdot;</li> <li> <a href=\"#about\">About</a> </li> <li class=\"footer-menu-divider\">&sdot;</li> <li> <a href=\"#services\">Services</a> </li> <li class=\"footer-menu-divider\">&sdot;</li> <li> <a href=\"#contact\">Contact</a> </li> </ul> <p class=\"copyright text-muted small\">Copyright &copy; Your Company 2014. All Rights Reserved</p> </div> </div> </div>"; $__internal_a0e32ad5a3e1099448e6bef5833516b1309e3e8019c2b54efd18348e6754bece->leave($__internal_a0e32ad5a3e1099448e6bef5833516b1309e3e8019c2b54efd18348e6754bece_prof); } public function getTemplateName() { return "SoccerLandingBundle:Base:footer.html.twig"; } public function getDebugInfo() { return array ( 22 => 1,); } } /* <div class="container">*/ /* <div class="row">*/ /* <div class="col-lg-12">*/ /* <ul class="list-inline">*/ /* <li>*/ /* <a href="#">Home</a>*/ /* </li>*/ /* <li class="footer-menu-divider">&sdot;</li>*/ /* <li>*/ /* <a href="#about">About</a>*/ /* </li>*/ /* <li class="footer-menu-divider">&sdot;</li>*/ /* <li>*/ /* <a href="#services">Services</a>*/ /* </li>*/ /* <li class="footer-menu-divider">&sdot;</li>*/ /* <li>*/ /* <a href="#contact">Contact</a>*/ /* </li>*/ /* </ul>*/ /* <p class="copyright text-muted small">Copyright &copy; Your Company 2014. All Rights Reserved</p>*/ /* </div>*/ /* </div>*/ /* </div>*/
malioret/ConnectedSoccerApi
app/cache/dev/twig/0f/0fcb621461017b5c5b6ecd2a861357fa79ddd70d83936ec97661f9aa287c40db.php
PHP
mit
3,419
<?php namespace App\Models; use App\Util\C; /** * Class GeneratorListEntry * @package App\Models * @property integer generator_list_id * @property integer section_id * @property integer meeting_id * @property boolean required */ class GeneratorListEntry extends BaseModel { public $timestamps = false; protected $fillable = [ C::GENERATOR_LIST_ID, C::SECTION_ID, C::MEETING_ID, C::REQUIRED ]; public function section() { return Section::find($this->section_id); } public function meeting() { return MeetingTime::find($this->meeting_id); } }
jregistr/myAgenda
app/Models/GeneratorListEntry.php
PHP
mit
637
import { Pipe, PipeTransform } from '@angular/core'; import * as _ from 'lodash'; @Pipe({ name: 'myErrorsToList' }) export class ErrorsToListPipe implements PipeTransform { transform(value: {[key: string]: string | boolean}): any[] { return _.toArray(value); } }
damnko/angular2-django-movies
angular2-client/src/app/shared/pipes/errors-to-list.pipe.ts
TypeScript
mit
275
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule AutodocsLayout */ var DocsSidebar = require('DocsSidebar'); var H = require('Header'); var Header = require('Header'); var HeaderWithGithub = require('HeaderWithGithub'); var Marked = require('Marked'); var Prism = require('Prism'); var React = require('React'); var Site = require('Site'); var slugify = require('slugify'); var styleReferencePattern = /^[^.]+\.propTypes\.style$/; function renderEnumValue(value) { // Use single quote strings even when we are given double quotes if (value.match(/^"(.+)"$/)) { return "'" + value.slice(1, -1) + "'"; } return value; } function renderType(type) { if (type.name === 'enum') { if (typeof type.value === 'string') { return type.value; } return 'enum(' + type.value.map((v) => renderEnumValue(v.value)).join(', ') + ')'; } if (type.name === 'shape') { return '{' + Object.keys(type.value).map((key => key + ': ' + renderType(type.value[key]))).join(', ') + '}'; } if (type.name == 'union') { return type.value.map(renderType).join(', '); } if (type.name === 'arrayOf') { return '[' + renderType(type.value) + ']'; } if (type.name === 'instanceOf') { return type.value; } if (type.name === 'custom') { if (styleReferencePattern.test(type.raw)) { var name = type.raw.substring(0, type.raw.indexOf('.')); return <a href={slugify(name) + '.html#style'}>{name}#style</a> } if (type.raw === 'ColorPropType') { return <a href={'colors.html'}>color</a> } if (type.raw === 'EdgeInsetsPropType') { return '{top: number, left: number, bottom: number, right: number}'; } return type.raw; } if (type.name === 'stylesheet') { return 'style'; } if (type.name === 'func') { return 'function'; } return type.name; } function sortByPlatform(props, nameA, nameB) { var a = props[nameA]; var b = props[nameB]; if (a.platforms && !b.platforms) { return 1; } if (b.platforms && !a.platforms) { return -1; } // Cheap hack: use < on arrays of strings to compare the two platforms if (a.platforms < b.platforms) { return -1; } if (a.platforms > b.platforms) { return 1; } if (nameA < nameB) { return -1; } if (nameA > nameB) { return 1; } return 0; } var ComponentDoc = React.createClass({ renderProp: function(name, prop) { return ( <div className="prop" key={name}> <Header level={4} className="propTitle" toSlug={name}> {prop.platforms && prop.platforms.map(platform => <span className="platform">{platform}</span> )} {name} {' '} {prop.type && <span className="propType"> {renderType(prop.type)} </span>} </Header> {prop.deprecationMessage && <div className="deprecated"> <div className="deprecatedTitle"> <img className="deprecatedIcon" src="img/Warning.png" /> <span>Deprecated</span> </div> <div className="deprecatedMessage"> <Marked>{prop.deprecationMessage}</Marked> </div> </div>} {prop.type && prop.type.name === 'stylesheet' && this.renderStylesheetProps(prop.type.value)} {prop.description && <Marked>{prop.description}</Marked>} </div> ); }, renderCompose: function(name) { return ( <div className="prop" key={name}> <Header level={4} className="propTitle" toSlug={name}> <a href={slugify(name) + '.html#props'}>{name} props...</a> </Header> </div> ); }, renderStylesheetProp: function(name, prop) { return ( <div className="prop" key={name}> <h6 className="propTitle"> {prop.platforms && prop.platforms.map(platform => <span className="platform">{platform}</span> )} {name} {' '} {prop.type && <span className="propType"> {renderType(prop.type)} </span>} {' '} {prop.description && <Marked>{prop.description}</Marked>} </h6> </div> ); }, renderStylesheetProps: function(stylesheetName) { var style = this.props.content.styles[stylesheetName]; this.extractPlatformFromProps(style.props); return ( <div className="compactProps"> {(style.composes || []).map((name) => { var link; if (name === 'LayoutPropTypes') { name = 'Flexbox'; link = <a href={slugify(name) + '.html#proptypes'}>{name}...</a>; } else if (name === 'TransformPropTypes') { name = 'Transforms'; link = <a href={slugify(name) + '.html#proptypes'}>{name}...</a>; } else { name = name.replace('StylePropTypes', ''); link = <a href={slugify(name) + '.html#style'}>{name}#style...</a>; } return ( <div className="prop" key={name}> <h6 className="propTitle">{link}</h6> </div> ); })} {Object.keys(style.props) .sort(sortByPlatform.bind(null, style.props)) .map((name) => this.renderStylesheetProp(name, style.props[name])) } </div> ); }, renderProps: function(props, composes) { return ( <div className="props"> {(composes || []).map((name) => this.renderCompose(name) )} {Object.keys(props) .sort(sortByPlatform.bind(null, props)) .map((name) => this.renderProp(name, props[name])) } </div> ); }, extractPlatformFromProps: function(props) { for (var key in props) { var prop = props[key]; var description = prop.description || ''; var platforms = description.match(/\@platform (.+)/); platforms = platforms && platforms[1].replace(/ /g, '').split(','); description = description.replace(/\@platform (.+)/, ''); prop.description = description; prop.platforms = platforms; } }, render: function() { var content = this.props.content; this.extractPlatformFromProps(content.props); return ( <div> <Marked> {content.description} </Marked> <H level={3}>Props</H> {this.renderProps(content.props, content.composes)} </div> ); } }); var APIDoc = React.createClass({ removeCommentsFromDocblock: function(docblock) { return docblock .trim('\n ') .replace(/^\/\*+/, '') .replace(/\*\/$/, '') .split('\n') .map(function(line) { return line.trim().replace(/^\* ?/, ''); }) .join('\n'); }, renderTypehintRec: function(typehint) { if (typehint.type === 'simple') { return typehint.value; } if (typehint.type === 'generic') { return this.renderTypehintRec(typehint.value[0]) + '<' + this.renderTypehintRec(typehint.value[1]) + '>'; } return JSON.stringify(typehint); }, renderTypehint: function(typehint) { try { var typehint = JSON.parse(typehint); } catch(e) { return typehint; } return this.renderTypehintRec(typehint); }, renderMethod: function(method) { return ( <div className="prop" key={method.name}> <Header level={4} className="propTitle" toSlug={method.name}> {method.modifiers.length && <span className="propType"> {method.modifiers.join(' ') + ' '} </span> || ''} {method.name} <span className="propType"> ({method.params .map((param) => { var res = param.name; if (param.typehint) { res += ': ' + this.renderTypehint(param.typehint); } return res; }) .join(', ')}) </span> </Header> {method.docblock && <Marked> {this.removeCommentsFromDocblock(method.docblock)} </Marked>} </div> ); }, renderMethods: function(methods) { if (!methods.length) { return null; } return ( <span> <H level={3}>Methods</H> <div className="props"> {methods.filter((method) => { return method.name[0] !== '_'; }).map(this.renderMethod)} </div> </span> ); }, renderProperty: function(property) { return ( <div className="prop" key={property.name}> <Header level={4} className="propTitle" toSlug={property.name}> {property.name} {property.type && <span className="propType"> {': ' + renderType(property.type)} </span> } </Header> {property.docblock && <Marked> {this.removeCommentsFromDocblock(property.docblock)} </Marked>} </div> ); }, renderProperties: function(properties) { if (!properties || !properties.length) { return null; } return ( <span> <H level={3}>Properties</H> <div className="props"> {properties.filter((property) => { return property.name[0] !== '_'; }).map(this.renderProperty)} </div> </span> ); }, renderClasses: function(classes) { if (!classes || !classes.length) { return null; } return ( <span> <div> {classes.filter((cls) => { return cls.name[0] !== '_' && cls.ownerProperty[0] !== '_'; }).map((cls) => { return ( <span key={cls.name}> <Header level={2} toSlug={cls.name}> class {cls.name} </Header> <ul> {cls.docblock && <Marked> {this.removeCommentsFromDocblock(cls.docblock)} </Marked>} {this.renderMethods(cls.methods)} {this.renderProperties(cls.properties)} </ul> </span> ); })} </div> </span> ); }, render: function() { var content = this.props.content; if (!content.methods) { throw new Error( 'No component methods found for ' + content.componentName ); } return ( <div> <Marked> {this.removeCommentsFromDocblock(content.docblock)} </Marked> {this.renderMethods(content.methods)} {this.renderProperties(content.properties)} {this.renderClasses(content.classes)} </div> ); } }); var EmbeddedSimulator = React.createClass({ render: function() { if (!this.props.shouldRender) { return null; } var metadata = this.props.metadata; return ( <div className="column-left"> <p><a className="modal-button-open"><strong>Run this example</strong></a></p> <div className="modal-button-open modal-button-open-img"> <img alt="Run example in simulator" width="170" height="358" src="img/alertIOS.png" /> </div> <Modal /> </div> ); } }); var Modal = React.createClass({ render: function() { var appParams = {route: 'AlertIOS'}; var encodedParams = encodeURIComponent(JSON.stringify(appParams)); var url = `https://appetize.io/embed/bypdk4jnjra5uwyj2kzd2aenv4?device=iphone5s&scale=70&autoplay=false&orientation=portrait&deviceColor=white&params=${encodedParams}`; return ( <div> <div className="modal"> <div className="modal-content"> <button className="modal-button-close">&times;</button> <div className="center"> <iframe className="simulator" src={url} width="256" height="550" frameborder="0" scrolling="no"></iframe> <p>Powered by <a target="_blank" href="https://appetize.io">appetize.io</a></p> </div> </div> </div> <div className="modal-backdrop" /> </div> ); } }); var Autodocs = React.createClass({ renderFullDescription: function(docs) { if (!docs.fullDescription) { return; } return ( <div> <HeaderWithGithub title="Description" path={'docs/' + docs.componentName + '.md'} /> <Marked> {docs.fullDescription} </Marked> </div> ); }, renderExample: function(docs, metadata) { if (!docs.example) { return; } return ( <div> <HeaderWithGithub title="Examples" path={docs.example.path} metadata={metadata} /> <Prism> {docs.example.content.replace(/^[\s\S]*?\*\//, '').trim()} </Prism> </div> ); }, render: function() { var metadata = this.props.metadata; var docs = JSON.parse(this.props.children); var content = docs.type === 'component' || docs.type === 'style' ? <ComponentDoc content={docs} /> : <APIDoc content={docs} apiName={metadata.title} />; return ( <Site section="docs" title={metadata.title}> <section className="content wrap documentationContent"> <DocsSidebar metadata={metadata} /> <div className="inner-content"> <a id="content" /> <HeaderWithGithub title={metadata.title} level={1} path={metadata.path} /> {content} {this.renderFullDescription(docs)} {this.renderExample(docs, metadata)} <div className="docs-prevnext"> {metadata.previous && <a className="docs-prev" href={metadata.previous + '.html#content'}>&larr; Prev</a>} {metadata.next && <a className="docs-next" href={metadata.next + '.html#content'}>Next &rarr;</a>} </div> </div> <EmbeddedSimulator shouldRender={metadata.runnable} metadata={metadata} /> </section> </Site> ); } }); module.exports = Autodocs;
ymcao/TopNewsIOS
ProDevForIOS/React-Native-0.21-stable/website/layout/AutodocsLayout.js
JavaScript
mit
14,360
<!DOCTYPE html> <html> <head> <title>Be right back.</title> <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"> <style> html, body { height: 100%; } body { margin: 0; padding: 0; width: 100%; color: #B0BEC5; display: table; font-weight: 100; font-family: 'Lato'; } .container { text-align: center; display: table-cell; vertical-align: middle; } .content { text-align: center; display: inline-block; } .title { font-size: 72px; margin-bottom: 40px; } </style> </head> <body> <div class="container"> <div class="content"> <div class="title">404 Not found.</div> </div> </div> </body> </html>
wsmwason/3bow-net
resources/views/errors/404.blade.php
PHP
mit
1,104
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows.Forms; namespace Timers { /// <summary> /// A timer based on System.Windows.Forms.Timer. Should be used for Windows Forms applications only. /// Calls the TimerFired method every 10 seconds. Starts immediately. /// </summary> /// <remarks> From MSDN: /// The Windows Forms Timer component is single-threaded, and is limited to an accuracy of 55 milliseconds. /// If you require a multithreaded timer with greater accuracy, use the Timer class in the System.Timers namespace.</remarks> public sealed class SystemWindowsFormsTimer : INotifyPropertyChanged { private Timer timer; private string timerData; public SystemWindowsFormsTimer() { Timer = new Timer(); Timer.Tick += TimerFired; Timer.Interval = 10000; Timer.Enabled = true; TimerFired(this, null); } /// <summary> /// This method is run on the UI thread. /// </summary> private void TimerFired(object sender, EventArgs e) { TimerData = $"The forms timer fired at {DateTime.Now}."; } public event PropertyChangedEventHandler PropertyChanged; public Timer Timer { get { return timer; } set { if (timer != value) { timer = value; NotifyPropertyChanged(); } } } public string TimerData { get { return timerData; } set { if (timerData != value) { timerData = value; NotifyPropertyChanged(); } } } private void NotifyPropertyChanged([CallerMemberName]string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }
mika-s/Misc
CSharp/Timers/SystemWindowsFormsTimer.cs
C#
mit
2,170
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Text; using System.Threading.Tasks; using CodeContracts; namespace TestFoundations.UnitTests { [ContractMessage("class level")] [ContractException(typeof(ArgumentException))] public class CustomContractClassLevelAttribute : ContractAttribute { public static bool ValidateMethodA() { throw new NotImplementedException(); } [ContractMessage("method level")] public static bool ValidateMethodB() { throw new NotImplementedException(); } [ContractException(typeof(ArgumentNullException))] public static bool ValidateMethodC() { throw new NotImplementedException(); } [ContractMessage("method level")] [ContractException(typeof(ArgumentNullException))] public static bool ValidateMethodD() { throw new NotImplementedException(); } } }
NickRusinov/CodeContracts.Fody
TestFoundations/TestFoundations.UnitTests/CustomContractClassLevelAttribute.cs
C#
mit
1,049
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ncicoin</source> <translation>Pri ncicoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;ncicoin&lt;/b&gt; version</source> <translation>&lt;b&gt;ncicoin&lt;/b&gt;-a versio</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The ncicoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adresaro</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Duoble-klaku por redakti adreson aŭ etikedon</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Kreu novan adreson</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Kopiu elektitan adreson al la tondejo</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Nova Adreso</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your ncicoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Kopiu Adreson</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a ncicoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified ncicoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Forviŝu</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your ncicoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Kopiu &amp;Etikedon</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Redaktu</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Eksportu Adresarajn Datumojn</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Diskoma dosiero (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Eraro dum eksportado</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ne eblis skribi al dosiero %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Etikedo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adreso</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(ne etikedo)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Enigu pasfrazon</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Nova pasfrazo</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Ripetu novan pasfrazon</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Enigu novan pasfrazon por la monujo.&lt;br/&gt;Bonvolu, uzu pasfrazon kun &lt;b&gt;10 aŭ pli hazardaj signoj&lt;/b&gt;, aŭ &lt;b&gt;ok aŭ pli vortoj&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Ĉifru monujon</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Ĉi tiu operacio devas vian monujan pasfrazon, por malŝlosi la monujon.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Malŝlosu monujon</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Ĉi tiu operacio devas vian monujan pasfrazon, por malĉifri la monujon.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Malĉifru monujon</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Anstataŭigu pasfrazon</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Enigu la malnovan kaj novan monujan pasfrazon.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Konfirmu ĉifrado de monujo</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR ZETACOINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Monujo ĉifrita</translation> </message> <message> <location line="-56"/> <source>ncicoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your ncicoins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Monujo ĉifrado fiaskis</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Ĉifrado de monujo fiaskis, kaŭze de interna eraro. Via monujo ne ĉifritas.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>La pasfrazoj enigitaj ne samas.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Monujo malŝlosado fiaskis</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>La pasfrazo enigita por ĉifrado de monujo ne konformas.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Monujo malĉifrado fiaskis</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>Subskribu &amp;mesaĝon...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Sinkronigante kun reto...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Superrigardo</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transakcioj</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Esploru historion de transakcioj</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Eliru</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Eliru de aplikaĵo</translation> </message> <message> <location line="+4"/> <source>Show information about ncicoin</source> <translation>Vidigu informaĵon pri Bitmono</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Pri &amp;QT</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Vidigu informaĵon pri Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Opcioj...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Ĉifru Monujon...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Anstataŭigu pasfrazon...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a ncicoin address</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Modify configuration options for ncicoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;Kontrolu mesaĝon...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>ncicoin</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Monujo</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About ncicoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your ncicoin addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified ncicoin addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Dosiero</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Agordoj</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Helpo</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>ncicoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to ncicoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n horo</numerusform><numerusform>%n horoj</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n tago</numerusform><numerusform>%n tagoj</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n semajno</numerusform><numerusform>%n semajnoj</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation>Eraro</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Ĝisdata</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Ĝisdatigante...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Sendita transakcio</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Envenanta transakcio</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid ncicoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Monujo estas &lt;b&gt;ĉifrita&lt;/b&gt; kaj nun &lt;b&gt;malŝlosita&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Monujo estas &lt;b&gt;ĉifrita&lt;/b&gt; kaj nun &lt;b&gt;ŝlosita&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. ncicoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>Reta Averto</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Redaktu Adreson</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etikedo</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>La etikedo interrilatita kun ĉi tiun adreso</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adreso</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>La adreso enigita &quot;%1&quot; jam ekzistas en la adresaro.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid ncicoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Ne eblis malŝlosi monujon</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>ncicoin-Qt</source> <translation>ncicoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versio</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Opcioj</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start ncicoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start ncicoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the ncicoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the ncicoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting ncicoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show ncicoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Nuligu</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Apliku</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting ncicoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the ncicoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Nekonfirmita:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Monujo</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Lastaj transakcioj&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start ncicoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Etikedo:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation>Reto</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Malfermu</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the ncicoin-Qt help message to get a list with possible ncicoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>ncicoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>ncicoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the ncicoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the ncicoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Sendu Monojn</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Sendu samtempe al multaj ricevantoj</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123,456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; al %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Ĉu vi vere volas sendi %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>kaj</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Etikedo:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Elektu adreson el adresaro</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Algluu adreson de tondejo</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Forigu ĉi tiun ricevanton</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a ncicoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Algluu adreson de tondejo</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this ncicoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified ncicoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a ncicoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter ncicoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+25"/> <source>The ncicoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/nekonfirmita</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 konfirmoj</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Dato</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Sumo</translation> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, ankoraŭ ne elsendita sukcese</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>nekonata</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Transakciaj detaloj</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Dato</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adreso</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Sumo</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Ricevita kun</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Ricevita de</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Sendita al</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Pago al vi mem</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Minita</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Transakcia tipo.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Ĉiuj</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Hodiaŭ</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Ricevita kun</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Sendita al</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Al vi mem</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Minita</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Kopiu adreson</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Redaktu etikedon</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Diskoma dosiero (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Konfirmita</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Dato</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etikedo</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adreso</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Sumo</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Eraro dum eksportado</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ne eblis skribi al dosiero %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>ncicoin version</source> <translation>ncicoin-a versio</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Send command to -server or ncicoind</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Listigu instrukciojn</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Opcioj:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: ncicoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Specify pid file (default: ncicoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332 or testnet: 18332)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=ncicoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;ncicoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. ncicoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong ncicoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>SSL options: (see the ncicoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+165"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Ŝarĝante adresojn...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of ncicoin</source> <translation type="unfinished"/> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart ncicoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Ŝarĝante blok-indekson...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. ncicoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Ŝarĝante monujon...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Ŝarĝado finitas</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Por uzi la opcion %s</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Eraro</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
an420/123
src/qt/locale/bitcoin_eo.ts
TypeScript
mit
98,465
/* * Copyright (C) 2004-2015 FBReader.ORG Limited <contact@fbreader.org> * * 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., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ #include <algorithm> #include <cctype> #include <ZLInputStream.h> #include <ZLXMLReader.h> #include <ZLFile.h> #include <ZLStringUtil.h> #include <ZLUnicodeUtil.h> #include "HtmlReader.h" #include "HtmlEntityCollection.h" HtmlReader::HtmlReader(const std::string &encoding) : EncodedTextReader(encoding) { } HtmlReader::~HtmlReader() { } void HtmlReader::setTag(HtmlTag &tag, const std::string &name) { tag.Attributes.clear(); if (name.length() == 0) { tag.Name = name; return; } tag.Start = name[0] != '/'; if (tag.Start) { tag.Name = name; } else { tag.Name = name.substr(1); } ZLStringUtil::asciiToLowerInline(tag.Name); } enum ParseState { PS_TEXT, PS_TAGSTART, PS_TAGNAME, PS_WAIT_END_OF_TAG, PS_ATTRIBUTENAME, PS_ATTRIBUTEVALUE, PS_SKIPTAG, PS_COMMENT, PS_SPECIAL, PS_SPECIAL_IN_ATTRIBUTEVALUE, }; enum SpecialType { ST_UNKNOWN, ST_NUM, ST_NAME, ST_DEC, ST_HEX }; static bool allowSymbol(SpecialType type, char ch) { return (type == ST_NAME && std::isalpha(ch)) || (type == ST_DEC && std::isdigit(ch)) || (type == ST_HEX && std::isxdigit(ch)); } static int specialSymbolNumber(SpecialType type, const std::string &txt) { char *end = 0; switch (type) { case ST_NAME: return HtmlEntityCollection::symbolNumber(txt); case ST_DEC: return std::strtol(txt.c_str() + 1, &end, 10); case ST_HEX: return std::strtol(txt.c_str() + 2, &end, 16); default: return 0; } } void HtmlReader::appendString(std::string &to, std::string &from) { if (myConverter.isNull()) { to += from; } else { myConverter->convert(to, from); myConverter->reset(); } from.erase(); } void HtmlReader::readDocument(ZLInputStream &stream) { if (!stream.open()) { return; } startDocumentHandler(); ParseState state = PS_TEXT; SpecialType state_special = ST_UNKNOWN; std::string currentString; std::string attributeValueString; std::string specialString; int quotationCounter = 0; HtmlTag currentTag; char endOfComment[2] = "\0"; const std::size_t BUFSIZE = 2048; char *buffer = new char[BUFSIZE]; std::size_t length; std::size_t offset = 0; do { length = stream.read(buffer, BUFSIZE); char *start = buffer; char *endOfBuffer = buffer + length; for (char *ptr = buffer; ptr < endOfBuffer; ++ptr) { switch (state) { case PS_TEXT: if (*ptr == '<') { if (!characterDataHandler(start, ptr - start, true)) { goto endOfProcessing; } start = ptr + 1; state = PS_TAGSTART; currentTag.Offset = offset + (ptr - buffer); } if (*ptr == '&') { if (!characterDataHandler(start, ptr - start, true)) { goto endOfProcessing; } start = ptr + 1; state = PS_SPECIAL; state_special = ST_UNKNOWN; } break; case PS_SPECIAL: case PS_SPECIAL_IN_ATTRIBUTEVALUE: if (state_special == ST_UNKNOWN) { if (*ptr == '#') { state_special = ST_NUM; } else if (std::isalpha(*ptr)) { state_special = ST_NAME; } else { start = ptr; state = (state == PS_SPECIAL) ? PS_TEXT : PS_ATTRIBUTEVALUE; } } else if (state_special == ST_NUM) { if (*ptr == 'x') { state_special = ST_HEX; } else if (std::isdigit(*ptr)) { state_special = ST_DEC; } else { start = ptr; state = (state == PS_SPECIAL) ? PS_TEXT : PS_ATTRIBUTEVALUE; } } else { if (*ptr == ';') { specialString.append(start, ptr - start); const int number = specialSymbolNumber(state_special, specialString); if (128 <= number && number <= 159) { char ch = number; if (state == PS_SPECIAL) { characterDataHandler(&ch, 1, true); } else { myConverter->convert(attributeValueString, &ch, &ch + 1); } } else if (number != 0) { char buffer[4]; int len = ZLUnicodeUtil::ucs4ToUtf8(buffer, number); if (state == PS_SPECIAL) { characterDataHandler(buffer, len, false); } else { attributeValueString.append(buffer, len); } } else { specialString = "&" + specialString + ";"; if (state == PS_SPECIAL) { characterDataHandler(specialString.c_str(), specialString.length(), false); } else { attributeValueString += specialString; } } specialString.erase(); start = ptr + 1; state = (state == PS_SPECIAL) ? PS_TEXT : PS_ATTRIBUTEVALUE; } else if (!allowSymbol(state_special, *ptr)) { start = ptr; state = (state == PS_SPECIAL) ? PS_TEXT : PS_ATTRIBUTEVALUE; } } break; case PS_TAGSTART: state = *ptr == '!' ? PS_COMMENT : PS_TAGNAME; break; case PS_COMMENT: if (endOfComment[0] == '\0' && *ptr != '-') { state = PS_TAGNAME; } else if (endOfComment[0] == '-' && endOfComment[1] == '-' && *ptr == '>') { start = ptr + 1; state = PS_TEXT; endOfComment[0] = '\0'; endOfComment[1] = '\0'; } else { endOfComment[0] = endOfComment[1]; endOfComment[1] = *ptr; } break; case PS_WAIT_END_OF_TAG: if (*ptr == '>') { start = ptr + 1; state = PS_TEXT; } break; case PS_TAGNAME: if (*ptr == '>' || *ptr == '/' || std::isspace((unsigned char)*ptr)) { currentString.append(start, ptr - start); start = ptr + 1; setTag(currentTag, currentString); currentString.erase(); if (currentTag.Name == "") { state = *ptr == '>' ? PS_TEXT : PS_SKIPTAG; } else { if (*ptr == '>') { if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_TEXT; } else if (*ptr == '/') { if (!tagHandler(currentTag)) { goto endOfProcessing; } currentTag.Start = false; if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_WAIT_END_OF_TAG; } else { state = PS_ATTRIBUTENAME; } } } break; case PS_ATTRIBUTENAME: if (*ptr == '>' || *ptr == '/' || *ptr == '=' || std::isspace((unsigned char)*ptr)) { if (ptr != start || !currentString.empty()) { currentString.append(start, ptr - start); ZLStringUtil::asciiToLowerInline(currentString); currentTag.addAttribute(currentString); currentString.erase(); } start = ptr + 1; if (*ptr == '>') { if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_TEXT; } else if (*ptr == '/') { if (!tagHandler(currentTag)) { goto endOfProcessing; } currentTag.Start = false; if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_WAIT_END_OF_TAG; } else { state = (*ptr == '=') ? PS_ATTRIBUTEVALUE : PS_ATTRIBUTENAME; } } break; case PS_ATTRIBUTEVALUE: if (*ptr == '"') { if (((ptr == start) && currentString.empty()) || (quotationCounter > 0)) { ++quotationCounter; } } else if (*ptr == '&') { currentString.append(start, ptr - start); start = ptr + 1; appendString(attributeValueString, currentString); state = PS_SPECIAL_IN_ATTRIBUTEVALUE; state_special = ST_UNKNOWN; } else if (quotationCounter != 1 && (*ptr == '>' || *ptr == '/' || std::isspace((unsigned char)*ptr))) { if (ptr != start || !currentString.empty()) { currentString.append(start, ptr - start); appendString(attributeValueString, currentString); if (attributeValueString[0] == '"') { attributeValueString = attributeValueString.substr(1, attributeValueString.length() - 2); } currentTag.setLastAttributeValue(attributeValueString); attributeValueString.erase(); quotationCounter = 0; } start = ptr + 1; if (*ptr == '>') { if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_TEXT; } else if (*ptr == '/') { if (!tagHandler(currentTag)) { goto endOfProcessing; } currentTag.Start = false; if (!tagHandler(currentTag)) { goto endOfProcessing; } state = PS_WAIT_END_OF_TAG; } else { state = PS_ATTRIBUTENAME; } } break; case PS_SKIPTAG: if (*ptr == '>') { start = ptr + 1; state = PS_TEXT; } break; } } if (start != endOfBuffer) { switch (state) { case PS_TEXT: if (!characterDataHandler(start, endOfBuffer - start, true)) { goto endOfProcessing; } break; case PS_TAGNAME: case PS_ATTRIBUTENAME: case PS_ATTRIBUTEVALUE: currentString.append(start, endOfBuffer - start); break; case PS_SPECIAL: case PS_SPECIAL_IN_ATTRIBUTEVALUE: specialString.append(start, endOfBuffer - start); break; case PS_TAGSTART: case PS_SKIPTAG: case PS_COMMENT: case PS_WAIT_END_OF_TAG: break; } } offset += length; } while (length == BUFSIZE); endOfProcessing: delete[] buffer; endDocumentHandler(); stream.close(); } const std::string *HtmlReader::HtmlTag::find(const std::string &name) const { for (unsigned int i = 0; i < Attributes.size(); ++i) { if (Attributes[i].Name == name) { return &Attributes[i].Value; } } return 0; }
zhqhzhqh/FbreaderJ
app/src/main/cpp/NativeFormats/fbreader/src/formats/html/HtmlReader.cpp
C++
mit
10,210
/** @jsx jsx */ import { Transforms } from 'slate' import { jsx } from '../../..' export const run = editor => { Transforms.delete(editor) } export const input = ( <editor> <block> <anchor /> one </block> <block> <focus /> two </block> </editor> ) export const output = ( <editor> <block> <cursor /> </block> <block>two</block> </editor> )
ianstormtaylor/slate
packages/slate/test/transforms/delete/selection/block-hanging-single.tsx
TypeScript
mit
409
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using Microsoft.Owin.Security; using Weibo; namespace Owin { /// <summary> /// Extension methods for using <see cref="WeiboAuthenticationMiddleware"/> /// </summary> public static class WeiboAuthenticationExtensions { /// <summary> /// Authenticate users using Weibo /// </summary> /// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param> /// <param name="options">Middleware configuration options</param> /// <returns>The updated <see cref="IAppBuilder"/></returns> public static IAppBuilder UseWeiboAuthentication(this IAppBuilder app, WeiboAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } app.Use(typeof(WeiboAuthenticationMiddleware), app, options); return app; } /// <summary> /// Authenticate users using Weibo /// </summary> /// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param> /// <param name="appId">The appId assigned by Weibo</param> /// <param name="appSecret">The appSecret assigned by Weibo</param> /// <returns>The updated <see cref="IAppBuilder"/></returns> public static IAppBuilder UseWeiboAuthentication( this IAppBuilder app, string appId, string appSecret) { return UseWeiboAuthentication( app, new WeiboAuthenticationOptions { AppId = appId, AppSecret = appSecret, }); } } }
LionLai/OWINWeiboOAuth
WeiboAuthenticationExtensions.cs
C#
mit
1,998
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Code Coverage for C:\xampp\htdocs\monitor\application/controllers/login.php</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <![endif]--> </head> <body> <header> <div class="container"> <div class="row"> <div class="span12"> <ul class="breadcrumb"> <li><a href="index.html">C:\xampp\htdocs\monitor\application</a> <span class="divider">/</span></li> <li><a href="controllers.html">controllers</a> <span class="divider">/</span></li> <li class="active">login.php</li> </ul> </div> </div> </div> </header> <div class="container"> <table class="table table-bordered"> <thead> <tr> <td>&nbsp;</td> <td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td> </tr> <tr> <td>&nbsp;</td> <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> <td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td> <td colspan="3"><div align="center"><strong>Lines</strong></div></td> </tr> </thead> <tbody> <tr> <td class="success">Total</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">3&nbsp;/&nbsp;3</div></td> <td class="success small"><acronym title="Change Risk Anti-Patterns (CRAP) Index">CRAP</acronym></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">12&nbsp;/&nbsp;12</div></td> </tr> <tr> <td class="success">Login</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">3&nbsp;/&nbsp;3</div></td> <td class="success small">4</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">12&nbsp;/&nbsp;12</div></td> </tr> <tr> <td class="success" colspan="4">&nbsp;<a href="#9">__construct()</a></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> <td class="success small">1</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">4&nbsp;/&nbsp;4</div></td> </tr> <tr> <td class="success" colspan="4">&nbsp;<a href="#16">index()</a></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> <td class="success small">2</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">7&nbsp;/&nbsp;7</div></td> </tr> <tr> <td class="success" colspan="4">&nbsp;<a href="#27">logout()</a></td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> <td class="success small">1</td> <td class="success big"> <div class="progress progress-success" style="width: 100px;"> <div class="bar" style="width: 100.00%;"></div> </div> </td> <td class="success small"><div align="right">100.00%</div></td> <td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td> </tr> </tbody> </table> <table class="table table-borderless table-condensed"> <tbody> <tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine">&lt;?php</td></tr> <tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine">defined('BASEPATH') OR exit('No direct script access allowed');</td></tr> <tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"></td></tr> <tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine">/**</td></tr> <tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine">*</td></tr> <tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine">*/</td></tr> <tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine">class Login extends CI_Controller</td></tr> <tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine">{</td></tr> <tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"> public function __construct()</td></tr> <tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"> {</td></tr> <tr class="success popin" data-title="2 tests cover line 11" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_logout&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"> parent::__construct();</td></tr> <tr class="success popin" data-title="2 tests cover line 12" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_logout&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"> $this-&gt;load-&gt;helper('url', 'form', 'simple_login');</td></tr> <tr class="success popin" data-title="2 tests cover line 13" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_logout&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"> $this-&gt;load-&gt;database();</td></tr> <tr class="success popin" data-title="2 tests cover line 14" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_logout&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"> }</td></tr> <tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"></td></tr> <tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"> public function index() {</td></tr> <tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"></td></tr> <tr class="success popin" data-title="1 test covers line 18" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"> $valid = $this-&gt;form_validation;</td></tr> <tr class="success popin" data-title="1 test covers line 19" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"> $username = $this-&gt;input-&gt;post('username');</td></tr> <tr class="success popin" data-title="1 test covers line 20" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"> $password = $this-&gt;input-&gt;post('password');</td></tr> <tr class="success popin" data-title="1 test covers line 21" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"> $valid-&gt;set_rules('username','Username','required');</td></tr> <tr class="success popin" data-title="1 test covers line 22" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"> $valid-&gt;set_rules('password','Password','required');</td></tr> <tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr> <tr class="success popin" data-title="1 test covers line 24" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"> if($valid-&gt;run()) {$this-&gt;simple_login-&gt;login($username,$password);}$this-&gt;load-&gt;view('account/v_login');</td></tr> <tr class="success popin" data-title="1 test covers line 25" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_index&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"> }</td></tr> <tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"></td></tr> <tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"> public function logout(){</td></tr> <tr class="success popin" data-title="1 test covers line 28" data-content="&lt;ul&gt;&lt;li class=&quot;success&quot;&gt;Login_test::test_logout&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"> $this-&gt;simple_login-&gt;logout();}</td></tr> </tbody> </table> <footer> <h4>Legend</h4> <p> <span class="success"><strong>Executed</strong></span> <span class="danger"><strong>Not Executed</strong></span> <span class="warning"><strong>Dead Code</strong></span> </p> <p> <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 1.2.11</a> using <a href="http://www.php.net/" target="_top">PHP 7.1.9</a> and <a href="http://phpunit.de/">PHPUnit 3.7.21</a> at Tue Oct 17 16:34:32 CEST 2017.</small> </p> </footer> </div> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/bootstrap.min.js" type="text/javascript"></script> <script type="text/javascript">$('.popin').popover({trigger: 'hover'});</script> </body> </html>
kveeen/monitorTA
application/tests/build/coverage/controllers_login.php.html
HTML
mit
13,562
# -*- coding: utf-8 try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET try: import simplejson as json except ImportError: import json ADDRESS_FIELDS = ( 'first', 'middle', 'last', 'salutation', 'email', 'phone', 'fax', 'mobile', 'addr1', 'addr2', 'addr3', 'addr4', 'city', 'state', 'zip', 'country' ) XML_DATATYPES = ( 'Actualcost', 'Address', 'Agreement', 'Agreement_to_project', 'Approval', 'Attachment', 'Booking', 'BookingType', 'Budget', 'BudgetAllocation', 'Category', 'Category_1', 'Category_2', 'Category_3', 'Category_4', 'Category_5', 'Ccrate', 'Company', 'Contact', 'Costcategory', 'Costcenter', 'Costtype', 'Currency', 'Currencyrate', 'CustField', 'Customer', 'Customerpo', 'Customerpo_to_project', 'CustomerProspect', 'Date', 'Deal', 'Dealcontact', 'Dealschedule', 'Department', 'Entitytag', 'Envelope', 'Error', 'Estimate', 'Estimateadjustment', 'Estimateexpense', 'Estimatelabor', 'Estimatemarkup', 'Estimatephase', 'Event', 'Filter', 'Filterset', 'Flag', 'ForexInput', 'Fulfillment', 'Hierarchy', 'HierarchyNode', 'History', 'ImportExport', 'Invoice', 'Issue', 'IssueCategory', 'IssueSeverity', 'IssueSource', 'IssueStage', 'IssueStatus', 'Item', 'Jobcode', 'Leave_accrual_rule', 'Leave_accrual_rule_to_user', 'Leave_accrual_transaction', 'LoadedCost', 'Login', 'Module', 'Notes', 'Payment', 'Paymentterms', 'Paymenttype', 'Payrolltype', 'Preference', 'Product', 'Project', 'Projectassign', 'Projectbillingrule', 'Projectbillingtransaction', 'Projectgroup', 'Projectlocation', 'Projectstage', 'Projecttask', 'Projecttask_type', 'Projecttaskassign', 'Proposal', 'Proposalblock', 'Purchase_item', 'Purchaseorder', 'Purchaser', 'Purchaserequest', 'Ratecard', 'RateCardItem', 'Reimbursement', 'Repeat', 'Report', 'Request_item', 'Resourceprofile', 'Resourceprofile_type', 'RevenueContainer', 'Revenue_recognition_rule', 'Revenue_recognition_rule_amount', 'Revenue_recognition_transaction', 'RevenueStage', 'Role', 'Schedulebyday', 'Scheduleexception', 'Schedulerequest', 'Schedulerequest_item', 'Slip', 'SlipProjection', 'Slipstage', 'TagGroup', 'TagGroupAttribute', 'TargetUtilization', 'Task', 'TaskTimecard', 'TaxLocation', 'TaxRate', 'Term', 'Ticket', 'Timecard', 'Timesheet', 'Timetype', 'Todo', 'Uprate', 'User', 'UserWorkschedule', 'Vendor', 'Viewfilter', 'Viewfilterrule', 'Workspacelink', 'Workspaceuser', ) READ_METHODS = ( 'all', 'equal to', 'not equal to', 'user', 'project', 'not exported', ) READ_ATTRIBUTES = ( 'limit', 'deleted', 'include_flags', 'include_nondeleted', 'with_project_only', 'base_currency', 'generic', 'enable_custom', 'filter', 'field', ) def elem2dict(elem, strip=True): """ Convert an ElementTree() object into a Python dictionary. Arguments: elem (obj): a valid ElementTree() object strip (bool): a boolean value for striping whitespace (optional) Credit: Hay Kranen (https://github.com/hay/xml2json) """ d = {} for key, value in list(elem.attrib.items()): d['@'+key] = value # loop over subelements to merge them for subelem in elem: v = elem2dict(subelem, strip=strip) tag = subelem.tag value = v[tag] try: # add to existing list for this tag d[tag].append(value) except AttributeError: # turn existing entry into a list d[tag] = [d[tag], value] except KeyError: # add a new non-list entry d[tag] = value text = elem.text tail = elem.tail if strip: # ignore leading and trailing whitespace if text: text = text.strip() if tail: tail = tail.strip() if tail: d['#tail'] = tail if d: # use #text element if other attributes exist if text: d["#text"] = text else: # text is the value if no attributes d = text or None return {elem.tag: d} def xml2json(xmlstring, strip=True): """ Convert an XML string into a JSON string. Arguments: xmlstring (str): a valid XML string strip (bool): a boolean value for striping whitespace (optional) Credit: Hay Kranen (https://github.com/hay/xml2json) """ elem = ET.fromstring(xmlstring) return json.dumps(elem2dict(elem, strip=strip))
derekperry/oaxmlapi
oaxmlapi/utilities.py
Python
mit
4,499
<?php /** * Created by PhpStorm. * User: songzhen * Date: 2016/7/27 * Time: 14:19 */ namespace OpenWechat\Auth; use Doctrine\Common\Cache\Cache; use OpenWechat\Core\AbstractAPI; class AccessToken extends AbstractAPI { protected $appid; protected $accessTokenPrefix; protected $refreshTokenPrefix; const AUTHORIZER_TOKEN_URL = 'https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token='; public function __construct($appid, Cache $cache) { $this->appid = $appid; $this->cache = $cache; $this->accessTokenPrefix = 'sinre.openwechat.authorizer_access_token.'; $this->refreshTokenPrefix = 'sinre.openwechat.authorizer_refresh_token.'; } /** * 缓存token * @param string $authorizer_appid 授权方appid * @param string|null $authorizer_access_token 授权方令牌 * @param int|null $expire_in 授权方令牌的过期时间 * @param string|null $authorizer_refresh_token 刷新令牌 */ public function cacheToken($authorizer_appid, $authorizer_access_token = null, $expire_in = null, $authorizer_refresh_token = null) { if($authorizer_access_token){ $this->getCacheHandler()->save($this->accessTokenPrefix . $authorizer_appid, $authorizer_access_token, $expire_in - 1500); } $this->getCacheHandler()->save($this->refreshTokenPrefix . $authorizer_appid, $authorizer_refresh_token, 0); } /** * 获取授权公众号的接口调用凭据 * @param string $authorizer_appid 授权方appid * @param string $access_token 第三方平台component_access_token * @param bool $forceRefresh 是否强制刷新token * @return false|mixed|null */ public function getToken($authorizer_appid, $access_token, $forceRefresh = false) { $token = $this->getCacheHandler()->fetch($this->accessTokenPrefix . $authorizer_appid); if(!$token || $forceRefresh){ $token = $this->getAccessToken($authorizer_appid, $access_token); } return $token; } /** * 获取授权公众号的接口调用凭据 * @param string $authorizer_appid 授权方appid * @param string $access_token 第三方平台component_access_token * @return mixed|null */ protected function getAccessToken($authorizer_appid, $access_token) { $params = [ 'component_appid' => $this->appid, 'authorizer_appid' => $authorizer_appid, 'authorizer_refresh_token' => $this->getCacheHandler()->fetch($this->refreshTokenPrefix . $authorizer_appid) ]; $token = $this->parseJSON('post', [self::AUTHORIZER_TOKEN_URL . $access_token, json_encode($params)]); $this->cacheToken($authorizer_appid, $token['authorizer_access_token'], $token['expires_in'], $token['authorizer_refresh_token']); return $token['authorizer_access_token']; } }
Tobecoder/OpenWechat
src/Auth/AccessToken.php
PHP
mit
2,953
using BizHawk.Common; using BizHawk.Common.NumberExtensions; namespace BizHawk.Emulation.Cores.Nintendo.NES { //AKA mapper 67 //this may be confusing due to general chaos with the early sunsoft mappers. see docs/sunsoft.txt public sealed class Sunsoft3 : NES.NESBoardBase { //configuration int prg_bank_mask_16k, chr_bank_mask_2k; //state bool toggle; ByteBuffer prg_banks_16k = new ByteBuffer(2); ByteBuffer chr_banks_2k = new ByteBuffer(4); int irq_counter; bool irq_enable; bool irq_asserted; int clock_counter; //the VS actually does have 2 KB of nametable address space //let's make the extra space here, instead of in the main NES to avoid confusion byte[] CIRAM_VS = new byte[0x800]; public override void SyncState(Serializer ser) { base.SyncState(ser); ser.Sync("toggle", ref toggle); ser.Sync("prg_banks_16k", ref prg_banks_16k); ser.Sync("chr_banks_2k", ref chr_banks_2k); ser.Sync("irq_counter", ref irq_counter); ser.Sync("irq_enable", ref irq_enable); ser.Sync("irq_asserted", ref irq_asserted); ser.Sync("clock_counter", ref clock_counter); if (NES.IsVS) { ser.Sync("VS_CIRAM", ref CIRAM_VS, false); } SyncIRQ(); } public override bool Configure(NES.EDetectionOrigin origin) { switch (Cart.board_type) { case "MAPPER067VS": NES._isVS = true; //update the state of the dip switches //this is only done at power on NES.VS_dips[0] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_1 ? 1 : 0); NES.VS_dips[1] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_2 ? 1 : 0); NES.VS_dips[2] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_3 ? 1 : 0); NES.VS_dips[3] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_4 ? 1 : 0); NES.VS_dips[4] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_5 ? 1 : 0); NES.VS_dips[5] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_6 ? 1 : 0); NES.VS_dips[6] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_7 ? 1 : 0); NES.VS_dips[7] = (byte)(NES.SyncSettings.VSDipswitches.Dip_Switch_8 ? 1 : 0); break; case "MAPPER067": break; case "SUNSOFT-3": AssertPrg(128); AssertChr(128); break; default: return false; } prg_bank_mask_16k = (Cart.prg_size / 16) - 1; chr_bank_mask_2k = (Cart.chr_size / 2) - 1; prg_banks_16k[0] = 0; prg_banks_16k[1] = 0xFF; ApplyMemoryMapMask(prg_bank_mask_16k, prg_banks_16k); return true; } void SetCHR(int block, byte value) { chr_banks_2k[block] = value; ApplyMemoryMapMask(chr_bank_mask_2k, chr_banks_2k); } void SyncIRQ() { IRQSignal = irq_asserted; } public override void WritePRG(int addr, byte value) { //Console.WriteLine("{0:X4} = {1:X2}", addr, value); switch (addr & 0xF800) { case 0x0800: //0x8800 SetCHR(0, value); break; case 0x1800: //0x9800 SetCHR(1, value); break; case 0x2800: //0xA800 SetCHR(2, value); break; case 0x3800: //0xB800 SetCHR(3, value); break; case 0x4800: //0xC800 if (!toggle) irq_counter = (irq_counter & 0xFF) | (value << 8); else irq_counter = (irq_counter & 0xFF00) | (value); toggle ^= true; break; case 0x5800: //0xD800 irq_enable = value.Bit(4); toggle = false; irq_asserted = false; SyncIRQ(); break; case 0x6800: //0xE800: switch (value & 3) { case 0: SetMirrorType(NES.NESBoardBase.EMirrorType.Vertical); break; case 1: SetMirrorType(NES.NESBoardBase.EMirrorType.Horizontal); break; case 2: SetMirrorType(NES.NESBoardBase.EMirrorType.OneScreenA); break; case 3: SetMirrorType(NES.NESBoardBase.EMirrorType.OneScreenB); break; } break; case 0x7800: //0xF800: prg_banks_16k[0] = value; ApplyMemoryMapMask(prg_bank_mask_16k, prg_banks_16k); break; } } public override void ClockCPU() { if (!irq_enable) return; if (irq_counter == 0) { irq_counter = 0xFFFF; //Console.WriteLine("IRQ!!!"); irq_asserted = true; SyncIRQ(); irq_enable = false; } else irq_counter--; } public override byte ReadPRG(int addr) { addr = ApplyMemoryMap(14, prg_banks_16k, addr); return ROM[addr]; } public override byte ReadPPU(int addr) { if (addr < 0x2000) { addr = ApplyMemoryMap(11, chr_banks_2k, addr); return base.ReadPPUChr(addr); } else { if (NES._isVS) { addr = addr - 0x2000; if (addr < 0x800) { return NES.CIRAM[addr]; } else { return CIRAM_VS[addr - 0x800]; } } else return base.ReadPPU(addr); } } public override void WritePPU(int addr, byte value) { if (NES._isVS) { if (addr < 0x2000) { addr = ApplyMemoryMap(11, chr_banks_2k, addr); if (VRAM != null) VRAM[addr] = value; } else { addr = addr - 0x2000; if (addr < 0x800) { NES.CIRAM[addr] = value; } else { CIRAM_VS[addr - 0x800] = value; } } } else base.WritePPU(addr, value); } /* public override void ClockPPU() { clock_counter++; if (clock_counter == 3) { clock_counter = 0; ClockCPU(); } }*/ } }
superusercode/RTC3
Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Sunsoft3.cs
C#
mit
5,301
// RUN: %check --only -e %s -Wno-unused-label -Wno-dead-code int f(void); _Noreturn void noreturn(void); int main() { switch(f()){ case 1: f(); __attribute((fallthrough)); case 2: __attribute((fallthrough)); case 3: case 4: ; __attribute((fallthrough)); // CHECK: error: fallthrough statement not directly before switch label f(); // same but should warn: case 5: // CHECK: warning: implicit fallthrough between switch labels f(); case 7: // CHECK: warning: implicit fallthrough between switch labels case 8: ; // should warn for case-range case 9 ... 10: // CHECK: warning: implicit fallthrough between switch labels ; // should warn for defaults too default: // CHECK: warning: implicit fallthrough between switch labels ; // but not labels hello: break; // don't interfere with below warnings /* shouldn't get a warning on: * break/continue/return/goto before a case/case-range/label */ case 20: break; case 21: break; case 23 ... 27: break; case 28: break; hello2: break; case 29: break; for(;1;){ // enable 'continue' statement testing case 30: continue; case 31: break; case 33 ... 37: continue; case 38: break; hello3: continue; case 39: break; } break; // don't interfere with below warnings - can't tell whether the for-loop exits case 40: return 3; case 41: break; case 43 ... 47: return 3; case 48: break; hello4: return 3; case 49: break; case 50: goto hello; case 51: break; case 53 ... 57: goto hello; case 58: break; hello5: goto hello; case 59: break; // shouldn't warn for noreturn func, etc case 60: noreturn(); case 70: break; case 61: __builtin_unreachable(); case 71: break; } __attribute((fallthrough)) _Static_assert(0 == 0, ""); // CHECK: error: fallthrough attribute on static-assert __attribute((fallthrough)) hello999: // CHECK: error: fallthrough attribute on label ; }
bobrippling/ucc-c-compiler
test/cases/switch/fallthrough.c
C
mit
1,932
@font-face { font-family: 'Raleway-Light'; font-style: normal; font-weight: 300; src: local('Raleway Light'), local('Raleway-Light'), url("//themes.googleusercontent.com/static/fonts/raleway/v7/-_Ctzj9b56b8RgXW8FArib3hpw3pgy2gAi-Ip7WPMi0.woff") format('woff'); } @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: local('Raleway'), url("//themes.googleusercontent.com/static/fonts/raleway/v7/cIFypx4yrWPDz3zOxk7hIQLUuEpTyoUstqEm5AMlJo4.woff") format('woff'); }
leacar21/usm
web-app/app/stylesheets/fonts.css
CSS
mit
506
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: 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.13.2 / fcsl-pcm - 1.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fcsl-pcm <small> 1.1.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-30 03:42:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-30 03:42:16 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.13.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.08.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.08.1 Official release 4.08.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;FCSL &lt;fcsl@software.imdea.org&gt;&quot; homepage: &quot;http://software.imdea.org/fcsl/&quot; bug-reports: &quot;https://github.com/imdea-software/fcsl-pcm/issues&quot; dev-repo: &quot;git+https://github.com/imdea-software/fcsl-pcm.git&quot; license: &quot;Apache-2.0&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.12~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-ssreflect&quot; {&gt;= &quot;1.7.0&quot; &amp; &lt; &quot;1.10~&quot;} ] tags: [ &quot;keyword:separation logic&quot; &quot;keyword:partial commutative monoid&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:fcsl&quot; ] authors: [ &quot;Aleksandar Nanevski&quot; ] synopsis: &quot;Partial Commutative Monoids&quot; description: &quot;&quot;&quot; The PCM library provides a formalisation of Partial Commutative Monoids (PCMs), a common algebraic structure used in separation logic for verification of pointer-manipulating sequential and concurrent programs. The library provides lemmas for mechanised and automated reasoning about PCMs in the abstract, but also supports concrete common PCM instances, such as heaps, histories and mutexes. This library relies on extensionality axioms: propositional and functional extentionality.&quot;&quot;&quot; url { src: &quot;https://github.com/imdea-software/fcsl-pcm/archive/v1.1.0.tar.gz&quot; checksum: &quot;sha256=9c1ba6ad0dd98f9f587619c5a8e54641457b9fa5ac988cb95328de5f1b47018f&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-fcsl-pcm.1.1.0 coq.8.13.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.2). The following dependencies couldn&#39;t be met: - coq-fcsl-pcm -&gt; coq (&lt; 8.12~ &amp; = dev) -&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-fcsl-pcm.1.1.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.08.1-2.0.5/released/8.13.2/fcsl-pcm/1.1.0.html
HTML
mit
7,502
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq: 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.2 / metacoq - 1.0~alpha2+8.11</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> metacoq <small> 1.0~alpha2+8.11 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-11-10 04:49:34 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-10 04:49:34 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.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.1 Official release 4.09.1 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;matthieu.sozeau@inria.fr&quot; homepage: &quot;https://metacoq.github.io/metacoq&quot; dev-repo: &quot;git+https://github.com/MetaCoq/metacoq.git#coq-8.11&quot; bug-reports: &quot;https://github.com/MetaCoq/metacoq/issues&quot; authors: [&quot;Abhishek Anand &lt;aa755@cs.cornell.edu&gt;&quot; &quot;Simon Boulier &lt;simon.boulier@inria.fr&gt;&quot; &quot;Cyril Cohen &lt;cyril.cohen@inria.fr&gt;&quot; &quot;Yannick Forster &lt;forster@ps.uni-saarland.de&gt;&quot; &quot;Fabian Kunze &lt;fkunze@fakusb.de&gt;&quot; &quot;Gregory Malecha &lt;gmalecha@gmail.com&gt;&quot; &quot;Matthieu Sozeau &lt;matthieu.sozeau@inria.fr&gt;&quot; &quot;Nicolas Tabareau &lt;nicolas.tabareau@inria.fr&gt;&quot; &quot;Théo Winterhalter &lt;theo.winterhalter@inria.fr&gt;&quot; ] license: &quot;MIT&quot; depends: [ &quot;ocaml&quot; {&gt;= &quot;4.07.1&quot;} &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} &quot;coq-metacoq-template&quot; {= version} &quot;coq-metacoq-checker&quot; {= version} &quot;coq-metacoq-pcuic&quot; {= version} &quot;coq-metacoq-safechecker&quot; {= version} &quot;coq-metacoq-erasure&quot; {= version} &quot;coq-metacoq-translations&quot; {= version} ] synopsis: &quot;A meta-programming framework for Coq&quot; description: &quot;&quot;&quot; MetaCoq is a meta-programming framework for Coq. The meta-package includes the template-coq library, unverified checker for Coq, PCUIC development including a verified translation from Coq to PCUIC, safe checker and erasure for PCUIC and example translations. See individual packages for more detailed descriptions. &quot;&quot;&quot; url { src: &quot;https://github.com/MetaCoq/metacoq/archive/v1.0-alpha2-8.11.tar.gz&quot; checksum: &quot;sha256=8f1d2b42ad97d7c8660a57aabe53ddcc7b1645ced43386a1d2bef428b20d6b42&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-metacoq.1.0~alpha2+8.11 coq.8.8.2</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.2). The following dependencies couldn&#39;t be met: - coq-metacoq -&gt; coq &gt;= 8.11 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-metacoq.1.0~alpha2+8.11</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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.2/metacoq/1.0~alpha2+8.11.html
HTML
mit
7,681
[25, "hi", true]
msfrisbie/pjwd-src
Chapter23JSON/Syntax/Arrays/ArraysExample02.js
JavaScript
mit
17
use strict; use warnings; use 5.018; chomp(my @lines = <>); foreach (@lines){ if(/\./){ say $_; } }
moosan63/LearningPerl
chapter7/ex7-3.pl
Perl
mit
118
import Page from '../layouts/page'; import MainContent from '../layouts/main-content'; import PersonHeader from '../components/person-header'; import LevelContainer from '../components/level-container'; export default () => ( <Page> <PersonHeader /> <MainContent> <LevelContainer /> </MainContent> </Page> );
jorgeherrera1/skill-matrix
pages/person.js
JavaScript
mit
332
# modui-field modui-field is an abstract class that is extended to provide a consistent interface for getting, setting, and validating values of modui components. Imagine we have a form that contains name, age, and locationn fields. If all our fields extend modui-field, setting the values of the fields in the form is as easy as: ```javascript $( '.my-form' ).moduiField( 'set', { name : 'John Elliot', age : 33, location : { street : '23 Monkey Road' city : 'Ubud', state : 'Gianyar', country : 'Bali' } } ); ``` Field values can be any type. They can even be composed of smaller values that correspond to sub-fields, as is the "location" value in the above example. modui-field has built in support for sub-fields with getting, setting, and validating values. ## Methods ### Methods that generally do not need to be overridden by derived classes. #### `field.getValue( options )` Return the current value of the field. If `immediate : true` is in options, the value returned is pulled directly from the representation of the field's value that resides in the DOM (via `field._pullValue()`). The option can be used to pull the current value from a text field that is currently being edited. #### `field.setValue( newValue, options )` Set the current value of the field. If `newValue` is not the same as the current value, a `change` message is spawned using [Backbone.Courier](https://github.com/rotundasoftware/backbone.courier) (unless `slient : true` is supplied in the options hash). #### `field.attemptSubmit()` // Documentation needs to be written #### `field._processValueChange()` This private method should be called internally whenever the representation of the field's value that resides in the DOM is potentially changed. For example, in the context of a text field, this method would be called on blur, since the representation of the fields value that resides in the DOM (that is, the string inside the input field) may have changed. `field._processValueChange()` performs validation on the value in the DOM by calling `field._coerceToValidValue()`. If the value is valid or can be coerced to be valid, then `field.setValue()` is called with the new value. Otherwise, the representation of the field value in the DOM is reset to its last valid state. ### Methods that generally should be overridden by derived classes #### `field._pullValue()` This private method should return the representation of the field's value that resides in the DOM. For example, a text field might return the value of the input element by calling `this.$el.val()`. The value returned does not need to be a valid value as it will always pass through `field._coerceToValidValue()` before being used. #### `field._pushValue( value )` The inverse of `field.pullValue()`, this method should push `value` to the representation of the field's value that resides in the DOM. For example, a text field might call `this.$el.val( value )` to set the value of its input element. `value` is guaranteed to be a valid value since it will have passed through `field._coerceToValidValue()`. #### `field._coerceToValidValue( sketchyValue )` This method transforms a potentially invalid value into a valid value. For example, an integer field might return `Math.round( sketchyValue )` because its value can only be an integer. In the case that `sketchyValue` can not be transformed into a valid value, this method should return `undefined`. #### `field.getFormErrors()` This method should examine `field.value` and return an array of form errors. Form errors are those problems with the current value that should prevent a form that contains this field from being submitted. For example, a text field might an error object in the case that the current value exceeds its `maxLength` option. (Note it is not necessary to check for an invalid value, since `field._coerceToValidValue()` always protects the field from having an invalid value.) #### `field.showFormErrors( errors )` This method takes an array of form errors, as returned by `field.getFormErrors()`, and should manipulate the DOM to show visual cues that indicate to the end user those errors are present. For example, the default behavor is to toggle a `has-form-errors` class on the field element, which results in the color of the field being displayed in `red`.
rotundasoftware/modui-field
README.md
Markdown
mit
4,339
@import '../../../node_modules/normalize.css/normalize.css'; @import '../variables.css'; *, *:before, *:after { box-sizing: inherit; } html { color: #222; font-weight: 100; font-size: 1em; /* ~16px; */ font-family: var(--font-family-base); line-height: 1.375; /* ~22px */ background: #F0F0F0; box-sizing: border-box; } .main-container { } ::-moz-selection { background: #b3d4fc; text-shadow: none; } ::selection { background: #b3d4fc; text-shadow: none; } /* * A better looking default horizontal rule */ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } audio, canvas, iframe, img, svg, video { vertical-align: middle; } /* * Remove default fieldset styles. */ fieldset { border: 0; margin: 0; padding: 0; } /* * Allow only vertical resizing of textareas. */ textarea { resize: vertical; } /* * Browser upgrade prompt * ========================================================================== */ .browserupgrade { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; } /* * Print styles * Inlined to avoid the additional HTTP request: * http://www.phpied.com/delay-loading-your-print-css/ * ========================================================================== */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */ box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } /* * Don't show links that are fragment identifiers, * or use the `javascript:` pseudo protocol */ a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } /* * Printing Tables: * http://css-discuss.incutio.com/wiki/Printing_Tables */ thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } }
bencallis1/the-shop
src/components/App/App.css
CSS
mit
2,350
module Smithy class Engine < ::Rails::Engine isolate_namespace Smithy class << self attr_accessor :root def root @root ||= Pathname.new(File.expand_path('../../', File.dirname(__FILE__))) end end # app/inputs for formtastic config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/inputs) config.to_prepare do # include the Smithy helpers in the host application ::ApplicationController.send :helper, Smithy::Engine.helpers end config.generators do |g| g.test_framework :rspec, :fixture => false, :view_specs => false g.integration_tool :rspec g.fixture_replacement :factory_girl, :dir => 'spec/factories' g.assets false g.helper false end initializer :assets do |config| icons = %w(_blank _page doc pdf ppt txt xls xlsx) Rails.application.config.assets.precompile += %w( ZeroClipboard.swf smithy/logo-sm.png) + icons.map{|icon| "smithy/icons/#{icon}.png" } end config.after_initialize do # We need to reload the routes here due to how Smithy sets them up. # The different facets of Smithy (auth) append/prepend routes to Smithy # *after* the main engine has been loaded. # # So we wait until after initialization is complete to do one final reload. # This then makes the appended/prepended routes available to the application. Rails.application.routes_reloader.reload! end initializer :content_blocks, :before => :load_config_initializers do |config| # register our default ContentBlocks with the engine Smithy::ContentBlocks::Registry.register Content Smithy::ContentBlocks::Registry.register Image Smithy::ContentBlocks::Registry.register PageList end initializer "smithy.config", :before => :load_config_initializers do |app| # TODO: Abstract out the configuration # Smithy::Config = app.config.smithy.preferences end end end
sterrym/smithycms
lib/smithy/engine.rb
Ruby
mit
1,978
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>aac-tactics: 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.5.1 / aac-tactics - 8.11.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> aac-tactics <small> 8.11.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-27 00:59:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-27 00:59:42 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler 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.5.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/aac-tactics&quot; dev-repo: &quot;git+https://github.com/coq-community/aac-tactics.git&quot; bug-reports: &quot;https://github.com/coq-community/aac-tactics/issues&quot; license: &quot;LGPL-3.0-or-later&quot; synopsis: &quot;This Coq plugin provides tactics for rewriting universally quantified equations, modulo associative (and possibly commutative) operators&quot; description: &quot;&quot;&quot; This Coq plugin provides tactics for rewriting universally quantified equations, modulo associativity and commutativity of some operator. The tactics can be applied for custom operators by registering the operators and their properties as type class instances. Many common operator instances, such as for Z binary arithmetic and booleans, are provided with the plugin.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;ocaml&quot; {&gt;= &quot;4.05.0&quot;} &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} ] tags: [ &quot;category:Miscellaneous/Coq Extensions&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;keyword:reflexive tactic&quot; &quot;keyword:rewriting&quot; &quot;keyword:rewriting modulo associativity and commutativity&quot; &quot;keyword:rewriting modulo ac&quot; &quot;keyword:decision procedure&quot; &quot;logpath:AAC_tactics&quot; &quot;date:2020-01-31&quot; ] authors: [ &quot;Thomas Braibant&quot; &quot;Damien Pous&quot; &quot;Fabian Kunze&quot; ] url { src: &quot;https://github.com/coq-community/aac-tactics/archive/v8.11.0.tar.gz&quot; checksum: &quot;sha512=91d8d83bef9d1156ec42b3ed02b6457cd776c4b1a6d93f2b64cb234ef96c044fa85052a6adc68acb0670a93574b80291d4abac80bd8eb694e2cb23e9fa880e92&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-aac-tactics.8.11.0 coq.8.5.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.1). The following dependencies couldn&#39;t be met: - coq-aac-tactics -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) 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-aac-tactics.8.11.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.1/aac-tactics/8.11.0.html
HTML
mit
7,622
_tmpl.link_entity = function( entity, tagName, returnHTML, count ){ if( !entity ) return false if( tagName && typeof tagName == 'object' ) return _tmpl.link_entity( entity, tagName['tagName'] || null, tagName['returnHTML'] || null, tagName['count'] || null ) tagName = tagName || 'a' returnHTML = returnHTML || false count = typeof count == 'undefined' ? false : count if( typeof entity != 'object' ){ var entityId = parseInt(entity) entity = _g.data.entities[entityId] }else{ var entityId = entity['id'] } return _tmpl.export( '<' + tagName + (tagName == 'a' ? ' href="?infos=entity&id='+entityId+'"' : '') + ' class="link_entity" data-entityid="' + entityId + '" data-infos="[[ENTITY::' + entityId + ']]">' + (entity.picture && entity.picture.avatar ? '<i style="background-image:url(' + entity.picture.avatar + ')"></i>' : '<i></i>' ) + '<span>' + entity._name + ( typeof count == 'undefined' ? '' : ' <small>(' + count + ')</small>' ) + '</span>' + '</' + tagName + '>', returnHTML ) }
Diablohu/WhoCallsTheFleet
source/js-app/templates/link_entity.js
JavaScript
mit
1,109
--- title: 'Book shoppin&#8217;&#8230;' author: manos_parzakonis layout: post permalink: /book-shoppin/ aktt_notify_twitter: - yes aktt_tweeted: - 1 categories: - infos tags: - book - code - programming - R --- I honestly have no book on R programming. In fact I have not a single book on programming at all (my coding proves that ;x). I am pretty sure that I am <del>gonna </del>order (just did!) that book. <img class="aligncenter" title="Art of R Programming" src="http://i1.wp.com/nostarch.com/sites/default/files/imagecache/product_full/R_cvr_front.png?resize=542%2C717" alt="" data-recalc-dims="1" /> You can get a look of Matloff&#8217;s text <a href="http://heather.cs.ucdavis.edu/~matloff/132/NSPpart.pdf" target="_blank">here</a> (= pdf for ya)
statsravingmad/statsravingmad.github.io
_posts/2011-11-24-book-shoppin.md
Markdown
mit
771
require 'syncano/active_record/association/base' class Syncano module ActiveRecord module Association # Class for belongs to association class BelongsTo < Syncano::ActiveRecord::Association::Base attr_reader :associated_model, :foreign_key, :source_model # Constructor for belongs_to association # @param [Class] source_model # @param [Symbol] name def initialize(source_model, name) super self.foreign_key = associated_model.name.foreign_key end # Checks if association is belongs_to type # @return [TrueClass] def belongs_to? true end private attr_writer :associated_model, :foreign_key, :source_model end end end end
Syncano/syncano-ruby
lib/syncano/active_record/association/belongs_to.rb
Ruby
mit
780
/*! * Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ body { width: 100%; height: 100%; font-family: Lora,"Helvetica Neue",Helvetica,Arial,sans-serif; color: #fff; background-color: #000; } html { width: 100%; height: 100%; } h1, h2, h3, h4, h5, h6 { margin: 0 0 35px; text-transform: uppercase; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 700; letter-spacing: 1px; } p { margin: 0 0 25px; font-size: 18px; line-height: 1.5; } @media(min-width:768px) { p { margin: 0 0 35px; font-size: 20px; line-height: 1.6; } } a { color: #42dca3; -webkit-transition: all .2s ease-in-out; -moz-transition: all .2s ease-in-out; transition: all .2s ease-in-out; } a:hover, a:focus { text-decoration: none; color: #1d9b6c; } .light { font-weight: 400; } .navbar-custom { margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,.3); text-transform: uppercase; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; background-color: #000; } .navbar-custom .navbar-brand { font-weight: 700; } .navbar-custom .navbar-brand:focus { outline: 0; } .navbar-custom .navbar-brand .navbar-toggle { padding: 4px 6px; font-size: 16px; color: #fff; } .navbar-custom .navbar-brand .navbar-toggle:focus, .navbar-custom .navbar-brand .navbar-toggle:active { outline: 0; } .navbar-custom a { color: #fff; } .navbar-custom .nav li a { -webkit-transition: background .3s ease-in-out; -moz-transition: background .3s ease-in-out; transition: background .3s ease-in-out; } .navbar-custom .nav li a:hover { outline: 0; color: rgba(255,255,255,.8); background-color: transparent; } .navbar-custom .nav li a:focus, .navbar-custom .nav li a:active { outline: 0; background-color: transparent; } .navbar-custom .nav li.active { outline: 0; } .navbar-custom .nav li.active a { background-color: rgba(255,255,255,.3); } .navbar-custom .nav li.active a:hover { color: #fff; } @media(min-width:768px) { .navbar-custom { padding: 20px 0; border-bottom: 0; letter-spacing: 1px; background: 0 0; -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out; -moz-transition: background .5s ease-in-out,padding .5s ease-in-out; transition: background .5s ease-in-out,padding .5s ease-in-out; } .navbar-custom.top-nav-collapse { padding: 0; border-bottom: 1px solid rgba(255,255,255,.3); background: #000; } } .intro { display: table; width: 100%; height: auto; padding: 100px 0; text-align: center; color: #fff; background: url(../img/intro-bg.jpg) no-repeat bottom center scroll ; background-color: #000; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; } .intro .intro-body { display: table-cell; vertical-align: middle; } .intro .intro-body .brand-heading { font-size: 40px; } sup { font-size: small; font-family: "Microsoft YaHei", ΢ÈíÑźÚ,"Noto Sans CJK SC", "Source Han Sans CN", "Hiragino Sans GB","Helvetica Neue",Helvetica,Arial,sans-serif; } .intro .intro-body .intro-text { font-size: 18px; } @media(min-width:768px) { .intro { height: 100%; padding: 0; } .intro .intro-body .brand-heading { font-size: 100px; } .intro .intro-body .intro-text { font-size: 26px; } } .btn-circle { width: 70px; height: 70px; margin-top: 15px; padding: 7px 16px; border: 2px solid #fff; border-radius: 100%!important; font-size: 40px; color: #fff; background: 0 0; -webkit-transition: background .3s ease-in-out; -moz-transition: background .3s ease-in-out; transition: background .3s ease-in-out; } .btn-circle:hover, .btn-circle:focus { outline: 0; color: #fff; background: rgba(255,255,255,.1); } .btn-circle i.animated { -webkit-transition-property: -webkit-transform; -webkit-transition-duration: 1s; -moz-transition-property: -moz-transform; -moz-transition-duration: 1s; } .btn-circle:hover i.animated { -webkit-animation-name: pulse; -moz-animation-name: pulse; -webkit-animation-duration: 1.5s; -moz-animation-duration: 1.5s; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -moz-animation-timing-function: linear; } @-webkit-keyframes pulse { 0% { -webkit-transform: scale(1); transform: scale(1); } 50% { -webkit-transform: scale(1.2); transform: scale(1.2); } 100% { -webkit-transform: scale(1); transform: scale(1); } } @-moz-keyframes pulse { 0% { -moz-transform: scale(1); transform: scale(1); } 50% { -moz-transform: scale(1.2); transform: scale(1.2); } 100% { -moz-transform: scale(1); transform: scale(1); } } .content-section { padding-top: 100px; } .download-section { width: 100%; padding: 50px 0; color: #fff; background: url(../img/downloads-bg.jpg) no-repeat center center scroll; background-color: #000; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; } #map { width: 100%; height: 200px; margin-top: 100px; } @media(min-width:767px) { .content-section { padding-top: 250px; } .download-section { padding: 100px 0; } #map { height: 400px; margin-top: 250px; } } .btn { border-radius: 0; text-transform: uppercase; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 400; -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; transition: all .3s ease-in-out; } .btn-default { border: 1px solid #42dca3; color: #42dca3; background-color: transparent; } .btn-default:hover, .btn-default:focus { border: 1px solid #42dca3; outline: 0; color: #000; background-color: #42dca3; } ul.banner-social-buttons { margin-top: 0; } @media(max-width:1199px) { ul.banner-social-buttons { margin-top: 15px; } } @media(max-width:767px) { ul.banner-social-buttons li { display: block; margin-bottom: 20px; padding: 0; } ul.banner-social-buttons li:last-child { margin-bottom: 0; } } footer { padding: 50px 0; } footer p { margin: 0; } ::-moz-selection { text-shadow: none; background: #fcfcfc; background: rgba(255,255,255,.2); } ::selection { text-shadow: none; background: #fcfcfc; background: rgba(255,255,255,.2); } img::selection { background: 0 0; } img::-moz-selection { background: 0 0; } body { webkit-tap-highlight-color: rgba(255,255,255,.2); } .timeline { position: relative; padding: 0; list-style: none; } .timeline:before { content: ""; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; margin-left: -1.5px; background-color: #f1f1f1; } .timeline>li { position: relative; margin-bottom: 50px; min-height: 50px; } .timeline>li:before, .timeline>li:after { content: " "; display: table; } .timeline>li:after { clear: both; } .timeline>li .timeline-panel { float: right; position: relative; width: 100%; padding: 0 20px 0 100px; text-align: left; } .timeline>li .timeline-panel:before { right: auto; left: -15px; border-right-width: 15px; border-left-width: 0; } .timeline>li .timeline-panel:after { right: auto; left: -14px; border-right-width: 14px; border-left-width: 0; } .timeline>li .timeline-image { z-index: 100; position: absolute; left: 0; width: 80px; height: 80px; margin-left: 0; border: 7px solid #f1f1f1; border-radius: 100%; text-align: center; color: #fff; background-color: #d3d3d3 ; } .timeline>li .timeline-image h4 { margin-top: 12px; font-size: 10px; line-height: 14px; } .timeline>li.timeline-inverted>.timeline-panel { float: right; padding: 0 20px 0 100px; text-align: left; } .timeline>li.timeline-inverted>.timeline-panel:before { right: auto; left: -15px; border-right-width: 15px; border-left-width: 0; } .timeline>li.timeline-inverted>.timeline-panel:after { right: auto; left: -14px; border-right-width: 14px; border-left-width: 0; } .timeline>li:last-child { margin-bottom: 0; } .timeline .timeline-heading h4 { margin-top: 0; color: inherit; } .timeline .timeline-heading h4.subheading { text-transform: none; } .timeline .timeline-body>p, .timeline .timeline-body>ul { margin-bottom: 0; } @media(min-width:768px) { .timeline:before { left: 50%; } .timeline>li { margin-bottom: 100px; min-height: 100px; } .timeline>li .timeline-panel { float: left; width: 41%; padding: 0 20px 20px 30px; text-align: right; } .timeline>li .timeline-image { left: 50%; width: 100px; height: 100px; margin-left: -50px; } .timeline>li .timeline-image h4 { margin-top: 16px; font-size: 13px; line-height: 18px; } .timeline>li.timeline-inverted>.timeline-panel { float: right; padding: 0 30px 20px 20px; text-align: left; } } @media(min-width:992px) { .timeline>li { min-height: 150px; } .timeline>li .timeline-panel { padding: 0 20px 20px; } .timeline>li .timeline-image { width: 150px; height: 150px; margin-left: -75px; } .timeline>li .timeline-image h4 { margin-top: 30px; font-size: 18px; line-height: 26px; } .timeline>li.timeline-inverted>.timeline-panel { padding: 0 20px 20px; } } @media(min-width:1200px) { .timeline>li { min-height: 170px; } .timeline>li .timeline-panel { padding: 0 20px 20px 100px; } .timeline>li .timeline-image { width: 170px; height: 170px; margin-left: -85px; } .timeline>li .timeline-image h4 { margin-top: 40px; } .timeline>li.timeline-inverted>.timeline-panel { padding: 0 100px 20px 20px; } } .post-preview>a { color: #404040 } .post-preview>a:hover, .post-preview>a:focus { text-decoration: none; color: #0085a1 } .post-preview>a>.post-title { font-size: 30px; margin-top: 30px; margin-bottom: 10px } .post-preview>a>.post-subtitle { margin: 0; font-weight: 300; margin-bottom: 10px } .post-preview>.post-meta { color: gray; font-size: 18px; font-style: italic; margin-top: 0 } .post-preview>.post-meta>a { text-decoration: none; color: #404040 } .post-preview>.post-meta>a:hover, .post-preview>.post-meta>a:focus { color: #0085a1; text-decoration: underline } @media only screen and (min-width: 768px) { .post-preview>a>.post-title { font-size: 36px } } .section-heading { font-size: 36px; margin-top: 60px; font-weight: 700 } .caption { text-align: center; font-size: 14px; padding: 10px; font-style: italic; margin: 0; display: block; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px } footer { padding: 50px 0 65px } footer .list-inline { margin: 0; padding: 0 } footer .copyright { font-size: 14px; text-align: center; margin-bottom: 0 } .floating-label-form-group { font-size: 14px; position: relative; margin-bottom: 0; padding-bottom: .5em; border-bottom: 1px solid #eee } .floating-label-form-group input, .floating-label-form-group textarea { z-index: 1; position: relative; padding-right: 0; padding-left: 0; border: none; border-radius: 0; font-size: 1.5em; background: 0 0; box-shadow: none!important; resize: none } .floating-label-form-group label { display: block; z-index: 0; position: relative; top: 2em; margin: 0; font-size: .85em; line-height: 1.764705882em; vertical-align: middle; vertical-align: baseline; opacity: 0; -webkit-transition: top .3s ease, opacity .3s ease; -moz-transition: top .3s ease, opacity .3s ease; -ms-transition: top .3s ease, opacity .3s ease; transition: top .3s ease, opacity .3s ease } .floating-label-form-group::not(:first-child) { padding-left: 14px; border-left: 1px solid #eee } .floating-label-form-group-with-value label { top: 0; opacity: 1 } .floating-label-form-group-with-focus label { color: #0085a1 } form .row:first-child .floating-label-form-group { border-top: 1px solid #eee } .btn { font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; text-transform: uppercase; font-size: 14px; font-weight: 800; letter-spacing: 1px; border-radius: 0; padding: 15px 25px } .btn-lg { font-size: 16px; padding: 25px 35px } .btn-default:hover, .btn-default:focus { background-color: #0085a1; border: 1px solid #0085a1; color: #fff } .pager { margin: 20px 0 0 } .pager li>a, .pager li>span { font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; text-transform: uppercase; font-size: 14px; font-weight: 800; letter-spacing: 1px; padding: 15px 25px; background-color: #000; border-radius: 0 } .pager li>a:hover, .pager li>a:focus { color: #fff; background-color: #0085a1; } .pager .disabled>a, .pager .disabled>a:hover, .pager .disabled>a:focus, .pager .disabled>span { color: gray; background-color: #404040; cursor: not-allowed } /*shit*/ input, textarea { border:1px solid #eee; transition:0.3s; color: black; } input:focus, textarea:focus { box-shadow: 0 0 3px #0085FF; border-color:#0085FF; } #logo a:link, #logo a:visited { color: #4f4f4f; } .btn a { color: #fff; } #post { width: 500px; margin:0 auto; } #post [placeholder] { width: 480px; margin-bottom: 10px; border: 1px solid #eee; padding: 8px 10px; } #post [placeholder]:focus { box-shadow: 0 0 3px #0085FF; border-color:#0085FF; } #post textarea { min-height: 70px; }
ShawnJu/blogTemp
app/css/grayscale.css
CSS
mit
14,905
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script> <script src="../bower_components/jquery-collision/js/jquery-collision.js"></script> <script src="../js/jquery-ui-draggable-collision.js"></script> <style> .draggable { width: 120px; height: 120px; margin: 0; position: absolute; background-color: #0000ff; } .obstacle { width: 100px; height: 100px; margin: 0; position: absolute; background-color: #ff0000; } .restraint { width: 200px; height: 100px; margin: 0; position: absolute; background-color: #00ff00; } .protrusion { background-color: transparent; pointer-events: none; position: absolute; border: 1px solid black; margin: -1px; } .collision { background-color: #00ffff; pointer-events: none; position: absolute; } #board { width: 400px; height: 300px; background-color: #888888; border: 0; border-collapse: collapse; margin: 0; position: absolute; } #a { padding: 5px; } #c { margin: 5px; } </style> <script> function clearCollision(event,ui) { $(".collision").remove(); } function handleCollision(event,ui) { $( event.collision ).addClass("collision").each( function(){ var d = $(this).data("direction"); if(d) $("<b>"+d+"</b>").appendTo($(this)); $(this).appendTo("body"); } ); } function clearProtrusion(event,ui) { $(".protrusion").remove(); } function handleProtrusion(event,ui) { $( event.collision ).addClass("protrusion").each( function(){ var d = $(this).data("direction"); if(d) $("<b>"+d+"</b>").appendTo($(this)); $(this).appendTo("body"); } ); } $(function() { $( ".draggable" ).each(function(){$(this).draggable({ containment: "body", obstacle: ".obstacle", restraint: ".restraint", directionData: "direction", relative: "body" });}); $( "#b" ).bind( "precollision", clearCollision ); $( "#b" ).bind( "preprotrusion", clearProtrusion ); $( "#b" ).bind( "collision", handleCollision ); $( "#b" ).bind( "protrusion", handleProtrusion ); }); </script> </head> <body> <div class="container"> <h2>Drag blue block outside green and on top of reds.</h2> <p>Note that green restraint has 5px padding, and left red obstacle has 5px margins.</p> <p>The collisions between blue and red are hilighted in turquoise and contain the directionData for the collision.</p> <p>The protrusions of blue from within green are bordered in black and contain the directionData for the protrusion.</p> <div id="board"> <div class="restraint" style="left: 50px; top: 20px;" id="a"></div> <div class="draggable ui-widget-content" style="left:100px; top: 20px;" id="b" ></div> <div class="obstacle" style="left: 20px; top:160px;" id="c" ></div> <div class="obstacle" style="left:170px; top:170px;width:130px;height:130px;" id="d" ></div> </div> </div> </body> </html>
dsbaars/jq-ui-draggable-collision
examples/jquery-ui-draggable-collision-event-example.html
HTML
mit
3,681
if [ -d boost ]; then echo "-- Boost already installed" exit 0 fi echo -n "-- Downloading Boost library" curl --silent "http://netix.dl.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2" > boost_1_60_0.tar.bz2 RET=$? if [ $RET -ne 0 ]; then echo " failed" exit $RET fi echo " done" echo -n "-- Extracting Boost library" tar -xf boost_1_60_0.tar.bz2 RET=$? if [ $RET -ne 0 ]; then rm boost_1_60_0.tar.bz2 echo " failed" exit $RET fi mv boost_1_60_0 boost echo " done" echo -n "-- Cleaning up environment" rm boost_1_60_0.tar.bz2 RET=$? if [ $RET -ne 0 ]; then echo " failed" exit $RET fi echo " done" exit 0
mikevo/uibk-acc
boost_install.sh
Shell
mit
644
/* eslint-disable no-await-in-loop */ const assert = require('assert'); const TestUtils = require('../utils'); const query1 = `SELECT 1 AS id, 'blue' AS color`; function wait(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } async function testBatchToCompletion(config) { const utils = new TestUtils(config); await utils.init(true); const connection = await utils.post('admin', '/api/connections', { name: 'test connection', driver: 'sqlite', data: { filename: './test/fixtures/sales.sqlite', }, }); let batch = await utils.post('admin', `/api/batches`, { connectionId: connection.id, batchText: query1, }); while (batch.status !== 'finished' && batch.status !== 'error') { await wait(25); batch = await utils.get('admin', `/api/batches/${batch.id}`); } const statements = await utils.get( 'admin', `/api/batches/${batch.id}/statements` ); const statement1 = statements[0]; let result1 = await utils.get( 'admin', `/api/statements/${statement1.id}/results` ); assert.deepEqual(result1, [[1, 'blue']], 'results as expected'); // remove should succeed await utils.models.statements.removeById(statement1.id); await utils.get('admin', `/api/statements/${statement1.id}/results`, 404); } describe('api/query-result-stores', function () { it('file', async function () { return testBatchToCompletion({ queryResultStore: 'file' }); }); it('redis', async function () { const available = await TestUtils.redisAvailable('redis://localhost:6379'); if (!available || process.env.SKIP_INTEGRATION === 'true') { return this.skip(); } return testBatchToCompletion({ queryResultStore: 'redis', redisUri: 'redis://localhost:6379', }); }); it('database', async function () { return testBatchToCompletion({ queryResultStore: 'database', }); }); it('memory', async function () { return testBatchToCompletion({ queryResultStore: 'memory', }); }); });
rickbergfalk/sqlpad
server/test/api/query-result-stores.js
JavaScript
mit
2,035
<div class="page-header" data-ng-controller="HeaderController"> <div class="logo pull-left"> <a class="navbar-brand" ui-sref="home">Attobyte</a> </div> <div class="left pull-left"> <ul class="navbar-nav nav"> <li data-ng-repeat="item in menus.main" ui-route="/{{item.link}}" ng-class="{active: $uiRoute}"> <a mean-token="item.link" ui-sref='{{item.link}}'>{{item.title}}</a> </li> </ul> </div> <!-- <div class="account"> <div class="text-edit"> <div class="pull-right" data-ng-show="global.authenticated" mean-token-editable></div> <div class="pull-right" data-ng-show="global.authenticated" mean-translate></div> </div> <ul class="navbar-nav nav" data-ng-hide="global.authenticated"> <li><a ui-sref='auth.register'>Register</a> </li> <li class="divider-vertical"></li> <li><a ui-sref='auth.login'>Login</a> </li> </ul> <ul class="navbar-nav nav" data-ng-show="global.authenticated"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> {{global.user.name}} <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a ui-sref="userProfile example page">My Profile</a></li> <li><a href="/logout">Sign out</a></li> </ul> </li> </ul> </div> --> </div>
eddotman/attobyte
packages/system/public/views/header.html
HTML
mit
1,365
--- title: React Native开发之多屏适配 date: 2018-3-24 08:56:47 --- # 多屏适配 # 字体不随系统字体缩放 **针对 `iOS`** 需要在 `node_modules/react-native` 中找到 `RCTFont.mm` 文件(在目录中搜索),在其中,可以找到如下代码: ```js if (scaleMultiplier > 0.0 && scaleMultiplier != 1.0) { fontSize = round(fontSize); } ``` 将其注释掉,打包出来的 App,就不会受到系统字体尺寸变化的影响。 **针对 `Android`** 找到 `<souce>/android` 目录下的 `MainActivity.java` 文件。然后引入如下 Package: ```java import android.content.res.Configuration; import android.content.res.Resources; ``` 接着,在 Class 中,加入如下代码: ```java @Override public Resources getResources() { Resources res = super.getResources(); Configuration config=new Configuration(); config.setToDefaults(); res.updateConfiguration(config,res.getDisplayMetrics() ); return res; } ```
hstarorg/HstarDoc
React Native 开发笔记/React Native开发之多屏适配.md
Markdown
mit
982
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>kildall: 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.11.0 / kildall - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> kildall <small> 8.6.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-03-06 01:30:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-03-06 01:30:14 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.11.0 Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.0 Official release 4.09.0 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.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/kildall&quot; license: &quot;Unknown&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Kildall&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: Kildall&quot; &quot;keyword: data flow analysis&quot; &quot;keyword: bytecode verification&quot; &quot;category: Computer Science/Semantics and Compilation/Semantics&quot; &quot;date: 2005-07&quot; ] authors: [ &quot;Solange Coupet-Grimal &lt;Solange.Coupet@cmi.univ-mrs.fr&gt;&quot; &quot;William Delobel &lt;delobel@cmi.univ-mrs.fr&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/kildall/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/kildall.git&quot; synopsis: &quot;Application of the Generic kildall&#39;s Data Flow Analysis Algorithm to a Type and Shape Static Analyses of Bytecode&quot; description: &quot;&quot;&quot; http://www.lif-sud.univ-mrs.fr/Rapports/24-2005.html This Library provides a generic data flow analysis algorithm and a proof of its correctness. This algorithm is then used to perform type and shape analysis at bytecode level on a first order functionnal language.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/kildall/archive/v8.6.0.tar.gz&quot; checksum: &quot;md5=72bf7e89566bec1f877b3510c46ac784&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-kildall.8.6.0 coq.8.11.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.11.0). The following dependencies couldn&#39;t be met: - coq-kildall -&gt; coq &lt; 8.7~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) 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-kildall.8.6.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"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.09.0-2.0.5/released/8.11.0/kildall/8.6.0.html
HTML
mit
7,159
/** * @file VertexArrayObject.h * * @author Jan Dušek <xdusek17@stud.fit.vutbr.cz> * @date 2013 */ #ifndef VERTEX_ARRAY_OBJECT_H #define VERTEX_ARRAY_OBJECT_H #include <GL/glew.h> namespace gl { /// Wrapper around OpenGL vao. Movable noncopyable class VertexArrayObject { public: VertexArrayObject() { glGenVertexArrays(1, &m_handle); } ~VertexArrayObject() { glDeleteVertexArrays(1, &m_handle); } VertexArrayObject(VertexArrayObject&& other) : m_handle(other.m_handle) { } VertexArrayObject& operator=(VertexArrayObject&& other) { this->m_handle = other.m_handle; return *this; } GLuint handle() const { return m_handle; } /// bind vao void bind() const { if (m_handle != s_bindVao) { glBindVertexArray(m_handle); s_bindVao = m_handle; } } /// Unbind currently bound vao static void unbind() { glBindVertexArray(0); s_bindVao = 0; } private: VertexArrayObject(const VertexArrayObject&); VertexArrayObject& operator=(VertexArrayObject); static GLuint s_bindVao; // to avoid unnecessary state changes, here we store current bound vao GLuint m_handle; // OpenGL handle }; } #endif // !VERTEX_ARRAY_OBJECT_H
Zycon42/Heightmap
src/engine/VertexArrayObject.h
C
mit
1,171
#!/usr/bin/env bash if [ $# -lt 3 ]; then echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]" exit 1 fi DB_NAME=$1 DB_USER=$2 DB_PASS=$3 DB_HOST=${4-localhost} WP_VERSION=${5-latest} WP_TESTS_DIR=${WP_TESTS_DIR-\/tmp\/wordpress-tests-lib} WP_CORE_DIR=${WP_CORE_DIR-\/tmp\/wordpress\/} set -ex download() { if [ `which curl` ]; then curl -s "$1" > "$2"; elif [ `which wget` ]; then wget -nv -O "$2" "$1" fi } install_wp() { if [ -d $WP_CORE_DIR ]; then return; fi mkdir -p $WP_CORE_DIR if [ $WP_VERSION == 'latest' ]; then local ARCHIVE_NAME='latest' else local ARCHIVE_NAME="wordpress-$WP_VERSION" fi download https://wordpress.org/${ARCHIVE_NAME}.tar.gz /tmp/wordpress.tar.gz tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php } install_test_suite() { # portable in-place argument for both GNU sed and Mac OSX sed if [[ $(uname -s) == 'Darwin' ]]; then local ioption='-i .bak' else local ioption='-i' fi # set up testing suite if it doesn't yet exist if [ ! -d $WP_TESTS_DIR ]; then # set up testing suite mkdir -p $WP_TESTS_DIR svn co --quiet http://develop.svn.wordpress.org/branches/4.3/tests/phpunit/includes/ $WP_TESTS_DIR/includes fi cd $WP_TESTS_DIR uname -a if [ ! -f wp-tests-config.php ]; then download https://develop.svn.wordpress.org/branches/4.3/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php if [[ $(uname -a) == *"appveyor"* ]]; then sed $ioption "s/dirname( __FILE__ ) . '\/src\/'/'$WP_CORE_DIR'/" "$WP_TESTS_DIR"/wp-tests-config.php else sed $ioption "s:dirname( __FILE__ ) . '\/src\/':'$WP_CORE_DIR':" "$WP_TESTS_DIR"/wp-tests-config.php fi sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php fi } install_db() { # parse DB_HOST for port or socket references local PARTS=(${DB_HOST//\:/ }) local DB_HOSTNAME=${PARTS[0]}; local DB_SOCK_OR_PORT=${PARTS[1]}; local EXTRA="" if ! [ -z $DB_HOSTNAME ] ; then if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp" elif ! [ -z $DB_SOCK_OR_PORT ] ; then EXTRA=" --socket=$DB_SOCK_OR_PORT" elif ! [ -z $DB_HOSTNAME ] ; then EXTRA=" --host=$DB_HOSTNAME --protocol=tcp" fi fi # create database mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA } install_wp install_test_suite install_db
AngeIII/appveyour-codes-style-test
bin/install-wp-tests.sh
Shell
mit
2,802
// // HTextInputProtocals.h // Hodor // // Created by zhangchutian on 15/5/29. // Copyright (c) 2015年 zhangchutian. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @protocol HTextInputRecver <UITextInput> - (void)setInputAccessoryView:(UIView *)inputAccessoryView; - (void)setInputView:(UIView *)inputView; @end @interface UITextField (HTextInputRecver) <HTextInputRecver> @end @interface UITextView (HTextInputRecver) <HTextInputRecver> @end
jumperb/HTextInput
Class/HTextInputProtocals.h
C
mit
487
# redux-trigger Redux State Triggers ## What is it? redux-trigger is a Redux middleware which allows delayed dispatching of an action based on a trigger state in the Redux store. Here's how it works: 1. Dispatch a trigger (with action and state matcher function) 2. The matcher function will be run every time the state is updated 3. When the matcher function returns true, the trigger's action is dispatched ## Why do it this way? There are many ways to handle asynchronous state changes within redux, just look at the related project list below. However, for many of these, promises are resolved at action dispatch time, or in the middlewares. This is okay for simple, discrete cases, but what about those cases where the same state can be reached in different ways? Promise flow: A -> B, B -> C, C -> D But what if B can be reached in another way? Then you have: Alternative promise flow: X -> B, B -> C, C -> D Now you have to duplicate the promise chain for each possibility. One of the primary principles of Redux is that the [state is the single source of truth.](https://github.com/rackt/redux/blob/master/docs/introduction/ThreePrinciples.md#single-source-of-truth) Why then, shouldn't we trigger our asynchronous state based on that single source of truth for the application? redux-triggers allows you to set a trigger for a desired state, and then dispatch the action when the app's state it meets your desired criteria. ## Need a better example? What's the primary example of logging in or signing up for an application? It's populating the user data, right? However, many applications want other side effects to happen upon login as well. For example, say you want to always fetch some API data from GitHub for each user upon login. You could set a promise chain as follows: ```Enter Credentials -> Login -> Populate User Data -> Fetch GitHub Data -> Display Data``` However, what about those users who just registered for your site? Now you need another promise chain for that: ```Fill out signup -> Submit -> (User Data already populated) -> Fetch GitHub Data -> Display Data``` Now, what if you want to allow logins via Facebook? Yet another promise chain: ```Click "Login with Facebook" -> Facebook API Login -> Populate User Data -> Fetch GitHub Data -> Display Data``` And sometime in the future, someone will want another API login, like Google, LinkedIn, etc. Let's just hope the developer who implements it knows that they need to implement a similar promise chain! ### A better way If we drive our application logic from our single source of truth (the Redux state tree), now we can focus on the data we have, and not care how we got it. So, if we have a redux-trigger that monitors the redux state tree, we can break up the promise chains above. In this instance our trigger would act as such: ``` Matcher: When a GitHub User ID exists, and there's no corresponding GitHub data Action: Fetch GitHub Data for given User ``` So now, when a user logs in or signs up: ```Enter Credentials -> Login -> Populate User Data``` ```Fill out signup -> Submit -> (User Data already populated)``` ```Click "Login with Facebook" -> Facebook API Login -> Populate User Data``` They can handle their primary purpose of populating user data, and any time that data is populated, the trigger fires and the GitHub data populates as a result. ## Related Projects [redux-thunk](https://github.com/gaearon/redux-thunk) [redux-promise](https://github.com/acdlite/redux-promise) [redux-rx](https://github.com/acdlite/redux-rx) [redux-effects](https://github.com/redux-effects/redux-effects) [redux-saga](https://github.com/yelouafi/redux-saga) [redux-watch](https://github.com/jprichardson/redux-watch) [redux-batched-subscribe](https://github.com/tappleby/redux-batched-subscribe) [redux-debounced](https://github.com/ryanseddon/redux-debounced)
coderkevin/redux-trigger
README.md
Markdown
mit
3,890
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M22 4H2v16h20V4zm-2 4l-8 5-8-5V6l8 5 8-5v2z" }), 'MailSharp');
AlloyTeam/Nuclear
components/icon/esm/mail-sharp.js
JavaScript
mit
185
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coinductive-reals: 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.13.2 / coinductive-reals - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coinductive-reals <small> 8.10.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-11-22 00:16:09 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-22 00:16:09 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.13.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;http://www.cs.ru.nl/~milad/ETrees/coinductive-field/&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CoinductiveReals&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} &quot;coq-qarith-stern-brocot&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: real numbers&quot; &quot;keyword: co-inductive types&quot; &quot;keyword: co-recursion&quot; &quot;keyword: exact arithmetic&quot; &quot;category: Mathematics/Arithmetic and Number Theory/Real numbers&quot; &quot;date: 2007-04-24&quot; ] authors: [ &quot;Milad Niqui &lt;milad@cs.ru.nl&gt; [http://www.cs.ru.nl/~milad]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/coinductive-reals/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/coinductive-reals.git&quot; synopsis: &quot;Real numbers as coinductive ternary streams&quot; description: &quot;&quot;&quot; See the README file&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/coinductive-reals/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=c84ff40df2465f37983b5f13e8ad39d1&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-coinductive-reals.8.10.0 coq.8.13.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.2). The following dependencies couldn&#39;t be met: - coq-coinductive-reals -&gt; coq &lt; 8.11~ -&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-coinductive-reals.8.10.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.2/coinductive-reals/8.10.0.html
HTML
mit
7,297
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>free-groups: 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.7.2 / free-groups - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> free-groups <small> 8.10.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-08 19:39:34 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-08 19:39:34 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 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/free-groups&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/FreeGroups&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: free group&quot; &quot;category: Mathematics/Algebra&quot; ] authors: [ &quot;Daniel Schepler &lt;dschepler@gmail.com&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/free-groups/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/free-groups.git&quot; synopsis: &quot;Free Groups&quot; description: &quot;&quot;&quot; This small contribution is a formalization of van der Waerden&#39;s proof of the construction of a free group on a set of generators, as the reduced words where a letter is a generator or its formal inverse.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/free-groups/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=93323cfaa6667dd948605db76e1cb5be&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-free-groups.8.10.0 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.2). The following dependencies couldn&#39;t be met: - coq-free-groups -&gt; coq &gt;= 8.10 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) 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-free-groups.8.10.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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.2/free-groups/8.10.0.html
HTML
mit
6,996
require_relative "../test_helper" module SmartAnswer class BlockTest < ActiveSupport::TestCase context "#evaluate" do setup do @state = State.new(:node_key) end should "make response available to block" do saved_response = nil block = Block.new do |response| saved_response = response end block.evaluate(@state, :answer) assert_equal :answer, saved_response end should "default response to nil" do saved_response = nil block = Block.new do |response| saved_response = response end block.evaluate(@state, nil) assert_nil saved_response end should "allow block to read state variables" do @state.foo = :initial_value saved_value = nil block = Block.new do saved_value = foo end block.evaluate(@state) assert_equal :initial_value, saved_value end should "allow block to make changes to state variables" do @state.foo = :initial_value block = Block.new do self.foo = :new_value end new_state = block.evaluate(@state) assert_equal :new_value, new_state.foo end should "return a new state instance" do block = Block.new {} new_state = block.evaluate(@state) assert_not_same @state, new_state end should "freeze new state" do block = Block.new {} new_state = block.evaluate(@state) assert new_state.frozen? end should "copy initial state variables into new state" do @state.foo = :initial_value block = Block.new {} block.evaluate(@state) assert_equal :initial_value, @state.foo end end end end
alphagov/smart-answers
test/unit/block_test.rb
Ruby
mit
1,800
# ExchangeForMoney 仿淘宝闲鱼客户端
mocne/ExchangeForMoney
README.md
Markdown
mit
44
/* file : collection-test.js MIT License Copyright (c) 2016 Thomas Minier 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. */ 'use strict'; require('chai').should(); const Collection = require('../../src/collections/collection.js'); describe('Collection', () => { it('should be abstract', () => { (() => new Collection()).should.throw(TypeError); }); });
Callidon/carson
test/collections/collection-test.js
JavaScript
mit
1,338
/* * 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["pa-Arab-PK"] = { name: "pa-Arab-PK", numberFormat: { pattern: ["- n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], percent: { pattern: ["% n-","% n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "%" }, currency: { pattern: ["-$ n","$ n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "Rs" } }, calendars: { standard: { days: { names: ["پير","منگل","بدھ","جمعرات","جمعه","هفته","اتوار"], namesAbbr: ["پير","منگل","بدھ","جمعرات","جمعه","هفته","اتوار"], namesShort: ["پ","م","ب","ج","ج","ه","ا"] }, months: { names: ["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"], namesAbbr: ["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"] }, AM: ["AM","am","AM"], PM: ["PM","pm","PM"], patterns: { d: "dd-MM-yy", D: "dd MMMM yyyy dddd", F: "dd MMMM yyyy dddd h.mm.ss tt", g: "dd-MM-yy h.mm tt", G: "dd-MM-yy h.mm.ss tt", m: "dd MMMM", M: "dd MMMM", s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", t: "h.mm tt", T: "h.mm.ss tt", 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(); });
hhuynhlam/Ulysses
src/client/vendor/kendo/src/js/cultures/kendo.culture.pa-Arab-PK.js
JavaScript
mit
2,836
<?php /* * This class is inspired from Composer's compiler * @see https://github.com/composer/composer/blob/master/src/Composer/Compiler.php */ namespace Onigoetz\Dyn53; use Symfony\Component\Finder\Finder; /** * The Compiler class compiles dyn53 into a phar * * @author Fabien Potencier <fabien@symfony.com> * @author Jordi Boggiano <j.boggiano@seld.be> * @author Stéphane Goetz <stephane.goetz@onigoetz.ch> */ class Compiler { /** * Compiles composer into a single phar file * * @param string $pharFile The full path to the file to create * @throws \RuntimeException */ public function compile($pharFile = 'dyn53.phar') { if (file_exists($pharFile)) { unlink($pharFile); } $phar = new \Phar($pharFile, 0, 'dyn53.phar'); $phar->setSignatureAlgorithm(\Phar::SHA1); $phar->startBuffering(); $finder = new Finder(); $finder->files() ->ignoreVCS(true) ->name('*.php') ->notName('Compiler.php') ->in(__DIR__); foreach ($finder as $file) { $this->addFile($phar, $file); } $finder = new Finder(); $finder->files() ->ignoreVCS(true) //->name('*.php') ->exclude('Tests') ->in(__DIR__ . '/../vendor/symfony/console') ->in(__DIR__ . '/../vendor/symfony/event-dispatcher') ->in(__DIR__ . '/../vendor/aws/aws-sdk-php/src/Aws/Route53/') ->in(__DIR__ . '/../vendor/aws/aws-sdk-php/src/Aws/Common/') ->in(__DIR__ . '/../vendor/guzzle/guzzle/src/') ->notPath('Guzzle/Batch') ->notPath('Guzzle/Cache') ->notPath('Guzzle/Plugin/Async') ->notPath('Guzzle/Plugin/Cache') ->notPath('Guzzle/Plugin/Cookie'); foreach ($finder as $file) { $this->addFile($phar, $file); } $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/autoload.php')); $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_namespaces.php')); $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_psr4.php')); $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_classmap.php')); $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/autoload_real.php')); if (file_exists(__DIR__ . '/../vendor/composer/include_paths.php')) { $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/include_paths.php')); } $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../vendor/composer/ClassLoader.php')); $this->addDyn53Bin($phar); // Stubs $phar->setStub($this->getStub()); $phar->stopBuffering(); $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../LICENSE'), false); unset($phar); } private function addFile($phar, $file, $strip = true) { $path = strtr(str_replace(dirname(__DIR__) . DIRECTORY_SEPARATOR, '', $file->getRealPath()), '\\', '/'); $content = file_get_contents($file); if ($strip) { $content = $this->stripWhitespace($content); } elseif ('LICENSE' === basename($file)) { $content = "\n" . $content . "\n"; } $phar->addFromString($path, $content); } private function addDyn53Bin($phar) { $content = file_get_contents(__DIR__ . '/../bin/dyn53'); $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content); $phar->addFromString('bin/dyn53', $content); } /** * Removes whitespace from a PHP source string while preserving line numbers. * * @param string $source A PHP string * @return string The PHP string with the whitespace removed */ private function stripWhitespace($source) { if (!function_exists('token_get_all')) { return $source; } $output = ''; foreach (token_get_all($source) as $token) { if (is_string($token)) { $output .= $token; } elseif (in_array($token[0], [T_COMMENT, T_DOC_COMMENT])) { $output .= str_repeat("\n", substr_count($token[1], "\n")); } elseif (T_WHITESPACE === $token[0]) { // reduce wide spaces $whitespace = preg_replace('{[ \t]+}', ' ', $token[1]); // normalize newlines to \n $whitespace = preg_replace('{(?:\r\n|\r|\n)}', "\n", $whitespace); // trim leading spaces $whitespace = preg_replace('{\n +}', "\n", $whitespace); $output .= $whitespace; } else { $output .= $token[1]; } } return $output; } private function getStub() { return <<<'EOF' #!/usr/bin/env php <?php /* * This file is part of Dyn53. * * (c) Stéphane Goetz <onigoetz@onigoetz.ch> * * For the full copyright and license information, please view * the license that is located at the bottom of this file. */ Phar::mapPhar('dyn53.phar'); require 'phar://dyn53.phar/bin/dyn53'; __HALT_COMPILER(); EOF; } }
onigoetz/dyn53
src/Compiler.php
PHP
mit
5,293
import { VFadeTransition, VSlideXTransition } from '~components/transitions' export default { name: 'v-progress-linear', components: { VFadeTransition, VSlideXTransition }, props: { active: { type: Boolean, default: true }, buffer: Boolean, bufferValue: Number, error: Boolean, height: { type: [Number, String], default: 7 }, indeterminate: Boolean, info: Boolean, secondary: Boolean, success: Boolean, query: Boolean, warning: Boolean, value: { type: [Number, String], default: 0 }, colorFront: { type: String, default: null }, colorBack: { type: String, default: null } }, computed: { classes () { return { 'progress-linear--query': this.query, 'progress-linear--secondary': this.secondary, 'progress-linear--success': this.success, 'progress-linear--info': this.info, 'progress-linear--warning': this.warning, 'progress-linear--error': this.error } }, styles () { const styles = {} if (!this.active) { styles.height = 0 } if (this.buffer) { styles.width = `${this.bufferValue}%` } return styles }, bufferStyles () { const styles = {} if (!this.active) { styles.height = 0 } return styles } }, methods: { genDeterminate (h) { return h('div', { ref: 'front', class: ['progress-linear__bar__determinate', this.colorFront], style: { width: `${this.value}%` } }) }, genBar (h, name) { return h('div', { class: [ 'progress-linear__bar__indeterminate', name, this.colorFront ] }) }, genIndeterminate (h) { return h('div', { ref: 'front', class: { 'progress-linear__bar__indeterminate': true, 'progress-linear__bar__indeterminate--active': this.active } }, [ this.genBar(h, 'long'), this.genBar(h, 'short') ]) } }, render (h) { const fade = h('v-fade-transition', [this.indeterminate && this.genIndeterminate(h)]) const slide = h('v-slide-x-transition', [!this.indeterminate && this.genDeterminate(h)]) const bar = h('div', { class: ['progress-linear__bar', this.colorBack], style: this.styles }, [fade, slide]) return h('div', { class: ['progress-linear', this.classes], style: { height: `${this.height}px` }, on: this.$listeners }, [bar]) } }
stephane/vuetify
src/components/progress/VProgressLinear.js
JavaScript
mit
2,625
"use strict"; var fs = require("fs"); var path = require("path"); var Sequelize = require("sequelize"); const appRoot = require('app-root-path'); const config = require(`${appRoot}/lib/config`)(); const sequelize = new Sequelize(config.db); var db = {}; fs .readdirSync(__dirname) .filter(function(file) { return (file.indexOf(".") !== 0) && (file !== "index.js"); }) .forEach(function(file) { var model = sequelize.import(path.join(__dirname, file)); db[model.name] = model; }); console.log(db); Object.keys(db).forEach(function(modelName) { if ("associate" in db[modelName]) { console.log('SE ASOCIA : ' + modelName + db) db[modelName].associate(db); console.log("MODELO" + db[modelName]); } }); // db['Page'].belongsTo(db['Unit']); // db['Unit'].hasMany(db['Page'], {as: 'Pages'}) db.sequelize = sequelize; db.Sequelize = Sequelize; module.exports = db;
anacesponda/sequelize-api
app/models/index.js
JavaScript
mit
966
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>gappa: 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.7.0 / gappa - 1.4.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> gappa <small> 1.4.2 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-16 11:54:26 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-16 11:54:26 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.7.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.1 Official release 4.09.1 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;guillaume.melquiond@inria.fr&quot; homepage: &quot;https://gappa.gitlabpages.inria.fr/&quot; dev-repo: &quot;git+https://gitlab.inria.fr/gappa/coq.git&quot; bug-reports: &quot;https://gitlab.inria.fr/gappa/coq/issues&quot; license: &quot;LGPL 2.1&quot; build: [ [&quot;./configure&quot;] [&quot;./remake&quot; &quot;-j%{jobs}%&quot;] ] install: [&quot;./remake&quot; &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8.1&quot; &amp; &lt; &quot;8.10~&quot;} &quot;coq-flocq&quot; {&gt;= &quot;3.0&quot;} ] tags: [ &quot;keyword:floating-point arithmetic&quot; &quot;keyword:interval arithmetic&quot; &quot;keyword:decision procedure&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; ] authors: [ &quot;Guillaume Melquiond &lt;guillaume.melquiond@inria.fr&gt;&quot; ] synopsis: &quot;A Coq tactic for discharging goals about floating-point arithmetic and round-off errors using the Gappa prover&quot; url { src: &quot;https://gappa.gitlabpages.inria.fr/releases/gappalib-coq-1.4.2.tar.gz&quot; checksum: &quot;sha512=60e8c9e1db5ae6d993b5b7af744bb78963ea57cff211a43f98814a1f79d05564d0f2eb6fb9fc263c34f06205f7a2a99bb988a92d1f9f6c379791225909c516e5&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-gappa.1.4.2 coq.8.7.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.7.0). The following dependencies couldn&#39;t be met: - coq-gappa -&gt; coq &gt;= 8.8.1 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-gappa.1.4.2</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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.0/gappa/1.4.2.html
HTML
mit
6,991
<?php use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\RequestContext; /** * appDevUrlMatcher * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher { /** * Constructor. */ public function __construct(RequestContext $context) { $this->context = $context; } public function match($pathinfo) { $allow = array(); $pathinfo = rawurldecode($pathinfo); if (0 === strpos($pathinfo, '/_')) { // _wdt if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',)); } if (0 === strpos($pathinfo, '/_profiler')) { // _profiler_home if (rtrim($pathinfo, '/') === '/_profiler') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', '_profiler_home'); } return array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',); } if (0 === strpos($pathinfo, '/_profiler/search')) { // _profiler_search if ($pathinfo === '/_profiler/search') { return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',); } // _profiler_search_bar if ($pathinfo === '/_profiler/search_bar') { return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',); } } // _profiler_purge if ($pathinfo === '/_profiler/purge') { return array ( '_controller' => 'web_profiler.controller.profiler:purgeAction', '_route' => '_profiler_purge',); } if (0 === strpos($pathinfo, '/_profiler/i')) { // _profiler_info if (0 === strpos($pathinfo, '/_profiler/info') && preg_match('#^/_profiler/info/(?P<about>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_info')), array ( '_controller' => 'web_profiler.controller.profiler:infoAction',)); } // _profiler_import if ($pathinfo === '/_profiler/import') { return array ( '_controller' => 'web_profiler.controller.profiler:importAction', '_route' => '_profiler_import',); } } // _profiler_export if (0 === strpos($pathinfo, '/_profiler/export') && preg_match('#^/_profiler/export/(?P<token>[^/\\.]++)\\.txt$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_export')), array ( '_controller' => 'web_profiler.controller.profiler:exportAction',)); } // _profiler_phpinfo if ($pathinfo === '/_profiler/phpinfo') { return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',); } // _profiler_search_results if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',)); } // _profiler if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',)); } // _profiler_router if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array ( '_controller' => 'web_profiler.controller.router:panelAction',)); } // _profiler_exception if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array ( '_controller' => 'web_profiler.controller.exception:showAction',)); } // _profiler_exception_css if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array ( '_controller' => 'web_profiler.controller.exception:cssAction',)); } } if (0 === strpos($pathinfo, '/_configurator')) { // _configurator_home if (rtrim($pathinfo, '/') === '/_configurator') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', '_configurator_home'); } return array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::checkAction', '_route' => '_configurator_home',); } // _configurator_step if (0 === strpos($pathinfo, '/_configurator/step') && preg_match('#^/_configurator/step/(?P<index>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_configurator_step')), array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::stepAction',)); } // _configurator_final if ($pathinfo === '/_configurator/final') { return array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::finalAction', '_route' => '_configurator_final',); } } } if (0 === strpos($pathinfo, '/Gsb')) { // sk_gsb_homepage if (0 === strpos($pathinfo, '/Gsb/hello') && preg_match('#^/Gsb/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => 'sk_gsb_homepage')), array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::indexAction',)); } // SKGsbBundle_accueil if (rtrim($pathinfo, '/') === '/Gsb') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', 'SKGsbBundle_accueil'); } return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::indexAction', '_route' => 'SKGsbBundle_accueil',); } // SKGsbBundle_entreprise if ($pathinfo === '/Gsb/entreprise') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::entrepriseAction', '_route' => 'SKGsbBundle_entreprise',); } // SKGsbBundle_gestion if ($pathinfo === '/Gsb/gestion') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::gestionAction', '_route' => 'SKGsbBundle_gestion',); } // SKGsbBundle_equipement if ($pathinfo === '/Gsb/equipement') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::equipementAction', '_route' => 'SKGsbBundle_equipement',); } // SKGsbBundle_repartition if ($pathinfo === '/Gsb/repartition') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::repartitionAction', '_route' => 'SKGsbBundle_repartition',); } // SKGsbBundle_segmentation if ($pathinfo === '/Gsb/segmentation') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::segmentationAction', '_route' => 'SKGsbBundle_segmentation',); } // SKGsbBundle_organisation if ($pathinfo === '/Gsb/organisation') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::organisationAction', '_route' => 'SKGsbBundle_organisation',); } // SKGsbBundle_activite if ($pathinfo === '/Gsb/activite') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::activiteAction', '_route' => 'SKGsbBundle_activite',); } // SKGsbBundle_visiteur if ($pathinfo === '/Gsb/visiteur') { return array ( '_controller' => 'SK\\GsbBundle\\Controller\\DefaultController::visiteurAction', '_route' => 'SKGsbBundle_visiteur',); } } if (0 === strpos($pathinfo, '/SK')) { // sk_mon_premier_homepage if (0 === strpos($pathinfo, '/SK/hello') && preg_match('#^/SK/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => 'sk_mon_premier_homepage')), array ( '_controller' => 'SK\\MonPremierBundle\\Controller\\DefaultController::indexAction',)); } // SKMonPremierBundle_accueil if (rtrim($pathinfo, '/') === '/SK') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', 'SKMonPremierBundle_accueil'); } return array ( '_controller' => 'SK\\MonPremierBundle\\Controller\\DefaultController::indexAction', '_route' => 'SKMonPremierBundle_accueil',); } } // _welcome if (rtrim($pathinfo, '/') === '') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', '_welcome'); } return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\WelcomeController::indexAction', '_route' => '_welcome',); } if (0 === strpos($pathinfo, '/demo')) { if (0 === strpos($pathinfo, '/demo/secured')) { if (0 === strpos($pathinfo, '/demo/secured/log')) { if (0 === strpos($pathinfo, '/demo/secured/login')) { // _demo_login if ($pathinfo === '/demo/secured/login') { return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::loginAction', '_route' => '_demo_login',); } // _security_check if ($pathinfo === '/demo/secured/login_check') { return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::securityCheckAction', '_route' => '_security_check',); } } // _demo_logout if ($pathinfo === '/demo/secured/logout') { return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::logoutAction', '_route' => '_demo_logout',); } } if (0 === strpos($pathinfo, '/demo/secured/hello')) { // acme_demo_secured_hello if ($pathinfo === '/demo/secured/hello') { return array ( 'name' => 'World', '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::helloAction', '_route' => 'acme_demo_secured_hello',); } // _demo_secured_hello if (preg_match('#^/demo/secured/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_demo_secured_hello')), array ( '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::helloAction',)); } // _demo_secured_hello_admin if (0 === strpos($pathinfo, '/demo/secured/hello/admin') && preg_match('#^/demo/secured/hello/admin/(?P<name>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_demo_secured_hello_admin')), array ( '_controller' => 'Acme\\DemoBundle\\Controller\\SecuredController::helloadminAction',)); } } } // _demo if (rtrim($pathinfo, '/') === '/demo') { if (substr($pathinfo, -1) !== '/') { return $this->redirect($pathinfo.'/', '_demo'); } return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\DemoController::indexAction', '_route' => '_demo',); } // _demo_hello if (0 === strpos($pathinfo, '/demo/hello') && preg_match('#^/demo/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) { return $this->mergeDefaults(array_replace($matches, array('_route' => '_demo_hello')), array ( '_controller' => 'Acme\\DemoBundle\\Controller\\DemoController::helloAction',)); } // _demo_contact if ($pathinfo === '/demo/contact') { return array ( '_controller' => 'Acme\\DemoBundle\\Controller\\DemoController::contactAction', '_route' => '_demo_contact',); } } throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException(); } }
karl62/Gsb
app/cache/dev/appDevUrlMatcher.php
PHP
mit
14,477
# [@pockebot](https://telegram.me/pockebot) Simple bot that save articles direct from your favorite messanging app to Pocket. Additional this bot has some extra features. ## How to use 1. Add [@pockebot](https://telegram.me/pockebot) to your telegram. 2. Forward any message with link to this bot. 3. Really simple? ## Feature List - You can add any tags to the last article: just send `#tag` to the bot. Or send `#tag` with the article link. - Reading timing tags like `~timing: 5-10 min`. - ... a little more ... ## Support In case of any questions join [Pockebot Support Group](https://telegram.me/pocket_bot_support_en). ## How to improve There are several options: 1. Improve this crappy code (was written not for public, but now it is hard to do it by one person). 2. Make pull request to this repo. 3. Join [Pockebot Developers Group](https://telegram.me/joinchat/ABy35EDmTxFCwbUO1rQGpw). ## If you appreciate it [![](https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5YFAVVZXRMM2C)
Fillll/pockebot
README.md
Markdown
mit
1,090
# Contributor Code of Conduct As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery * Personal attacks * Trolling or insulting/derogatory comments * Public or private harassment * Publishing other's private information, such as physical or electronic addresses, without explicit permission * Other unethical or unprofessional conduct Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at eduvimaia@gmail.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident. This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/3/0/
emaiax/exfiles
CODE_OF_CONDUCT.md
Markdown
mit
2,387
/*************************************************************************** Bellfruit system85 driver, (under heavy construction !!!) M.A.M.E Core Copyright Nicola Salmoria and the MAME Team, used under license from http://mamedev.org ****************************************************************************************** 04-2011: J Wallace: Fixed lamping code. 19-08-2005: Re-Animator Standard system85 memorymap ___________________________________________________________________________ hex |r/w| D D D D D D D D | location | | 7 6 5 4 3 2 1 0 | function -----------+---+-----------------+----------------------------------------- 0000-1FFF |R/W| D D D D D D D D | RAM (8k) battery backed up -----------+---+-----------------+----------------------------------------- 2000-21FF | W | D D D D D D D D | Reel 3 + 4 stepper latch -----------+---+-----------------+----------------------------------------- 2200-23FF | W | D D D D D D D D | Reel 1 + 2 stepper latch -----------+---+-----------------+----------------------------------------- 2400-25FF | W | D D D D D D D D | vfd + coin inhibits -----------+---+-----------------+----------------------------------------- 2600-27FF | W | D D D D D D D D | electro mechanical meters -----------+---+-----------------+----------------------------------------- 2800-28FF | W | D D D D D D D D | triacs used for payslides/hoppers -----------+---+-----------------+----------------------------------------- 2A00 |R/W| D D D D D D D D | MUX data -----------+---+-----------------+----------------------------------------- 2A01 | W | D D D D D D D D | MUX control -----------+---+-----------------+----------------------------------------- 2E00 | R | ? ? ? ? ? ? D D | IRQ status -----------+---+-----------------+----------------------------------------- 3000 | W | D D D D D D D D | AY8912 data -----------+---+-----------------+----------------------------------------- 3200 | W | D D D D D D D D | AY8912 address reg -----------+---+-----------------+----------------------------------------- 3402 |R/W| D D D D D D D D | MC6850 control reg -----------+---+-----------------+----------------------------------------- 3403 |R/W| D D D D D D D D | MC6850 data -----------+---+-----------------+----------------------------------------- 3600 | W | ? ? ? ? ? ? D D | MUX enable -----------+---+-----------------+----------------------------------------- 4000-5FFF | R | D D D D D D D D | ROM (8k) -----------+---+-----------------+----------------------------------------- 6000-7FFF | R | D D D D D D D D | ROM (8k) -----------+---+-----------------+----------------------------------------- 8000-FFFF | R | D D D D D D D D | ROM (32k) -----------+---+-----------------+----------------------------------------- TODO: - change this ***************************************************************************/ #include "emu.h" #include "cpu/m6809/m6809.h" #include "video/awpvid.h" #include "machine/6850acia.h" #include "machine/meters.h" #include "machine/roc10937.h" // vfd #include "machine/steppers.h" // stepper motor #include "sound/ay8910.h" #include "machine/nvram.h" class bfmsys85_state : public driver_device { public: bfmsys85_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } int m_mmtr_latch; int m_triac_latch; int m_vfd_latch; int m_irq_status; int m_optic_pattern; int m_locked; int m_is_timer_enabled; int m_reel_changed; int m_coin_inhibits; int m_mux_output_strobe; int m_mux_input_strobe; int m_mux_input; UINT8 m_Inputs[64]; UINT8 m_sys85_data_line_r; UINT8 m_sys85_data_line_t; }; #define VFD_RESET 0x20 #define VFD_CLOCK1 0x80 #define VFD_DATA 0x40 #define MASTER_CLOCK (XTAL_4MHz) /////////////////////////////////////////////////////////////////////////// // Serial Communications (Where does this go?) //////////////////////////// /////////////////////////////////////////////////////////////////////////// static READ_LINE_DEVICE_HANDLER( sys85_data_r ) { bfmsys85_state *state = device->machine().driver_data<bfmsys85_state>(); return state->m_sys85_data_line_r; } static WRITE_LINE_DEVICE_HANDLER( sys85_data_w ) { bfmsys85_state *drvstate = device->machine().driver_data<bfmsys85_state>(); drvstate->m_sys85_data_line_t = state; } static ACIA6850_INTERFACE( m6809_acia_if ) { 500000, 500000, DEVCB_LINE(sys85_data_r), DEVCB_LINE(sys85_data_w), DEVCB_NULL }; /////////////////////////////////////////////////////////////////////////// // called if board is reset /////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// static MACHINE_RESET( bfm_sys85 ) { bfmsys85_state *state = machine.driver_data<bfmsys85_state>(); state->m_vfd_latch = 0; state->m_mmtr_latch = 0; state->m_triac_latch = 0; state->m_irq_status = 0; state->m_is_timer_enabled = 1; state->m_coin_inhibits = 0; state->m_mux_output_strobe = 0; state->m_mux_input_strobe = 0; state->m_mux_input = 0; ROC10937_reset(0); // reset display1 // reset stepper motors /////////////////////////////////////////////////// { int pattern =0, i; for ( i = 0; i < 6; i++) { stepper_reset_position(i); if ( stepper_optic_state(i) ) pattern |= 1<<i; } state->m_optic_pattern = pattern; } state->m_locked = 0x00; // hardware is open } /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( watchdog_w ) { } /////////////////////////////////////////////////////////////////////////// static INTERRUPT_GEN( timer_irq ) { bfmsys85_state *state = device->machine().driver_data<bfmsys85_state>(); if ( state->m_is_timer_enabled ) { state->m_irq_status = 0x01 |0x02; //0xff; generic_pulse_irq_line(device, M6809_IRQ_LINE); } } /////////////////////////////////////////////////////////////////////////// static READ8_HANDLER( irqlatch_r ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); int result = state->m_irq_status | 0x02; state->m_irq_status = 0; return result; } /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( reel12_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); if ( stepper_update(0, (data>>4)&0x0f) ) state->m_reel_changed |= 0x01; if ( stepper_update(1, data&0x0f ) ) state->m_reel_changed |= 0x02; if ( stepper_optic_state(0) ) state->m_optic_pattern |= 0x01; else state->m_optic_pattern &= ~0x01; if ( stepper_optic_state(1) ) state->m_optic_pattern |= 0x02; else state->m_optic_pattern &= ~0x02; awp_draw_reel(0); awp_draw_reel(1); } /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( reel34_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); if ( stepper_update(2, (data>>4)&0x0f) ) state->m_reel_changed |= 0x04; if ( stepper_update(3, data&0x0f ) ) state->m_reel_changed |= 0x08; if ( stepper_optic_state(2) ) state->m_optic_pattern |= 0x04; else state->m_optic_pattern &= ~0x04; if ( stepper_optic_state(3) ) state->m_optic_pattern |= 0x08; else state->m_optic_pattern &= ~0x08; awp_draw_reel(2); awp_draw_reel(3); } /////////////////////////////////////////////////////////////////////////// // mechanical meters ////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( mmtr_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); int i; int changed = state->m_mmtr_latch ^ data; state->m_mmtr_latch = data; for (i=0; i<8; i++) if ( changed & (1 << i) ) MechMtr_update(i, data & (1 << i) ); if ( data ) generic_pulse_irq_line(space->machine().device("maincpu"), M6809_FIRQ_LINE); } /////////////////////////////////////////////////////////////////////////// static READ8_HANDLER( mmtr_r ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); return state->m_mmtr_latch; } /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( vfd_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); int changed = state->m_vfd_latch ^ data; state->m_vfd_latch = data; if ( changed ) { if ( changed & VFD_RESET ) { // vfd reset line changed if ( !(data & VFD_RESET) ) { // reset the vfd ROC10937_reset(0); ROC10937_reset(1); ROC10937_reset(2); } } if ( changed & VFD_CLOCK1 ) { // clock line changed if ( !(data & VFD_CLOCK1) && (data & VFD_RESET) ) { // new data clocked into vfd ////////////////////////////////////// ROC10937_shift_data(0, data & VFD_DATA ); } } ROC10937_draw_16seg(0); } } ////////////////////////////////////////////////////////////////////////////////// // input / output multiplexers /////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( mux_ctrl_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); switch ( data & 0xF0 ) { case 0x10: //logerror(" sys85 mux: left entry matrix scan %02X\n", data & 0x0F); break; case 0x20: //logerror(" sys85 mux: set scan rate %02X\n", data & 0x0F); break; case 0x40: //logerror(" sys85 mux: read strobe"); state->m_mux_input_strobe = data & 0x07; if ( state->m_mux_input_strobe == 5 ) state->m_Inputs[5] = 0xFF ^ state->m_optic_pattern; state->m_mux_input = ~state->m_Inputs[state->m_mux_input_strobe]; break; case 0x80: state->m_mux_output_strobe = data & 0x0F; break; case 0xC0: //logerror(" sys85 mux: clear all outputs\n"); break; case 0xE0: // End of interrupt break; } } static READ8_HANDLER( mux_ctrl_r ) { // software waits for bit7 to become low return 0; } static WRITE8_HANDLER( mux_data_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); int pattern = 0x01, i, off = state->m_mux_output_strobe<<4; for ( i = 0; i < 8; i++ ) { output_set_lamp_value(off, (data & pattern ? 1 : 0)); pattern <<= 1; off++; } } static READ8_HANDLER( mux_data_r ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); return state->m_mux_input; } /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( mux_enable_w ) { } /////////////////////////////////////////////////////////////////////////// // payslide triacs //////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// static WRITE8_HANDLER( triac_w ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); state->m_triac_latch = data; } /////////////////////////////////////////////////////////////////////////// static READ8_HANDLER( triac_r ) { bfmsys85_state *state = space->machine().driver_data<bfmsys85_state>(); return state->m_triac_latch; } // machine start (called only once) //////////////////////////////////////// static MACHINE_START( bfm_sys85 ) { int i; for ( i = 0; i < 4; i++ ) { stepper_config(machine, i, &starpoint_interface_48step); } ROC10937_init(0,MSC1937,1);//? awp_reel_setup(); } // memory map for bellfruit system85 board //////////////////////////////// static ADDRESS_MAP_START( memmap, AS_PROGRAM, 8 ) AM_RANGE(0x0000, 0x1fff) AM_RAM AM_SHARE("nvram") //8k RAM AM_RANGE(0x2000, 0x21FF) AM_WRITE(reel34_w) // reel 3+4 latch AM_RANGE(0x2200, 0x23FF) AM_WRITE(reel12_w) // reel 1+2 latch AM_RANGE(0x2400, 0x25FF) AM_WRITE(vfd_w) // vfd latch AM_RANGE(0x2600, 0x27FF) AM_READWRITE(mmtr_r,mmtr_w)// mechanical meter latch AM_RANGE(0x2800, 0x2800) AM_READ(triac_r) // payslide triacs AM_RANGE(0x2800, 0x29FF) AM_WRITE(triac_w) // triacs AM_RANGE(0x2A00, 0x2A00) AM_READWRITE(mux_data_r,mux_data_w)// mux AM_RANGE(0x2A01, 0x2A01) AM_READWRITE(mux_ctrl_r,mux_ctrl_w)// mux status register AM_RANGE(0x2E00, 0x2E00) AM_READ(irqlatch_r) // irq latch ( MC6850 / timer ) AM_RANGE(0x3000, 0x3000) AM_DEVWRITE("aysnd", ay8910_data_w) AM_RANGE(0x3001, 0x3001) AM_READNOP //sound latch AM_RANGE(0x3200, 0x3200) AM_DEVWRITE("aysnd", ay8910_address_w) AM_RANGE(0x3402, 0x3402) AM_DEVWRITE_MODERN("acia6850_0", acia6850_device, control_write) AM_RANGE(0x3403, 0x3403) AM_DEVWRITE_MODERN("acia6850_0", acia6850_device, data_write) AM_RANGE(0x3406, 0x3406) AM_DEVREAD_MODERN("acia6850_0", acia6850_device, status_read) AM_RANGE(0x3407, 0x3407) AM_DEVREAD_MODERN("acia6850_0", acia6850_device, data_read) AM_RANGE(0x3600, 0x3600) AM_WRITE(mux_enable_w) // mux enable AM_RANGE(0x4000, 0xffff) AM_ROM // 48K ROM AM_RANGE(0x8000, 0xFFFF) AM_WRITE(watchdog_w) // kick watchdog ADDRESS_MAP_END // machine driver for system85 board ////////////////////////////////////// static MACHINE_CONFIG_START( bfmsys85, bfmsys85_state ) MCFG_MACHINE_START(bfm_sys85) // main system85 board initialisation MCFG_MACHINE_RESET(bfm_sys85) MCFG_CPU_ADD("maincpu", M6809, MASTER_CLOCK/4) // 6809 CPU at 1 Mhz MCFG_CPU_PROGRAM_MAP(memmap) // setup read and write memorymap MCFG_CPU_PERIODIC_INT(timer_irq, 1000 ) // generate 1000 IRQ's per second MCFG_ACIA6850_ADD("acia6850_0", m6809_acia_if) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("aysnd",AY8912, MASTER_CLOCK/4) // add AY8912 soundchip MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_NVRAM_ADD_0FILL("nvram") // load/save nv RAM MCFG_DEFAULT_LAYOUT(layout_awpvid16) MACHINE_CONFIG_END // input ports for system85 board ///////////////////////////////////////// static INPUT_PORTS_START( bfmsys85 ) PORT_START("IN0") PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") PORT_BIT( 0xF0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_START("IN1") PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("10") PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("11") PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("12") PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("13") PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("14") PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME("15") PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_BUTTON7) PORT_NAME("16") PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_BUTTON8) PORT_NAME("17") //PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_SERVICE) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE //PORT_BIT( 0x02, IP_ACTIVE_HIGH,IPT_SERVICE) PORT_NAME("Bookkeeping") PORT_CODE(KEYCODE_F1) PORT_TOGGLE INPUT_PORTS_END // ROM definition ///////////////////////////////////////////////////////// ROM_START( m_supcrd ) ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD( "sc271.bin", 0x8000, 0x8000, CRC(58e9c9df) SHA1(345c5aa279327d7142edc6823aad0cfd40cbeb73)) ROM_END GAME( 1985,m_supcrd, 0, bfmsys85, bfmsys85, 0, 0, "BFM/ELAM", "Supercards (Dutch, Game Card 39-340-271?)", GAME_NOT_WORKING|GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
clobber/MAME-OS-X
mame/src/mame/drivers/bfmsys85.c
C
mit
16,024
import test from 'ava' import configureStore from 'redux-mock-store' import { mount } from 'enzyme' import { createElement } from 'react' import Home from '../../src/containers/home' const mockStore = configureStore() test('home', t => { const store = mockStore() const wrapper = mount(createElement(Home, { store })) t.is(wrapper.find('h1').text(), 'Home') })
stoeffel/react-redux-bp
tests/containers/home.test.js
JavaScript
mit
377