code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
|---|---|---|---|---|---|
using System;
namespace Nancy.Swagger.ObjectModel.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum, AllowMultiple = false, Inherited = true)]
public class SwaggerDataAttribute : Attribute { }
}
|
pinnstrat/snap-nancy-swagger
|
src/Nancy.Swagger/ObjectModel/Attributes/SwaggerDataAttribute.cs
|
C#
|
mit
| 261
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Corona Docs: Plugins > tapfortap > prepareInterstitial</title>
<meta name="revised" content="01-Jul-2013" />
<meta name="description" content="Whether you're new to Corona or want to take your app to the next level, we've got a wealth of resources for you including extensive documentation, API reference, sample code, and videos. Plugins > tapfortap > prepareInterstitial" />
<style type="text/css">
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; }
code > span.dt { color: #902000; }
code > span.dv { color: #40a070; }
code > span.bn { color: #40a070; }
code > span.fl { color: #40a070; }
code > span.ch { color: #4070a0; }
code > span.st { color: #4070a0; }
code > span.co { color: #60a0b0; font-style: italic; }
code > span.ot { color: #007020; }
code > span.al { color: #ff0000; font-weight: bold; }
code > span.fu { color: #06287e; }
code > span.er { color: #ff0000; font-weight: bold; }
</style>
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
<script src="//www.coronalabs.com/wp-content/themes/corona-labs/js/docs.js"></script>
</head>
<body>
<div class="header"></div>
<div class="title">
<span class="titleimg" onclick="window.location='http://docs.coronalabs.com/'"></span>
<div id="nav">
<ul>
<li><a href="../../api/index.html">SDK APIs</a></li>
<li><a href="../../native/index.html">Enterprise APIs</a></li>
<li><a href="../index.html">Plugins</a></li>
<li><a href="../../guide/index.html">Guides</a></li>
<li><a href="http://www.coronalabs.com/resources/tutorials/">Tutorials</a></li>
</ul>
<div id="resources-link"><a href="http://www.coronalabs.com/resources/">Corona Resources</a> ▹</div>
</div>
</div>
<div class="SearchBar">
<form action="http://www.google.com/cse" id="cse-search-box">
<input type="hidden" name="cx" value="009283852522218786394:g40gqt2m6rq" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" id="q" autocomplete="off" size="40" style="width:150px;float:left" />
<input type="submit" name="sa" value="Search" style="float:right; font-size: 13px;" />
</form>
</div>
<div id="TOC">
<ul>
<li><a href="#tapfortap.prepareinterstitial">tapfortap.prepareInterstitial()</a><ul>
<li><a href="#overview">Overview</a></li>
<li><a href="#syntax">Syntax</a></li>
<li><a href="#examples">Examples</a></li>
</ul></li>
</ul>
</div>
<div id="breadcrumb">
<a href="http://docs.coronalabs.com">Ξ</a> ▸ <a href="../index.html">Plugins</a> ▸ <a href="index.html">tapfortap</a> ▸ <a href="prepareInterstitial.html">prepareInterstitial</a>
</div>
<div class="section level1" id="tapfortap.prepareinterstitial">
<h1><a href="#TOC">tapfortap.prepareInterstitial()</a></h1>
<blockquote>
<table>
<tbody>
<tr class="odd">
<td align="left"><strong>Type</strong></td>
<td align="left"><a href="../../api/type/Function.html">function</a></td>
</tr>
<tr class="even">
<td align="left"><strong>Library</strong></td>
<td align="left"><a href="index.html">tapfortap.*</a></td>
</tr>
<tr class="odd">
<td align="left"><strong>Return value</strong></td>
<td align="left">None</td>
</tr>
<tr class="even">
<td align="left"><strong>Revision</strong></td>
<td align="left"><a href="http://coronalabs.com/links/docs/current-corona-sdk">Current Public Release (2013.2076)</a></td>
</tr>
<tr class="odd">
<td align="left"><strong>Keywords</strong></td>
<td align="left">ad, fullscreen, tapfortap</td>
</tr>
<tr class="even">
<td align="left"><strong>Sample code</strong></td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><strong>See also</strong></td>
<td align="left"><a href="showInterstitial.html">tapfortap.showInterstitial()</a>, <a href="setInterstitialListener.html">tapfortap.setInterstitialListener(function)</a>, <a href="interstitialIsReady.html">tapfortap.interstitialIsReady()</a></td>
</tr>
</tbody>
</table>
</blockquote>
<div class="section level2" id="overview">
<h2><a href="#TOC">Overview</a></h2>
<p>Prepares an interstitial ad. This can optionally be called before the first call to <a href="showInterstitial.html">tapfortap.showInterstitial()</a>. Once <a href="showInterstitial.html">tapfortap.showInterstitial()</a> has been called, it will automatically prepare the next interstitial.</p>
</div>
<div class="section level2" id="syntax">
<h2><a href="#TOC">Syntax</a></h2>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">tapfortap</span><span class="ot">.</span>prepareInterstitial<span class="ot">()</span></code></pre>
</div>
<div class="section level2" id="examples">
<h2><a href="#TOC">Examples</a></h2>
<pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">tft</span> <span class="ot">=</span> <span class="fu">require</span> <span class="st">"tapfortap"</span>
<span class="kw">tapfortap</span><span class="ot">.</span>initialize<span class="ot">(</span><span class="st">"My Tap for Tap API key"</span><span class="ot">)</span>
<span class="co">-- Prepare an interstitial for the first call to showInterstitial()</span>
<span class="kw">tapfortap</span><span class="ot">.</span>prepareInterstitial<span class="ot">()</span>
<span class="ot">...</span>
<span class="co">-- Later show an App Wall</span>
<span class="kw">tapfortap</span><span class="ot">.</span>showInterstitial<span class="ot">()</span>
<span class="ot">...</span>
<span class="co">-- At some point even later show another interstitial. We do not need to call prepareInterstitial() again as the previous call the showInterstitial() prepared the next interstitial automatically.</span>
<span class="kw">tapfortap</span><span class="ot">.</span>showInterstitial<span class="ot">()</span></code></pre>
<div id="footer">
<p style="font-size: 13px">
© 2013 Corona Labs Inc. All Rights Reserved. (Last updated: 01-Jul-2013)
</p>
<br />
<p>
<strong>Help us help you! Give us feedback on this page:</strong>
</p>
<ul>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p9w5/def/field3=plugin.tapfortap.prepareInterstitial&field4=Current+Public+Release+%282013%2E2076%29" target="_blank">Love it</a>
</li>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p9m3/def/field103=plugin.tapfortap.prepareInterstitial&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Like it, but...</a>
</li>
<li>
<a href="https://coronalabs.wufoo.com/forms/z7p8x1/def/field103=plugin.tapfortap.prepareInterstitial&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Hate it</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
|
tonytamsf/learning
|
corona/docs/plugin/tapfortap/prepareInterstitial.html
|
HTML
|
mit
| 8,656
|
\set ECHO ALL
INSERT INTO upsert_table AS u (some_key, some_val) VALUES ('b', 10)
ON CONFLICT ON CONSTRAINT upsert_table_some_key_key DO UPDATE SET some_val = excluded.some_val;
SELECT * FROM upsert_table;
|
keithf4/pg95live
|
demo/upsert7.sql
|
SQL
|
mit
| 213
|
/**
* @author Joe Adams
*/
goog.provide('CrunchJS.Systems.PathfindingSystem');
goog.require('CrunchJS.System');
goog.require('CrunchJS.Components.Path');
goog.require('goog.structs');
goog.require('goog.array');
goog.require('goog.math');
/**
* Creates a new Pathfinding System
* @constructor
* @class
*/
CrunchJS.Systems.PathfindingSystem = function() {
};
goog.inherits(CrunchJS.Systems.PathfindingSystem, CrunchJS.System);
CrunchJS.Systems.PathfindingSystem.prototype.name = 'CrunchJS.Systems.PathfindingSystem';
/**
* Called when the systme is activated. Sets the entity composition
*/
CrunchJS.Systems.PathfindingSystem.prototype.activate = function() {
goog.base(this, 'activate');
this.setEntityComposition(this.getScene().createEntityComposition().all('PathQuery'));
};
CrunchJS.Systems.PathfindingSystem.prototype.processEntity = function(frame, ent) {
var query = this.getScene().getComponent(ent, 'PathQuery'),
transform = this.getScene().getComponent(ent, 'Transform'),
occGrid = this.getScene().getComponent(query.gridId, 'OccupancyGrid'),
steps;
this.getScene().removeComponent(ent, 'PathQuery');
steps = this.astar(occGrid, query.start, query.end, false);
this.getScene().addComponent(ent, new CrunchJS.Components.Path({
steps : steps,
step : 0
}));
};
CrunchJS.Systems.PathfindingSystem.prototype.astar = function(occGrid, start, end, diagEnabled) {
var openList = [],
closedList = new goog.structs.Set(),
startTile = occGrid.coordToTile(start.x, start.y),
endTile = occGrid.findNearestUnoccupiedTile({
x : end.x,
y : end.y
}),
currentNode, neighbors, steps, success = false;
openList.push(this.createSearchNode(startTile,0,endTile));
while(openList.length != 0){
// Expand this node
currentNode = openList.pop();
// we are done here
if(currentNode.x == endTile.x && currentNode.y == endTile.y){
success = true;
break;
}
closedList.add(currentNode);
neighbors = occGrid.getNeighbors({
x : currentNode.x,
y : currentNode.y,
diag : diagEnabled
});
goog.structs.forEach(neighbors, function(neighbor) {
var notOccupied = !occGrid.isOccupied({
x : neighbor.x,
y : neighbor.y
}),
notClosed = goog.structs.every(closedList, function(node) {
return neighbor.x != node.x || neighbor.y != node.y;
});
// If neighbor is not occupied and not already exanded
if(notOccupied && notClosed){
// Create the node
var neighborNode = this.createSearchNode(neighbor, currentNode.distFromStart+1, endTile);
neighborNode.parent = currentNode;
var node = goog.array.find(openList, function(node) {
return node.x == neighborNode.x && node.y == neighborNode.y;
});
// If neighbor is on openlist, but needs updated
if(node && node.distFromStart > neighborNode.distFromStart){
node.distFromStart = neighborNode.distFromStart;
node.parent = neighborNode.parent;
node.heuristic = neighborNode.heuristic;
}
// Put it on the openlist
else
openList.push(neighborNode);
}
}, this);
goog.array.stableSort(openList, function(o1, o2) {
return o2.heuristic-o1.heuristic;
});
}
steps = this.reconstructPath(currentNode, occGrid);
// Make sure it goes to exact coord instead of center of tile
// if(success){
// steps[steps.length-1].x = end.x;
// steps[steps.length-1].y = end.y;
// }
return steps;
};
CrunchJS.Systems.PathfindingSystem.prototype.createSearchNode = function(tile, distFromStart, goalTile) {
var node = {}, distToGoal;
node.x = tile.x;
node.y = tile.y;
distToGoal = goog.math.safeFloor(Math.sqrt(Math.pow(Math.abs(goalTile.x - node.x),2) + Math.pow(Math.abs(goalTile.y - node.y), 2)));
node.heuristic = distFromStart + distToGoal;
node.distFromStart = distFromStart;
return node;
};
CrunchJS.Systems.PathfindingSystem.prototype.reconstructPath = function(node, occGrid) {
var steps = [], step;
while(node){
step = {
x : node.x,
y : node.y
}
steps.push(step);
node = node.parent;
}
steps = this.lineOfSightPath(steps.reverse(), occGrid);
for(var i = 0; i < steps.length; i++){
steps[i] = occGrid.tileToCoord(steps[i].x, steps[i].y);
}
return steps;
};
CrunchJS.Systems.PathfindingSystem.prototype.lineOfSightPath = function(steps, occGrid) {
var newSteps = [],
currentLoc = steps[0];
for(var i = 1; i < steps.length; i++){
if(!this.canSee(currentLoc.x, currentLoc.y, steps[i].x, steps[i].y, occGrid)){
currentLoc = steps[i-1];
newSteps.push(currentLoc);
i--;
}
else if(i == steps.length-1){
newSteps.push(steps[i]);
}
}
return newSteps;
};
// Algorithm : http://playtechs.blogspot.com/2007/03/raytracing-on-grid.html
CrunchJS.Systems.PathfindingSystem.prototype.canSee = function(x0, y0, x1, y1, occGrid) {
var dx = Math.abs(x1-x0),
dy = Math.abs(y1-y0),
x = x0,
y = y0,
n = 1 + dx + dy,
x_inc = (x1>x0) ? 1 : -1,
y_inc = (y1>y0) ? 1 : -1,
error = dx-dy;
dx *= 2;
dy *= 2;
var startN = n;
while(n>0){
if(occGrid.isOccupied({
x : x,
y : y
})){
return false;
}
if(error>0){
x += x_inc;
error -= dy;
}
else if(error == 0){
if(occGrid.isOccupied({
x : x,
y : y+y_inc
}) || occGrid.isOccupied({
x : x+x_inc,
y : y
})){
return false;
}
x += x_inc;
error -= dy;
}
else{
y += y_inc;
error += dx;
}
n--;
}
return true;
};
|
jadmz/CrunchJS
|
app/js/engine/systems/PathfindingSystem.js
|
JavaScript
|
mit
| 5,422
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>atbr: 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.10.0 / atbr - 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>
atbr
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-31 19:49:08 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-31 19:49:08 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.10.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: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/coq-community/atbr"
dev-repo: "git+https://github.com/coq-community/atbr.git"
bug-reports: "https://github.com/coq-community/atbr/issues"
license: "LGPL-3.0-or-later"
synopsis: "A Coq tactic for deciding Kleene algebras"
description: """
This library provides algebraic tools for working with binary relations.
The main tactic provided is a reflexive tactic for solving (in)equations
in an arbitrary Kleene algebra. The decision procedure goes through
standard finite automata constructions.
Note that the initial authors consider this library to be superseded
by the Relation Algebra library, which is based on derivatives
rather than automata: https://github.com/damien-pous/relation-algebra
"""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"category:Miscellaneous/Coq Extensions"
"category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures"
"keyword:Kleene algebra"
"keyword:finite automata"
"keyword:semiring"
"keyword:matrices"
"keyword:decision procedure"
"keyword:reflexive tactic"
"logpath:ATBR"
"date:2019-05-22"
]
authors: [
"Thomas Braibant"
"Damien Pous"
]
url {
src: "https://github.com/coq-community/atbr/archive/v8.9.0.tar.gz"
checksum: "sha256=ff1172623317ed67e9b058b7edec44df350de9a2858a3baadfb1685d411decbf"
}
</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-atbr.8.9.0 coq.8.10.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.10.0).
The following dependencies couldn't be met:
- coq-atbr -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-atbr.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.09.1-2.0.6/released/8.10.0/atbr/8.9.0.html
|
HTML
|
mit
| 7,378
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-safechecker: 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.1 / metacoq-safechecker - 1.0~alpha1+8.9</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-safechecker
<small>
1.0~alpha1+8.9
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-10 01:39:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-10 01:39:32 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.13.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.13.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.13.1 Official release 4.13.1
ocaml-config 2 OCaml Switch Configuration
ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled
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: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.8"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
"Simon Boulier <simon.boulier@inria.fr>"
"Cyril Cohen <cyril.cohen@inria.fr>"
"Yannick Forster <forster@ps.uni-saarland.de>"
"Fabian Kunze <fkunze@fakusb.de>"
"Gregory Malecha <gmalecha@gmail.com>"
"Matthieu Sozeau <matthieu.sozeau@inria.fr>"
"Nicolas Tabareau <nicolas.tabareau@inria.fr>"
"Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j%{jobs}%" "-C" "safechecker"]
]
install: [
[make "-C" "safechecker" "install"]
]
depends: [
"ocaml" {> "4.02.3"}
"coq" {>= "8.9" & < "8.10~"}
"coq-metacoq-template" {= version}
"coq-metacoq-checker" {= version}
"coq-metacoq-pcuic" {= version}
]
synopsis: "Implementation and verification of safe conversion and typechecking algorithms for Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
The SafeChecker modules provides a correct implementation of
weak-head reduction, conversion and typechecking of Coq definitions and global environments.
"""
url {
src: "https://github.com/MetaCoq/metacoq/archive/1.0-alpha+8.9.tar.gz"
checksum: "sha256=899ef4ee73b1684a0f1d2e37ab9ab0f9b24424f6d8a10a10efd474c0ed93488e"
}</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-safechecker.1.0~alpha1+8.9 coq.8.13.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.13.1).
The following dependencies couldn't be met:
- coq-metacoq-safechecker -> coq < 8.10~ -> ocaml < 4.10
base of this switch (use `--unlock-base' 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-metacoq-safechecker.1.0~alpha1+8.9</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.13.1-2.0.10/released/8.13.1/metacoq-safechecker/1.0~alpha1+8.9.html
|
HTML
|
mit
| 7,919
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: 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.0 / paramcoq - 1.1.3+coq8.14</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
paramcoq
<small>
1.1.3+coq8.14
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-30 22:40:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-30 22:40: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
conf-findutils 1 Virtual package relying on findutils
conf-gmp 4 Virtual package relying on a GMP lib system installation
coq 8.13.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
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: "2.0"
maintainer: "Pierre Roux <pierre.roux@onera.fr>"
homepage: "https://github.com/coq-community/paramcoq"
dev-repo: "git+https://github.com/coq-community/paramcoq.git"
bug-reports: "https://github.com/coq-community/paramcoq/issues"
license: "MIT"
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"coq" {>= "8.14" & < "8.15~"}
]
tags: [
"keyword:paramcoq"
"keyword:parametricity"
"keyword:OCaml modules"
"category:Miscellaneous/Coq Extensions"
"logpath:Param"
"date:2021-09-24"
]
authors: [
"Chantal Keller (Inria, École polytechnique)"
"Marc Lasson (ÉNS de Lyon)"
"Abhishek Anand"
"Pierre Roux"
"Emilio Jesús Gallego Arias"
"Cyril Cohen"
"Matthieu Sozeau"
]
synopsis: "Plugin for generating parametricity statements to perform refinement proofs"
description: """
A Coq plugin providing commands for generating parametricity statements.
Typical applications of such statements are in data refinement proofs.
Note that the plugin is still in an experimental state - it is not very user
friendly (lack of good error messages) and still contains bugs. But it
is usable enough to "translate" a large chunk of the standard library."""
url {
src: "https://github.com/coq-community/paramcoq/archive/v1.1.3+coq8.14.tar.gz"
checksum: "sha512=bcf73041cbbac2b85c31ddfcec04882eb18a0a481981b52a3f727f8d1abb31815ba6b3815bbdec63fcf1f14e25fbf958e39acca043e3a00a1967a814becb6101"
}
</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-paramcoq.1.1.3+coq8.14 coq.8.13.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.13.0).
The following dependencies couldn't be met:
- coq-paramcoq -> coq >= 8.14
Your request can'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-paramcoq.1.1.3+coq8.14</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.05.0-2.0.1/released/8.13.0/paramcoq/1.1.3+coq8.14.html
|
HTML
|
mit
| 7,628
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<p>Count numbers:
<output id="result"></output>
</p>
<button onclick="startWorker()">Start Worker</button>
<button onclick="stopWorker()">Stop Worker</button>
<script>
var w;
function startWorker() {
if (typeof(Worker) !== "undefined") {
if (typeof(w) == "undefined") {
w = new Worker("./index.js");
}
w.onmessage = function(event) {
document.getElementById("result").innerHTML = event.data;
}
}
else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Workers...";
}
}
function stopWorker() {
w.terminate();
}
</script>
</body>
</html>
|
HadeAs/blog
|
demos/web-worker/webworker.html
|
HTML
|
mit
| 835
|
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca -->
<head>
<!-- Title begins / Début du titre -->
<title>
CanSupply.com -
Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada
</title>
<!-- Title ends / Fin du titre -->
<!-- Meta-data begins / Début des métadonnées -->
<meta charset="utf-8" />
<meta name="dcterms.language" title="ISO639-2" content="eng" />
<meta name="dcterms.title" content="" />
<meta name="description" content="" />
<meta name="dcterms.description" content="" />
<meta name="dcterms.type" content="report, data set" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.issued" title="W3CDTF" content="" />
<meta name="dcterms.modified" title="W3CDTF" content="" />
<meta name="keywords" content="" />
<meta name="dcterms.creator" content="" />
<meta name="author" content="" />
<meta name="dcterms.created" title="W3CDTF" content="" />
<meta name="dcterms.publisher" content="" />
<meta name="dcterms.audience" title="icaudience" content="" />
<meta name="dcterms.spatial" title="ISO3166-1" content="" />
<meta name="dcterms.spatial" title="gcgeonames" content="" />
<meta name="dcterms.format" content="HTML" />
<meta name="dcterms.identifier" title="ICsiteProduct" content="536" />
<!-- EPI-11240 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- MCG-202 -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- EPI-11567 -->
<meta name = "format-detection" content = "telephone=no">
<!-- EPI-12603 -->
<meta name="robots" content="noarchive">
<!-- EPI-11190 - Webtrends -->
<script>
var startTime = new Date();
startTime = startTime.getTime();
</script>
<!--[if gte IE 9 | !IE ]><!-->
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css">
<!--<![endif]-->
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css">
<!--[if lt IE 9]>
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<![endif]-->
<noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript>
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<script>dataLayer1 = [];</script>
<!-- End Google Tag Manager -->
<!-- EPI-11235 -->
<link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" />
</head>
<body class="home" vocab="http://schema.org/" typeof="WebPage">
<!-- EPIC HEADER BEGIN -->
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script>
<!-- End Google Tag Manager -->
<!-- EPI-12801 -->
<span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span>
<ul id="wb-tphp">
<li class="wb-slc">
<a class="wb-sl" href="#wb-cont">Skip to main content</a>
</li>
<li class="wb-slc visible-sm visible-md visible-lg">
<a class="wb-sl" href="#wb-info">Skip to "About this site"</a>
</li>
</ul>
<header role="banner">
<div id="wb-bnr" class="container">
<section id="wb-lng" class="visible-md visible-lg text-right">
<h2 class="wb-inv">Language selection</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline mrgn-bttm-0">
<li><a href="nvgt.do?V_TOKEN=1492273257597&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=8560&V_SEARCH.docsStart=8559&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn/rgstr.sec?_flId?_flxKy=e1s1&estblmntNo=234567041301&profileId=61&_evId=bck&lang=eng&V_SEARCH.showStricts=false&prtl=1&_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Search and menus</h2>
<ul class="list-inline text-right chvrn">
<li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<!-- Site Search Removed -->
</div>
</div>
<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement">
<h2 class="wb-inv">Topics menu</h2>
<div class="container nvbar">
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li>
<li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li>
<li><a href="https://travel.gc.ca/">Travel</a></li>
<li><a href="https://www.canada.ca/en/services/business.html">Business</a></li>
<li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li>
<li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li>
<li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li>
<li><a href="https://www.canada.ca/en/services.html">More services</a></li>
</ul>
</div>
</div>
</nav>
<!-- EPIC BODY BEGIN -->
<nav role="navigation" id="wb-bc" class="" property="breadcrumb">
<h2 class="wb-inv">You are here:</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li>
<li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li>
<li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li>
</ol>
</div>
</div>
</nav>
</header>
<main id="wb-cont" role="main" property="mainContentOfPage" class="container">
<!-- End Header -->
<!-- Begin Body -->
<!-- Begin Body Title -->
<!-- End Body Title -->
<!-- Begin Body Head -->
<!-- End Body Head -->
<!-- Begin Body Content -->
<br>
<!-- Complete Profile -->
<!-- Company Information above tabbed area-->
<input id="showMore" type="hidden" value='more'/>
<input id="showLess" type="hidden" value='less'/>
<h1 id="wb-cont">
Company profile - Canadian Company Capabilities
</h1>
<div class="profileInfo hidden-print">
<ul class="list-inline">
<li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&rstBtn.x=" class="btn btn-link">New Search</a> |</li>
<li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do">
<input type="hidden" name="lang" value="eng" />
<input type="hidden" name="profileId" value="" />
<input type="hidden" name="prtl" value="1" />
<input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" />
<input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" />
<input type="hidden" name="V_SEARCH.depth" value="1" />
<input type="hidden" name="V_SEARCH.showStricts" value="false" />
<input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" />
</form></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=8558&V_DOCUMENT.docRank=8559&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492273273964&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567161207&profileId=&key.newSearchLabel=">Previous Company</a></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=8560&V_DOCUMENT.docRank=8561&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492273273964&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567011804&profileId=&key.newSearchLabel=">Next Company</a></li>
</ul>
</div>
<details>
<summary>Third-Party Information Liability Disclaimer</summary>
<p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p>
</details>
<h2>
CanSupply.com
</h2>
<div class="row">
<div class="col-md-5">
<h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2>
<p>CanSupply.com</p>
<div class="mrgn-tp-md"></div>
<p class="mrgn-bttm-0" ><a href="http://www.cansupply.com"
target="_blank" title="Website URL">http://www.cansupply.com</a></p>
<p><a href="mailto:sales@cansupply.com" title="sales@cansupply.com">sales@cansupply.com</a></p>
</div>
<div class="col-md-4 mrgn-sm-sm">
<h2 class="h5 mrgn-bttm-0">Mailing Address:</h2>
<address class="mrgn-bttm-md">
P.O. Box 146<br/>
SAINT JOHN,
New Brunswick<br/>
E2L 3X8
<br/>
</address>
<h2 class="h5 mrgn-bttm-0">Location Address:</h2>
<address class="mrgn-bttm-md">
56 Canterbury St<br/>
SAINT JOHN,
New Brunswick<br/>
E2L 2C5
<br/>
</address>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(506) 634-7282
</p>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(888) 617-6888</p>
<p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>:
(506) 633-4961</p>
</div>
<div class="col-md-3 mrgn-tp-md">
</div>
</div>
<div class="row mrgn-tp-md mrgn-bttm-md">
<div class="col-md-12">
</div>
</div>
<!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> -->
<div class="wb-tabs ignore-session">
<div class="tabpanels">
<details id="details-panel1">
<summary>
Full profile
</summary>
<!-- Tab 1 -->
<h2 class="wb-invisible">
Full profile
</h2>
<!-- Contact Information -->
<h3 class="page-header">
Contact information
</h3>
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Brad
Mitchell
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(506) 634-7282
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(506) 633-4961
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
brad.mitchell@cansupply.com
</div>
</div>
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Elizabeth
Tuff
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Representative
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(506) 384-3384
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(506) 855-4593
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
elizabeth.tuff@cansupply.com
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Company Description -->
<h3 class="page-header">
Company description
</h3>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
No
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
417310 - Computer, Computer Peripheral and Pre-Packaged Software Wholesaler-Distributors
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Trading House / Wholesaler / Agent and Distributor
</div>
</div>
</section>
<!-- Products / Services / Licensing -->
<h3 class="page-header">
Product / Service / Licensing
</h3>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
Office Computer Supplies <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
computer supplies
<br>
<br>
<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
FSC Code:
</strong>
</div>
<div class="col-md-9">
6730-Photographic Projection Equipment
<br>
6850-Miscellaneous Chemicals Specialties Toner, Electronic Process
<br>
7110-Office Furniture
<br>
7125-Cabinets, Lockers, Bins,and Shelving
<br>
7510-Office Supplies
<br>
7520-Office Devices and Accessories
<br>
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Technology Profile -->
<!-- Market Profile -->
<!-- Sector Information -->
<details class="mrgn-tp-md mrgn-bttm-md">
<summary>
Third-Party Information Liability Disclaimer
</summary>
<p>
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
</p>
</details>
</details>
<details id="details-panel2">
<summary>
Contacts
</summary>
<h2 class="wb-invisible">
Contact information
</h2>
<!-- Contact Information -->
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Brad
Mitchell
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(506) 634-7282
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(506) 633-4961
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
brad.mitchell@cansupply.com
</div>
</div>
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Elizabeth
Tuff
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Representative
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(506) 384-3384
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(506) 855-4593
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
elizabeth.tuff@cansupply.com
</div>
</div>
</section>
</details>
<details id="details-panel3">
<summary>
Description
</summary>
<h2 class="wb-invisible">
Company description
</h2>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
No
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
417310 - Computer, Computer Peripheral and Pre-Packaged Software Wholesaler-Distributors
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Trading House / Wholesaler / Agent and Distributor
</div>
</div>
</section>
</details>
<details id="details-panel4">
<summary>
Products, services and licensing
</summary>
<h2 class="wb-invisible">
Product / Service / Licensing
</h2>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
Office Computer Supplies <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
computer supplies
<br>
<br>
<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
FSC Code:
</strong>
</div>
<div class="col-md-9">
6730-Photographic Projection Equipment
<br>
6850-Miscellaneous Chemicals Specialties Toner, Electronic Process
<br>
7110-Office Furniture
<br>
7125-Cabinets, Lockers, Bins,and Shelving
<br>
7510-Office Supplies
<br>
7520-Office Devices and Accessories
<br>
</div>
</div>
</section>
</details>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
Last Update Date 2017-03-23
</div>
</div>
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
<!-- End Body Content -->
<!-- Begin Body Foot -->
<!-- End Body Foot -->
<!-- END MAIN TABLE -->
<!-- End body -->
<!-- Begin footer -->
<div class="row pagedetails">
<div class="col-sm-5 col-xs-12 datemod">
<dl id="wb-dtmd">
<dt class=" hidden-print">Date Modified:</dt>
<dd class=" hidden-print">
<span><time>2017-03-02</time></span>
</dd>
</dl>
</div>
<div class="clear visible-xs"></div>
<div class="col-sm-4 col-xs-6">
</div>
<div class="col-sm-3 col-xs-6 text-right">
</div>
<div class="clear visible-xs"></div>
</div>
</main>
<footer role="contentinfo" id="wb-info">
<nav role="navigation" class="container wb-navcurr">
<h2 class="wb-inv">About government</h2>
<!-- EPIC FOOTER BEGIN -->
<!-- EPI-11638 Contact us -->
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&from=Industries">Contact us</a></li>
<li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li>
<li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li>
<li><a href="https://www.canada.ca/en/news.html">News</a></li>
<li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li>
<li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li>
<li><a href="http://pm.gc.ca/eng">Prime Minister</a></li>
<li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li>
<li><a href="http://open.canada.ca/en/">Open government</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">About this site</h2>
<ul>
<li><a href="https://www.canada.ca/en/social.html">Social media</a></li>
<li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li>
<li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object>
</div>
</div>
</div>
</div>
</footer>
<!--[if gte IE 9 | !IE ]><!-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script>
<![endif]-->
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script>
<!-- EPI-10519 -->
<span class="wb-sessto"
data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span>
<script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script>
<!-- EPI-11190 - Webtrends -->
<script src="/eic/home.nsf/js/webtrends.js"></script>
<script>var endTime = new Date();</script>
<noscript>
<div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.ic.gc.ca"/></div>
</noscript>
<!-- /Webtrends -->
<!-- JS deps -->
<script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script>
<!-- EPI-11262 - Util JS -->
<script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script>
<!-- EPI-11383 -->
<script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script>
<span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span>
</body></html>
<!-- End Footer -->
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
|
GoC-Spending/data-corporations
|
html/234567017771.html
|
HTML
|
mit
| 39,131
|
using System;
using System.Windows.Forms;
namespace DocumentExplorerExample
{
/// <summary>
/// Provides full information about application exception.
/// </summary>
public class ExceptionDialog : Form
{
#region Windows Form Designer generated code
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Button buttonOk;
private System.Windows.Forms.TextBox text1;
private void InitializeComponent() {
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ExceptionDialog));
this.text1 = new System.Windows.Forms.TextBox();
this.buttonOk = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// text1
//
this.text1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.text1.AutoSize = false;
this.text1.Location = new System.Drawing.Point(8, 8);
this.text1.Multiline = true;
this.text1.Name = "text1";
this.text1.ReadOnly = true;
this.text1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.text1.Size = new System.Drawing.Size(524, 244);
this.text1.TabIndex = 0;
this.text1.Text = "";
this.text1.WordWrap = false;
//
// buttonOk
//
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.buttonOk.Location = new System.Drawing.Point(432, 260);
this.buttonOk.Name = "buttonOk";
this.buttonOk.Size = new System.Drawing.Size(100, 24);
this.buttonOk.TabIndex = 12;
this.buttonOk.Text = "Continue";
//
// ExceptionDialog
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(540, 288);
this.Controls.Add(this.buttonOk);
this.Controls.Add(this.text1);
this.DockPadding.All = 8;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ExceptionDialog";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Unexpected error occured";
this.ResumeLayout(false);
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
public ExceptionDialog()
{
InitializeComponent();
}
public ExceptionDialog(Exception ex)
{
InitializeComponent();
Text = "Document Explorer - unexpected error occured";
text1.Text = "\r\n" + Application.ProductName + ".exe \r\n\r\n" +
"Version " + Application.ProductVersion + "\r\n\r\n" +
DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString() + "\r\n\r\n" +
ex.ToString() + "\r\n";
text1.SelectionStart = text1.Text.Length;
}
}
}
|
assadvirgo/Aspose_Words_NET
|
Examples/CSharp/Viewers-Visualizers/Document-Explorer/ExceptionDialog.cs
|
C#
|
mit
| 3,308
|
#region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// 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.
// </copyright>
//-----------------------------------------------------------------------
#endregion
using System;
using System.Linq.Expressions;
using WootzJs.Testing;
namespace WootzJs.Compiler.Tests.Linq.Expressions
{
public class MethodCallExpressionTests : TestFixture
{
[Test]
public void CallZeroParameterStaticMethod()
{
Expression<Action> lambda = () => ClassWithMethods.ZeroParameterStaticMethod();
var methodCallExpression = (MethodCallExpression)lambda.Body;
AssertEquals(methodCallExpression.Method.Name, "ZeroParameterStaticMethod");
}
[Test]
public void CallOneParameterStaticMethod()
{
Expression<Action> lambda = () => ClassWithMethods.OneParameterStaticMethod("foo");
var methodCallExpression = (MethodCallExpression)lambda.Body;
AssertEquals(methodCallExpression.Method.Name, "OneParameterStaticMethod");
var argument = (ConstantExpression)methodCallExpression.Arguments[0];
AssertEquals(argument.Value, "foo");
}
[Test]
public void CallZeroParameterInstanceMethod()
{
var instance = new ClassWithMethods();
Expression<Action> lambda = () => instance.ZeroParameterInstanceMethod();
var methodCallExpression = (MethodCallExpression)lambda.Body;
AssertEquals(methodCallExpression.Method.Name, "ZeroParameterInstanceMethod");
var target = (ConstantExpression)methodCallExpression.Object;
AssertEquals(target.Value, instance);
}
/*
[Test]
public void ArrayIndexMultiDimensional()
{
var array = new[,] { { 1, 2 }, { 3, 4 } };
Expression<Func<int>> lambda = () => array[5, 6];
var callExpression = (MethodCallExpression)lambda.Body;
var target = (ConstantExpression)callExpression.Object;
QUnit.AreEqual(target.Value, array);
var index1 = (ConstantExpression)callExpression.Arguments[0];
var index2 = (ConstantExpression)callExpression.Arguments[1];
QUnit.AreEqual(index1.Value, 5);
QUnit.AreEqual(index2.Value, 6);
QUnit.AreEqual(callExpression.Method.Name, "Get");
}
*/
public class ClassWithMethods
{
public static void ZeroParameterStaticMethod()
{
}
public static void OneParameterStaticMethod(string parameter)
{
}
public void ZeroParameterInstanceMethod()
{
}
}
}
}
|
x335/WootzJs
|
WootzJs.Compiler.Tests/Linq/Expressions/MethodCallExpressionTests.cs
|
C#
|
mit
| 3,963
|
#define PROTOTYPE
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using ProBuilder2.Common;
using ProBuilder2.MeshOperations;
namespace ProBuilder2.Examples
{
[RequireComponent(typeof(AudioSource))]
public class IcoBumpin : MonoBehaviour
{
pb_Object ico; // A reference to the icosphere pb_Object component
Mesh icoMesh; // A reference to the icosphere mesh (cached because we access the vertex array every frame)
Transform icoTransform; // A reference to the icosphere transform component. Cached because I can't remember if GameObject.transform is still a performance drain :|
AudioSource audioSource;// Cached reference to the audiosource.
/**
* Holds a pb_Face, the normal of that face, and the index of every vertex that touches it (sharedIndices).
*/
struct FaceRef
{
public pb_Face face;
public Vector3 nrm; // face normal
public int[] indices; // all vertex indices (including shared connected vertices)
public FaceRef(pb_Face f, Vector3 n, int[] i)
{
face = f;
nrm = n;
indices = i;
}
}
// All faces that have been extruded
FaceRef[] outsides;
// Keep a copy of the original vertex array to calculate the distance from origin.
Vector3[] original_vertices, displaced_vertices;
// The radius of the mesh icosphere on instantiation.
[Range(1f, 10f)]
public float icoRadius = 2f;
// The number of subdivisions to give the icosphere.
[Range(0, 3)]
public int icoSubdivisions = 2;
// How far along the normal should each face be extruded when at idle (no audio input).
[Range(0f, 1f)]
public float startingExtrusion = .1f;
// The material to apply to the icosphere.
public Material material;
// The max distance a frequency range will extrude a face.
[Range(1f, 50f)]
public float extrusion = 30f;
// An FFT returns a spectrum including frequencies that are out of human hearing range -
// this restricts the number of bins used from the spectrum to the lower @fftBounds.
[Range(8, 128)]
public int fftBounds = 32;
// How high the icosphere transform will bounce (sample volume determines height).
[Range(0f, 10f)]
public float verticalBounce = 4f;
// Optionally weights the frequency amplitude when calculating extrude distance.
public AnimationCurve frequencyCurve;
// A reference to the line renderer that will be used to render the raw waveform.
public LineRenderer waveform;
// The y size of the waveform.
public float waveformHeight = 2f;
// How far from the icosphere should the waveform be.
public float waveformRadius = 20f;
// If @rotateWaveformRing is true, this is the speed it will travel.
public float waveformSpeed = .1f;
// If true, the waveform ring will randomly orbit the icosphere.
public bool rotateWaveformRing = false;
// If true, the waveform will bounce up and down with the icosphere.
public bool bounceWaveform = false;
public GameObject missingClipWarning;
// Icosphere's starting position.
Vector3 icoPosition = Vector3.zero;
float faces_length;
const float TWOPI = 6.283185f; // 2 * PI
const int WAVEFORM_SAMPLES = 1024; // How many samples make up the waveform ring.
const int FFT_SAMPLES = 4096; // How many samples are used in the FFT. More means higher resolution.
// Keep copy of the last frame's sample data to average with the current when calculating
// deformation amounts. Smoothes the visual effect.
float[] fft = new float[FFT_SAMPLES],
fft_history = new float[FFT_SAMPLES],
data = new float[WAVEFORM_SAMPLES],
data_history = new float[WAVEFORM_SAMPLES];
// Root mean square of raw data (volume, but not in dB).
float rms = 0f, rms_history = 0f;
/**
* Creates the icosphere, and loads all the cache information.
*/
void Start()
{
audioSource = GetComponent<AudioSource>();
if( audioSource.clip == null )
missingClipWarning.SetActive(true);
// Create a new icosphere.
ico = pb_ShapeGenerator.IcosahedronGenerator(icoRadius, icoSubdivisions);
// Shell is all the faces on the new icosphere.
pb_Face[] shell = ico.faces;
// Materials are set per-face on pb_Object meshes. pb_Objects will automatically
// condense the mesh to the smallest set of subMeshes possible based on materials.
#if !PROTOTYPE
foreach(pb_Face f in shell)
f.SetMaterial( material );
#else
ico.gameObject.GetComponent<MeshRenderer>().sharedMaterial = material;
#endif
pb_Face[] connectingFaces;
// Extrude all faces on the icosphere by a small amount. The third boolean parameter
// specifies that extrusion should treat each face as an individual, not try to group
// all faces together.
ico.Extrude(shell, startingExtrusion, false, out connectingFaces);
// ToMesh builds the mesh positions, submesh, and triangle arrays. Call after adding
// or deleting vertices, or changing face properties.
ico.ToMesh();
// Refresh builds the normals, tangents, and UVs.
ico.Refresh();
outsides = new FaceRef[shell.Length];
Dictionary<int, int> lookup = ico.sharedIndices.ToDictionary();
// Populate the outsides[] cache. This is a reference to the tops of each extruded column, including
// copies of the sharedIndices.
for(int i = 0; i < shell.Length; ++i)
outsides[i] = new FaceRef( shell[i],
pb_Math.Normal(ico, shell[i]),
ico.sharedIndices.AllIndicesWithValues(lookup, shell[i].distinctIndices).ToArray()
);
// Store copy of positions array un-modified
original_vertices = new Vector3[ico.vertices.Length];
System.Array.Copy(ico.vertices, original_vertices, ico.vertices.Length);
// displaced_vertices should mirror icosphere mesh vertices.
displaced_vertices = ico.vertices;
icoMesh = ico.msh;
icoTransform = ico.transform;
faces_length = (float)outsides.Length;
// Build the waveform ring.
icoPosition = icoTransform.position;
waveform.SetVertexCount(WAVEFORM_SAMPLES);
if( bounceWaveform )
waveform.transform.parent = icoTransform;
audioSource.Play();
}
void Update()
{
// fetch the fft spectrum
audioSource.GetSpectrumData(fft, 0, FFTWindow.BlackmanHarris);
// get raw data for waveform
audioSource.GetOutputData(data, 0);
// calculate root mean square (volume)
rms = RMS(data);
/**
* For each face, translate the vertices some distance depending on the frequency range assigned.
* Not using the TranslateVertices() pb_Object extension method because as a convenience, that method
* gathers the sharedIndices per-face on every call, which while not tremondously expensive in most
* contexts, is far too slow for use when dealing with audio, and especially so when the mesh is
* somewhat large.
*/
for(int i = 0; i < outsides.Length; i++)
{
float normalizedIndex = (i/faces_length);
int n = (int)(normalizedIndex*fftBounds);
Vector3 displacement = outsides[i].nrm * ( ((fft[n]+fft_history[n]) * .5f) * (frequencyCurve.Evaluate(normalizedIndex) * .5f + .5f)) * extrusion;
foreach(int t in outsides[i].indices)
{
displaced_vertices[t] = original_vertices[t] + displacement;
}
}
Vector3 vec = Vector3.zero;
// Waveform ring
for(int i = 0; i < WAVEFORM_SAMPLES; i++)
{
int n = i < WAVEFORM_SAMPLES-1 ? i : 0;
vec.x = Mathf.Cos((float)n/WAVEFORM_SAMPLES * TWOPI) * (waveformRadius + (((data[n] + data_history[n]) * .5f) * waveformHeight));
vec.z = Mathf.Sin((float)n/WAVEFORM_SAMPLES * TWOPI) * (waveformRadius + (((data[n] + data_history[n]) * .5f) * waveformHeight));
vec.y = 0f;
waveform.SetPosition(i, vec);
}
// Ring rotation
if( rotateWaveformRing )
{
Vector3 rot = waveform.transform.localRotation.eulerAngles;
rot.x = Mathf.PerlinNoise(Time.time * waveformSpeed, 0f) * 360f;
rot.y = Mathf.PerlinNoise(0f, Time.time * waveformSpeed) * 360f;
waveform.transform.localRotation = Quaternion.Euler(rot);
}
icoPosition.y = -verticalBounce + ((rms + rms_history) * verticalBounce);
icoTransform.position = icoPosition;
// Keep copy of last FFT samples so we can average with the current. Smoothes the movement.
System.Array.Copy(fft, fft_history, FFT_SAMPLES);
System.Array.Copy(data, data_history, WAVEFORM_SAMPLES);
rms_history = rms;
icoMesh.vertices = displaced_vertices;
}
/**
* Root mean square is a good approximation of perceived loudness.
*/
float RMS(float[] arr)
{
float v = 0f,
len = (float)arr.Length;
for(int i = 0; i < len; i++)
v += Mathf.Abs(arr[i]);
return Mathf.Sqrt(v / (float)len);
}
}
}
|
hakur/shooter
|
Assets/ProCore/ProBuilder/API Examples/Icosphere FFT/Scripts/IcoBumpin.cs
|
C#
|
mit
| 8,702
|
require 'rails_helper'
RSpec.describe OnlineApplicationPolicy, type: :policy do
subject(:policy) { described_class.new(user, online_application) }
let(:online_application) { build_stubbed(:online_application) }
context 'for staff' do
let(:user) { build_stubbed(:staff) }
it { is_expected.to permit_action(:edit) }
it { is_expected.to permit_action(:update) }
it { is_expected.to permit_action(:show) }
it { is_expected.to permit_action(:complete) }
it { is_expected.to permit_action(:approve) }
it { is_expected.to permit_action(:approve_save) }
end
context 'for manager' do
let(:user) { build_stubbed(:manager) }
it { is_expected.to permit_action(:edit) }
it { is_expected.to permit_action(:update) }
it { is_expected.to permit_action(:show) }
it { is_expected.to permit_action(:complete) }
it { is_expected.to permit_action(:approve) }
it { is_expected.to permit_action(:approve_save) }
end
context 'for admin' do
let(:user) { build_stubbed(:admin) }
it { is_expected.not_to permit_action(:edit) }
it { is_expected.not_to permit_action(:update) }
it { is_expected.not_to permit_action(:show) }
it { is_expected.not_to permit_action(:complete) }
end
end
|
ministryofjustice/fr-staffapp
|
spec/policies/online_application_policy_spec.rb
|
Ruby
|
mit
| 1,255
|
require "active_record"
require "active_record/mass_assignment_security/associations"
require "active_record/mass_assignment_security/attribute_assignment"
require "active_record/mass_assignment_security/core"
require "active_record/mass_assignment_security/nested_attributes"
require "active_record/mass_assignment_security/persistence"
require "active_record/mass_assignment_security/reflection"
require "active_record/mass_assignment_security/relation"
require "active_record/mass_assignment_security/validations"
require "active_record/mass_assignment_security/associations"
require "active_record/mass_assignment_security/inheritance"
class ActiveRecord::Base
include ActiveRecord::MassAssignmentSecurity::Core
include ActiveRecord::MassAssignmentSecurity::AttributeAssignment
include ActiveRecord::MassAssignmentSecurity::Persistence
include ActiveRecord::MassAssignmentSecurity::Validations
include ActiveRecord::MassAssignmentSecurity::NestedAttributes
include ActiveRecord::MassAssignmentSecurity::Inheritance
end
class ActiveRecord::SchemaMigration < ActiveRecord::Base
attr_accessible :version
end
|
rails/protected_attributes
|
lib/active_record/mass_assignment_security.rb
|
Ruby
|
mit
| 1,126
|
/**
* Created by james on 3/11/15.
*/
var crypto = Npm.require('crypto');
IntercomHash = function(user, secret) {
var secret = new Buffer(secret, 'utf8')
return crypto.createHmac('sha256', secret)
.update(user._id).digest('hex');
}
|
jamesoy/Microscope
|
packages/intercom/intercom_server.js
|
JavaScript
|
mit
| 251
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-ssreflect: 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.1 / mathcomp-ssreflect - 1.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-ssreflect
<small>
1.7.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-04-16 14:57:06 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-16 14:57:06 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.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-ssreflect"
version: "1.7.0"
maintainer: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
synopsis: "The Mathematical Components library"
homepage: "https://math-comp.github.io/math-comp/"
bug-reports: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CeCILL-B"
build: [ make "-C" "mathcomp/ssreflect" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/ssreflect" "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp'" ]
depends: [
"ocaml"
"coq" {(>= "8.6" & < "8.10~")}
]
tags: [ "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
url {
src: "http://github.com/math-comp/math-comp/archive/mathcomp-1.7.0.tar.gz"
checksum: "md5=e1bde60e67844e692f88c5d64a44004e"
}
</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-mathcomp-ssreflect.1.7.0 coq.8.12.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.12.1).
The following dependencies couldn't be met:
- coq-mathcomp-ssreflect -> coq < 8.10~ -> ocaml < 4.10
base of this switch (use `--unlock-base' 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-mathcomp-ssreflect.1.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<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.10.1-2.0.6/released/8.12.1/mathcomp-ssreflect/1.7.0.html
|
HTML
|
mit
| 7,318
|
using System;
using System.Drawing.Imaging;
using System.IO;
using System.Text;
namespace TeknikProgramlama.Tools.Image {
public static class Utils {
public static string Image2Base64(this System.Drawing.Image image, ImageFormat format) {
var imgBytes = image.ToBytes(format);
var b64str = Convert.ToBase64String(imgBytes);
return $@"data:image/{format.ToString().ToLower()};base64,{b64str}";
}
public static string Image2Base64Html( this System.Drawing.Image image, ImageFormat format)
=> $@"<img src='{Image2Base64(image, format)}'/>";
public static byte[] ToBytes(
this System.Drawing.Image image,
ImageFormat format)
{
if (image == null)
throw new ArgumentNullException(nameof(image));
if (format == null)
throw new ArgumentNullException(nameof(format));
using (var stream = new MemoryStream())
{
image.Save(stream, format);
return stream.ToArray();
}
}
}
}
|
teknikprogramlama/Teknikprogramlama.Tools
|
TeknikProgramlama.Tools/Image/Utils.cs
|
C#
|
mit
| 1,121
|
using UnityEngine;
using System.Collections;
public class sample : MonoBehaviour {
// Use this for initialization
void Start () {
Vector3 startPos = new Vector3(0,0,0);
Vector3 endPos = new Vector3(10,-10,0);
Vector3 center = Vector3.Lerp(startPos, endPos, 0.5f);
Vector3 cut = (endPos - startPos).normalized;
Vector3 fwd = (center).normalized;
Vector3 normal = Vector3.Cross(fwd, cut).normalized;
GameObject goCutPlane = new GameObject("CutPlane", typeof(BoxCollider), typeof(Rigidbody));
goCutPlane.GetComponent<Collider>().isTrigger = true;
Rigidbody bodyCutPlane = goCutPlane.GetComponent<Rigidbody>();
bodyCutPlane.useGravity = false;
bodyCutPlane.isKinematic = true;
Transform transformCutPlane = goCutPlane.transform;
transformCutPlane.position = center;
transformCutPlane.localScale = new Vector3(10f, .01f, 0.01f);
transformCutPlane.rotation = transform.rotation;
transformCutPlane.up = normal;
}
}
|
HackathonHC/team-z
|
Assets/sample.cs
|
C#
|
mit
| 985
|
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import assets from './assets';
import { port } from './config';
import Config from './config.json';
import fetch from './core/fetch';
const server = global.server = express();
//
// Register Node.js middleware
// -----------------------------------------------------------------------------
server.use(express.static(path.join(__dirname, 'public')));
//
// Register API middleware
// -----------------------------------------------------------------------------
server.use('/api/content', require('./api/content'));
server.all('*', (req, res, next) => {
res.header('Access-Control-Allow-Origin',
Config[process.env.NODE_ENV].clientUri);
res.header('Access-Control-Allow-Headers', 'X-Requested-With');
res.header('Access-Control-Allow-Headers', 'Content-Type');
next();
});
server.get('/api/steam', async (req, res, next) => {
var url = req.query.path;
var isXml = false;
for (var key in req.query) {
if (key !== 'path') {
var joiner = url.indexOf('?') > -1 ? '&' : '?';
url = url + joiner + key + '=' + encodeURIComponent(req.query[key]);
}
if (key === 'xml') {
isXml = true;
}
}
if (isXml) {
url = 'http://steamcommunity.com' + url;
} else {
url = 'http://api.steampowered.com' + url +
(url.indexOf('?') > -1 ? '&' : '?') + 'key=' +
process.env.STEAM_API_KEY;
}
const response = await fetch(url);
const data = isXml ? await response.text() : await response.json();
if (isXml) {
res.set('Content-Type', 'text/xml');
}
res.send(data);
});
//
// Register server-side rendering middleware
// -----------------------------------------------------------------------------
server.get('*', async (req, res, next) => {
try {
let statusCode = 200;
const data = { title: '', description: '', css: '', body: '', entry: assets.main.js };
const css = [];
const context = {
insertCss: styles => css.push(styles._getCss()),
onSetTitle: value => data.title = value,
onSetMeta: (key, value) => data[key] = value,
onPageNotFound: () => statusCode = 404,
};
await Router.dispatch({ path: req.path, query: req.query, context }, (state, component) => {
data.body = ReactDOM.renderToString(component);
data.css = css.join('');
});
const html = ReactDOM.renderToStaticMarkup(<Html {...data} />);
res.status(statusCode).send('<!doctype html>\n' + html);
} catch (err) {
next(err);
}
});
//
// Launch the server
// -----------------------------------------------------------------------------
server.listen(port, () => {
/* eslint-disable no-console */
console.log(`The server is running at http://localhost:${port}/`);
});
|
cheshire137/cheevo-plotter
|
src/server.js
|
JavaScript
|
mit
| 3,191
|
package com.github.robocup_atan.atan.parser.objects;
/*
* #%L
* Atan
* %%
* Copyright (C) 2003 - 2014 Atan
* %%
* 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.
* #L%
*/
//~--- non-JDK imports --------------------------------------------------------
import com.github.robocup_atan.atan.model.ControllerCoach;
import com.github.robocup_atan.atan.model.ControllerPlayer;
import com.github.robocup_atan.atan.model.ControllerTrainer;
import com.github.robocup_atan.atan.model.enums.Flag;
/**
* The parser object for goal west.
*
* @author Atan
*/
public class ObjNameFlagGoalWest implements ObjName {
char qualifier;
/**
* A constructor for goal west.
*
* @param qualifier Either 't' or 'b'.
*/
public ObjNameFlagGoalWest(char qualifier) {
this.qualifier = qualifier;
}
/** {@inheritDoc} */
@Override
public void infoSeeFromEast(ControllerPlayer c, double distance, double direction, double distChange,
double dirChange, double bodyFacingDirection, double headFacingDirection) {
switch (qualifier) {
case 't' :
c.infoSeeFlagGoalOther(Flag.RIGHT, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
case 'b' :
c.infoSeeFlagGoalOther(Flag.LEFT, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
default :
c.infoSeeFlagGoalOther(Flag.CENTER, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
}
}
/** {@inheritDoc} */
@Override
public void infoSeeFromWest(ControllerPlayer c, double distance, double direction, double distChange,
double dirChange, double bodyFacingDirection, double headFacingDirection) {
switch (qualifier) {
case 't' :
c.infoSeeFlagGoalOwn(Flag.LEFT, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
case 'b' :
c.infoSeeFlagGoalOwn(Flag.RIGHT, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
default :
c.infoSeeFlagGoalOwn(Flag.CENTER, distance, direction, distChange, dirChange, bodyFacingDirection,
headFacingDirection);
break;
}
}
/** {@inheritDoc} */
@Override
public void infoSeeFromEast(ControllerCoach c, double x, double y, double deltaX, double deltaY, double bodyAngle,
double neckAngle) {
throw new UnsupportedOperationException();
}
/** {@inheritDoc} */
@Override
public void infoSeeFromWest(ControllerCoach c, double x, double y, double deltaX, double deltaY, double bodyAngle,
double neckAngle) {
throw new UnsupportedOperationException();
}
/** {@inheritDoc} */
@Override
public void infoSee(ControllerTrainer c) {
throw new UnsupportedOperationException();
}
}
|
robocup-atan/atan
|
src/main/java/com/github/robocup_atan/atan/parser/objects/ObjNameFlagGoalWest.java
|
Java
|
mit
| 4,455
|
#pragma once
#include <app/common.hpp>
#include <app/LedDisplay.hpp>
#include <audio.hpp>
namespace rack {
namespace app {
struct AudioWidget : LedDisplay {
LedDisplayChoice* driverChoice;
LedDisplaySeparator* driverSeparator;
LedDisplayChoice* deviceChoice;
LedDisplaySeparator* deviceSeparator;
LedDisplayChoice* sampleRateChoice;
LedDisplaySeparator* sampleRateSeparator;
LedDisplayChoice* bufferSizeChoice;
void setAudioPort(audio::Port* port);
};
} // namespace app
} // namespace rack
|
AndrewBelt/Rack
|
include/app/AudioWidget.hpp
|
C++
|
mit
| 505
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zf: 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.0 / zf - 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>
zf
<small>
8.6.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-08 16:59:48 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-08 16:59:48 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-ocamlbuild base OCamlbuild binary and libraries 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.5.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/zf"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/ZF"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [
"keyword: set theory"
"keyword: Zermelo-Fraenkel"
"category: Mathematics/Logic/Set theory"
]
authors: [ "Guillaume Alexandre" ]
bug-reports: "https://github.com/coq-contribs/zf/issues"
dev-repo: "git+https://github.com/coq-contribs/zf.git"
synopsis: "An axiomatisation of intuitionistic Zermelo-Fraenkel set theory"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/zf/archive/v8.6.0.tar.gz"
checksum: "md5=81c7b7bc7af3bef3a2923c01f2ef6f1b"
}
</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-zf.8.6.0 coq.8.5.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.5.0).
The following dependencies couldn't be met:
- coq-zf -> coq >= 8.6 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can'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-zf.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">
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.02.3-2.0.6/released/8.5.0/zf/8.6.0.html
|
HTML
|
mit
| 6,845
|
// @flow
/* eslint-disable no-console */
import chalk from "chalk";
import createWatcher from "./watch";
import loadWatches from "./load-watches";
import hasWatchman from "./utils/has-watchman";
import type { WatchDefinition } from "./load-watches";
import getConfig from "./config";
type Targets = {
[target: string]: Array<{ wd: string, data: Array<WatchDefinition> }>
};
const getTargets = (definitions): Targets => {
const targets = {};
definitions.forEach(def => {
Object.keys(def.data).forEach(target => {
targets[target] = targets[target] || [];
targets[target].push({ wd: def.wd, data: def.data[target] });
});
});
return targets;
};
const setupPhaseWatch = (definitions, watcher, config) => phase => {
definitions.forEach(({ wd, data: phaseData }) => {
if (!phaseData[phase]) {
return;
}
const phaseWatches = phaseData[phase];
phaseWatches.forEach(watcher.add(wd, config[phase]));
});
};
const setupWatches = async (phase: string | Array<string>) => {
let phases;
if (typeof phase === "string") {
phases = [phase];
} else {
phases = phase;
}
const [definitions, watchman, config] = await Promise.all([
loadWatches(),
hasWatchman(),
getConfig()
]);
const watcher = createWatcher(watchman);
const setup = setupPhaseWatch(definitions, watcher, config);
phases.forEach(setup);
const targets = getTargets(definitions);
phases.forEach(p => {
if (!Object.keys(targets).includes(p)) {
console.error(
`\n${chalk.yellow("WARNING")}: target ${chalk.yellow(
p
)} not found in any .watch files\n`
);
}
});
watcher.start();
};
export const listTargets = async (): Promise<Targets> => {
const definitions = await loadWatches();
return getTargets(definitions);
};
export default setupWatches;
|
laat/nurture
|
src/index.js
|
JavaScript
|
mit
| 1,846
|
$(document).ready(function(){
initUploadExcerptPhoto();
initUploadMedia();
$('#edcomment_save').removeAttr('disabled');
$(document).on('click', '.js-single-click', function(){
$(this).attr('disabled', 'disabled');
});
$(document).on('submit', '.js-single-submit', function(){
var submitBtn=$(this).find(':submit');
submitBtn.attr('disabled', 'disabled');
});
$(document).on('click', '.js-add-media', function(e){
e.preventDefault();
$('.js-modal-add-media').modal();
$('.js-modal-add-media').on('shown.bs.modal', function (e) {
refreshIsotope();
})
});
$(document).on('click', '.js-pick-or-upload', function(e){
e.preventDefault();
$('.js-modal-add-excerpt-media').modal();
$('.js-modal-add-excerpt-media').on('shown.bs.modal', function (e) {
refreshIsotope();
})
});
$(document).on('click', '.js-trigger-upload', function(){
$('.js-upload-input').click();
});
$(document).on('click', '.js-trigger-upload-medias', function(){
$('#article_media_media').click();
});
$(document).on('click', '.js-trigger-upload-excerpt', function(){
$('#article_excerpt_media').click();
});
$(document).on('click', '.js-media-object-remove', function(e){
e.preventDefault();
$.post($(this).attr('data-href'), function(){
$('.js-media-object-remove').addClass('hidden');
$('.js-media-object').attr('src', '/bundles/blog/img/svg/image-placeholder.svg');
$('#article_excerpt_photo').val('');
});
});
$(document).on('click', '.js-media-object-reset', function(e)
{
$('.js-media-object-remove').addClass('hidden');
$('.js-media-object').attr('src', '/bundles/blog/img/svg/image-placeholder.svg');
$('#article_excerpt_photo').val('');
});
$(document).on('click', '.js-delete-object', function(e){
e.preventDefault();
$('.js-delete-object-text').text($(this).attr('data-text'));
$('.js-delete-object-title').text($(this).attr('data-title'));
$('.js-delete-object-href').attr('href',$(this).attr('data-href'));
});
$(document).on('click', '.js-insert-media', function(e){
e.preventDefault();
$('.phototiles__iteminner.selected').each(function(){
var caption = $(this).parents('li').find('.ajax_media_form textarea').val();
if(caption)
{
tinymce.editors[0].insertContent('<div>'+ $(this).find('.js-add-media-editor').attr('data-content') +'<span class="d--b margin--halft app-grey text--mini text--italic">'+ caption +'</span></div>');
}
else
tinymce.editors[0].insertContent($(this).find('.js-add-media-editor').attr('data-content'));
});
$('.js-close-insert-modal').click();
});
$(document).on('click', '.js-pagination-pager', function(e){
e.preventDefault();
$.post($(this).attr('href'), function(data){
$('.js-load-more').remove();
$('.js-media-content').after(data.pagination);
if ($('.js-media-content').hasClass("js-noisotope")){
$('.js-media-content').append(data.html);
}
else{
// Isotope after Load more
// Second approach
$container = $('.isotope:visible');
// We need jQuery object, so instead of response.photoContent we use $(response.photoContent)
var $new_items = $(data.html);
// imagesLoaded is independent plugin, which we use as timeout until all images in $container are fetched, so their real size can be calculated; When they all are on the page, than code within will be executed
$container.append( $new_items );
$container.imagesLoaded( function() {
$container.isotope( 'appended', $new_items );
//$container.isotope( 'prepended', $new_items );
$container.isotope('layout');
$('.phototiles__item').removeClass('muted--total');
if ( $('.modal:visible').length ) {
$('.modal:visible').each(centerModal);
} else {
if ( $(window).width() >= 992 ) {
$('html, body').animate({ scrollTop: $(document).height() }, 1200);
$('.dashboard-menu.alltheway').css('min-height', $('.dashboard-content').height());
}
}
});
}
});
});
$(document).on('click', '.js-content-replace', function(e){
e.preventDefault();
element=$(this);
$.post($(this).attr('data-href'), function(data){
element.parent().html(data.html);
});
});
// Correct display after slow page load
$('.gl.muted--total').each(function() {
$(this).removeClass('muted--total');
});
// Make modal as wide as possible
$('.modal--full').on('shown.bs.modal', function (e) {
recalculateModal($(this));
});
// Select image for insert into article
$(document).on('click', '.js-modal-add-media .phototiles__iteminner', function(e){
$(this).toggleClass('selected');
});
$(document).on('click', '.js-modal-add-excerpt-media .phototiles__iteminner', function(e){
var item = $(this).find('.js-add-media-editor');
$('.js-excerpt-holder').html( item.attr('data-content') );
$('#article_excerptPhoto').val(item.attr('data-val'));
$('.js-modal-add-excerpt-media .js-close-insert-modal').trigger('click');
});
$(document).on('submit', '.js-comment-form', function(e){
e.preventDefault();
var form=$(this);
var submit=form.find(':submit');
submit.attr('disabled', 'disabled');
$.post($(this).attr('action'),$(this).serialize() , function(data){
$('.js-comments-content').replaceWith(data.html);
if (data.currentComment)
{
$('html, body').animate({
scrollTop: $("#"+data.currentComment).offset().top
}, 2000);
}
});
});
$(document).on('submit', '.ajax_media_form', function(e){
e.preventDefault();
$.post($(this).attr('action'), $(this).serialize(), function(data){});
});
getFancyCategories();
}); // End of $(document).ready()
// Resize or orientationchange of document
$(window).bind('resize orientationchange', function(){
if ( $('.modal--full:visible').length ) {
recalculateModal($('.modal--full'));
}
});
// Calculate position for full-width modal
function recalculateModal($this) {
mod_width = Math.floor($(window).width()*0.96);
mod_height = Math.floor($(window).height()*0.96);
$this.find('.modal-dialog').css('width', mod_width);
head_foot_offset = 150;
$this.find('.modal-body').css('max-height', mod_height - head_foot_offset);
$this.removeClass('muted--total');
refreshIsotope();
}
// Refresh Isotope
function refreshIsotope() {
$container = $('.isotope');
$container.imagesLoaded(function () {
$container.isotope().isotope('layout');
$('.phototiles__item').removeClass('muted--total');
$('.modal:visible').each(centerModal);
});
}
function initUploadExcerptPhoto()
{
$('#form_excerptImage').fileupload({
url: $('#form_excerptImage').attr('data-href'),
dataType: 'json',
maxFileSize: 20000000,
done: function (e, response) {
var data = response.result;
if (data.success == 'true') {
$('.js-media-object').replaceWith(data.media);
$('.js-excerpt-photo').val(data.id);
$('.js-media-object-remove').removeClass('hidden');
$('.js-media-object-remove').attr('data-href', data.href);
}
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css('width', progress + '%');
}
});
}
function initUploadMedia()
{
$('#article_media_media').fileupload({
url: $('#article_media_media').attr('data-href'),
dataType: 'json',
maxFileSize: 20000000,
done: function (e, response) {
var data = response.result;
$('.js-load-more').remove();
$('.pagination').remove();
$('.js-media-content').replaceWith(data.html);
// $('.js-trigger-upload-medias').parent().removeClass('muted--total');
// $('.js-trigger-upload-medias').removeClass('muted--total');
// $('.js-trigger-upload-medias').parent().css('position', 'relative');
refreshIsotope();
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css('width', progress + '%');
}
});
$('#article_excerpt_media').fileupload({
url: $('#article_excerpt_media').attr('data-href'),
dataType: 'json',
maxFileSize: 20000000,
done: function (e, response) {
var data = response.result;
$('.js-load-more').remove();
$('.pagination').remove();
$('.js-media-content').replaceWith(data.html);
// $('.js-trigger-upload-medias').parent().removeClass('muted--total');
// $('.js-trigger-upload-medias').removeClass('muted--total');
// $('.js-trigger-upload-medias').parent().css('position', 'relative');
refreshIsotope();
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css('width', progress + '%');
}
});
}
function getFancyCategories()
{
$('.js-get-pretty-categories').each(function(){
var input = $(this);
var url = input.attr('data-category-url');
var selected = [];
input.find('[checked]').each(function(){
selected.push($(this).val());
});
input.find('[selected]').each(function(){
selected.push($(this).val());
});
$.post(url, { 'select': selected }, function(data){
if(data.success === true)
{
if(input.attr('data-empty-option') != undefined)
{
input.html('<option value="">' + input.attr('data-empty-option') + '</option>');
}
else
input.html('');
input.append(data.html).removeClass('hide');
}
});
});
}
function initNprogress()
{
$(document).ajaxStart(function(e)
{
if( (e.target.activeElement == undefined) || !$(e.target.activeElement).hasClass('js-skip-nprogress') )
NProgress.start();
}).ajaxStop(function(e){
NProgress.done();
});
}
|
NegMozzie/tapha
|
src/BlogBundle/Resources/public/js/fe-general.js
|
JavaScript
|
mit
| 10,917
|
<?php
namespace Arthem\GoogleApi\Infrastructure\Client;
use Arthem\GoogleApi\Infrastructure\Client\Decoder\DecoderInterface;
use Arthem\GoogleApi\Infrastructure\Client\Exception\ClientErrorException;
use GuzzleHttp\ClientInterface;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
abstract class Client implements LoggerAwareInterface
{
/**
* @var string
*/
protected $apiUrl;
/**
* The client API key.
*
* @var string
*/
private $apiKey;
/**
* @var ClientInterface
*/
private $httpClient;
/**
* @var DecoderInterface
*/
private $decoder;
/**
* @var LoggerInterface
*/
private $logger;
/**
* @param ClientInterface $httpClient
* @param DecoderInterface $decoder
* @param string $apiKey
*/
public function __construct(ClientInterface $httpClient, DecoderInterface $decoder, $apiKey)
{
$this->apiKey = $apiKey;
$this->decoder = $decoder;
$this->httpClient = $httpClient;
}
/**
* @param string $method
* @param string $uri
* @param array $parameters
* @param array $options
*
* @return array
*
* @throws ClientErrorException
*/
public function request($method, $uri, array $parameters = [], array $options = [])
{
$parameters['key'] = $this->apiKey;
$options['query'] = $parameters;
$uri = $this->apiUrl.$uri.'/json';
$this->log($method, $uri, $options);
$response = $this->httpClient->request($method, $uri, $options);
$result = $this->decoder->decode($response);
if (!isset($result['status'])) {
throw new ClientErrorException('Missing return status');
}
if (!in_array($result['status'], [
'OK',
'ZERO_RESULTS',
], true)) {
throw new ClientErrorException(sprintf('Invalid return status "%s"', $result['status']));
}
return $result;
}
/**
* @param string $method
* @param string $uri
* @param array $options
*/
private function log($method, $uri, array $options = [])
{
if (null === $this->logger) {
return;
}
$this->logger->info(
sprintf(
'google-api request: %s %s',
$method,
$uri
),
[
'params' => http_build_query(
$options['query']
),
]
);
}
/**
* {@inheritdoc}
*/
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
return $this;
}
}
|
4rthem/google-api
|
src/Infrastructure/Client/Client.php
|
PHP
|
mit
| 2,757
|
require 'brahma/web/fall'
class CmsController < ApplicationController
def index
@title = t('web.title.cms')
@fall_card = Brahma::Web::FallCard.new nil
lang = I18n.locale
Cms::Article.select(:id, :title, :summary, :logo).where(lang: lang).order(created: :desc).limit(20).each { |a| @fall_card.add cms_article_path(a.id), a.title, a.summary, a.logo }
@tags = Cms::Tag.select(:id, :name).where(lang: lang).order(visits: :desc).limit(10)
end
end
|
chonglou/portal
|
app/controllers/cms_controller.rb
|
Ruby
|
mit
| 468
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./4cb43bfa50f617754dc9ad3877974ff95607417d1504041b15790ad6be09dd23.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )
<script src="./../../assets/md5.js"></script>
<script>
window.currentLevel = 7;
</script>
<script src="./../../assets/script.js"></script>
</body>
</html>
|
simonmysun/praxis
|
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/bed5041638bafafef161dd3f462b38203b8bec4bb3c97c11dcba72dd21e04962.html
|
HTML
|
mit
| 550
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>color: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.0 / color - 1.4.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
color
<small>
1.4.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-06 23:39:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-06 23:39:54 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.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
# opam file:
opam-version: "2.0"
maintainer: "frederic.blanqui@inria.fr"
authors: [
"Frédéric Blanqui"
"Adam Koprowski"
"Sébastien Hinderer"
"Pierre-Yves Strub"
"Sidi Ould Biha"
"Solange Coupet-Grimal"
"William Delobel"
"Hans Zantema"
"Stéphane Leroux"
"Léo Ducas"
"Johannes Waldmann"
"Qiand Wang"
"Lianyi Zhang"
"Sorin Stratulat"
]
license: "CeCILL"
homepage: "http://color.inria.fr/"
bug-reports: "color@inria.fr"
build: [
[make "-j%{jobs}%"]
]
install: [make "-f" "Makefile.coq" "install"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
"coq-bignums" {>= "8.7" & < "8.8~"}
]
tags: [
"date:2017-11-10"
"logpath:CoLoR"
"category:Computer Science/Algorithms/Correctness proofs of algorithms"
"category:Computer Science/Data Types and Data Structures"
"category:Computer Science/Lambda Calculi"
"category:Mathematics/Algebra"
"category:Mathematics/Combinatorics and Graph Theory"
"category:Mathematics/Logic/Type theory"
"category:Miscellaneous/Extracted Programs/Type checking unification and normalization"
"keyword:rewriting"
"keyword:termination"
"keyword:lambda calculus"
"keyword:list"
"keyword:multiset"
"keyword:polynomial"
"keyword:vectors"
"keyword:matrices"
"keyword:FSet"
"keyword:FMap"
"keyword:term"
"keyword:context"
"keyword:substitution"
"keyword:universal algebra"
"keyword:varyadic term"
"keyword:string"
"keyword:alpha-equivalence"
"keyword:de Bruijn indices"
"keyword:simple types"
"keyword:matching"
"keyword:unification"
"keyword:relation"
"keyword:ordering"
"keyword:quasi-ordering"
"keyword:lexicographic ordering"
"keyword:ring"
"keyword:semiring"
"keyword:well-foundedness"
"keyword:noetherian"
"keyword:finitely branching"
"keyword:dependent choice"
"keyword:infinite sequences"
"keyword:non-termination"
"keyword:loop"
"keyword:graph"
"keyword:path"
"keyword:transitive closure"
"keyword:strongly connected component"
"keyword:topological ordering"
"keyword:rpo"
"keyword:horpo"
"keyword:dependency pair"
"keyword:dependency graph"
"keyword:semantic labeling"
"keyword:reducibility"
"keyword:Girard"
"keyword:fixpoint theorem"
"keyword:Tarski"
"keyword:pigeon-hole principle"
"keyword:Ramsey theorem"
]
synopsis: "A library on rewriting theory and termination"
url {
src:
"https://gforge.inria.fr/frs/download.php/file/37205/color.1.4.0.tar.gz"
checksum: "md5=012e9be1fee95f5bea00cd91133302c1"
}
</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-color.1.4.0 coq.8.8.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0).
The following dependencies couldn't be met:
- coq-color -> coq < 8.8~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-color.1.4.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.8.0/color/1.4.0.html
|
HTML
|
mit
| 9,180
|
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Copyright (c) 2018 Citrix ShareFile. All rights reserved.
// </auto-generated>
// ------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using ShareFile.Api.Client.Extensions;
using ShareFile.Api.Client.Exceptions;
namespace ShareFile.Api.Client.Models
{
public class ClientUpgradeWeb : ODataObject
{
public string ClientUpgradeLink { get; set; }
public string ClientUpgradeText { get; set; }
public override void Copy(ODataObject source, JsonSerializer serializer)
{
if(source == null || serializer == null) return;
base.Copy(source, serializer);
var typedSource = source as ClientUpgradeWeb;
if(typedSource != null)
{
ClientUpgradeLink = typedSource.ClientUpgradeLink;
ClientUpgradeText = typedSource.ClientUpgradeText;
}
else
{
JToken token;
if(source.TryGetProperty("ClientUpgradeLink", out token) && token.Type != JTokenType.Null)
{
ClientUpgradeLink = (string)serializer.Deserialize(token.CreateReader(), typeof(string));
}
if(source.TryGetProperty("ClientUpgradeText", out token) && token.Type != JTokenType.Null)
{
ClientUpgradeText = (string)serializer.Deserialize(token.CreateReader(), typeof(string));
}
}
}
}
}
|
citrix/ShareFile-NET
|
src/ShareFile.Api.Client/Models/ClientUpgradeWeb.cs
|
C#
|
mit
| 1,627
|
---
layout: page
title: Dunlap Enterprises Seminar
date: 2016-05-24
author: Sandra Henry
tags: weekly links, java
status: published
summary: Praesent ac gravida erat, at vehicula risus. Proin.
banner: images/banner/office-01.jpg
booking:
startDate: 11/12/2017
endDate: 11/17/2017
ctyhocn: GBGPAHX
groupCode: DES
published: true
---
In vitae aliquet mi, in fermentum nibh. Etiam eleifend pulvinar tortor, non auctor mi scelerisque nec. Duis at auctor dolor, ut pellentesque lectus. Sed rhoncus est tellus, vitae maximus justo condimentum et. Proin nec mi mi. Donec viverra eros in dapibus commodo. Nam sed augue sodales, consequat erat vitae, hendrerit felis. Cras sed turpis vitae urna elementum ultricies. Vestibulum lorem ex, viverra at vehicula ut, congue ac magna. Nulla gravida ante quis augue fermentum, ut sagittis neque gravida. Maecenas porta ultricies ex, non tincidunt justo imperdiet a.
1 Donec egestas ipsum in lorem finibus congue non et tellus
1 Sed nec ligula consectetur, ornare arcu a, sagittis eros.
Curabitur mattis, nulla eget finibus vulputate, sem arcu pulvinar metus, commodo tempus erat mauris vitae nisl. Cras et mi arcu. Mauris vel elementum felis, et gravida urna. Pellentesque sollicitudin ut nibh sed commodo. Phasellus vehicula odio vel leo euismod, vel venenatis orci elementum. Duis in ligula scelerisque dolor sagittis tempor id sit amet urna. Morbi a ipsum libero. Vestibulum fermentum, quam et tristique pellentesque, dui erat malesuada metus, sit amet ornare dui odio eget leo. Nunc at vehicula est. Duis lobortis consectetur risus vitae molestie. Maecenas pretium finibus velit, at vestibulum justo eleifend vel.
Fusce nec elit vulputate lacus consectetur cursus. Proin accumsan, magna ut tincidunt euismod, augue purus pretium enim, in varius arcu elit eget nisl. Fusce a ornare felis, nec fringilla dui. Vivamus ornare leo sed iaculis elementum. Nullam placerat turpis odio, at tempus ipsum dapibus in. Fusce pulvinar tincidunt porta. Suspendisse potenti. Maecenas volutpat, nulla ac bibendum sollicitudin, ligula eros gravida tellus, sit amet accumsan ligula erat quis dolor. Suspendisse eget dapibus ipsum. Morbi diam est, gravida at tellus et, ornare placerat nunc. Proin semper nunc in lectus lacinia dignissim. Praesent molestie lacus magna, et viverra est scelerisque ut. Praesent egestas sit amet odio pretium imperdiet. Nullam arcu lacus, commodo a lacus hendrerit, porta fringilla sapien.
|
KlishGroup/prose-pogs
|
pogs/G/GBGPAHX/DES/index.md
|
Markdown
|
mit
| 2,448
|
<html ng-app='refApp'>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" ng-app='refApp'> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" ng-app='refApp'> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" ng-app='refApp'> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/refbot.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body class='container' ng-controller = 'MainCtrl as ctrl'>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div id='header'>
<h1 id='title'>RefBot</h1>
<p><span>hello! my name is refbot. feed me image urls and i display.</span></p>
<form class='row url-form' ng-submit="ctrl.addRef(url, size)">
Enter url and hit enter:
<input type="text" class="form-control" ng-model="url " name="url" placeholder='url'></input>
<div class='url-form-buttons'>
<select type="text" ng-model="size" name="size" placeholder='size'>
<option value='small'>small</option>
<option value='medium'>medium</option>
<option value='large'>large</option>
<option value='x-large'>extra large</option>
</select>
<input class='btn btn-primary'type="submit" id="submit" value="Submit"></input>
</div>
</form>
</div>
<div class='all-refs'>
<div ng-repeat='ref in ctrl.references'>
<div class='card refs col-md-{{ref.size}} col-sm-{{ref.size}} col-xs-{{ref.size}}'>
<div class='buttons'>
<a class='btn' ng-click="ctrl.changeSize(ref, 1)">+</a>
<a class='btn' ng-click="ctrl.changeSize(ref,-1)">-</a>
<a class='btn' ng-click="ctrl.references.splice($index,1)">x</a>
</div>
<br>
<img class='col-md-{{ref.size}} col-sm-{{ref.size}} col-xs-{{ref.size}}' ng-src="{{ref.url}}"></img>
</div>
</div>
</div>
<script src="js/plugins.js"></script>
<script src="js/vendor/angular.js" ></script>
<script src="js/main.js"></script>
</body>
</html>
|
descartez/refbot
|
index.html
|
HTML
|
mit
| 3,254
|
var statusItems = initStatusItems();
module.exports = {
// check for an item completion
checkItems: function(content, callback) {
// iterate each status item to check for matches
for (var i = 0; i < statusItems.length; i++) {
var item = statusItems[i];
// skip item if it is already complete
if (item.complete === true) {
continue;
}
// item is incomplete, check the document
if (content.indexOf(item.text) >= 0) {
item.complete = true;
callback(item.output);
}
}
},
// cleanup phantom variables once installation finishes
cleanup: function() {
//statusItems = null;
statusItems = initStatusItems();
},
// check if the script completed
checkComplete: function() {
var lastItem = statusItems[statusItems.length - 1];
// only check the last item in the array if it's complete
if (lastItem.complete === true) {
return true;
}
return false;
}
};
// initialize the status items to check the DOM against
function initStatusItems() {
return [
newStatusItem(
'Creating Sugar configuration file (config.php)',
'Creating Sugar Configuration File...'
),
newStatusItem(
'Creating Sugar application tables, audit tables and relationship metadata',
'Creating application/audit tables and relationship data...'
),
newStatusItem(
'Creating the database',
'Creating the database...'
),
newStatusItem(
'Creating default Sugar data',
'Creating default Sugar data...'
),
newStatusItem(
'Updating license information...',
'Updating license information...'
),
newStatusItem(
'Creating default users...',
'Creating default users...'
),
newStatusItem(
'Creating default reports...',
'Creating default reports...'
),
newStatusItem(
'Populating the database tables with demo data',
'Inserting demo data...'
),
newStatusItem(
'Creating default scheduler jobs...',
'Creating default scheduler jobs...'
)
/*newStatusItem(
'is now complete!',
'Installation is complete!'
)*/
];
}
// create a new status item to check against
function newStatusItem(searchText, outputText, isComplete) {
if (typeof(isComplete) === 'undefined') {
isComplete = false;
}
return {
text: searchText,
output: outputText,
complete: isComplete
};
}
|
ScopeXL/sugarbuild
|
lib/phantom-install-helper.js
|
JavaScript
|
mit
| 2,815
|
import numpy as np
def random_flips(X):
"""
Take random x-y flips of images.
Input:
- X: (N, C, H, W) array of image data.
Output:
- An array of the same shape as X, containing a copy of the data in X,
but with half the examples flipped along the horizontal direction.
"""
N, C, H, W = X.shape
mask = np.random.randint(2, size=N)
# what this means is the ith image should be flipped with probability 1/2
out = np.zeros_like(X)
out[mask==1] = X[mask==1,:,:,::-1]
out[mask==0] = X[mask==0]
return out
def random_crops(X, crop_shape):
"""
Take random crops of images. For each input image we will generate a random
crop of that image of the specified size.
Input:
- X: (N, C, H, W) array of image data
- crop_shape: Tuple (HH, WW) to which each image will be cropped.
Output:
- Array of shape (N, C, HH, WW)
"""
N, C, H, W = X.shape
HH, WW = crop_shape
assert HH < H and WW < W
out = np.zeros((N, C, HH, WW), dtype=X.dtype)
np.random.randint((H-HH), size=N)
y_start = np.random.randint((H-HH), size=N) #(H-HH)*np.random.random_sample(N)
x_start = np.random.randint((W-WW), size=N) #(W-WW)*np.random.random_sample(N)
for i in xrange(N):
out[i] = X[i, :, y_start[i]:y_start[i]+HH, x_start[i]:x_start[i]+WW]
return out
def random_contrast(X, scale=(0.8, 1.2)):
"""
Randomly adjust the contrast of images. For each input image, choose a
number uniformly at random from the range given by the scale parameter,
and multiply each pixel of the image by that number.
Inputs:
- X: (N, C, H, W) array of image data
- scale: Tuple (low, high). For each image we sample a scalar in the
range (low, high) and multiply the image by that scaler.
Output:
- Rescaled array out of shape (N, C, H, W) where out[i] is a contrast
adjusted version of X[i].
"""
low, high = scale
N = X.shape[0]
out = np.zeros_like(X)
l = (scale[1]-scale[0])*np.random.random_sample(N)+scale[0]
# for i in xrange(N):
# out[i] = X[i] * l[i]
out = X * l[:,None,None,None]
# TODO: vectorize this somehow...
#out = #np.diag(l).dot(X)#X*l[:,np.newaxis, np.newaxis, np.newaxis]
return out
def random_tint(X, scale=(-10, 10)):
"""
Randomly tint images. For each input image, choose a random color whose
red, green, and blue components are each drawn uniformly at random from
the range given by scale. Add that color to each pixel of the image.
Inputs:
- X: (N, C, W, H) array of image data
- scale: A tuple (low, high) giving the bounds for the random color that
will be generated for each image.
Output:
- Tinted array out of shape (N, C, H, W) where out[i] is a tinted version
of X[i].
"""
low, high = scale
N, C = X.shape[:2]
out = np.zeros_like(X)
# for i in xrange(N):
# l = (scale[1]-scale[0])*np.random.random_sample(C)+scale[0]
# out[i] = X[i]+l[:,None,None]
l = (scale[1]-scale[0])*np.random.random_sample((N,C))+scale[0]
out = X+l[:,:,None,None]
return out
def fixed_crops(X, crop_shape, crop_type):
"""
Take center or corner crops of images.
Inputs:
- X: Input data, of shape (N, C, H, W)
- crop_shape: Tuple of integers (HH, WW) giving the size to which each
image will be cropped.
- crop_type: One of the following strings, giving the type of crop to
compute:
'center': Center crop
'ul': Upper left corner
'ur': Upper right corner
'bl': Bottom left corner
'br': Bottom right corner
Returns:
Array of cropped data of shape (N, C, HH, WW)
"""
N, C, H, W = X.shape
HH, WW = crop_shape
x0 = (W - WW) / 2
y0 = (H - HH) / 2
x1 = x0 + WW
y1 = y0 + HH
if crop_type == 'center':
return X[:, :, y0:y1, x0:x1]
elif crop_type == 'ul':
return X[:, :, :HH, :WW]
elif crop_type == 'ur':
return X[:, :, :HH, -WW:]
elif crop_type == 'bl':
return X[:, :, -HH:, :WW]
elif crop_type == 'br':
return X[:, :, -HH:, -WW:]
else:
raise ValueError('Unrecognized crop type %s' % crop_type)
|
UltronAI/Deep-Learning
|
CS231n/reference/cnn_assignments-master/assignment3/cs231n/data_augmentation.py
|
Python
|
mit
| 4,178
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-finmap: 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 / mathcomp-finmap - 1.3.3</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-finmap
<small>
1.3.3
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-07 03:09:57 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-07 03:09:57 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.12 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.6 Formal proof management system.
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Cyril Cohen <cyril.cohen@inria.fr>"
homepage: "https://github.com/math-comp/finmap"
bug-reports: "https://github.com/math-comp/finmap/issues"
dev-repo: "git+https://github.com/math-comp/finmap.git"
license: "CeCILL-B"
build: [ make "-j" "%{jobs}%" ]
install: [ make "install" ]
depends: [
"coq" { (>= "8.7" & < "8.11~") }
"coq-mathcomp-ssreflect" { (>= "1.8.0" & < "1.10~") }
"coq-mathcomp-bigenough" { (>= "1.0.0" & < "1.1~") }
]
tags: [ "keyword:finmap" "keyword:finset" "keyword:multiset" "keyword:order" "date:2019-06-18" "logpath:mathcomp.finmap"]
authors: [ "Cyril Cohen <cyril.cohen@inria.fr>" "Kazuhiko Sakaguchi <sakaguchi@coins.tsukuba.ac.jp>" ]
synopsis: "Finite sets, finite maps, finitely supported functions, orders"
description: """
This library is an extension of mathematical component in order to
support finite sets and finite maps on choicetypes (rather that finite
types). This includes support for functions with finite support and
multisets. The library also contains a generic order and set libary,
which will be used to subsume notations for finite sets, eventually."""
url {
src: "https://github.com/math-comp/finmap/archive/1.3.3.tar.gz"
checksum: "sha256=e731e0becaf78f5710feef4b61a4485f2973645daf2f6320c677d99103cc0699"
}
</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-mathcomp-finmap.1.3.3 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't be met:
- coq-mathcomp-finmap -> coq >= 8.7
Your request can'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-mathcomp-finmap.1.3.3</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.05.0-2.0.6/released/8.6/mathcomp-finmap/1.3.3.html
|
HTML
|
mit
| 7,444
|
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.1 (2019-10-28)
*/
(function (domGlobals) {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
function Plugin () {
global.add('textcolor', function () {
domGlobals.console.warn('Text color plugin is now built in to the core editor, please remove it from your editor configuration');
});
}
Plugin();
}(window));
|
cdnjs/cdnjs
|
ajax/libs/tinymce/5.1.1/plugins/textcolor/plugin.js
|
JavaScript
|
mit
| 650
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using ZSUIFramework;
public class CreatRoomGUI : ZSUI
{
public Button mBtnClose = null;
public override void Init()
{
ZSUIListener.AddClickEvent( mBtnClose.gameObject, Close );
}
}
|
zhanshu233/ZSUIFramework
|
Assets/Example/Scripts/UI/CreatRoomGUI.cs
|
C#
|
mit
| 293
|
<div class="comment">
<span class="commenter">
{{ comment.comment_owner|e }} wrote ({{ comment.time_since_post()|e }}):
</span>
<blockquote>
{{ comment.comment_text|e }}
</blockquote>
</div>
|
nimbus154/OratoricalDecaf
|
Project/templates/comment.html
|
HTML
|
mit
| 211
|
export {NavbarItemComponent} from './navbar-item/navbar-item.component';
export {NavbarComponent} from './navbar.component';
|
Hertox82/Lortom
|
angular-backend/src/app/backend-module/navbar/index.ts
|
TypeScript
|
mit
| 125
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>matrices: 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 / matrices - 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>
matrices
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-25 05:11:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-25 05:11: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
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 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
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: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/matrices"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Matrices"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: matrices" "keyword: vectors" "keyword: linear algebra" "keyword: Coq modules" "category: Mathematics/Algebra" "date: 2003-03" ]
authors: [ "Nicolas Magaud" ]
bug-reports: "https://github.com/coq-contribs/matrices/issues"
dev-repo: "git+https://github.com/coq-contribs/matrices.git"
synopsis: "Ring properties for square matrices"
description: """
This contribution contains an operational formalization of square matrices.
(m,n)-Matrices are represented as vectors of length n. Each vector
(a row) is itself a vector whose length is m.
Vectors are actually implemented as dependent lists.
We define basic operations for this datatype (addition, product, neutral
elements O_n and I_n). We then prove the ring properties for these
operations. The development uses Coq modules to specify the interface
(the ring structure properties) as a signature.
This development deals with dependent types and partial functions.
Most of the functions are defined by dependent case analysis
and some functions such as getting a column require
the use of preconditions (to check whether we are within the
bounds of the matrix)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/matrices/archive/v8.8.0.tar.gz"
checksum: "md5=e1966ab1027086001a3f4b27f37978dc"
}
</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-matrices.8.8.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't be met:
- coq-matrices -> coq < 8.9~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can'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-matrices.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.05.0-2.0.1/released/8.13.2/matrices/8.8.0.html
|
HTML
|
mit
| 7,791
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer: 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 / extra-dev</a></li>
<li class="active"><a href="">8.11.dev / hammer - 1.1.1+8.9</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hammer
<small>
1.1.1+8.9
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-02-20 10:20:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-02-20 10:20:10 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.dev 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: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/lukaszcz/coqhammer"
dev-repo: "git+https://github.com/lukaszcz/coqhammer.git"
bug-reports: "https://github.com/lukaszcz/coqhammer/issues"
license: "LGPL-2.1-only"
synopsis: "General-purpose automated reasoning hammer tool for Coq"
description: """
A general-purpose automated reasoning hammer tool for Coq that combines
learning from previous proofs with the translation of problems to the
logics of automated systems and the reconstruction of successfully found proofs.
"""
build: [make "plugin"]
install: [make "install-plugin"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.10~"}
"conf-g++" {build}
"coq-hammer-tactics" {= version}
]
tags: [
"category:Miscellaneous/Coq Extensions"
"keyword:automation"
"keyword:hammer"
"logpath:Hammer"
"date:2019-06-12"
]
authors: [
"Lukasz Czajka <lukaszcz@mimuw.edu.pl>"
"Cezary Kaliszyk <cezary.kaliszyk@uibk.ac.at>"
"Burak Ekici <burak.ekici@uibk.ac.at>"
]
url {
src: "https://github.com/lukaszcz/coqhammer/archive/v1.1.1-coq8.9.tar.gz"
checksum: "sha256=4f167c5fa8cc8a26c81a0efb6f7c360acf4f15151d3d53f8d0c8ab654c8dd814"
}
</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-hammer.1.1.1+8.9 coq.8.11.dev</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.dev).
The following dependencies couldn't be met:
- coq-hammer -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-hammer.1.1.1+8.9</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/extra-dev/8.11.dev/hammer/1.1.1+8.9.html
|
HTML
|
mit
| 7,183
|
# frozen_string_literal: true
module DropletKit
class AccountMapping
include Kartograph::DSL
kartograph do
root_key singular: 'account', scopes: [:read]
mapping Account
scoped :read do
property :droplet_limit
property :floating_ip_limit
property :email
property :uuid
property :email_verified
end
end
end
end
|
digitalocean/droplet_kit
|
lib/droplet_kit/mappings/account_mapping.rb
|
Ruby
|
mit
| 392
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-07 00:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0004_auto_20160904_0048'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name='status',
field=models.CharField(choices=[('new', 'Created'), ('unconfirmed', 'Waiting for payment'), ('active', 'Active'), ('cancelled', 'Cancelled'), ('error', 'Error')], default='new', max_length=16),
),
]
|
CCrypto/ccvpn3
|
payments/migrations/0005_auto_20160907_0018.py
|
Python
|
mit
| 612
|
#!/usr/bin/python
import requests
import json
# Import modules for CGI handling
import cgi, cgitb
# Create instance of FieldStorage
form = cgi.FieldStorage()
# Get data from fields
user_title = form.getvalue('search_title')
print "Content-type: text/html\n\n";
# Setting attributes to send to Wikipedia API
baseurl = 'http://en.wikipedia.org/w/api.php'
search_atts = {}
search_atts['action'] = 'query'
search_atts['list'] = 'search'
search_atts['srwhat'] = 'text'
search_atts['format'] = 'json'
search_atts['srsearch'] = user_title
search_resp = requests.get(baseurl, params = search_atts)
search_data = search_resp.json()
title = search_data["query"]["search"][0]["title"]
# Make the title with no space which will be needed for making a url link to send for summary
title_w_no_space = ""
for i in title:
if i==" ":
title_w_no_space = title_w_no_space + "_"
else:
title_w_no_space = title_w_no_space + i
# Getting related topics using the result given by Wikipedia API
topics = []
for key in search_data["query"]["search"]:
topics.append (key["title"])
topics = topics [1:len(topics)]
# Summarizing the content:
# setting attributes for to send to Smmry API
link_for_smmry = 'https://en.wikipedia.org/wiki/' + title_w_no_space
smmry_base_url = 'http://api.smmry.com/'
#smmry_atts = {}
#smmry_atts ['SM_URL'] = 'https://en.wikipedia.org/wiki/Guyana'
#smmry_atts ['SM_API_KEY'] = '6F297A53E3' # represents your registered API key.
# Optional, X represents the webpage to summarize.
#smmry_atts ['SM_LENGTH'] = N # Optional, N represents the number of sentences returned, default is 7
#smmry_atts ['SM_KEYWORD_COUNT'] = N # Optional, N represents how many of the top keywords to return
#smmry_atts ['SM_QUOTE_AVOID'] # Optional, summary will not include quotations
#smmry_atts ['SM_WITH_BREAK'] # Optional, summary will contain string [BREAK] between each sentence
api_key_link = '&SM_API_KEY=9B07893CAD&SM_URL='
api_lenght = 'SM_LENGTH=7&SM_WITH_BREAK'
#print api_key_link
api_link = smmry_base_url + api_lenght + api_key_link + link_for_smmry
#smmry_resp = requests.get('http://api.smmry.com/&SM_API_KEY=6F297A53E3&SM_URL=https://en.wikipedia.org/wiki/Guyana')
smmry_resp = requests.get(api_link)
smmry_data = smmry_resp.json()
content= '<p>Try adding another key word.</p><a style="color:white;" id="backbtn" href="#" onclick="myFunction()" >Go back.</a>'
try:
content = smmry_data['sm_api_content']
except:
pass
content_with_non_ascii = ""
for word in content:
if ord(word) < 128:
content_with_non_ascii+=word
else:
content_with_non_ascii+= "?"
if len(content_with_non_ascii) >0:
content = content_with_non_ascii
# replacing "[BREAK]"s with a new line
while "[BREAK]" in content:
length = len (content)
break_position = content.find("[BREAK]")
content = content [0:break_position] + "<br><br>" + content [break_position+7: length]
print '<div id="all-cont-alt"><div class="select-nav"><div id="nav-top-main"><a id="backbtn" href="#" onclick="myFunction()" ><i style="float:left; position: relative;margin-left: 10px;top: 26px; color: #d8d8d8;" class= "fa fa-chevron-left fa-2x"></i></a><h1>Geddit</h1></div></div>'
print '<div id="loaddddd"></div><div id="contentss">'
print '<h1 id="user-title">'
print user_title
print "</h1>"
print content
print "</div></div>"
|
azimos/geddit
|
old/geddit-backend.py
|
Python
|
mit
| 3,469
|
/*
Copyright (c) 2013 Chris Wraith
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.minorityhobbies.util;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
public class URLUtils {
private URLUtils() {
}
/**
* Useful for other classes which require a {@link URL} as a parameter. This
* method allows a URL to be generated from a String.
*
* @param urlFilename
* The filename to use for this URL. Can be anything.
* @param content
* The payload for this URL. This will be returned when you call
* url.openStream() and read the data.
* @return The URL backed by the specified content with the specified name.
*/
public static URL getStringBackedUrl(String urlFilename, String content) {
return getStreamBackedUrl(urlFilename,
new ByteArrayInputStream(content.getBytes()));
}
public static URL getStreamBackedUrl(String urlFilename,
final InputStream content) {
try {
return new URL("bytes", "", 0, urlFilename, new URLStreamHandler() {
@Override
protected URLConnection openConnection(final URL url)
throws IOException {
return new URLConnection(url) {
@Override
public void connect() throws IOException {
}
@Override
public InputStream getInputStream() throws IOException {
return content;
}
};
}
});
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
}
public static String readUrlData(URL url) throws IOException {
URLConnection connection = url.openConnection();
InputStream in = connection.getInputStream();
if (in == null) {
return null;
}
byte[] b = new byte[1024 * 64];
StringBuilder data = new StringBuilder();
for (int read = 0; (read = in.read(b)) > -1;) {
data.append(new String(b, 0, read));
}
return data.toString();
}
}
|
jacksonps4/jutils
|
src/main/java/com/minorityhobbies/util/URLUtils.java
|
Java
|
mit
| 2,996
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>otway-rees: 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.1 / otway-rees - 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>
otway-rees
<small>
8.6.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-19 00:31:13 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-19 00:31:13 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.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.11.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.2 Official release 4.11.2
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/otway-rees"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/OtwayRees"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [ "keyword: Otway-Rees" "keyword: protocols" "keyword: cryptography" "category: Computer Science/Concurrent Systems and Protocols/Correctness of specific protocols" ]
authors: [ "Dominique Bolignano and Valérie Ménissier-Morain" ]
bug-reports: "https://github.com/coq-contribs/otway-rees/issues"
dev-repo: "git+https://github.com/coq-contribs/otway-rees.git"
synopsis: "Otway-Rees cryptographic protocol"
description: """
A description and a proof of correctness for
the Otway-Rees cryptographic protocol, usually used as an example for
formalisation of such protocols."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/otway-rees/archive/v8.6.0.tar.gz"
checksum: "md5=4915ebcc29d1af0b0f3c60ae6491d943"
}
</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-otway-rees.8.6.0 coq.8.12.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.12.1).
The following dependencies couldn't be met:
- coq-otway-rees -> coq < 8.7~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' 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-otway-rees.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">
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.11.2-2.0.7/released/8.12.1/otway-rees/8.6.0.html
|
HTML
|
mit
| 6,868
|
#region Usings
using System;
using Xunit;
#endregion
namespace Extend.Testing
{
public partial class StringExTest
{
[Fact]
public void SubstringLeftSafeTest()
{
var actual = "testabc".SubstringLeftSafe( 4 );
Assert.Equal( "test", actual );
actual = "testabc".SubstringLeftSafe( 400 );
Assert.Equal( "testabc", actual );
actual = "".SubstringLeftSafe( 4 );
Assert.Equal( "", actual );
}
[Fact]
public void SubstringLeftSafeTest1()
{
var actual = "123test123".SubstringLeftSafe( 3, 4 );
Assert.Equal( "test", actual );
actual = "testabc".SubstringLeftSafe( 0, 400 );
Assert.Equal( "testabc", actual );
actual = "123tes".SubstringLeftSafe( 3, 4 );
Assert.Equal( "tes", actual );
actual = "".SubstringLeftSafe( 0, 4 );
Assert.Equal( "", actual );
actual = "".SubstringLeftSafe( 2, 4 );
Assert.Equal( "", actual );
}
[Fact]
public void SubstringLeftSafeTest1NullCheck()
{
// ReSharper disable once AssignNullToNotNullAttribute
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
Action test = () => StringEx.SubstringLeftSafe( null, 1, 5 );
Assert.Throws<ArgumentNullException>( test );
}
[Fact]
public void SubstringLeftSafeTestNullCheck()
{
// ReSharper disable once AssignNullToNotNullAttribute
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
Action test = () => StringEx.SubstringLeftSafe( null, 5 );
Assert.Throws<ArgumentNullException>( test );
}
}
}
|
DaveSenn/Extend
|
.Src/Extend.Testing/System.String/String.SubstringLeftSafe.Test.cs
|
C#
|
mit
| 1,814
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: 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 / monae - 0.3.4</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
monae
<small>
0.3.4
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-27 01:18:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-27 01:18:40 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.1+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.2 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Reynald Affeldt <reynald.affeldt@aist.go.jp>"
homepage: "https://github.com/affeldt-aist/monae"
dev-repo: "git+https://github.com/affeldt-aist/monae.git"
bug-reports: "https://github.com/affeldt-aist/monae/issues"
license: "LGPL-2.1-or-later"
synopsis: "Monads and equational reasoning in Coq"
description: """
This Coq library contains a hierarchy of monads with their laws used
in several examples of monadic equational reasoning."""
build: [make "-j%{jobs}%" ]
install: [make "install_full"]
depends: [
"coq" { (>= "8.13" & < "8.14~") | (= "dev") }
"coq-mathcomp-ssreflect" { (>= "1.12.0" & < "1.13~") }
"coq-mathcomp-fingroup" { (>= "1.12.0" & < "1.13~") }
"coq-mathcomp-algebra" { (>= "1.12.0" & < "1.13~") }
"coq-mathcomp-solvable" { (>= "1.12.0" & < "1.13~") }
"coq-mathcomp-field" { (>= "1.12.0" & < "1.13~") }
"coq-mathcomp-analysis" { (>= "0.3.6" & <= "0.3.7") | (>= "0.3.9" & < "0.4~") }
"coq-infotheo" { >= "0.3.2" & < "0.4~"}
"coq-paramcoq" { >= "1.1.2" & < "1.2~" }
]
tags: [
"keyword:monae"
"keyword:effects"
"keyword:probability"
"keyword:nondeterminism"
"logpath:monae"
"date:2021-06-18"
]
authors: [
"Reynald Affeldt"
"David Nowak"
"Takafumi Saikawa"
"Jacques Garrigue"
"Celestine Sauvage"
"Kazunari Tanaka"
]
url {
http: "https://github.com/affeldt-aist/monae/archive/0.3.4.tar.gz"
checksum: "sha512=5dc9ea4a260da88be308ad4fc29b88fff85bb575fd03105c085ad9f2ee562b2287a05f7f8be93cdd17755f2157382230402091e37658765bea4b662d2688a18c"
}
</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-monae.0.3.4 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't be met:
- coq-monae -> coq >= dev -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' 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-monae.0.3.4</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.1+2/monae/0.3.4.html
|
HTML
|
mit
| 7,943
|
//
// UIViewController+ZSAdditions.h
// ZSAdditions
//
// Created by Stas Zhukovskiy on 16.02.15.
// Copyright (c) 2015 Stas Zhukovskiy. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (ZSAdditions)
+ (NSString *)storyBoardIdentifier;
@end
|
Zhukn1/ZSAdditions
|
Pod/Classes/UIViewController+ZSAdditions.h
|
C
|
mit
| 276
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("PrintFirstAndLastName")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PrintFirstAndLastName")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("944423f7-a369-48ac-9b54-3b94dba73ae6")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BiserSirakov/TelerikAcademyHomeworks
|
C# - Part 1/Intro-Programming-Homework/04.PrintFirstAndLastName/Properties/AssemblyInfo.cs
|
C#
|
mit
| 1,418
|
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="iem7 no-js" lang="en" dir="ltr"><![endif]-->
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7 no-js" lang="en" dir="ltr"><![endif]-->
<!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8 no-js" lang="en" dir="ltr"><![endif]-->
<!--[if IE 8]><html class="lt-ie9 no-js" lang="en" dir="ltr"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)]><!-->
<html class="no-js not-oldie" lang="en" dir="ltr">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="true" />
<link rel="shortcut icon" href="https://www.epa.gov/sites/all/themes/epa/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="MobileOptimized" content="width" />
<meta http-equiv="cleartype" content="on" />
<meta http-equiv="ImageToolbar" content="false" />
<meta name="viewport" content="width=device-width" />
<meta name="version" content="20161218" />
<!--googleon: all-->
<meta name="DC.description" content="" />
<meta name="DC.title" content="" />
<title>
Damage to DNA and DNA Monomers Mediated by Nonprotein Biological Complexes of Manganese(II)/(III) and Environmentally Available Oxidants|
Research Project Database | Grantee Research Project | ORD | US EPA</title>
<!--googleoff: snippet-->
<meta name="keywords" content="" />
<link rel="shortlink" href="" />
<link rel="canonical" href="" />
<meta name="DC.creator" content="" />
<meta name="DC.language" content="en" />
<meta name="DC.Subject.epachannel" content="" />
<meta name="DC.type" content="" />
<meta name="DC.date.created" content="" />
<meta name="DC.date.modified" content="2017-01-26" />
<!--googleoff: all-->
<link type="text/css" rel="stylesheet" href="https://www.epa.gov/misc/ui/jquery.ui.autocomplete.css" media="all" />
<link type="text/css" rel="stylesheet" href="https://www.epa.gov/sites/all/themes/epa/css/lib/jquery.ui.theme.css" media="all" />
<link type="text/css" rel="stylesheet" href="https://www.epa.gov/sites/all/libraries/template2/s.css" media="all" />
<!--[if lt IE 9]><link type="text/css" rel="stylesheet" href="https://www.epa.gov/sites/all/themes/epa/css/ie.css" media="all" /><![endif]-->
<link rel="alternate" type="application/atom+xml" title="EPA.gov All Press Releases" href="https://www.epa.gov/newsreleases/search/rss" />
<link rel="alternate" type="application/atom+xml" title="EPA.gov Headquarters Press Releases" href="https://www.epa.gov/newsreleases/search/rss/field_press_office/headquarters" />
<link rel="alternate" type="application/atom+xml" title="Greenversations, EPA's Blog" href="https://blog.epa.gov/blog/feed/" />
<!--[if lt IE 9]><script src="https://www.epa.gov/sites/all/themes/epa/js/html5.js"></script><![endif]-->
<style type="text/css">
/*This style needed for highlight link. Please do not remove*/
.hlText {
font-family: "Arial";
color: red;
font-weight: bold;
font-style: italic;
background-color: yellow;
}
.tblClass {
font-size:smaller; min-width: 10%; line-height: normal;
}
</style>
</head>
<!-- NOTE, figure out body classes! -->
<body class="node-type-(web-area|page|document|webform) (microsite|resource-directory)" >
<!-- Google Tag Manager -->
<noscript>
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-L8ZB" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-L8ZB');</script>
<!-- End Google Tag Manager -->
<div class="skip-links"><a href="#main-content" class="skip-link element-invisible element-focusable">Jump to main content</a></div>
<header class="masthead clearfix" role="banner"> <img class="site-logo" src="https://www.epa.gov/sites/all/themes/epa/logo.png" alt="" />
<hgroup class="site-name-and-slogan">
<h1 class="site-name"><a href="https://www.epa.gov/" title="Go to the home page" rel="home"><span>US EPA</span></a></h1>
<div class="site-slogan">United States Environmental Protection Agency</div>
</hgroup>
<form class="epa-search" method="get" action="https://search.epa.gov/epasearch/epasearch">
<label class="element-hidden" for="search-box">Search</label>
<input class="form-text" placeholder="Search EPA.gov" name="querytext" id="search-box" value=""/>
<button class="epa-search-button" id="search-button" type="submit" title="Search">Search</button>
<input type="hidden" name="fld" value="" />
<input type="hidden" name="areaname" value="" />
<input type="hidden" name="areacontacts" value="" />
<input type="hidden" name="areasearchurl" value="" />
<input type="hidden" name="typeofsearch" value="epa" />
<input type="hidden" name="result_template" value="2col.ftl" />
<input type="hidden" name="filter" value="sample4filt.hts" />
</form>
</header>
<section id="main-content" class="main-content clearfix" role="main">
<div class="region-preface clearfix">
<div id="block-pane-epa-web-area-connect" class="block block-pane contextual-links-region">
<ul class="menu utility-menu">
<li class="menu-item"><a href="https://www.epa.gov/research-grants/forms/contact-us-about-research-grants" class="menu-link contact-us">Contact Us</a></li>
</ul>
</div>
</div>
<div class="main-column clearfix">
<!--googleon: all-->
<div class="panel-pane pane-node-content" >
<div class="pane-content">
<div class="node node-page clearfix view-mode-full">
<div class="box multi related-info right clear-right" style="max-width:300px; font-size:14px;"><!--googleoff: index-->
<!-- RFA Search start -->
<h5 class="pane-title">Related Information</h5>
<div class="pane-content">
<ul><li><a href="https://www.epa.gov/research-grants/">Research Grants</a></li>
<li><a href="https://www.epa.gov/P3">P3: Student Design Competition</a></li>
<li><a href="https://www.epa.gov/research-fellowships/">Research Fellowships</a></li>
<li><a href="https://www.epa.gov/sbir/">Small Business Innovation Research (SBIR)</a></li>
<li><a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/search.welcome">Grantee Research Project Results Search</a></li>
</ul>
</div>
<!-- RFA Search End --><!--googleon: index-->
</div>
<a name="content"></a>
<h2>
Damage to DNA and DNA Monomers Mediated by Nonprotein Biological Complexes of Manganese(II)/(III) and Environmentally Available Oxidants</h2>
<b>EPA Grant Number:</b> U915358<br />
<b>Title:</b> Damage to DNA and DNA Monomers Mediated by Nonprotein Biological Complexes of Manganese(II)/(III) and Environmentally Available Oxidants<br />
<b>Investigators:</b>
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.investigatorInfo/investigator/4901"> Jameton, Rachel </a>
<br />
<strong>Institution:</strong>
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.institutionInfo/institution/2542">
<b>University of Utah</b>
</a> <br />
<strong>EPA Project Officer:</strong>
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.investigatorInfo/investigator/4763"> Boddie, Georgette </a>
<br />
<b>Project Period:</b>
July 1, 1998 through
June 1, 2001
<br />
<b>Project Amount:</b>
$74,062
<br />
<b>RFA:</b>
STAR Graduate Fellowships (1998)
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.rfatext/rfa_id/263">RFA Text</a> |
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/recipients.display/rfa_id/263">Recipients Lists</a>
<br />
<b>Research Category:</b>
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.researchCategory/rc_id/106">Academic Fellowships</a>
,
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.researchCategory/rc_id/166">Engineering and Environmental Chemistry</a>
,
<a href="https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.researchCategory/rc_id/774">Fellowship - Chemistry and Materials Science</a>
<br />
<br>
<h3>Objective:</h3>
<p>The objective of this research project is to
elucidate the role of nonprotein, biologically relevant manganese(II)/(III)
complexes in DNA damage
and/or protection when exposed to: (1) an intracellular oxidant (hydrogen peroxide);
and (2) an environmentally available oxidant system (sulfite/oxygen).
<p></p>
<h3>Approach:</h3>
<p>Manganese(II)-DNA reactivity in the presence of
hydrogen peroxide and carbonate, in phosphate or pyrophosphate buffer, was
examined by polyacrylamide
gel electrophoresis (PAGE). Manganese(II)-DNA reactivity in the presence of
sulfite also was examined by PAGE. Radicals generated in the system without
DNA were detected by electron spin resonance (ESR) trapping experiments. To
identify the DNA moiety at which the reaction occurs, the reaction of DNA monomers
was investigated by ESR spin trapping, 31P nuclear magnetic resonance, and
electrospray mass spectrometry.
<p></p>
<h3>Supplemental Keywords:</h3>
<i>fellowship, DNA monomers, DNA, DNA damage, polyacrylamide gel electrophoresis, PAGE, manganese (II)/(III) complexes, oxidants.</i>, Health, Scientific Discipline, Toxics, Toxicology, Environmental Chemistry, Health Risk Assessment, Contaminant Candidate List, HAPS, Analytical Chemistry, Environmental Microbiology, Disease & Cumulative Effects, Chemistry and Materials Science, EPCRA, Manganese Compounds, molecular mechanisms, manganese toxicity, Manganese, tricarbonyl methylcyclopentadienyl <p /> </div>
</div>
</div>
<div id="block-epa-og-footer" class="block block-epa-og">
<p class="pagetop"><a href="#content">Top of Page</a></p>
<!--googleoff: all-->
<p id="epa-og-footer"> The perspectives, information and conclusions conveyed in research project abstracts, progress reports, final reports, journal abstracts and journal publications convey the viewpoints of the principal investigator and may not represent the views and policies of ORD and EPA. Conclusions drawn by the principal investigators have not been reviewed by the Agency. </p>
</div>
<!--googleoff: all-->
</div>
</section>
<nav class="nav simple-nav simple-main-nav" role="navigation">
<div class="nav__inner">
<h2 class="element-invisible">Main menu</h2>
<ul class="menu" role="menu">
<li class="menu-item" id="menu-learn" role="presentation"><a href="https://www.epa.gov/environmental-topics" title="Learn about EPA's environmental topics to help protect the environment in your home, workplace, and community and EPA's research mission is to conduct leading-edge research and foster the sound use of science and technology." class="menu-link" role="menuitem">Environmental Topics</a></li>
<li class="menu-item" id="menu-lawsregs" role="presentation"><a href="https://www.epa.gov/laws-regulations" title="Laws written by Congress provide the authority for EPA to write regulations. Regulations explain the technical, operational, and legal details necessary to implement laws." class="menu-link" role="menuitem">Laws & Regulations</a></li>
<li class="menu-item" id="menu-about" role="presentation"><a href="https://www.epa.gov/aboutepa" title="Learn more about: our mission and what we do, how we are organized, and our history." class="menu-link" role="menuitem">About EPA</a></li>
</ul>
</div>
</nav>
<footer class="main-footer clearfix" role="contentinfo">
<div class="main-footer__inner">
<div class="region-footer">
<div class="block block-pane block-pane-epa-global-footer">
<div class="row cols-3">
<div class="col size-1of3">
<div class="col__title">Discover.</div>
<ul class="menu">
<li><a href="https://www.epa.gov/accessibility">Accessibility</a></li>
<li><a href="https://www.epa.gov/aboutepa/administrator-gina-mccarthy">EPA Administrator</a></li>
<li><a href="https://www.epa.gov/planandbudget">Budget & Performance</a></li>
<li><a href="https://www.epa.gov/contracts">Contracting</a></li>
<li><a href="https://www.epa.gov/home/grants-and-other-funding-opportunities">Grants</a></li>
<li><a href="https://www.epa.gov/ocr/whistleblower-protections-epa-and-how-they-relate-non-disclosure-agreements-signed-epa-employees">No FEAR Act Data</a></li>
<li><a href="https://www.epa.gov/home/privacy-and-security-notice">Privacy and Security</a></li>
</ul>
</div>
<div class="col size-1of3">
<div class="col__title">Connect.</div>
<ul class="menu">
<li><a href="https://www.data.gov/">Data.gov</a></li>
<li><a href="https://www.epa.gov/office-inspector-general/about-epas-office-inspector-general">Inspector General</a></li>
<li><a href="https://www.epa.gov/careers">Jobs</a></li>
<li><a href="https://www.epa.gov/newsroom">Newsroom</a></li>
<li><a href="https://www.whitehouse.gov/open">Open Government</a></li>
<li><a href="http://www.regulations.gov/">Regulations.gov</a></li>
<li><a href="https://www.epa.gov/newsroom/email-subscriptions">Subscribe</a></li>
<li><a href="https://www.usa.gov/">USA.gov</a></li>
<li><a href="https://www.whitehouse.gov/">White House</a></li>
</ul>
</div>
<div class="col size-1of3">
<div class="col__title">Ask.</div>
<ul class="menu">
<li><a href="https://www.epa.gov/home/forms/contact-us">Contact Us</a></li>
<li><a href="https://www.epa.gov/home/epa-hotlines">Hotlines</a></li>
<li><a href="https://www.epa.gov/foia">FOIA Requests</a></li>
<li><a href="https://www.epa.gov/home/frequent-questions-specific-epa-programstopics">Frequent Questions</a></li>
</ul>
<div class="col__title">Follow.</div>
<ul class="social-menu">
<li><a class="menu-link social-facebook" href="https://www.facebook.com/EPA">Facebook</a></li>
<li><a class="menu-link social-twitter" href="https://twitter.com/epa">Twitter</a></li>
<li><a class="menu-link social-youtube" href="https://www.youtube.com/user/USEPAgov">YouTube</a></li>
<li><a class="menu-link social-flickr" href="https://www.flickr.com/photos/usepagov">Flickr</a></li>
<li><a class="menu-link social-instagram" href="https://instagram.com/epagov">Instagram</a></li>
</ul>
<p class="last-updated">Last updated on Thursday, January 26, 2017</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<script src="https://www.epa.gov/sites/all/libraries/template2/jquery.js"></script>
<script src="https://www.epa.gov/sites/all/libraries/template/js.js"></script>
<script src="https://www.epa.gov/sites/all/modules/custom/epa_core/js/alert.js"></script>
<script src="https://www.epa.gov/sites/all/modules/contrib/jquery_update/replace/ui/ui/minified/jquery.ui.core.min.js"></script>
<script src="https://www.epa.gov/sites/all/modules/contrib/jquery_update/replace/ui/ui/minified/jquery.ui.widget.min.js"></script>
<script src="https://www.epa.gov/sites/all/modules/contrib/jquery_update/replace/ui/ui/minified/jquery.ui.position.min.js"></script>
<script src="https://www.epa.gov/sites/all/modules/contrib/jquery_update/replace/ui/ui/minified/jquery.ui.autocomplete.min.js"></script>
<!--[if lt IE 9]><script src="https://www.epa.gov/sites/all/themes/epa/js/ie.js"></script><![endif]-->
<!-- REMOVE if not using -->
<script language=javascript>
<!-- // Activate cloak
// pressing enter will not default submit the first defined button but the programmed defined button
function chkCDVal(cdVal)
{
var isErr = true;
try{
var CDParts = cdVal.split(',');
var st = CDParts[0];
var cd = CDParts[1];
var objRegExp = new RegExp('[0-9][0-9]');
if (!isNaN(st)) {
isErr = false;
}
if (!objRegExp.test(cd) || (cd.length>3)){
isErr = false;
}
}
catch(err){
isErr = false;
}
return isErr;
}
function checkCongDist(cdtxt)
{
//alert(cdtxt.value);
if (!chkCDVal(cdtxt.value)) {
alert('Congressional District MUST be in the following format: state, district; example: Virginia, 08');
return false;
}
else {
return true;
}
}
function fnTrapKD(btn, event)
{
var btn = getObject(btn);
if (document.all)
{
if (event.keyCode == 13)
{
event.returnValue=false;event.cancel = true;btn.click();
}
}
else
{
if (event.which == 13)
{
event.returnValue=false;event.cancelBubble = true;btn.click();
}
}
}
function CheckFilter()
{ if (document.searchform.presetTopic.options[document.searchform.presetTopic.selectedIndex].value == 'NA'){
alert('You must select a subtopic. \n This item is not selectable');
document.searchform.presetTopic.options[0].selected = true;
}
}
function openHelpWindow(url,title,scrollable)
{
var win = window.open(url,"title",'width=300,height=220,left=320,top=150,resizable=1,scrollbars='+scrollable+',menubar=no,status=no');
win.focus();
}
function openNewWindow(url,title,scrollable)
{
var win = window.open(url,"title",'width=300,height=220,left=320,top=150,resizable=1,scrollbars='+scrollable+',menubar=no,status=no');
}
function openNewWindow(url,title)
{
var win = window.open(url,"title",'width=300,height=220,left=320,top=150,resizable=1,scrollbars=no,menubar=no,status=no');
}
function openNewMapWindow(url,title)
{
var win = window.open(url,"title",'width=800,height=450,left=320,top=150,resizable=1,scrollbars=no,menubar=no,status=no');
}
function openNoticeWindow(url,title)
{
var win = window.open(url,"title",'width=300,height=150,left=500,top=150,resizable=1,scrollbars=no,menubar=no,status=no');
}
function openNewSearchWindow(site,subj)
{
title = 'window';
var win = window.open('https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.pubsearch/site/' + site + '/redirect/' + subj,"title",'width=640,height=480,resizable=1,scrollbars=yes,menubar=yes,status=no');
}
function autoCheck(name)
{
document.forms['thisForm'].elements[name].checked = true;
}
function alertUser()
{
var ok = alert("This search might take longer than expected. Please refrain from hitting the refresh or reload button on your browser. The search results will appear after the search is complete. Thank you.");
}
function closePopupWindow(redirectUrl)
{
opener.location = redirectUrl;
opener.focus();
this.close();
}
//-->
</script>
</body>
</html>
|
1wheel/scraping
|
epa-grants/research/raw/02186.html
|
HTML
|
mit
| 20,484
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coq-in-coq: 1 m 0 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.7.1+1 / coq-in-coq - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
coq-in-coq
<small>
8.7.0
<span class="label label-success">1 m 0 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-05 21:09:41 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-05 21:09:41 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+1 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.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/coq-in-coq"
license: "LGPL 2.1"
build: [make]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/CoqInCoq"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [ "keyword: calculus of constructions" "category: Mathematics/Logic/Type theory" "category: Miscellaneous/Extracted Programs/Type checking unification and normalization" ]
authors: [ "Bruno Barras" ]
bug-reports: "https://github.com/coq-contribs/coq-in-coq/issues"
dev-repo: "git+https://github.com/coq-contribs/coq-in-coq.git"
synopsis: "A formalisation of the Calculus of Construction"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/coq-in-coq/archive/v8.7.0.tar.gz"
checksum: "md5=ffc46088ecd3b63e2eec7724eb22f434"
}
</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-coq-in-coq.8.7.0 coq.8.7.1+1</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-coq-in-coq.8.7.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>12 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-coq-in-coq.8.7.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>1 m 0 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 3 M</p>
<ul>
<li>468 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Machine.vo</code></li>
<li>288 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Expr.vo</code></li>
<li>164 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv_Dec.vo</code></li>
<li>148 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Infer.vo</code></li>
<li>147 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Termes.vo</code></li>
<li>147 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Ered.vo</code></li>
<li>141 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_stab.vo</code></li>
<li>133 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Types.vo</code></li>
<li>126 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_stab.glob</code></li>
<li>109 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Class.vo</code></li>
<li>88 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Equiv.vo</code></li>
<li>85 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Termes.glob</code></li>
<li>82 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Class.glob</code></li>
<li>76 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Machine.glob</code></li>
<li>72 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Types.glob</code></li>
<li>71 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Names.vo</code></li>
<li>65 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MyList.vo</code></li>
<li>63 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Strong_Norm.vo</code></li>
<li>59 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv.vo</code></li>
<li>59 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Consistency.vo</code></li>
<li>57 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ETypes.vo</code></li>
<li>57 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Ered.glob</code></li>
<li>51 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Can.vo</code></li>
<li>47 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Infer.glob</code></li>
<li>45 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_stab.v</code></li>
<li>45 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_typ.vo</code></li>
<li>44 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ListType.vo</code></li>
<li>38 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Equiv.glob</code></li>
<li>36 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Expr.glob</code></li>
<li>30 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Termes.v</code></li>
<li>30 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_term.vo</code></li>
<li>29 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ETypes.glob</code></li>
<li>28 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Class.v</code></li>
<li>27 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Machine.v</code></li>
<li>27 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Strong_Norm.glob</code></li>
<li>25 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Types.v</code></li>
<li>24 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Ered.v</code></li>
<li>23 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MyList.glob</code></li>
<li>21 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Infer.v</code></li>
<li>19 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Can.glob</code></li>
<li>19 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Expr.v</code></li>
<li>17 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Consistency.glob</code></li>
<li>17 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Names.glob</code></li>
<li>15 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_typ.glob</code></li>
<li>15 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Equiv.v</code></li>
<li>13 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Strong_Norm.v</code></li>
<li>12 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ListType.glob</code></li>
<li>10 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv_Dec.glob</code></li>
<li>9 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ETypes.v</code></li>
<li>9 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv.glob</code></li>
<li>8 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Consistency.v</code></li>
<li>8 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Can.v</code></li>
<li>7 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MyList.v</code></li>
<li>7 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv.v</code></li>
<li>6 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Names.v</code></li>
<li>6 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_typ.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Conv_Dec.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_term.glob</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MlTypes.vo</code></li>
<li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MlTypes.glob</code></li>
<li>4 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/ListType.v</code></li>
<li>3 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/Int_term.v</code></li>
<li>2 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/CoqInCoq/MlTypes.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-coq-in-coq.8.7.0</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.1+1/coq-in-coq/8.7.0.html
|
HTML
|
mit
| 13,686
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coq2html: 17 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.7.0 / coq2html - 1.2</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
coq2html
<small>
1.2
<span class="label label-success">17 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-26 20:28:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-26 20:28:19 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.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
# opam file:
opam-version: "2.0"
maintainer: "Xavier Leroy <xavier.leroy@inria.fr>"
homepage: "https://github.com/xavierleroy/coq2html"
dev-repo: "git+https://github.com/xavierleroy/coq2html.git"
bug-reports: "https://github.com/xavierleroy/coq2html/issues"
license: "GPL-2.0-or-later"
build: [
[make]
]
install: [
[make "BINDIR=%{bin}%" "install"]
]
depends: [
"ocaml"
"coq" {>= "8.5"}
]
synopsis: "Generates HTML documentation from Coq source files. Alternative to coqdoc"
authors: "Xavier Leroy <xavier.leroy@inria.fr>"
url {
src: "https://github.com/xavierleroy/coq2html/archive/v1.2.tar.gz"
checksum: "sha512=3aeaca8497838331ec9ec0677548ba70101ab89ddb23e3902b8c7a48c2ffdf0de5cd79e38826b5e327457b11f3fa9dfd84ca7c90eabe72f0419ab674e4dc3b6e"
}
</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-coq2html.1.2 coq.8.7.0</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-coq2html.1.2 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>13 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-coq2html.1.2 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>17 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 2 M</p>
<ul>
<li>2 M <code>../ocaml-base-compiler.4.08.1/bin/coq2html</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-coq2html.1.2</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.7.0/coq2html/1.2.html
|
HTML
|
mit
| 6,483
|
// # Demo Particles 011
// Tracer entity: generation and functionality
// [Run code](../../demo/particles-011.html)
import * as scrawl from '../source/scrawl.js'
import { reportSpeed } from './utilities.js';
// Get Scrawl-canvas to recognise and act on device pixel ratios greater than 1
scrawl.setIgnorePixelRatio(false);
// #### Scene setup
let canvas = scrawl.library.artefact.mycanvas;
canvas.setBase({
backgroundColor: 'aliceblue',
});
// Define some filters
scrawl.makeFilter({
name: 'grayscale',
method: 'grayscale',
}).clone({
name: 'invert',
method: 'invert',
});
scrawl.makeFilter({
name: 'tint',
method: 'tint',
redInRed: 0.5, redInGreen: 1, redInBlue: 0.9,
greenInRed: 0, greenInGreen: 0.3, greenInBlue: 0.8,
blueInRed: 0.8, blueInGreen: 0.8, blueInBlue: 0.4,
});
scrawl.makeFilter({
name: 'matrix',
method: 'matrix',
weights: [-1, -1, 0, -1, 1, 1, 0, 1, 1],
});
// Create a Shape entity to act as a path for our Tracer entitys
scrawl.makeShape({
name: 'my-arrow',
pathDefinition: 'M266.2,703.1 h-178 L375.1,990 l287-286.9 H481.9 C507.4,365,683.4,91.9,911.8,25.5 877,15.4,840.9,10,803.9,10 525.1,10,295.5,313.4,266.2,703.1 z',
start: ['center', 'center'],
handle: ['center', 'center'],
scale: 0.4,
roll: -70,
flipUpend: true,
useAsPath: true,
strokeStyle: 'gray',
fillStyle: 'lavender',
lineWidth: 8,
method: 'fillThenDraw',
bringToFrontOnDrag: false,
});
// #### Particle physics animation scene
// Tracer entitys don't have any color control built in; we need to create our own color factory
let colorFactory = scrawl.makeColor({
name: 'tracer-3-color-factory',
minimumColor: 'red',
maximumColor: 'blue',
});
// Create a Tracer entity
// + Note that Tracers do not require a World object, cannot process Force objects, and cannot be connected together using Spring objects.
scrawl.makeTracer({
name: 'trace-1',
historyLength: 50,
// We will delta-animate this Tracer alonbg the path of our Shape entity
path: 'my-arrow',
pathPosition: 0,
lockTo: 'path',
delta: {
pathPosition: 0.002,
},
artefact: scrawl.makeWheel({
name: 'burn-1',
radius: 6,
handle: ['center', 'center'],
fillStyle: 'red',
method: 'fill',
visibility: false,
noUserInteraction: true,
noPositionDependencies: true,
noFilters: true,
noDeltaUpdates: true,
}),
// This Tracer will produce a 'dashed' effect, by displaying discrete ranges of its history
stampAction: function (artefact, particle, host) {
let history = particle.history,
remaining, z, start;
history.forEach((p, index) => {
if (index < 10 || (index > 20 && index < 30) || index > 40) {
[remaining, z, ...start] = p;
artefact.simpleStamp(host, { start });
}
});
},
// Clone the Tracer entity
}).clone({
name: 'trace-2',
pathPosition: 0.33,
artefact: scrawl.library.artefact['burn-1'].clone({
name: 'burn-2',
fillStyle: 'green',
globalAlpha: 0.2,
}),
// Our second Tracer shows a 'tail-fade' effect
stampAction: function (artefact, particle, host) {
let history = particle.history,
len = history.length,
remaining, z, start;
history.forEach((p, index) => {
if (index % 3 === 0) {
[remaining, z, ...start] = p;
artefact.simpleStamp(host, {
start,
globalAlpha: (len - index) / len,
});
}
});
},
// Clone the second Tracer entity
}).clone({
name: 'trace-3',
pathPosition: 0.67,
artefact: scrawl.library.artefact['burn-1'].clone({
name: 'burn-3',
fillStyle: 'blue',
}),
// This Tracer varies its scale to create a 'teardrop' effect
stampAction: function (artefact, particle, host) {
let history = particle.history,
len = history.length,
remaining, z, start;
history.forEach((p, index) => {
[remaining, z, ...start] = p;
let magicNumber = (len - index) / len;
artefact.simpleStamp(host, {
start,
scale: magicNumber * 3,
fillStyle: colorFactory.getRangeColor(magicNumber),
});
});
},
});
// #### Scene animation
// Function to display frames-per-second data, and other information relevant to the demo
const report = reportSpeed('#reportmessage');
// Create the Display cycle animation
scrawl.makeRender({
name: 'demo-animation',
target: canvas,
afterShow: report,
});
// #### User interaction
// Make the arrow draggable
// + KNOWN BUG - the arrow is not draggable on first user mousedown, but is draggable afterwards
scrawl.makeGroup({
name: 'my-draggable-group',
}).addArtefacts('my-arrow');
scrawl.makeDragZone({
zone: canvas,
collisionGroup: 'my-draggable-group',
endOn: ['up', 'leave'],
preventTouchDefaultWhenDragging: true,
});
// Action user choice to apply a filter to a Tracer entity
const filterChoice = function (e) {
e.preventDefault();
e.returnValue = false;
let val = e.target.value,
entity = scrawl.library.entity['trace-2'];
entity.clearFilters();
if (val) entity.addFilters(val);
};
scrawl.addNativeListener(['input', 'change'], filterChoice, '#filter');
// @ts-expect-error
document.querySelector('#filter').value = '';
// #### Development and testing
console.log(scrawl.library);
|
KaliedaRik/Scrawl-canvas
|
demo/particles-011.js
|
JavaScript
|
mit
| 5,771
|
'use strict';
/**
* Module dependencies.
*/
const express = require('express');
const session = require('express-session');
const compression = require('compression');
const morgan = require('morgan');
const cookieParser = require('cookie-parser');
const cookieSession = require('cookie-session');
const bodyParser = require('body-parser');
const methodOverride = require('method-override');
const upload = require('multer')();
const mongoStore = require('connect-mongo')(session);
const flash = require('connect-flash');
const winston = require('winston');
const helpers = require('view-helpers');
const config = require('./');
const pkg = require('../package.json');
const env = process.env.NODE_ENV || 'development';
/**
* Expose
*/
module.exports = function (app) {
// Compression middleware (should be placed before express.static)
app.use(compression({
threshold: 512
}));
// Static files middleware
app.use(express.static(config.root + '/public'));
// Use winston on production
let log = 'dev';
if (env !== 'development') {
log = {
stream: {
write: message => winston.info(message)
}
};
}
// Don't log during tests
// Logging middleware
if (env !== 'test') app.use(morgan(log));
// set views path, template engine and default layout
app.set('views', config.root + '/app/views');
app.set('view engine', 'jade');
// expose package.json to views
app.use(function (req, res, next) {
res.locals.pkg = pkg;
res.locals.env = env;
next();
});
// bodyParser should be above methodOverride
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(upload.single('image'));
app.use(methodOverride(function (req) {
if (req.body && typeof req.body === 'object' && '_method' in req.body) {
// look in urlencoded POST bodies and delete it
var method = req.body._method;
delete req.body._method;
return method;
}
}));
// CookieParser should be above session
app.use(session({
resave: false,
saveUninitialized: true,
secret: pkg.name,
cookie: {
maxAge: 3600 * 24 * 365 * 1000
},
store: new mongoStore({
url: config.db,
collection : 'sessions'
})
}));
app.use(cookieParser());
// app.use(cookieSession({ secret: 'accedotv' }));
// connect flash for flash messages - should be declared after sessions
app.use(flash());
// should be declared after session and flash
app.use(helpers(pkg.name));
if (env === 'development') {
app.locals.pretty = true;
}
};
|
kyue1005/accedotv-demo
|
config/express.js
|
JavaScript
|
mit
| 2,588
|
Eclipse如何配色
===============
本经验介绍如何给Eclipse配色,采用的方案是使用Eclipse Color Theme插件进行配色。以Eclipse 4.2版本为例子,其他版本类似。
---
1. 启动Eclipse,选择“Help”-“Install New Software...”

2. 在弹出的对话框中,点击“Add"按钮

3. 输入插件的地址和名字,然后点击”OK“。地址为:http://eclipse-color-theme.github.com/update

4. 选中插件,然后按照向导一步步走。

5. 最后,接受条款、点”finish“按钮进行安装。

6. 在弹出的"Security Warning"对话框中,点击”OK“按钮。

7. 安装完Color Theme插件之后,就开始配色。选择”Window“-”Preference“。

8. 找到Color theme,选择自己喜欢的配色方案。然后点击”OK“就可以了。

9. Eclipse的配色效果如图:

|
biangbiang/something
|
development/tools/editor/eclipse/eclipse-color-theme.md
|
Markdown
|
mit
| 1,529
|
---
layout: post
comments: true
title: Who Uses Backslashes?
mt_id: 85
date: 2007-02-05 10:56:37 -08:00
---
My local NPR station, [WAMU](http://www.wamu.org) has been running an advertisement for IBM federal services and they mention the URL, which is spoken as "ibm.com backslash foo backslash bar," which won't work if you type it into your interweb browser. Really, no one uses the Windows command line for anything real, who still thinks with backslashes?
|
dinomite/octopress
|
source/_posts/2007-02-05-who-uses-backslashes.markdown
|
Markdown
|
mit
| 462
|
namespace Nancy.Serialization.ServiceStack
{
using System.Collections.Generic;
using System.IO;
using global::ServiceStack.Text;
using Responses.Negotiation;
public class ServiceStackJsonSerializer : ISerializer
{
/// <summary>
/// Whether the serializer can serialize the content type
/// </summary>
/// <param name="mediaRange">Content type to serialise</param>
/// <returns>True if supported, false otherwise</returns>
public bool CanSerialize(MediaRange mediaRange)
{
return Helpers.IsJsonType(mediaRange);
}
/// <summary>
/// Gets the list of extensions that the serializer can handle.
/// </summary>
/// <value>An <see cref="IEnumerable{T}"/> of extensions if any are available, otherwise an empty enumerable.</value>
public IEnumerable<string> Extensions
{
get { yield return "json"; }
}
/// <summary>
/// Serialize the given model with the given contentType
/// </summary>
/// <param name="mediaRange">Content type to serialize into</param>
/// <param name="model">Model to serialize</param>
/// <param name="outputStream">Output stream to serialize to</param>
/// <returns>Serialised object</returns>
public void Serialize<TModel>(MediaRange mediaRange, TModel model, Stream outputStream)
{
JsonSerializer.SerializeToStream(model, outputStream);
}
}
}
|
NancyFx/Nancy.Serialization.ServiceStack
|
src/Nancy.Serialization.ServiceStack/ServiceStackJsonSerializer.cs
|
C#
|
mit
| 1,570
|
/*
* Copyright (c) 2017-2019 by Botorabi. All rights reserved.
* https://github.com/botorabi/Meet4Eat
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
package net.m4e.update.rest.comm;
import org.junit.jupiter.api.*;
import javax.json.bind.*;
import java.time.Instant;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author boto
* Date of creation March 12, 2018
*/
public class UpdateCheckResultTest {
private final String UPDATE_VERSION = "1.0.0";
private final String OS = "Win";
private final String URL = "https://update.org";
private final Long RELEASE_DATE = Instant.now().toEpochMilli();
private Jsonb json;
@BeforeEach
void setup() {
json = JsonbBuilder.create();
}
@Test
void serialize() {
UpdateCheckResult result = new UpdateCheckResult();
result.setUpdateVersion(UPDATE_VERSION);
result.setOs(OS);
result.setUrl(URL);
result.setReleaseDate(RELEASE_DATE);
String jsonString = json.toJson(result);
assertThat(jsonString).contains("updateVersion");
assertThat(jsonString).contains("os");
assertThat(jsonString).contains("url");
assertThat(jsonString).contains("releaseDate");
}
@Test
void deserialize() {
String jsonString = json.toJson(new UpdateCheckResult(UPDATE_VERSION, OS, URL, RELEASE_DATE));
UpdateCheckResult result = json.fromJson(jsonString, UpdateCheckResult.class);
assertThat(result.getUpdateVersion()).isEqualTo(UPDATE_VERSION);
assertThat(result.getOs()).isEqualTo(OS);
assertThat(result.getUrl()).isEqualTo(URL);
assertThat(result.getReleaseDate()).isEqualTo(RELEASE_DATE);
}
}
|
botorabi/Meet4Eat
|
src/test/java/net/m4e/update/rest/comm/UpdateCheckResultTest.java
|
Java
|
mit
| 1,790
|
<div>
<ul>
<li>Binary search </li>
<li>Count sort: assumption range is small </li>
<li>CourtSort App</li>
<li>Bucket sort. assumption. value is uniformly distribute </li>
</ul>
</div>
|
jasonzhang2022/algorithm
|
src/main/java/jason/algorithm/sort/package.html
|
HTML
|
mit
| 196
|
#!/usr/bin/env python
import os
import sys
from setuptools import setup
os.system('make rst')
try:
readme = open('README.rst').read()
except FileNotFoundError:
readme = ""
setup(
name='leicaautomator',
version='0.0.2',
description='Automate scans on Leica SPX microscopes',
long_description=readme,
author='Arve Seljebu',
author_email='arve.seljebu@gmail.com',
url='https://github.com/arve0/leicaautomator',
packages=[
'leicaautomator',
],
package_dir={'leicaautomator': 'leicaautomator'},
include_package_data=True,
install_requires=[
'scipy',
'numpy',
'matplotlib',
'scikit-image',
'leicascanningtemplate',
'leicacam',
'leicaexperiment',
'microscopestitching',
'dask[bag]',
'numba',
],
license='MIT',
zip_safe=False,
keywords='leicaautomator',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
)
|
arve0/leicaautomator
|
setup.py
|
Python
|
mit
| 1,212
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>karatsuba: 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 / karatsuba - 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>
karatsuba
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-16 15:55:17 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-16 15:55:17 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.1 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
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/karatsuba"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Karatsuba"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [
"keyword: Karatsuba multiplication"
"keyword: binary ring"
"category: Mathematics/Arithmetic and Number Theory/Number theory"
"date: 2005-09-15"
]
authors: [ "Russell O'Connor <r.oconnor@cs.ru.nl> [http://r6.ca/]" ]
bug-reports: "https://github.com/coq-contribs/karatsuba/issues"
dev-repo: "git+https://github.com/coq-contribs/karatsuba.git"
synopsis: "Karatsuba's Multiplication"
description: """
http://r6.ca/Karatsuba/
An implementation of Karatsuba's Multiplication algorithm"""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/karatsuba/archive/v8.8.0.tar.gz"
checksum: "md5=baa58e355a4d9a65be7a4ed9f8e1759c"
}
</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-karatsuba.8.8.0 coq.8.7.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.7.1).
The following dependencies couldn't be met:
- coq-karatsuba -> coq >= 8.8
Your request can'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-karatsuba.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.08.1-2.0.5/released/8.7.1/karatsuba/8.8.0.html
|
HTML
|
mit
| 6,936
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: 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.1 / huffman - 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>
huffman
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-26 16:52:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-26 16:52:27 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.11.1 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: "2.0"
maintainer: "matej.kosik@inria.fr"
homepage: "https://github.com/coq-contribs/huffman"
license: "LGPL 2"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Huffman"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
tags: [ "keyword:data compression" "keyword:code" "keyword:huffman tree" "category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms" "category:Miscellaneous/Extracted Programs/Combinatorics" "date:2003-10" ]
authors: [ "Laurent Théry <>" ]
bug-reports: "https://github.com/coq-contribs/huffman/issues"
dev-repo: "git+https://github.com/coq-contribs/huffman.git"
synopsis: "A correctness proof of Huffman algorithm"
description: """
This directory contains the proof of correctness of Huffman algorithm
as described in:
David A. Huffman,
"A Method for the Construction of Minimum-Redundancy Codes,"
Proc. IRE, pp. 1098-1101, September 1952."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/huffman/archive/v8.5.0.tar.gz"
checksum: "md5=24c177433fec3608f741355cbf411486"
}
</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-huffman.8.5.0 coq.8.11.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.11.1).
The following dependencies couldn't be met:
- coq-huffman -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' 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-huffman.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.10.2-2.0.6/released/8.11.1/huffman/8.5.0.html
|
HTML
|
mit
| 6,984
|
<!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.6 / free-groups - 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>
free-groups
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-01 06:30:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-01 06:30: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.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.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matej.kosik@inria.fr"
homepage: "https://github.com/coq-contribs/free-groups"
license: "LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FreeGroups"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
tags: [ "keyword:free group" "category:Mathematics/Algebra" ]
authors: [ "Daniel Schepler <dschepler@gmail.com>" ]
bug-reports: "https://github.com/coq-contribs/free-groups/issues"
dev-repo: "git+https://github.com/coq-contribs/free-groups.git"
synopsis: "This small contribution is a formalization of van der Waerden'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"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/free-groups/archive/v8.5.0.tar.gz"
checksum: "md5=f675f48b6b1efde082e76a7a51421103"
}
</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.5.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't be met:
- coq-free-groups -> coq < 8.6~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can'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-free-groups.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.03.0-2.0.5/released/8.6/free-groups/8.5.0.html
|
HTML
|
mit
| 7,003
|
#pragma once
#include <boost/property_tree/ptree.hpp>
namespace bittrex::model {
struct Ticker {
explicit Ticker(boost::property_tree::ptree &j) {
bid = j.get<std::string>("Bid");
ask = j.get<std::string>("Ask");
last = j.get<std::string>("Last");
};
std::string bid;
std::string ask;
std::string last;
};
} //Namespace bittrex
|
gurpinars/bittrex-cpp
|
libbittrex/include/libbittrex/models/ticker.h
|
C
|
mit
| 377
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Wetlab Site Launch • The Wetlab</title>
<meta name="description" content="
">
<meta name="keywords" content="">
<!-- Twitter Cards -->
<meta name="twitter:title" content="Wetlab Site Launch">
<meta name="twitter:description" content="
">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="/images/120x120 px default image used for Twitter summary card">
<!-- Open Graph -->
<meta property="og:locale" content="en">
<meta property="og:type" content="article">
<meta property="og:title" content="Wetlab Site Launch">
<meta property="og:description" content="
">
<meta property="og:url" content="/news/">
<meta property="og:site_name" content="The Wetlab">
<link rel="canonical" href="/news/">
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="The Wetlab Atom Feed">
<link href="/sitemap.xml" type="application/xml" rel="sitemap" title="Sitemap">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="cleartype" content="on">
<link rel="stylesheet" href="/css/main.css">
<!-- HTML5 Shiv and Media Query Support for IE -->
<!--[if lt IE 9]>
<script src="/js/vendor/html5shiv.min.js"></script>
<script src="/js/vendor/respond.min.js"></script>
<![endif]-->
</head>
<body id="js-body">
<!--[if lt IE 9]><div class="upgrade notice-warning"><strong>Your browser is quite old!</strong> Why not <a href="http://whatbrowser.org/">upgrade to a newer one</a> to better enjoy this site?</div><![endif]-->
<header id="masthead">
<div class="inner-wrap">
<a href="/" class="site-title">The Wetlab</a>
<nav role="navigation" class="menu top-menu">
<ul class="menu-item">
<li class="home"><a href="/">The Wetlab</a></li>
<li><a href="/" >Home</a></li>
<li><a href="/about/" >About</a></li>
<li><a href="/projects/" >Projects</a></li>
<li><a href="/schedule/" >Schedule</a></li>
<li><a href="/location/" >Location</a></li>
<li><a href="/contact/" >Contact</a></li>
</ul>
</nav>
</div><!-- /.inner-wrap -->
</header><!-- /.masthead -->
<nav role="navigation" id="js-menu" class="sliding-menu-content">
<h5>The Wetlab <span>Table of Contents</span></h5>
<ul class="menu-item">
<li>
<a href="/">
<div class="title">Home</div>
</a>
</li><li>
<a href="/about/">
<div class="title">About</div>
</a>
</li><li>
<a href="/projects/">
<div class="title">Projects</div>
</a>
</li><li>
<a href="/schedule/">
<div class="title">Schedule</div>
</a>
</li><li>
<a href="/location/">
<div class="title">Location</div>
</a>
</li><li>
<a href="/contact/">
<div class="title">Contact</div>
</a>
</li>
</ul>
</nav>
<button type="button" id="js-menu-trigger" class="sliding-menu-button lines-button x2" role="button" aria-label="Toggle Navigation">
<span class="nav-lines"></span>
</button>
<div id="js-menu-screen" class="menu-screen"></div>
<div id="page-wrapper">
<div id="main" role="main">
<article class="wrap" itemscope itemtype="http://schema.org/Article">
<nav class="breadcrumbs">
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="" itemprop="url">
<span itemprop="title">Home</span>
</a> ›
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/news/" itemprop="url">
<span itemprop="title">News</span>
</a>
</span>
</nav><!-- /.breadcrumbs -->
<div class="page-title">
<h1>Wetlab Site Launch</h1>
</div>
<div class="inner-wrap">
<div id="content" class="page-content" itemprop="articleBody">
<hr />
<footer class="page-footer">
<div class="inline-btn">
<a class="btn-social twitter" href="https://twitter.com/intent/tweet?text=Wetlab%20Site%20Launch&url=/news/&via=" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i> Share on Twitter</a>
<a class="btn-social facebook" href="https://www.facebook.com/sharer/sharer.php?u=/news/" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i> Share on Facebook</a>
<a class="btn-social google-plus" href="https://plus.google.com/share?url=/news/" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i> Share on Google+</a>
</div><!-- /.share-this -->
<div class="page-meta">
<p>Updated <time datetime="2016-04-03T02:17:33Z" itemprop="datePublished">April 03, 2016</time></p>
</div><!-- /.page-meta -->
</footer><!-- /.footer -->
<aside>
</aside>
</div><!-- /.content -->
</div><!-- /.inner-wrap -->
</article><!-- /.wrap -->
</div><!-- /#main -->
<footer role="contentinfo" id="site-footer">
<nav role="navigation" class="menu bottom-menu">
<ul class="menu-item">
<li><a href="" ></a></li>
</ul>
</nav><!-- /.bottom-menu -->
<p class="copyright">© 2016 <a href="">The Wetlab</a> powered by <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> + <a href="http://mmistakes.github.io/skinny-bones-jekyll/" rel="nofollow">Skinny Bones</a>.</p>
</footer>
</div>
<script src="/js/vendor/jquery-1.9.1.min.js"></script>
<script src="/js/main.js"></script>
</body>
</html>
|
kylebates1/kylebates1.github.io
|
_site/news/index.html
|
HTML
|
mit
| 5,703
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>reglang: 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.3 / reglang - 1.1.3</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
reglang
<small>
1.1.3
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-12 05:26:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-12 05:26: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 2 Virtual package relying on perl
coq 8.5.3 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
# opam file:
opam-version: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/coq-community/reglang"
dev-repo: "git+https://github.com/coq-community/reglang.git"
bug-reports: "https://github.com/coq-community/reglang/issues"
doc: "https://coq-community.github.io/reglang/"
license: "CECILL-B"
synopsis: "Representations of regular languages (i.e., regexps, various types of automata, and WS1S) with equivalence proofs, in Coq and MathComp"
description: """
This library provides definitions and verified translations between
different representations of regular languages: various forms of
automata (deterministic, nondeterministic, one-way, two-way),
regular expressions, and the logic WS1S. It also contains various
decidability results and closure properties of regular languages."""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"coq" {>= "8.10" & < "8.16~"}
"coq-mathcomp-ssreflect" {>= "1.11" & < "1.15~"}
]
tags: [
"category:Computer Science/Formal Languages Theory and Automata"
"keyword:regular languages"
"keyword:regular expressions"
"keyword:finite automata"
"keyword:two-way automata"
"keyword:monadic second-order logic"
"logpath:RegLang"
"date:2021-01-20"
]
authors: [
"Christian Doczkal"
"Jan-Oliver Kaiser"
"Gert Smolka"
]
url {
src: "https://github.com/coq-community/reglang/archive/v1.1.3.tar.gz"
checksum: "sha512=45085423899a0957922198c24c54c496cc4d4f9f02bd9ed6db72854436982acc9994487b0381bad8046eec5be0252a6fdc2ef0f001e48a0f58c323f1e46ee143"
}
</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-reglang.1.1.3 coq.8.5.3</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.3).
The following dependencies couldn't be met:
- coq-reglang -> coq >= 8.10 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' 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-reglang.1.1.3</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.5.3/reglang/1.1.3.html
|
HTML
|
mit
| 7,553
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Jwt
* jwt加密类
*/
class Jwt
{
/**
* @var int
*/
public static $leeway = 0;
/**
* @var null
*/
public static $timestamp = null;
/**
* @var array
*/
public static $supported_algs = array(
'HS256' => array('hash_hmac', 'SHA256'),
'HS512' => array('hash_hmac', 'SHA512'),
'HS384' => array('hash_hmac', 'SHA384'),
'RS256' => array('openssl', 'SHA256'),
);
/**
* @param $jwt
* @param $key
* @param array $allowed_algs
* @return mixed
*/
public function decode($jwt, $key, $allowed_algs = array('HS256'))
{
$timestamp = is_null(static::$timestamp) ? time() : static::$timestamp;
if (empty($key)) {
throw new InvalidArgumentException('密钥不能为空');//Key may not be empty
}
if (!is_array($allowed_algs)) {
throw new InvalidArgumentException('算法不允许');//Algorithm not allowed
}
$tks = explode('.', $jwt);
if (count($tks) != 3) {
throw new UnexpectedValueException('错误的段数');//Wrong number of segments
}
list($headb64, $bodyb64, $cryptob64) = $tks;
if (null === ($header = static::jsonDecode(static::urlsafeB64Decode($headb64)))) {
throw new UnexpectedValueException('无效的header编码');//Invalid encoding
}
if (null === $payload = static::jsonDecode(static::urlsafeB64Decode($bodyb64))) {
throw new UnexpectedValueException('无效的claims编码');//Invalid claims encoding
}
$sig = static::urlsafeB64Decode($cryptob64);
if (empty($header->alg)) {
throw new UnexpectedValueException('alg是空的');//Empty algorithm
}
if (empty(static::$supported_algs[$header->alg])) {
throw new UnexpectedValueException('算法不支持');//Algorithm not supported
}
if (!in_array($header->alg, $allowed_algs)) {
throw new UnexpectedValueException('算法不允许');//Algorithm not allowed
}
if (is_array($key) || $key instanceof \ArrayAccess) {
if (isset($header->kid)) {
$key = $key[$header->kid];
} else {
throw new UnexpectedValueException('"kid"空,无法查找正确的密钥');//"kid" empty, unable to lookup correct key
}
}
// Check the signature 签名验证失败
if (!static::verify("$headb64.$bodyb64", $sig, $key, $header->alg)) {
throw new UnexpectedValueException('签名验证失败');//Signature verification failed
}
// if (isset($payload->nbf) && $payload->nbf > ($timestamp + static::$leeway)) {
// throw new UnexpectedValueException(
// 'Cannot handle token prior to ' . date(DateTime::ISO8601, $payload->nbf)
// );
// }
//
// if (isset($payload->iat) && $payload->iat > ($timestamp + static::$leeway)) {
// throw new UnexpectedValueException(
// 'Cannot handle token prior to ' . date(DateTime::ISO8601, $payload->iat)
// );
// }
// Check if this token has expired.过期令牌
if (isset($payload->exp) && ($timestamp - static::$leeway) >= $payload->exp) {
throw new UnexpectedValueException('过期令牌');//Expired token
}
return $payload;
}
/**
* @param $msg
* @param $signature
* @param $key
* @param $alg
* @return bool
*/
private static function verify($msg, $signature, $key, $alg)
{
if (empty(static::$supported_algs[$alg])) {
throw new DomainException('Algorithm not supported');
}
list($function, $algorithm) = static::$supported_algs[$alg];
switch($function) {
case 'openssl':
$success = openssl_verify($msg, $signature, $key, $algorithm);
if (!$success) {
throw new DomainException("OpenSSL unable to verify data: " . openssl_error_string());
} else {
return $signature;
}
case 'hash_hmac':
default:
$hash = hash_hmac($algorithm, $msg, $key, true);
if (function_exists('hash_equals')) {
return hash_equals($signature, $hash);
}
$len = min(static::safeStrlen($signature), static::safeStrlen($hash));
$status = 0;
for ($i = 0; $i < $len; $i++) {
$status |= (ord($signature[$i]) ^ ord($hash[$i]));
}
$status |= (static::safeStrlen($signature) ^ static::safeStrlen($hash));
return ($status === 0);
}
}
/**
* @param $input
* @return mixed
*/
public static function jsonDecode($input)
{
if (version_compare(PHP_VERSION, '5.4.0', '>=') && !(defined('JSON_C_VERSION') && PHP_INT_SIZE > 4)) {
/** In PHP >=5.4.0, json_decode() accepts an options parameter, that allows you
* to specify that large ints (like Steam Transaction IDs) should be treated as
* strings, rather than the PHP default behaviour of converting them to floats.
*/
$obj = json_decode($input, false, 512, JSON_BIGINT_AS_STRING);
} else {
/** Not all servers will support that, however, so for older versions we must
* manually detect large ints in the JSON string and quote them (thus converting
*them to strings) before decoding, hence the preg_replace() call.
*/
$max_int_length = strlen((string) PHP_INT_MAX) - 1;
$json_without_bigints = preg_replace('/:\s*(-?\d{'.$max_int_length.',})/', ': "$1"', $input);
$obj = json_decode($json_without_bigints);
}
if (function_exists('json_last_error') && $errno = json_last_error()) {
static::handleJsonError($errno);
} elseif ($obj === null && $input !== 'null') {
throw new DomainException('Null result with non-null input');
}
return $obj;
}
/**
* @param $input
* @return bool|string
*/
public static function urlsafeB64Decode($input)
{
$remainder = strlen($input) % 4;
if ($remainder) {
$padlen = 4 - $remainder;
$input .= str_repeat('=', $padlen);
}
return base64_decode(strtr($input, '-_', '+/'));
}
/**
* @param $str
* @return int
*/
private static function safeStrlen($str)
{
if (function_exists('mb_strlen')) {
return mb_strlen($str, '8bit');
}
return strlen($str);
}
/**
* @param $payload
* @param $key
* @param string $alg
* @param null $keyId
* @param null $head
* @return string
*/
public function encode($payload, $key, $alg = 'HS256', $keyId = null, $head = null)
{
$header = array('typ' => 'JWT', 'alg' => $alg);
if ($keyId !== null) {
$header['kid'] = $keyId;
}
if ( isset($head) && is_array($head) ) {
$header = array_merge($head, $header);
}
$segments = array();
$segments[] = static::urlsafeB64Encode(static::jsonEncode($header));
$segments[] = static::urlsafeB64Encode(static::jsonEncode($payload));
$signing_input = implode('.', $segments);
$signature = static::sign($signing_input, $key, $alg);
$segments[] = static::urlsafeB64Encode($signature);
return implode('.', $segments);
}
/**
* @param $msg
* @param $key
* @param string $alg
* @return string
*/
public static function sign($msg, $key, $alg = 'HS256')
{
if (empty(static::$supported_algs[$alg])) {
throw new DomainException('Algorithm not supported');
}
list($function, $algorithm) = static::$supported_algs[$alg];
switch($function) {
case 'hash_hmac':
return hash_hmac($algorithm, $msg, $key, true);
case 'openssl':
$signature = '';
$success = openssl_sign($msg, $signature, $key, $algorithm);
if (!$success) {
throw new DomainException("OpenSSL unable to sign data");
} else {
return $signature;
}
}
}
/**
* @param $input
* @return string
*/
public static function jsonEncode($input)
{
$json = json_encode($input);
if (function_exists('json_last_error') && $errno = json_last_error()) {
static::handleJsonError($errno);
} elseif ($json === 'null' && $input !== null) {
throw new DomainException('Null result with non-null input');
}
return $json;
}
/**
* @param $input
* @return mixed
*/
public static function urlsafeB64Encode($input)
{
return str_replace('=', '', strtr(base64_encode($input), '+/', '-_'));
}
/**
* Helper method to create a JSON error.
* @param int $errno An error number from json_last_error()
* @return void
*/
private static function handleJsonError($errno)
{
$messages = array(
JSON_ERROR_DEPTH => 'Maximum stack depth exceeded',
JSON_ERROR_CTRL_CHAR => 'Unexpected control character found',
JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON'
);
throw new DomainException(
isset($messages[$errno])
? $messages[$errno]
: 'Unknown JSON error: ' . $errno
);
}
}
|
wuanlife/wuanlife_api
|
application/libraries/Jwt.php
|
PHP
|
mit
| 9,916
|
<div class="content-section introduction">
<div class="feature-intro">
<h1>Polar Area Chart</h1>
<p>Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.</p>
</div>
<app-demoActions github="chart/polarareachart"></app-demoActions>
</div>
<div class="content-section implementation">
<div class="card flex justify-content-center">
<p-chart type="polarArea" [data]="data" [options]="chartOptions" [style]="{'width': '40%'}"></p-chart>
</div>
</div>
<div class="content-section documentation">
<p-tabView>
<p-tabPanel header="Source">
<a href="https://github.com/primefaces/primeng/tree/master/src/app/showcase/components/chart/polarareachart" class="btn-viewsource" target="_blank">
<span>View on GitHub</span>
</a>
<app-code lang="markup" ngNonBindable ngPreserveWhitespaces>
<p-chart type="polarArea" [data]="data" [options]="chartOptions" [style]="{'width': '40%'}"></p-chart>
</app-code>
<app-code lang="typescript" ngNonBindable ngPreserveWhitespaces>
export class PolarAreaChartDemo {
data: any;
chartOptions: any;
subscription: Subscription;
config: AppConfig;
constructor(private configService: AppConfigService) {}
ngOnInit() {
this.data = {
datasets: [{
data: [
11,
16,
7,
3,
14
],
backgroundColor: [
"#42A5F5",
"#66BB6A",
"#FFA726",
"#26C6DA",
"#7E57C2"
],
label: 'My dataset'
}],
labels: [
"Red",
"Green",
"Yellow",
"Grey",
"Blue"
]
};
this.config = this.configService.config;
this.updateChartOptions();
this.subscription = this.configService.configUpdate$.subscribe(config => {
this.config = config;
this.updateChartOptions();
});
}
updateChartOptions() {
this.chartOptions = this.config && this.config.dark ? this.getDarkTheme() : this.getLightTheme();
}
getLightTheme() {
return {
plugins: {
legend: {
labels: {
color: '#495057'
}
}
},
scales: {
r: {
grid: {
color: '#ebedef'
}
}
}
}
}
getDarkTheme() {
return {
plugins: {
legend: {
labels: {
color: '#ebedef'
}
}
},
scales: {
r: {
grid: {
color: 'rgba(255,255,255,0.2)'
}
}
}
}
}
}
</app-code>
</p-tabPanel>
</p-tabView>
</div>
|
primefaces/primeng
|
src/app/showcase/components/chart/polarareachart/polarareachartdemo.html
|
HTML
|
mit
| 3,507
|
/*
* The MIT License
*
* Copyright (c) 2019, CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package hudson.plugins.groovy;
import hudson.util.FormValidation;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
public class StringScriptSourceTest {
@Rule
public JenkinsRule j = new JenkinsRule();
@Issue("SECURITY-1293")
@Test
public void blockASTTest() throws Exception {
StringScriptSource.DescriptorImpl d = j.jenkins.getDescriptorByType(StringScriptSource.DescriptorImpl.class);
assertThat(d.doCheckScript("import groovy.transform.*\n" +
"import jenkins.model.Jenkins\n" +
"import hudson.model.FreeStyleProject\n" +
"@ASTTest(value={ assert Jenkins.getInstance().createProject(FreeStyleProject.class, \"should-not-exist\") })\n" +
"@Field int x\n" +
"echo 'hello'\n").toString(), containsString("Annotation ASTTest cannot be used in the sandbox"));
assertNull(j.jenkins.getItem("should-not-exist"));
}
@Issue("SECURITY-1293")
@Test
public void blockGrab() throws Exception {
StringScriptSource.DescriptorImpl d = j.jenkins.getDescriptorByType(StringScriptSource.DescriptorImpl.class);
assertThat(d.doCheckScript("@Grab(group='foo', module='bar', version='1.0')\ndef foo\n").toString(),
containsString("Annotation Grab cannot be used in the sandbox"));
}
@Issue("SECURITY-1338")
@Test
public void doNotExecuteConstructors() throws Exception {
StringScriptSource.DescriptorImpl d = j.jenkins.getDescriptorByType(StringScriptSource.DescriptorImpl.class);
assertThat(d.doCheckScript("class DoNotRunConstructor {\n" +
" static void main(String[] args) {}\n" +
" DoNotRunConstructor() {\n" +
" assert jenkins.model.Jenkins.instance.createProject(hudson.model.FreeStyleProject, 'should-not-exist')\n" +
" }\n" +
"}\n").kind, equalTo(FormValidation.Kind.OK)); // Compilation ends before the constructor is invoked.
assertNull(j.jenkins.getItem("should-not-exist"));
}
}
|
jenkinsci/groovy-plugin
|
src/test/java/hudson/plugins/groovy/StringScriptSourceTest.java
|
Java
|
mit
| 3,461
|
<aside id="featured" class="body">
<article>
<figure>
<img src="img/logo/<?= $prj->slug ?>.png" alt="<?= sprintf(_('Project’s logo for %s'), $prj->name) ?>" />
</figure>
<hgroup>
<h2><?= $prj->name ?></h2>
<h3><?= $prj->short ?></h3>
</hgroup>
<p><?= Malenki\Ruche\Util\RichText::getFormated($prj->description) ?></p>
</article>
</aside>
<section id="content" class="body">
<?php if(count($mls)): ?>
<ol id="posts-list" class="hfeed">
<?php foreach($mls as $m): ?>
<li>
<article class="hentry">
<header>
<h2 class="entry-title"><a href="/project/<?= $prj->slug ?>/roadmap/<?= $m->id ?>" rel="bookmark" title="Permalink to this <?= $m->name ?>"><?= $m->name ?></a></h2>
</header>
<footer class="post-info">
<abbr class="published" title="<?= $m->ttd ?>">
<?= $m->ttd ?>
</abbr>
<!-- à faire -->
<address class="vcard author">
Par <a class="url fn" href="#">Michel Petit</a>
</address>
</footer>
<div class="entry-content">
<p><?= $m->description ?></p>
</div>
</article>
</li>
<?php endforeach; ?>
</ol>
<?php else: ?>
<p><a href="#"><?= _('No milestone defined. You can create one now') ?></a></p>
<?php endif; ?>
</section>
<section id="extras" class="body">
<!-- Cette liste correspondra aux événements, sera mise à jour via Ajax, une ligne par événement -->
<div class="activityroll">
<h2>Activité</h2>
<ul>
<li><a href="#"><abbr class="published" title="2013-03-20T20:18:45+01:00">Aujourd’hui à 20h10</abbr> Révision <strong class="revision">[3045]</strong> par <strong class="author">Malenki</strong> <em>Corrige un test foireux</em></a></li>
<li><a href="#"><abbr class="published" title="2013-03-20T20:18:45+01:00">Aujourd’hui à 18h20</abbr> Le ticket <strong class="ticket">#745</strong> a été créé par <strong class="author">Elvis</strong> <em>La génération de page échoue sur Windows Vista avec PHP 5.3</em></a></li>
<li><a href="#"><abbr class="published" title="2013-03-20T20:18:45+01:00">Aujourd’hui à 14h30</abbr> Le ticket <strong class="ticket">#744</strong> a été créé par <strong class="author">Malenki</strong> <em>Créer de nouvelles entrées dans le fichier de configuration</em></a></li>
<li><a href="#"><abbr class="published" title="2013-03-19T22:54:45+01:00">Hier à 22h54</abbr> Révision <strong class="revision">[3044]</strong> par <strong class="author">Elvis</strong> <em>Windows sucks, alors j’ai mis en place un hack…</em></a></li>
<li><a href="#"><abbr class="published" title="2013-03-20T20:18:45+01:00">Hier à 20h02</abbr> Nouveau commentaire sur <strong class="ticket">#653</strong> par <strong class="author">Malenki</strong> <em>Serait-il possible d’utiliser la bibliothèque Yaml de Symfony pour…</em></a></li>
</ul>
</div>
</section>
|
malenkiki/reine
|
templates/WebProjectsShow.php
|
PHP
|
mit
| 3,223
|
/* RIGHT */
:local .objectManager::-webkit-scrollbar-thumb {
background-color: transparent;
}
:local .objectManager::-webkit-scrollbar-track {
background-color: transparent;
}
:local .objectManager::-webkit-scrollbar {
width: 0.6em;
}
:local .objectManager:hover::-webkit-scrollbar-thumb{
background-color: var(--tabs-accent-color);
}
/* RIGHT - END */
/* LEFT */
:local .tabs{
display: flex;
flex-direction: column;
z-index: 2;
}
:local .tabs > div {
display: flex;
padding: 9px 35px 9px 30px;
border-right: 4px solid transparent;
}
:local .tabs :first-child {
border-right-color: var(--tabs-accent-color);
}
/* LEFT - END */
/* MIDDLE */
:local .separator{
width: 1px;
background-color: var(--tabs-separator);
margin-left: -1px;
}
/* MIDDLE - END */
/* RIGHT */
:local .details{
flex: 1;
padding: 15px 35px;
overflow: auto;
}
:local .details::-webkit-scrollbar-thumb {
background-color: transparent;
}
:local .details::-webkit-scrollbar-track {
background-color: transparent;
}
:local .details::-webkit-scrollbar {
width: 0.6em;
}
:local .details:hover::-webkit-scrollbar-thumb{
background-color: var(--tabs-accent-color);
}
/* RIGHT - END */
:local .title{
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 10px;
}
:local .title :last-child{
font-size: 22px;
font-weight: bold;
}
:local .description{
text-align: justify;
}
/* BASIC */
:local .rows{
display: flex;
flex-direction: column;
padding: 0px 70px;
}
:local .field{
display: flex;
justify-content: flex-start;
margin: 8px 0px;
}
:local .label{
min-width: 140px;
text-align: left;
font-weight: 500;
}
:local .input{
font-size: 13px;
height: 24px;
outline: none;
caret-color: var(--tabs-accent-color);
border-radius: 2px;
border: 1px solid #b7c4ce;
background-color: inherit;
padding: 0px 7px;
display: flex;
align-items: center;
justify-content: center;
min-width: 180px;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
}
:local .image{
border-radius: 2px;
min-width: 180px;
padding: 0px 7px;
display: flex;
align-items: center;
justify-content: center;
background-color: inherit;
height: 50px;
border: 1px dashed #4b4c5f;
cursor: pointer;
}
/* Fields */
:local .fields{
display: flex;
flex-direction: column;
padding: 0px 70px;
align-items: flex-start;
}
:local .fields > div{
display: flex;
margin: 10px 0px;
}
:local .fieldsDesc{
}
:local .fieldsNames {
flex-direction: column;
width: 100%;
}
:local .fieldsNames > div {
display: flex;
}
:local .rowName{
display: flex;
}
:local .sectionRows {
flex: 1;
flex-wrap: wrap;
flex-direction: row;
display: flex;
}
:local .fieldsNew {
}
:local .preview{
padding: 0px 70px;
display: flex;
flex-direction: column;
}
:local .previewTable > div > div:last-child{
border: 1px solid rgb(221, 221, 221);
}
/* My components */
:local .sectionTitle {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 30px;
}
:local .sectionTitle :first-child {
font-size: 10px;
margin-right: 10px;
color: rgb(131, 131, 131);
text-transform: uppercase;
letter-spacing: 1px;
}
:local .sectionTitle :last-child {
flex: 1;
height: 1px;
background-color: rgb(201, 201, 201);
}
:local .finish {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
margin-bottom: 50px;
}
:local .finish > div {
box-shadow: rgb(214, 214, 214) 4px 4px 2px 0px;
text-transform: uppercase;
transition: all 0.3s linear;
user-select: none;
letter-spacing: 1px;
cursor: pointer;
font-size: 10pt;
font-weight: 500;
padding: 10px 17px 10px 17px;
border-radius: 5px;
background-color: #7283ff;
color: white;
}
|
pastahito/remus
|
src/renderer_process/app/components/objectManager/styles.css
|
CSS
|
mit
| 4,019
|
local require=require;
local loadfile=loadfile;
local print=print;
local attrdir=require "file.attrdir"
function isLUA(path)
if path:sub(-4,-1) ==".lua" then
return true;
end
return false;
end
function requirelua(path)
--[[TODO
path=path:sub(3,-1)
path=path:sub(1,-5)
path=path:gsub("/",".")
require(path)]]
local statu,err=loadfile(path)
if statu==nil then
return false,err
else
statu();
return true;
end
end
function importer(path)
if(isLUA(path)) then
requirelua(path)
end
end
function importall(path)
attrdir(path,importer)
end
return importall
|
czfshine/luagy
|
require/importall.lua
|
Lua
|
mit
| 612
|
<html>
<head>
<title>Sandra Howard's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#include virtual="nav.txt" -->
<div class="page">
<h1>Sandra Howard's panel show appearances</h1>
<p>Sandra Howard has appeared in <span class="total">2</span> episodes between 2005-2006. <a href="https://en.wikipedia.org/wiki/Sandra_Howard">Sandra Howard on Wikipedia</a>.</p>
<div class="performerholder">
<table class="performer">
<tr style="vertical-align:bottom;">
<td><div style="height:100px;" class="performances female" title="1"></div><span class="year">2005</span></td>
<td><div style="height:100px;" class="performances female" title="1"></div><span class="year">2006</span></td>
</tr>
</table>
</div>
<ol class="episodes">
<li><strong>2006-10-05</strong> / <a href="../shows/question-time.html">Question Time</a></li>
<li><strong>2005-04-19</strong> / <a href="../shows/loosewomen.html">Loose Women</a></li>
</ol>
</div>
</body>
</html>
|
slowe/panelshows
|
people/basoq775.html
|
HTML
|
mit
| 1,196
|
class Solution {
public:
vector<int> addNegabinary(vector<int>& arr1, vector<int>& arr2) {
vector<int> result;
int i = arr1.size() - 1, j = arr2.size() - 1, carry = 0;
while (i >= 0 || j >= 0 || carry) {
int s = carry;
if (i >= 0) {
s += arr1[i--];
}
if (j >= 0) {
s += arr2[j--];
}
result.push_back(s & 1);
carry = -(s >> 1);
}
while (result.size() > 1 && result.back() == 0) {
result.pop_back();
}
reverse(result.begin(), result.end());
return result;
}
};
|
jiadaizhao/LeetCode
|
1001-1100/1073-Adding Two Negabinary Numbers/1073-Adding Two Negabinary Numbers.cpp
|
C++
|
mit
| 660
|
/*!
* @file tree_binary.h
* @brief Binary tree function declarations.
*
* @defgroup tree_binary
* @ingroup sukat_drawer
* @{
*/
#ifndef SUKAT_BINARY_TREE_H
#define SUKAT_BINARY_TREE_H
#include <stdbool.h>
#include "sukat_drawer.h"
typedef struct tree_ctx tree_ctx_t;
typedef struct tree_node_ctx tree_node_t;
/*!
* Main context for a tree.
*/
struct tree_ctx
{
enum sukat_drawer_type type; //!< Type mandatory at each drawer type start.
tree_node_t *root; //!< Root of tree.
struct sukat_drawer_params params;
struct sukat_drawer_cbs cbs;
bool destroyed; //!< True if destroy has been called for the tree.
};
/*!
* Main context for each node
*/
struct tree_node_ctx
{
enum sukat_drawer_type type; //!< Type mandatory at each drawer type start.
tree_node_t *parent; //!< Parent node.
tree_node_t *left; //!< Left == smaller value node.
tree_node_t *right; //!< Right == larger value node.
bool removed; /*!< True if this has been explicitly removed. destroyed_cb
wont be called */
union
{
int height;
} meta;
void *data;
};
/*!
* Gets the pointer pointing to the current \p node from its parent or
* the tree root pointer if the node is the trees root.
*
* @param ctx Tree context.
* @param node Node for which pointer is requests.
*
* @return != NULL Parents pointer to \p node
*/
tree_node_t **tree_binary_parents_ptr(tree_ctx_t *tree,
tree_node_t *node);
/*!
* @brief Inserts \p data into the binary tree, creating a new node.
*
* @param ctx Tree context.
* @param data Data to add.
*
* @return != NULL Created nodes pointer.
* @return == NULL Failure.
*/
tree_node_t *tree_binary_insert(tree_ctx_t *ctx, void *data);
/*!
* @brief Finds the minimum in \p node
*
* @param node Subtree of which minimum is desired
*
* @return node Node containing the minimum value.
* @return NULL \p was null.
*/
tree_node_t *tree_binary_minimum(tree_node_t *node);
/*!
* @brief Returns the successor of \p node, which is the next biggest value.
*
* @param node Node for which to find successor.
*
* @return != NULL Successor of \p node.
* @return NULL No successor for \p node.
*/
tree_node_t *tree_binary_successor(tree_node_t *node);
/*!
* @brief Detaches the \p node from \p ctx tree.
*
* @param ctx Tree context.
* @param node Node to remove
*
* @return != NULL Lowest node affected by change.
* @return == NULL No effects.
*/
tree_node_t *tree_binary_detach(tree_ctx_t *ctx,
tree_node_t *node);
/*!
* @brief Rotates the \p node left in the tree.
*
* @param tree Tree context.
* @param node Node to rotate
*/
void tree_binary_rotate_left(tree_ctx_t *tree, tree_node_t *node);
/*!
* @brief Rotates the \p node right in the tree.
*
* @param tree Tree context.
* @param node Node to rotate
*/
void tree_binary_rotate_right(tree_ctx_t *tree, tree_node_t *node);
/*!
* @brief Finds the node with \p key. If \p node is given, the search is
* continued from \p node and not from root.
*
* @param ctx Tree context.
* @param node Optional start of search
* @param key Key to search for.
*
* @return != NULL Found node.
* @return == NULL No node with \p key found
*/
tree_node_t *tree_binary_find(tree_ctx_t *ctx,
tree_node_t *node, void *key);
/*!
* @brief Performs a depth_first search of the tree calling \p node_cb with
* \p caller_ctx for each node.
*
* @param ctx Tree context.
* @param node_cb Callback to invoke for each node.
* @param caller_ctx Context given to caller on each node
*/
void tree_binary_depth_first(tree_ctx_t *ctx,
sukat_drawer_node_cb node_cb, void *caller_ctx);
/*!
* @brief \ref sukat_drawer_node_data
*/
void *tree_binary_node_data(tree_node_t *node);
/*!
* @brief \ref sukat_drawer_destroy
*/
void tree_binary_destroy(tree_ctx_t *ctx);
/*!
* Frees the given node. Calls destroy_cb if it is set and the node was not
* explicitly removed.
*
* @param ctx Tree context.
* @param node Node context.
*/
void tree_binary_node_free(tree_ctx_t *ctx, tree_node_t *node);
#endif /* SUKAT_BINARY_TREE_H */
|
tlsalmin/sukat
|
src/tree_binary.h
|
C
|
mit
| 4,295
|
"""Forms of the aps_bom app."""
from csv import DictReader
from django import forms
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as __
from .models import BOM, BOMItem, CBOM, CBOMItem, EPN, IPN, Unit
class BaseUploadForm(forms.ModelForm):
csv_file = forms.FileField()
def append_error(self, error_message, field="__all__"):
if field in self.errors:
self.errors[field].append(error_message)
else:
self.errors[field] = [error_message]
def clean(self):
cleaned_data = super(BaseUploadForm, self).clean()
# don't do anything with the file if there are errors already
if any(self.errors):
return cleaned_data
if self.Meta.model == CBOM:
self.company = self.cleaned_data['customer']
# initiate the csv dictreader with the uploaded file
temp_csv_file = self.files.get('csv_file')
with open(temp_csv_file.temporary_file_path(), 'rU') as csv_file:
self.reader = DictReader(csv_file)
self.clean_lines()
return cleaned_data
def clean_lines(self):
# update the fieldnames to match the ones on the model
new_names = []
for fieldname in self.reader.fieldnames:
new_names.append(fieldname.lower())
self.reader.fieldnames = new_names
# iterate over the lines and clean the values
self.clean_lines = []
for line_dict in self.reader:
for key, value in line_dict.iteritems():
# strip blank spaces
value = value.strip()
line_dict[key] = value
if key == 'consign':
if value == '0':
value = False
else:
value = True
line_dict[key] = value
if key == 'ipn':
try:
ipn = IPN.objects.get(code=value)
except IPN.DoesNotExist:
this_link = (
'<a href="{0}" target="_blank">{0}</a>'.format(
reverse('admin:aps_bom_ipn_add')))
self.append_error(__(
'The ipn "{0}" does not exist.'
' Please create it first. {1}'.format(
value, this_link)))
except IPN.MultipleObjectsReturned:
# TODO temporary workaround
self.append_error(__(
'There are multiple entries for the IPN "{0}".'
' Please resolve this error before'
' uploading.'.format(value)), field='ipn')
else:
line_dict[key] = ipn
if key == 'unit':
try:
unit = Unit.objects.get(code=value)
except Unit.DoesNotExist:
this_link = (
'<a href="{0}" target="_blank">{0}</a>'.format(
reverse('admin:aps_bom_unit_add')))
self.append_error(__(
'The unit "{0}" does not exist.'
' Please create it first. {1}'.format(
value, this_link)))
else:
line_dict[key] = unit
if key == 'epn':
try:
epn = EPN.objects.get(epn=value, company=self.company)
except EPN.DoesNotExist:
epn = EPN.objects.create(
description=line_dict.get('description'),
epn=value, company=self.company)
this_link = (
'<a href="{0}" target="_blank">{0}</a>'.format(
reverse('admin:aps_bom_epn_change',
args=(epn.id, ))))
self.append_error(__(
'The EPN "{0}" does not exist.'
' Please visit {1} to update it and then'
' re-upload the file.'.format(
value, this_link)))
else:
if epn.ipn is None or epn.cpn is None:
this_link = (
'<a href="{0}" target="_blank">{0}</a>'.format(
reverse('admin:aps_bom_epn_change',
args=(epn.id, ))))
self.append_error(__(
'The EPN "{0}" does not have all the'
' required data.'
' Please visit {1} to update it and then'
' re-upload the file.'.format(
value, this_link)))
else:
line_dict[key] = epn
if key == 'shape':
pass
line_dict.pop('description')
if 'shape' in line_dict:
line_dict.pop('shape')
self.clean_lines.append(line_dict)
return self.clean_lines
class BOMUploadForm(BaseUploadForm):
"""Custom ModelForm, that handles the upload for BOM.csv files."""
def __init__(self, *args, **kwargs):
super(BOMUploadForm, self).__init__(*args, **kwargs)
self.fields['ipn'].required = True
def save(self):
instance = super(BOMUploadForm, self).save()
for bomitemdict in self.clean_lines:
bomitemdict.update({'bom': instance})
BOMItem.objects.create(**bomitemdict)
return instance
class Meta:
model = BOM
fields = ['description', 'ipn']
class CBOMUploadForm(BaseUploadForm):
"""Custom ModelForm, that handles the upload for cBOM.csv files."""
def save(self):
instance = super(CBOMUploadForm, self).save()
for cbomitemdict in self.clean_lines:
cbomitemdict.update({'bom': instance})
CBOMItem.objects.create(**cbomitemdict)
return instance
class Meta:
model = CBOM
fields = [
'customer', 'description', 'html_link', 'product', 'version_date']
|
bitmazk/django-aps-bom
|
aps_bom/forms.py
|
Python
|
mit
| 6,549
|
class RenameBillingPeriodReferences < ActiveRecord::Migration
def up
rename_column :billing_schedules, :billing_period_id, :billing_period_range_id
rename_column :bills, :billing_period_id, :billing_period_range_id
end
def down
rename_column :billing_schedules, :billing_period_range_id, :billing_period_id
rename_column :bills, :billing_period_range_id, :billing_period_id
end
end
|
jbrowning/billy
|
db/migrate/20130305040107_rename_billing_period_references.rb
|
Ruby
|
mit
| 407
|
require "test_helper"
class CrossCrusadeOverallTest < ActiveSupport::TestCase
def test_recalc_with_no_series
competition_count = Competition.count
CrossCrusadeOverall.calculate!
CrossCrusadeOverall.calculate!(2007)
assert_equal(competition_count, Competition.count, "Should add no new Competition if there are no Cross Crusade events")
end
def test_recalc_with_one_event
series = Series.create!(:name => "Cross Crusade")
event = series.children.create!(:date => Date.new(2007, 10, 7), :name => "Cross Crusade #4")
series.children.create!(:date => Date.new(2007, 10, 14))
series.children.create!(:date => Date.new(2007, 10, 21))
series.children.create!(:date => Date.new(2007, 10, 28))
series.children.create!(:date => Date.new(2007, 11, 5))
series.reload
assert_equal(Date.new(2007, 10, 7), series.date, "Series date")
cat_a = Category.find_or_create_by_name("Category A")
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 1, :person => people(:weaver))
cat_a_race.results.create!(:place => 9, :person => people(:tonkin))
masters_35_plus_women = Category.find_or_create_by_name("Masters Women 35+")
masters_race = event.races.create!(:category => masters_35_plus_women)
masters_race.results.create!(:place => 15, :person => people(:alice))
masters_race.results.create!(:place => 19, :person => people(:molly))
# Previous year should be ignored
previous_event = Series.create!(:name => "Cross Crusade").children.create!(:date => Date.new(2006), :name => "Cross Crusade #3")
previous_event.races.create!(:category => cat_a).results.create!(:place => 6, :person => people(:weaver))
# Following year should be ignored
following_event = Series.create!(:name => "Cross Crusade").children.create!(:date => Date.new(2008))
following_event.races.create!(:category => cat_a).results.create!(:place => 10, :person => people(:weaver))
CrossCrusadeOverall.calculate!(2007)
assert_not_nil(series.overall(true), "Should add new Overall Competition child to parent Series")
overall = series.overall
assert_equal(18, overall.races.size, "Overall races")
CrossCrusadeOverall.calculate!(2007)
assert_not_nil(series.overall(true), "Should add new Overall Competition child to parent Series")
overall = series.overall
assert_equal(18, overall.races.size, "Overall races")
assert(!overall.notes.blank?, "Should have notes about rules")
cx_a_overall_race = overall.races.detect { |race| race.category == cat_a }
assert_not_nil(cx_a_overall_race, "Should have Men A overall race")
assert_equal(2, cx_a_overall_race.results.size, "Men A race results")
cx_a_overall_race.results(true).sort!
result = cx_a_overall_race.results.first
assert_equal(false, result.preliminary?, "Preliminary?")
assert_equal("1", result.place, "Men A first result place")
assert_equal(26, result.points, "Men A first result points")
assert_equal(people(:weaver), result.person, "Men A first result person")
result = cx_a_overall_race.results.last
assert_equal(false, result.preliminary?, "Preliminary?")
assert_equal("2", result.place, "Men A second result place")
assert_equal(10, result.points, "Men A second result points (double points for last result)")
assert_equal(people(:tonkin), result.person, "Men A second result person")
masters_35_plus_women_overall_race = overall.races.detect { |race| race.category == masters_35_plus_women }
assert_not_nil(masters_35_plus_women_overall_race, "Should have Masters Women overall race")
assert_equal(1, masters_35_plus_women_overall_race.results.size, "Masters Women race results")
result = masters_35_plus_women_overall_race.results.first
assert_equal(false, result.preliminary?, "Preliminary?")
assert_equal("1", result.place, "Masters Women first result place")
assert_equal(4, result.points, "Masters Women first result points (double points for last result)")
assert_equal(people(:alice), result.person, "Masters Women first result person")
end
def test_many_results
series = Series.create!(:name => "Cross Crusade")
masters = Category.find_or_create_by_name("Masters 35+ A")
category_a = Category.find_or_create_by_name("Category A")
singlespeed = Category.find_or_create_by_name("Singlespeed")
person = Person.create!(:name => "John Browning")
event = series.children.create!(:date => Date.new(2008, 10, 5))
event.races.create!(:category => masters).results.create!(:place => 1, :person => person)
event = series.children.create!(:date => Date.new(2008, 10, 12))
event.races.create!(:category => masters).results.create!(:place => 1, :person => person)
event = series.children.create!(:date => Date.new(2008, 10, 19))
event.races.create!(:category => masters).results.create!(:place => 2, :person => person)
event.races.create!(:category => category_a).results.create!(:place => 4, :person => person)
event.races.create!(:category => singlespeed).results.create!(:place => 5, :person => person)
event = series.children.create!(:date => Date.new(2008, 10, 26))
event.races.create!(:category => masters).results.create!(:place => 1, :person => person)
event = series.children.create!(:date => Date.new(2008, 11, 2))
event.races.create!(:category => masters).results.create!(:place => 2, :person => person)
event = series.children.create!(:date => Date.new(2008, 11, 9))
event.races.create!(:category => masters).results.create!(:place => 1, :person => person)
event.races.create!(:category => category_a).results.create!(:place => 20, :person => person)
event.races.create!(:category => singlespeed).results.create!(:place => 12, :person => person)
event = series.children.create!(:date => Date.new(2008, 11, 10))
event.races.create!(:category => masters).results.create!(:place => 1, :person => person)
event = series.children.create!(:date => Date.new(2008, 11, 17))
event.races.create!(:category => masters).results.create!(:place => 3, :person => person)
event.races.create!(:category => category_a).results.create!(:place => 20, :person => person)
CrossCrusadeOverall.calculate!(2008)
masters_overall_race = series.overall.races.detect { |race| race.category == masters }
assert_not_nil(masters_overall_race, "Should have Masters overall race")
masters_overall_race.results(true).sort!
result = masters_overall_race.results.first
assert_equal(false, result.preliminary?, "Preliminary?")
assert_equal("1", result.place, "place")
assert_equal(6, result.scores.size, "Scores")
assert_equal(26 + 26 + 0 + 26 + 0 + 26 + 26 + (16 * 2), result.points, "points")
assert_equal(person, result.person, "person")
category_a_overall_race = series.overall.races.detect { |race| race.category == category_a }
assert_not_nil(category_a_overall_race, "Should have Category A overall race")
category_a_overall_race.results(true).sort!
result = category_a_overall_race.results.first
assert_equal(false, result.preliminary?, "Preliminary?")
assert_equal("1", result.place, "place")
assert_equal(1, result.scores.size, "Scores")
assert_equal(15, result.points, "points")
assert_equal(person, result.person, "person")
singlespeed_overall_race = series.overall.races.detect { |race| race.category == singlespeed }
assert_not_nil(singlespeed_overall_race, "Should have Singlespeed overall race")
assert(singlespeed_overall_race.results.empty?, "Should not have any singlespeed results")
end
def test_preliminary_results_after_event_minimum
series = Series.create!(:name => "Cross Crusade")
series.children.create!(:date => Date.new(2007, 10, 7))
series.children.create!(:date => Date.new(2007, 10, 14))
series.children.create!(:date => Date.new(2007, 10, 21))
series.children.create!(:date => Date.new(2007, 10, 28))
series.children.create!(:date => Date.new(2007, 11, 5))
cat_a = Category.find_or_create_by_name("Category A")
cat_a_race = series.children[0].races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 1, :person => people(:weaver))
cat_a_race.results.create!(:place => 2, :person => people(:tonkin))
cat_a_race = series.children[1].races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 43, :person => people(:weaver))
cat_a_race = series.children[2].races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 1, :person => people(:weaver))
cat_a_race = series.children[3].races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 8, :person => people(:tonkin))
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert_not_nil(category_a_overall_race, "Should have Category A overall race")
category_a_overall_race.results(true).sort!
result = category_a_overall_race.results.first
assert_equal(false, result.preliminary?, "Weaver did three races. His result should not be preliminary")
result = category_a_overall_race.results.last
assert_equal(true, result.preliminary?, "Tonkin did only two races. His result should be preliminary")
end
def test_raced_minimum_events_boundaries
series = Series.create!(:name => "Cross Crusade")
cat_a = Category.find_or_create_by_name("Category A")
molly = people(:molly)
event = series.children.create!(:date => Date.new(2007, 10, 7))
# Molly does three races in different categories
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 6, :person => molly)
single_speed_race = event.races.create!(:category => categories(:single_speed))
single_speed_race.results.create!(:place => 8, :person => molly)
masters_women_race = event.races.create!(:category => categories(:masters_women))
masters_women_race.results.create!(:place => 10, :person => molly)
cat_a_race.results.create!(:place => 17, :person => people(:alice))
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert(!series.overall.raced_minimum_events?(molly, category_a_overall_race), "One event. No people have raced minimum")
assert(!series.overall.raced_minimum_events?(people(:alice), category_a_overall_race), "One event. No people have raced minimum")
event = series.children.create!(:date => Date.new(2007, 10, 14))
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 14, :person => molly)
cat_a_race.results.create!(:place => 6, :person => people(:alice))
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert(!series.overall.raced_minimum_events?(molly, category_a_overall_race), "Two events. No people have raced minimum")
assert(!series.overall.raced_minimum_events?(people(:alice), category_a_overall_race), "Two events. No people have raced minimum")
event = series.children.create!(:date => Date.new(2007, 10, 21))
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => "DNF", :person => molly)
single_speed_race = event.races.create!(:category => categories(:single_speed))
single_speed_race.results.create!(:place => 8, :person => people(:alice))
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall(true).races.detect { |race| race.category == cat_a }
assert(series.overall.raced_minimum_events?(molly, category_a_overall_race), "Three events. Molly has raced minimum")
assert(!series.overall.raced_minimum_events?(people(:alice), category_a_overall_race), "Three events. Alice has not raced minimum")
event = series.children.create!(:date => Date.new(2007, 10, 28))
cat_a_race = event.races.create!(:category => cat_a)
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert(series.overall.raced_minimum_events?(molly, category_a_overall_race), "Four events. Molly has raced minimum")
assert(!series.overall.raced_minimum_events?(people(:alice), category_a_overall_race), "Four events. Alice has not raced minimum")
end
def test_minimum_events_should_handle_results_without_person
series = Series.create!(:name => "Cross Crusade")
cat_a = Category.find_or_create_by_name("Category A")
event = series.children.create!(:date => Date.new(2007, 10, 7))
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 17)
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert(!series.overall.raced_minimum_events?(nil, category_a_overall_race), "Nil person should never have mnimum events")
end
def test_count_six_best_results
series = Series.create!(:name => "Cross Crusade")
category_a = Category.find_or_create_by_name("Category A")
person = Person.create!(:name => "Kevin Hulick")
date = Date.new(2008, 10, 19)
[8, 3, 10, 7, 8, 7, 8].each do |place|
series.children.create!(:date => date).races.create!(:category => category_a).results.create!(:place => place, :person => person)
date = date + 7
end
# Simulate 7 of 8 events. Last, double-point event still in future
series.children.create!(:date => date).races.create!(:category => category_a)
CrossCrusadeOverall.calculate!(2008)
category_a_overall_race = series.overall.races.detect { |race| race.category == category_a }
assert_not_nil(category_a_overall_race, "Should have Category A overall race")
category_a_overall_race.results(true).sort!
result = category_a_overall_race.results.first
assert_equal(6, result.scores.size, "Scores")
assert_equal(16 + 12 + 12 + 11 + 11 + 11, result.points, "points")
end
def test_choose_best_results_by_points_not_place
series = Series.create!(:name => "Cross Crusade")
category_a = Category.find_or_create_by_name("Category A")
person = Person.create!(:name => "Kevin Hulick")
date = Date.new(2008, 10, 19)
[8, 8, 8, 7, 6, 8, 7, 9].each do |place|
series.children.create!(:date => date).races.create!(:category => category_a).results.create!(:place => place, :person => person)
date = date + 7
end
CrossCrusadeOverall.calculate!(2008)
category_a_overall_race = series.overall.races.detect { |race| race.category == category_a }
assert_not_nil(category_a_overall_race, "Should have Category A overall race")
category_a_overall_race.results(true).sort!
result = category_a_overall_race.results.first
assert_equal(6, result.scores.size, "Scores")
assert_equal(11 + 12 + 13 + 11 + 12 + 20, result.points, "points")
end
def test_ensure_dnf_sorted_correctly
series = Series.create!(:name => "Cross Crusade")
category_a = Category.find_or_create_by_name("Category A")
person = Person.create!(:name => "Kevin Hulick")
date = Date.new(2008, 10, 19)
[8, 3, 10, "DNF", 8, 7, 8].each do |place|
series.children.create!(:date => date).races.create!(:category => category_a).results.create!(:place => place, :person => person)
date = date + 7
end
# Simulate 7 of 8 events. Last, double-point, event, still in future
series.children.create!(:date => date).races.create!(:category => category_a)
CrossCrusadeOverall.calculate!(2008)
category_a_overall_race = series.overall.races.detect { |race| race.category == category_a }
assert_not_nil(category_a_overall_race, "Should have Category A overall race")
category_a_overall_race.results(true).sort!
result = category_a_overall_race.results.first
assert_equal(6, result.scores.size, "Scores")
assert_equal(16 + 12 + 11 + 11 + 11 + 9, result.points, "points")
end
def test_ignore_age_graded_bar
series = Series.create!(:name => "Cross Crusade")
cat_a = Category.find_or_create_by_name("Category A")
series.children.create!(:date => Date.new(2007, 10, 7))
event = series.children.create!(:date => Date.new(2007, 10, 14))
cat_a_race = event.races.create!(:category => cat_a)
cat_a_race.results.create!(:place => 17, :person => people(:alice))
age_graded_race = AgeGradedBar.create!(:name => "Age Graded Results for BAR/Championships").races.create!(:category => cat_a)
age_graded_race.results.create!(:place => 1, :person => people(:alice))
CrossCrusadeOverall.calculate!(2007)
category_a_overall_race = series.overall.races.detect { |race| race.category == cat_a }
assert_equal(1, category_a_overall_race.results.size, "Cat A results")
assert_equal(1, category_a_overall_race.results.first.scores.size, "Should ignore age-graded BAR")
end
def test_should_not_count_for_bar_nor_ironman
series = Series.create!(:name => "Cross Crusade")
category_a = Category.find_or_create_by_name("Category A")
series.children.create!(:date => Date.new(2008)).races.create!(:category => category_a).results.create!(:place => "4", :person => people(:tonkin))
CrossCrusadeOverall.calculate!(2008)
series.reload
overall_results = series.overall
assert(!overall_results.ironman, "Ironman")
assert_equal(0, overall_results.bar_points, "BAR points")
category_a_overall_race = overall_results.races.detect { |race| race.category == category_a }
assert_equal(0, category_a_overall_race.bar_points, "Race BAR points")
end
end
|
alpendergrass/montanacycling-racing_on_rails
|
test/unit/competitions/cross_crusade_overall_test.rb
|
Ruby
|
mit
| 17,950
|
package api
import (
"time"
"github.com/boilingrip/boiling-api/db"
)
type Release struct {
ID int `json:"id"`
ReleaseGroup ReleaseGroup `json:"release_group"`
Edition *string `json:"edition,omitempty"`
Medium string `json:"medium"`
ReleaseDate time.Time `json:"release_date"`
CatalogueNumber *string `json:"catalogue_number,omitempty"`
//RecordLabel RecordLabel
//Torrents []Torrent
Added time.Time `json:"added"`
AddedBy BaseUser `json:"added_by"`
Original bool `json:"original"`
Tags []string `json:"tags,omitempty"`
// Properties lists "official" properties of releases, for example
// "LossyMasterApproved", to be set by trusted users or staff.
Properties map[string]string `json:"properties"`
}
func (a *API) releaseFromDBRelease(dbR *db.Release) Release {
r := Release{
ID: dbR.ID,
Medium: a.c.media.MustReverseLookUp(dbR.Medium),
ReleaseDate: dbR.ReleaseDate,
Added: dbR.Added,
AddedBy: baseUserFromDBUser(dbR.AddedBy),
Original: dbR.Original,
Tags: dbR.Tags,
Properties: dbR.Properties,
}
if dbR.Edition.Valid {
r.Edition = &dbR.Edition.String
}
if dbR.CatalogueNumber.Valid {
r.CatalogueNumber = &dbR.CatalogueNumber.String
}
return r
}
type ReleaseResponse struct {
Release Release `json:"release"`
}
|
boilingrip/boiling-api
|
api/release.go
|
GO
|
mit
| 1,389
|
local Command = require("obj.Command")
--- Thermostat command
local Thermostat = Command:clone()
Thermostat.name = "Thermostat"
Thermostat.keywords = {"thermostat","Therm","therm"}
--- Execute the command
function Thermostat:execute(input,user)
if not thermostats then return "No thermostats!" end
local words = string.Words(input)
local input1, input2, input3 ,input4 = words[1],words[2],words[3],words[4]
if input2 then--input2 should be the id(pin) or index of a Thermostat
local thermostat = thermostats[input2] or thermostats[tonumber(input2)]
if thermostat then --That is a vaild Thermostat
if input3 then--input3 should be the order to execute
if Thermostat.orders[input3] then--This is a valid order
return Thermostat.orders[input3](thermostat,input4)
else
return "That is not a vaild order."
end
else
return "Please issue an order with the command."
end
else
return "That is not a vaild Thermostat."
end
else
return "Please select a Thermostat when issuing a Thermostat command"
end
end
Thermostat.orders={}
Thermostat.orders["toggle"] = function(thermostat)
thermostat:toggle()
saveObjectsInfo()
return thermostat:toString()
end
Thermostat.orders["heatRelay"] = function(thermostat,relayID)
if relayID then
thermostat:setHeatRelay(relayID)
saveObjectsInfo()
return ("Thermostat heating relay now set to %s."):format(thermostat:getTempSensor())
else
return "Must supply a relay ID."
end
end
Thermostat.orders["coldRelay"] = function(thermostat,relayID)
if relayID then
thermostat:setCoolRelay(relayID)
saveObjectsInfo()
return ("Thermostat cooling relay now set to %s."):format(thermostat:getCoolRelay())
else
return "Must supply a relay ID."
end
end
Thermostat.orders["sensor"] = function(thermostat,sensorID)
if sensorID then
thermostat:setTempSensor(sensorID)
saveObjectsInfo()
return ("Thermostat temp sensor now set to %s."):format(thermostat:getTempSensor())
else
return "Must supply a sensorID."
end
end
Thermostat.orders["uptime"] = function(thermostat,uptime)
if uptime then
thermostat:setUpTime(tonumber(uptime))
saveObjectsInfo()
return ("Thermostat now set to %s F."):format(thermostat:getTemp())
else
return "Must supply an uptime."
end
end
Thermostat.orders["setState"] = function(thermostat,state)
if state then
thermostat:setState(state)
return thermostat:toString()
else
return "Must supply a state."
end
end
Thermostat.orders["rename"] = function(thermostat,name)
if name then
thermostat:setName(name)
saveObjectsInfo()
return string.format("Thermostat %s has been renamed %s.",relay:getID(),relay:getName())
else
return "Must supply a name to rename a Relay."
end
end
Thermostat.orders["setID"] = function(thermostat,id)
if id then
thermostat:setID(id)
return string.format("Thermostat %s has had its id set to %s.",relay:getName(),relay:getID())
else
return "Must supply an ID..."
end
end
Thermostat.orders['stat'] = function(thermostat)
return thermostat:getStatus()
end
Thermostat.orders['s'] = Thermostat.orders['stat']
Thermostat.orders['up'] = function(thermostat,amt)
thermostat:setTemp(thermostat:getTemp() + (amt or 1))
saveObjectsInfo()
return ("Thermostat now set to %s F."):format(thermostat:getTemp())
end
Thermostat.orders['u'] = Thermostat.orders['up']
Thermostat.orders['down'] = function(thermostat,amt)
thermostat:setTemp(thermostat:getTemp() - (amt or 1))
saveObjectsInfo()
return ("Thermostat now set to %s F."):format(thermostat:getTemp())
end
Thermostat.orders['d'] = Thermostat.orders['down']
Thermostat.orders['tempset'] = function(thermostat,amt)
if amt then thermostat:setTemp(amt) else return "Please enter ammount with command..." end
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getTemp())
end
Thermostat.orders['tps'] = Thermostat.orders['tempset']
Thermostat.orders['thresholdup'] = function(thermostat,amt)
thermostat:setTempTh(thermostat:getTempTh() + (amt or 1))
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getTempTh())
end
Thermostat.orders['thu'] = Thermostat.orders['thresholdup']
Thermostat.orders['thresholddown'] = function(thermostat,amt)
thermostat:setTempTh(thermostat:getTempTh() - (amt or 1))
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getTempTh())
end
Thermostat.orders['thd'] = Thermostat.orders['thresholddown']
Thermostat.orders['thresholdset'] = function(thermostat,amt)
if amt then thermostat:setTempTh(amt) else return "Please enter ammount with command..." end
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getTempTh())
end
Thermostat.orders['ths'] = Thermostat.orders['thresholdset']
Thermostat.orders['coolthresholdup'] = function(thermostat,amt)
thermostat:setCoolTh(thermostat:getCoolTh() + (amt or 1))
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getCoolTh())
end
Thermostat.orders['ctu'] = Thermostat.orders['coolthresholdup']
Thermostat.orders['coolthresholddown'] = function(thermostat,amt)
thermostat:setCoolTh(thermostat:getCoolTh() - (amt or 1))
saveObjectsInfo()
return ("Thermostat cooling threshold now set to %s"):format(thermostat:getCoolTh())
end
Thermostat.orders['ctd'] = Thermostat.orders['coolthresholddown']
Thermostat.orders['coolthresholdset'] = function(thermostat,amt)
if amt then thermostat:setCoolTh(amt) else return "Please enter ammount with command..." end
saveObjectsInfo()
return ("Thermostat cooling threshold now set to %s"):format(thermostat:getCoolTh())
end
Thermostat.orders['cts'] = Thermostat.orders['coolthresholdset']
Thermostat.orders['heatthresholdup'] = function(thermostat,amt)
thermostat:setHeatTh(thermostat:getHeatTh() + (amt or 1))
saveObjectsInfo()
return ("Thermostat threshold now set to %s"):format(thermostat:getHeatTh())
end
Thermostat.orders['htu'] = Thermostat.orders['heatthresholdup']
Thermostat.orders['heatthresholddown'] = function(thermostat,amt)
thermostat:setHeatTh(thermostat:getHeatTh() - (amt or 1))
saveObjectsInfo()
return ("Thermostat heating threshold now set to %s"):format(thermostat:getHeatTh())
end
Thermostat.orders['htd'] = Thermostat.orders['heatthresholddown']
Thermostat.orders['heatthresholdset'] = function(thermostat,amt)
if amt then thermostat:setHeatTh(amt) else return "Please enter ammount with command..." end
saveObjectsInfo()
return ("Thermostat heating threshold now set to %s"):format(thermostat:getHeatTh())
end
Thermostat.orders['hts'] = Thermostat.orders['heatthresholdset']
return Thermostat
|
PhilMo6/Lua_pi_pan
|
obj/commands/Thermostat.lua
|
Lua
|
mit
| 6,658
|
<?php
namespace SlowDB\Bundle\ApiBundle\Controller;
use FOS\RestBundle\Controller\Annotations as Rest,
FOS\RestBundle\Controller\FOSRestController,
FOS\RestBundle\Request\ParamFetcher;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\JsonResponse;
/**
* @author Keith Kirk <keith@kmfk.io>
*
* @Route("/tables")
*/
class DatabaseController extends FOSRestController
{
/**
* Searches the Collection for matching keys
*
* @Rest\Get("/search", name="database_search")
*
* @param Request $request The request object
* @param string $collection The collection name
*
* @return JsonResponse
*/
public function queryAction(Request $request, $collection)
{
$slowdb = $this->get('slowdb');
$query = $request->get('q', null);
if (is_null($query)) {
return new JsonResponse(['error' => 'Must include a Query parameter, ex: ?q={some text}'], 400);
}
$collections = $slowdb->all();
$results = [];
foreach ($collections as $collection) {
$results[$collection] = $slowdb->{$collection}->query($query);
}
return new JsonResponse($results, 200);
}
/**
* Returns a list of all available Collections
*
* @Rest\Get("", name="database_all")
*
* @return JsonResponse
*/
public function listAction()
{
$response = $this->get('slowdb')->all();
return new JsonResponse($response);
}
/**
* Drops all the Collections
*
* @Rest\Delete("", name="database_drop")
*
* @return JsonResponse
*/
public function dropAllAction()
{
$response = $this->get('slowdb')->dropAll();
return new JsonResponse('', 204);
}
}
|
kmfk/slowdb-api
|
src/Controller/DatabaseController.php
|
PHP
|
mit
| 1,837
|
<?php
// require composer autoloader for loading classes
require realpath(__DIR__ . '/../vendor/autoload.php');
|
slimdash/payum-payeezy
|
tests/bootstrap.php
|
PHP
|
mit
| 112
|
vue.tag-editor.js
=================
a tag editor component for vue.js
example: http://hnakamur.github.io/vue.tag-editor.js/
|
hnakamur/vue.tag-editor.js
|
README.md
|
Markdown
|
mit
| 126
|
var
LinkedInStrategy = require('passport-linkedin-oauth2').Strategy,
linkOAuthProfile = require('./helpers').linkOAuthProfile,
OAuth2 = require('oauth').OAuth2,
crypto = require('crypto');
function preprocessProfile(linkedInProfile){
var skills = [];
if(linkedInProfile.skills){
skills = linkedInProfile.skills.values.map(function(value){
return value.skill.name;
});
}
return {
educations: linkedInProfile.educations && linkedInProfile.educations.values || [],
positions: linkedInProfile.positions && linkedInProfile.positions.values || [],
skills: skills
};
}
exports.name = 'kabam-core-strategies-linkedin';
exports.strategy = function (core) {
if (!core.config.PASSPORT || !core.config.PASSPORT.LINKEDIN_API_KEY || !core.config.PASSPORT.LINKEDIN_SECRET_KEY){
return;
}
var
profileURL = 'https://api.linkedin.com/v1/people/~:(skills,educations,positions)',
oauth2 = new OAuth2(
core.config.PASSPORT.LINKEDIN_API_KEY,
core.config.PASSPORT.LINKEDIN_SECRET_KEY,
'',
'https://www.linkedin.com/uas/oauth2/authorization',
'https://www.linkedin.com/uas/oauth2/accessToken',
{'x-li-format': 'json'}
);
return new LinkedInStrategy({
clientID: core.config.PASSPORT.LINKEDIN_API_KEY,
clientSecret: core.config.PASSPORT.LINKEDIN_SECRET_KEY,
scope: ['r_fullprofile', 'r_emailaddress'],
callbackURL: core.config.HOST_URL + 'auth/linkedin/callback',
passReqToCallback: true,
stateless: true
}, function (request, accessToken, refreshToken, profile, done) {
linkOAuthProfile(core, 'linkedin', request, profile, true, function(err, user, created){
if(err){return done(err);}
// if we already had this user we shouldn't rewrite their profile, so we skip this step
if(!created){return done(null, user);}
// get required profile info and populate user profile
oauth2.setAccessTokenName('oauth2_access_token');
oauth2.get(profileURL, accessToken, function(err, body/*, res*/){
if(err){return done(new Error('LinkedIn error: ' + JSON.stringify(err)));}
try {
user.profile = preprocessProfile(JSON.parse(body));
} catch(err) {
return done(err);
}
user.markModified('profile');
user.save(function(err){
done(err, user);
});
});
});
});
};
exports.routes = function (core) {
if (!core.config.PASSPORT || !core.config.PASSPORT.LINKEDIN_API_KEY || !core.config.PASSPORT.LINKEDIN_SECRET_KEY){
return;
}
var state = crypto.createHash('md5').update(core.config.SECRET).digest('hex').toString();
core.app.get('/auth/linkedin', core.passport.authenticate('linkedin', {state: state}));
core.app.get('/auth/linkedin/callback', core.passport.authenticate('linkedin', {
successRedirect: '/auth/success',
failureRedirect: '/auth/failure'
}));
};
// TODO: test all this stuff somehow
|
muhammadghazali/kabam-kernel
|
core/strategies/linkedin.js
|
JavaScript
|
mit
| 2,946
|
const deepCopy = require('./deep-copy');
const sorting = require('./sort');
/* Sorts an array of objects by two keys
** dir = 'asc' yields sort order A, B, C or 1, 2, 3
** dir = 'des' yields sort order C, B, A or 3, 2, 1
** type = 'character' for character sorting, type = 'numeric' or 'bool'
** for boolean sorting for numeric sorting. */
const arrSortByTwoKeys = (arr, key1, key2, dir = 'asc', type1 = 'character', type2 = 'character') => {
/* Make sure input variable is an array of objects, and that keys are defined.
** if not, simply return whatever arr is. */
if (
!Array.isArray(arr)
|| typeof arr[0] !== 'object'
|| !key1
|| !key2
) {
return arr;
}
const multiplier = dir === 'des' ? -1 : 1;
const sortArray = deepCopy(arr);
const sortFunc1 = sorting[type1];
const sortFunc2 = sorting[type2];
sortArray.sort((a, b) => {
const sort1 = multiplier * sortFunc1(a[key1], b[key1]);
const sort2 = multiplier * sortFunc2(a[key2], b[key2]);
if (sort1 < 0) {
return -1;
} if (
sort1 === 0
&& sort2 < 0
) {
return -1;
} if (
sort1 === 0
&& sort2 === 0
) {
return 0;
}
return 1;
});
return sortArray;
};
module.exports = arrSortByTwoKeys;
|
knightjdr/gene-info
|
database/helpers/arr-sort-by-two-keys.js
|
JavaScript
|
mit
| 1,260
|
<html>
<!-- Head tag -->
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<title>Kasei's Blog</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link rel="stylesheet" href="/css/ie10-viewport-bug-workaround.css">
<!-- Custom styles for this template -->
<link rel="stylesheet" href="/css/blog.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[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]-->
<script src="https://use.typekit.net/xdq4yde.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<link rel="stylesheet" href="/css/prism.css" type="text/css">
<link rel="stylesheet" href="/css/prism-line-numbers.css" type="text/css"></head>
<!-- get screen size -->
<body>
<div id="mobile-hidden-panel" class="collapse">
<div class="hidden-pannel-wrapper">
<div class="sidebar-module sidebar-widgets">
<div class="widget-wrapper about-widget">
<div class="widget-container">
<div class="flex-item-wrapper">
<div class="profile-wrapper">
<div class="profile-image">
<img src = '/images/profile.png' alt = "profile picture">
</div>
</div>
</div>
<div class="flex-item-wrapper">
<p class="description">我が名はカセイ</p>
<hr>
<div class="location-wrapper">
<p class="location"><span class="glyphicon glyphicon-map-marker"></span> Singapore</p>
</div>
<hr>
<div class="social-wrapper">
<a href="https://github.com/huashengwang1989/" target="_blank">
<svg class="glyphicon glyphicon-ant-github" alt="GitHub Icon" ><use xlink:href="/icon/ant-github.svg#si-ant-github"></use></svg>
</a>
</div>
</div>
</div>
</div>
<div class="widget-wrapper menu-widget">
<div class="widget-container">
<div class="menu-wrapper">
<nav class="nav">
<div class="nav-item">
<a href="/">Home</a>
</div>
<div class="nav-item">
<a href="/archives">Archives</a>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="wrapper">
<div id="mobile-header-wrapper">
<nav class="header-nav">
<div class="widget-wrapper menu-widget">
<div class="widget-container">
<div class="menu-wrapper">
<nav class="nav">
<div class="nav-item">
<a href="/">Home</a>
</div>
<div class="nav-item">
<a href="/archives">Archives</a>
</div>
</nav>
</div>
</div>
</div>
<div class="nav-profile-wrapper">
<div class="nav-profile-image">
<a class="nav-profile-toggle-button" data-toggle="collapse" data-target="#mobile-hidden-panel">
<img src = '/images/profile.png' alt = "profile picture">
</a>
</div>
</div>
</nav>
</div>
<div id="container">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<div class="sidebar-module sidebar-widgets">
<div class="widget-wrapper about-widget">
<div class="widget-container">
<div class="flex-item-wrapper">
<div class="profile-wrapper">
<div class="profile-image">
<img src = '/images/profile.png' alt = "profile picture">
</div>
</div>
</div>
<div class="flex-item-wrapper">
<p class="description">我が名はカセイ</p>
<hr>
<div class="location-wrapper">
<p class="location"><span class="glyphicon glyphicon-map-marker"></span> Singapore</p>
</div>
<hr>
<div class="social-wrapper">
<a href="https://github.com/huashengwang1989/" target="_blank">
<svg class="glyphicon glyphicon-ant-github" alt="GitHub Icon" ><use xlink:href="/icon/ant-github.svg#si-ant-github"></use></svg>
</a>
</div>
</div>
</div>
</div>
<div class="widget-wrapper menu-widget">
<div class="widget-container">
<div class="menu-wrapper">
<nav class="nav">
<div class="nav-item">
<a href="/">Home</a>
</div>
<div class="nav-item">
<a href="/archives">Archives</a>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
<div id="page-container-wrapper">
<div id="page-container">
<!-- Blog Header: title and subtitle -->
<div id="header-wrapper">
<div class="blog-header">
<h1 class="blog-title">
<a href="/">カセイちゃんの動物園</a>
</h1>
<p class="lead blog-description">A random blog to record tech ideas</p>
</div>
</div>
<!-- Main Content -->
<div id="page-content-wrapper">
<div class="page-content">
<div class="row">
<div class="blog-entry">
<h2 class="collection-title">2020</h2>
<section class="archives-wrap">
<div class="archive-year-wrap">
<div class="year-wrap">
<a href="/archives/2020" class="archive-year">2020</a>
</div>
</div>
<div class="timeline">
<div class="timeline-head"></div>
<div class="timeline-tail"></div>
</div>
<div class="archives">
<div class="blog-post post-archive">
<!-- Title -->
<div class="blog-header">
<span class="blog-post-title">
<a href="/2020/hello-world/">
Hello World
</a>
</span>
<!-- Date and Author -->
<div class="blog-post-meta">
<span class="blog-date">2020-04-24</span>
</div>
<div class="blog-post-additional">
<span class="blog-tags">
</span>
<span class="blog-cats">
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="blog-footer">
<p>2017 © Kasei. Template built based on <a href="http://getbootstrap.com">Bootstrap</a>.</p>
</footer>
<!-- After footer scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/js/ie10-viewport-bug-workaround.js"></script>
</div>
</div>
</div>
</body>
</html>
|
huashengwang1989/huashengwang1989.github.io
|
archives/2020/index.html
|
HTML
|
mit
| 9,465
|
require "test_helper"
module RuleIo
class CustomizationTest < Minitest::Test
def setup
stub_request(:get, /#{RuleIo.base_url}\/customizations\?apikey=*/)
.to_return(status: 200, body: fixture("customizations.json"))
end
def test_all_returns_customizations
customizations = Customization.all
assert_kind_of Array, customizations
assert_equal 1, customizations.length
customizations.each do |c|
assert_kind_of Customization, c
end
end
def test_initialization
customizations = Customization.all
assert_equal 1, customizations.first.id
assert_equal "Address", customizations.first.name
end
def test_fields
customizations = Customization.all
assert_kind_of Array, customizations.first.fields
assert_equal 3, customizations.first.fields.length
assert_kind_of Customization::Field, customizations.first.fields.first
end
end
end
|
varvet/rule_io
|
test/rule_io/customization_test.rb
|
Ruby
|
mit
| 955
|
package es.carm.mydom.filters.utils;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.apache.naming.resources.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Dispatcher {
public static void sendResourceContent(Resource resource,HttpServletResponse response){
try{
OutputStream o = response.getOutputStream();
o.write(resource.getContent());
} catch (Exception e){
e.printStackTrace();
}
}
public static void sendResourceStream(String fileName, Resource resource,HttpServletResponse response){
try{
//o.write(resource.getContent());
//detecto la longitud
InputStream in = resource.streamContent();
System.out.println("Send resource stream: fname="+fileName+" available="+in.available());
response.setContentLength(in.available());
OutputStream o = response.getOutputStream();
int b = 1;
byte[] buff = new byte[16384];
while (b>0){
b = in.read(buff);
if (b>0) o.write(buff,0,b);
}
in.close();
} catch (Exception e){
e.printStackTrace();
}
}
public static void sendString(String text,String charset,HttpServletResponse response){
sendString(text,"text/html",charset,response);
}
public static void sendString(String text,String contentType, String charset,HttpServletResponse response){
try{
response.setContentType(contentType);
response.setCharacterEncoding(charset);
OutputStream o = response.getOutputStream();
o.write(text.getBytes(charset));
} catch (Exception e){
e.printStackTrace();
}
}
public static void sendArrayString(List<String> text,String charset,HttpServletResponse response){
sendArrayString(text,"text/html",charset,response);
}
public static void sendArrayString(List<String> text,String contentType, String charset,HttpServletResponse response){
try{
response.setContentType(contentType);
response.setCharacterEncoding(charset);
OutputStream o = response.getOutputStream();
for(String item:text) o.write(item.getBytes(charset));
} catch (Exception e){
e.printStackTrace();
}
}
}
|
maltimor/mydom-server
|
src/main/java/es/carm/mydom/filters/utils/Dispatcher.java
|
Java
|
mit
| 2,187
|
#twitter_bird {
background: transparent url(/images/twitter_bird/light_back_bird.png) no-repeat;
background-position: 174px -5px;
min-height: 80px;
font-size: .9em;
position: relative;
}
#twitter_bird .tweet_top {
background: transparent url(/images/twitter_bird/bubble_top.png) no-repeat;
height: 14px;
}
#twitter_bird .tweet {
background: transparent url(/images/twitter_bird/bubble_mid.png) repeat-y;
}
#twitter_bird .tweet .text {
background: transparent url(/images/twitter_bird/lquote.png) no-repeat;
width: 145px;
position: relative;
top: -6px;
left: 2px;
padding-left: 20px;
padding-top: 6px;
}
#twitter_bird .tweet .text img.rquote {
position: relative;
vertical-align: bottom;
top: 4px;
}
#twitter_bird .tweet_bottom {
background: transparent url(/images/twitter_bird/bubble_bottom.png) no-repeat;
height: 15px;
}
#twitter_bird .posted_at {
position: absolute;
left: 180px;
top: 2px;
font-size: .8em;
width: 80px;
}
|
jspies/twitter_bird
|
public/stylesheets/twitter_bird.css
|
CSS
|
mit
| 1,078
|
# coding: utf-8
from django.db import models
from django.utils import timezone
from .cores import OssManager
_oss_manager = OssManager()
class StsToken(models.Model):
arn = models.CharField(max_length=500)
assumed_role_id = models.CharField(max_length=500)
access_key_id = models.CharField(max_length=500)
access_key_secret = models.CharField(max_length=500)
security_token = models.TextField()
purpose = models.CharField(max_length=100)
expiration = models.DateTimeField()
manager = _oss_manager
class Meta:
db_table = 'sts_token'
@property
def is_effective(self):
return timezone.now() <= self.expiration
|
zhaowenxiang/chisch
|
oss/models.py
|
Python
|
mit
| 677
|
---
layout: page
title: Twoer Foundation Seminar
date: 2016-05-24
author: Julia Cummings
tags: weekly links, java
status: published
summary: Mauris sollicitudin ac mi id elementum. Donec consectetur.
banner: images/banner/leisure-04.jpg
booking:
startDate: 07/22/2018
endDate: 07/26/2018
ctyhocn: SACABHX
groupCode: TFS
published: true
---
In vehicula ac risus vitae tincidunt. Aliquam erat volutpat. Maecenas semper interdum tellus in sagittis. Proin vitae justo erat. Phasellus faucibus eros dolor, non venenatis felis pulvinar eget. Ut in dapibus nisi. Suspendisse quis ipsum tortor. Nulla hendrerit tortor at dapibus blandit. Donec tempus lectus id erat sagittis, auctor aliquet felis tristique. Curabitur vestibulum dui a metus lacinia, a gravida odio aliquet. Ut feugiat libero ligula, at gravida magna lacinia eu. Donec ut arcu risus. Nullam ipsum purus, congue a ullamcorper ac, pellentesque in ipsum. Sed dolor justo, malesuada in diam ac, varius tincidunt sem. Phasellus lobortis, elit a mattis tincidunt, tellus ligula tristique eros, a blandit est enim non velit.
Nunc quis orci ante. Aliquam feugiat risus id leo posuere facilisis. Aliquam venenatis non nisi eu fermentum. Sed convallis sem non tortor suscipit vulputate. Nam tincidunt ultrices purus et tincidunt. Vivamus sit amet maximus mauris. Maecenas non lacus ut enim auctor lobortis ac non augue. Maecenas quis sapien a velit tempor scelerisque. Maecenas odio tellus, aliquam nec urna fringilla, accumsan pellentesque lorem. Praesent posuere tempor tellus eget porta. Phasellus cursus aliquam eros at tincidunt. Mauris nec tellus ex. Sed id auctor erat. Donec varius neque vel quam maximus imperdiet.
* Donec sed lectus vel lorem aliquet cursus
* Donec efficitur turpis pulvinar nibh aliquet, vitae tempus nulla commodo
* Suspendisse accumsan lacus in interdum facilisis
* Nullam condimentum felis eget mauris dapibus eleifend
* Nulla blandit purus eget lorem cursus, a porttitor urna blandit
* Proin ac orci rhoncus, eleifend velit vel, malesuada sem.
Sed luctus tempor erat, nec vulputate est pellentesque a. Pellentesque iaculis tortor eu ipsum auctor sollicitudin. Proin aliquet, sapien nec laoreet semper, ante odio facilisis lectus, in maximus ipsum magna fringilla orci. Phasellus mollis nulla eget malesuada congue. Cras consequat quis tortor eget mattis. In fermentum eget purus ac tincidunt. Donec interdum lectus in lectus tempor ornare.
|
KlishGroup/prose-pogs
|
pogs/S/SACABHX/TFS/index.md
|
Markdown
|
mit
| 2,430
|
FROM alpine
MAINTAINER Jo Vandeginste "jo.vandeginste@gmail.com"
EXPOSE 80
CMD /bin/sh -c '/bin/sed -i "s/$/@$HOSTNAME/" /index.html; /caddy'
COPY /caddy /Caddyfile /
ARG VERSION=unknown
RUN echo "Hello, world! I am ${VERSION}." > /index.html
|
jovandeginste/nomad-compose
|
helloworld/Dockerfile
|
Dockerfile
|
mit
| 245
|
/*
* (C) Copyright 2015 Richard Greenlees
*
* 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:
*
* 1) The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* This library 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
* Lesser General Public License for more details.
*
*/
package com.jumi.scene.objects;
import com.jumi.data.Vector3;
import java.util.ArrayList;
/**
*
* @author RGreenlees
*/
public class JUMIBone {
private int[] indices = new int[0];
private float[] weights = new float[0];
private float[] transforms = new float[0];
private float[] transformLinks = new float[0];
private JUMIBone parent;
private final ArrayList<JUMIBone> children = new ArrayList();
private Vector3 localTranslation = new Vector3();
private Vector3 localRotation = new Vector3();
private Vector3 localScaling = new Vector3();
private String name;
public JUMIBone() {
super();
}
public JUMIBone(String inName) {
name = inName;
}
public JUMIBone(String inName, int[] inIndices, float[] inWeights, float[] inTransforms, float[] inTransformLinks, Vector3 inTranslation, Vector3 inRotation, Vector3 inScaling) {
name = inName;
indices = inIndices;
weights = inWeights;
transforms = inTransforms;
transformLinks = inTransformLinks;
localTranslation = inTranslation;
localRotation = inRotation;
localScaling = inScaling;
}
public Vector3 getLocalScaling() {
return localScaling;
}
public JUMIBone(String inName, Vector3 inTranslation, Vector3 inRotation, Vector3 inScaling) {
name = inName;
localTranslation = inTranslation;
localRotation = inRotation;
localScaling = inScaling;
}
public Vector3 getLocalTranslation() {
return localTranslation;
}
public Vector3 getLocalRotation() {
return localRotation;
}
public float[] getTransforms() {
return transforms;
}
public float[] getTransformLinks() {
return transformLinks;
}
public void setParent(JUMIBone newParent) {
parent = newParent;
}
public void addChild(JUMIBone newChild) {
children.add(newChild);
newChild.setParent(this);
}
public void removeChild(JUMIBone childToRemove) {
children.remove(childToRemove);
childToRemove.setParent(null);
}
public void removeChild(String childName) {
int index = -1;
for (JUMIBone a : children) {
if (a.name.equals(childName)) {
index = children.indexOf(a);
break;
}
}
if (index > -1) {
children.remove(index);
}
}
public String getName() {
return name;
}
public void setName(String newName) {
name = newName;
}
public int[] getVertexIndices() {
return indices;
}
public float[] getWeights() {
return weights;
}
public JUMIBone getParent() {
return parent;
}
public JUMIBone[] getChildren() {
return children.toArray(new JUMIBone[children.size()]);
}
public JUMIBone[] getDescendants() {
ArrayList<JUMIBone> allBones = new ArrayList();
addDescendantsToList(allBones);
JUMIBone[] result = new JUMIBone[allBones.size()];
allBones.toArray(result);
return result;
}
public JUMIBone[] getFullSkeleton() {
ArrayList<JUMIBone> allBones = new ArrayList();
JUMIBone root = getRoot();
allBones.add(root);
root.addDescendantsToList(allBones);
JUMIBone[] result = new JUMIBone[allBones.size()];
allBones.toArray(result);
return result;
}
public JUMIBone getRoot() {
if (parent == null) {
return this;
} else {
return parent.getRoot();
}
}
private void addDescendantsToList(ArrayList<JUMIBone> boneList) {
for (JUMIBone a : children) {
boneList.add(a);
a.addDescendantsToList(boneList);
}
}
public JUMIBone findDescendantByName(String inName) {
for (JUMIBone a : children) {
if (a.getName().equals(inName)) {
return a;
}
a.findDescendantByName(inName);
}
return null;
}
public String toString() {
return "JUMIBone:\n\tName: " + name + "\n\tParent: " + ((parent != null) ? parent.name : "None") + "\n\tChildren: " + children.size() + "\n\tDescendants: " + getDescendants().length;
}
}
|
RGreenlees/JUMI-Java-Model-Importer
|
src/com/jumi/scene/objects/JUMIBone.java
|
Java
|
mit
| 5,488
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flocq: 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.10.0 / flocq - 2.2.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
flocq
<small>
2.2.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-02-26 23:22:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-02-26 23:22: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.10.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: "2.0"
maintainer: "guillaume.melquiond@inria.fr"
homepage: "http://flocq.gforge.inria.fr/"
dev-repo: "git+https://gitlab.inria.fr/flocq/flocq"
bug-reports: "https://gitlab.inria.fr/flocq/flocq/issues"
license: "LGPL 3"
build: [
["./configure" "--libdir" "%{lib}%/coq/user-contrib/Flocq"]
["./remake" "-j%{jobs}%"]
]
install: ["./remake" "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Flocq"]
depends: [
"ocaml"
"coq" {>= "8.4pl4" & < "8.5~"}
]
tags: [ "keyword:floating point arithmetic" ]
authors: [ "Sylvie Boldo <sylvie.boldo@inria.fr>" "Guillaume Melquiond <guillaume.melquiond@inria.fr>" ]
synopsis: "A floating-point formalization for the Coq system"
flags: light-uninstall
url {
src: "https://gforge.inria.fr/frs/download.php/32825/flocq-2.2.0.tar.gz"
checksum: "md5=5fd1ef29987c22cb8cae7315eaf418bd"
}
</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-flocq.2.2.0 coq.8.10.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.10.0).
The following dependencies couldn't be met:
- coq-flocq -> coq < 8.5~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' 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-flocq.2.2.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.10.0/flocq/2.2.0.html
|
HTML
|
mit
| 6,705
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ails: 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.10.2 / ails - 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>
ails
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-30 11:23:11 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-30 11:23:11 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.10.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: "2.0"
maintainer: "matej.kosik@inria.fr"
homepage: "https://github.com/coq-contribs/ails"
license: "LGPL 2"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/AILS"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.7"}
]
tags: [ "keyword:ails" "keyword:aircraft" "keyword:trajectory" "keyword:conflict" "keyword:collision" "category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms" "date:2002" ]
authors: [ "Olivier Desmettre <>" ]
bug-reports: "https://github.com/coq-contribs/ails/issues"
dev-repo: "git+https://github.com/coq-contribs/ails.git"
synopsis: "Proof of AILS algorithm"
description: """
An aircraft trajectory modeling and analysis using the AILS
algorithm (Airborne Information for Lateral Spacing) to warn
against possible collisions."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ails/archive/v8.5.0.tar.gz"
checksum: "md5=9bcb685354e4528fbd8cffcffbe3f960"
}
</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-ails.8.5.0 coq.8.10.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.10.2).
The following dependencies couldn't be met:
- coq-ails -> coq < 8.7 -> ocaml < 4.06.0
base of this switch (use `--unlock-base' 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-ails.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.09.1-2.0.6/released/8.10.2/ails/8.5.0.html
|
HTML
|
mit
| 6,845
|
import assert from 'assert';
import proxyquire from 'proxyquire';
import sinon from 'sinon';
import sinonStubPromise from 'sinon-stub-promise';
import mockMbaasClient from './mocks/fhMbaasClientMock';
sinonStubPromise(sinon);
const appEnvVarsStub = sinon.stub();
const primaryNodeStub = sinon.stub().returnsPromise();
const dbConnectionStub = sinon.stub().returnsPromise();
const feedhenryMbaasType = proxyquire('../lib/mbaas/types/feedhenry', {
'fh-mbaas-client': {
MbaasClient: mockMbaasClient(appEnvVarsStub, primaryNodeStub)
}
});
const openshiftMbaasType = proxyquire('../lib/mbaas/types/openshift', {
'fh-mbaas-client': {
MbaasClient: mockMbaasClient(appEnvVarsStub, null, dbConnectionStub)
}
});
const MockMbaaS = proxyquire('../lib/mbaas', {
'./types': {
feedhenry: feedhenryMbaasType,
openshift: openshiftMbaasType
}
}).MBaaS;
function getMockReq() {
return {
params: {
domain: 'test-domain',
envId: 101,
appGuid: '12345'
},
log: {
debug: function() {}
}
};
}
function getOptions(mbaasType) {
return {
mbaasType: mbaasType,
auth: {
secret: '123456'
},
mbaas: {
url: 'https://api.host.com',
password: 'pass',
username: 'user'
},
ditch: {
user: 'user',
password: 'pass',
host: '',
port: '',
database: 'dbname'
}
};
}
export function getDedicatedDbConnectionConf(done) {
var expectedUrl = 'dedicatedUrl';
appEnvVarsStub.yields(null, {
env: {
FH_MONGODB_CONN_URL: expectedUrl
}
});
new MockMbaaS(getOptions('feedhenry'))
.getMongoConf(getMockReq())
.then(conf => {
assert.ok(conf.__dbperapp);
assert.equal(conf.connectionUrl, expectedUrl);
done();
})
.catch(done);
}
export function getSharedDbConnectionConf(done) {
var expectedUrl = 'mongodb://user:pass@primaryNodeHost:primaryNodePort/dbname';
appEnvVarsStub.yields(null, {});
primaryNodeStub.yields(null, {
host: 'primaryNodeHost',
port: 'primaryNodePort'
});
new MockMbaaS(getOptions('feedhenry'))
.getMongoConf(getMockReq())
.then(conf => {
assert.ok(!conf.__dbperapp);
assert.equal(conf.connectionUrl, expectedUrl);
done();
})
.catch(done);
}
export function appEnvVarFail(done) {
appEnvVarsStub.yields({});
new MockMbaaS(getOptions('feedhenry'))
.getMongoConf(getMockReq())
.then(conf => {
assert.ok(!conf);
done();
})
.catch(err => {
assert.ok(err);
done();
});
}
export function mongoprimaryNodeFail(done) {
appEnvVarsStub.yields(null, {});
primaryNodeStub.yields({});
new MockMbaaS(getOptions('feedhenry'))
.getMongoConf(getMockReq())
.then(conf => {
assert.ok(!conf);
done();
})
.catch(err => {
assert.ok(err);
done();
});
}
export function mongoOpenshift(done) {
var expectedUrl = 'mongodb://user:pass@openshiftmongohost:27017/dbname';
appEnvVarsStub.yields(null, {
env: {
FH_MBAAS_ENV_ACCESS_KEY: '12345',
FH_APP_API_KEY: '12345'
}
});
dbConnectionStub.yields(null, {url: expectedUrl});
new MockMbaaS(getOptions('openshift'))
.getMongoConf(getMockReq())
.then(conf => {
assert.ok(conf.__dbperapp);
assert.equal(conf.connectionUrl, expectedUrl);
done();
})
.catch(done);
}
|
feedhenry/fh-dataman
|
src/middleware/dbConnection/test/mbaas_test.js
|
JavaScript
|
mit
| 3,372
|
import React, { Component, PropTypes } from 'react'
import { Router } from 'react-router'
import { Provider } from 'react-redux'
import routes from 'routes'
class AppContainer extends Component {
static propTypes = {
store : PropTypes.object.isRequired,
history : PropTypes.object.isRequired
}
shouldComponentUpdate() {
return false
}
render() {
const { history, store } = this.props
return (
<Provider store={store}>
<Router history={history} children={routes} />
</Provider>
)
}
}
export default AppContainer
|
bartushk/memmi
|
client-side/src/containers/AppContainer.js
|
JavaScript
|
mit
| 639
|
<?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : use of ternary condition
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation for
any purpose, provided that the above copyright notice and the following
three paragraphs appear in all copies of this software.
IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.*/
class Input{
private $input;
public function getInput(){
return $this->input;
}
public function __construct(){
$this->input = $_GET['UserData'] ;
}
}
$temp = new Input();
$tainted = $temp->getInput();
$tainted = $tainted == 'safe1' ? 'safe1' : 'safe2';
$query = "(&(objectCategory=person)(objectClass=user)(cn='". $tainted . "'))";
$ds=ldap_connect("localhost");
$r=ldap_bind($ds);
$sr=ldap_search($ds,"o=My Company, c=US", $query);
ldap_close($ds);
?>
|
stivalet/PHP-Vulnerability-test-suite
|
Injection/CWE_90/safe/CWE_90__object-classicGet__ternary_white_list__userByCN-concatenation_simple_quote.php
|
PHP
|
mit
| 1,569
|
var sizes;
var searchKey = '';
if(window.location.search!=''){
$("#searchKey").val(decodeURIComponent(window.location.search.substr(11)))
}
if (window.location.search != "") {
searchKey = window.location.search.substr(11)
}
$.ajax({
url: '/sizes?searchKey=' + searchKey,
async: false,
method: 'get',
success: function (data) {
sizes = Math.ceil((data.data) / 8);
if (sizes != 1) {
$('#pages').show();
}
}
});
$(document).ready(function () {
$.ajax({
url: "/islogin",
async: false,
type: "get",
success: function (data) {
if (!data.data) {
location.href = "/login";
}
}
});
var hash = window.location.hash;
if (!hash) {
hash = "page=1"
}
var page = {pageSize: hash.split("=")[1], searchKey: searchKey};
$.ajax({
type: "post",
data: page,
url: "/lists",
success: function (data) {
var list = "<div class='item-list'>";
$.each(data.data, function (index, item) {
list += ("<div class='item'><div class='icon'><a href='/detail#%{name}' data-url='%{url}' onclick='absUrl(this)' onmouseover='des(this)' onmouseout='_des(this)' >" +
"<img src='%{icon}' alt='图片未找到'></a></div>" +
"<div class='item-title'><strong>%{name}</strong></div><div>作者:%{author}</div>" +
"<div class='item-info'><span class='version'>%{version}</span><span class='time'>%{date}<br/>%{time}</span></div>" +
"<div class='detailed'><a href='/detail#%{name}' data-url='%{url}' onclick='absUrl(this)'>文档</a></div><div class='des'>%{detailed}</div>" +
"<div class='follow'><a href='javascript:void(0)' class='%{flwed}' onclick='follow(this)' data-name='%{name}' data-follow='%{follow}' ></a></div></div>").format({
icon: '/logo/' + item.name,
name: item.name,
author: item.author,
version: item.version,
flwed: ((item.follow == true) ? 'flwed' : ''),
time: item.createTime.split(" ")[1],
date: item.createTime.split(" ")[0],
detailed: item.description,
follow: item.follow,
url: item.url
})
});
list += "</div>";
$("#containal").html(list).show();
userName();
//获取分页数
location.hash = "page=" + page.pageSize;
if (window.location.hash.split("=")[1] == "1") {
$('.firstPage').attr('disabled', true).addClass('disabled');
$('.prevPage').attr('disabled', true).addClass('disabled');
} else if (window.location.hash.split("=")[1] == sizes) {
$('.lastPage').attr('disabled', true).addClass('disabled');
$('.nextPage').attr('disabled', true).addClass('disabled');
}
},
error: function (data) {
console.info(data);
}
})
followLists();
});
//读取用户名
function userName() {
var userName = $.cookie("userName");
$('.user strong').text(userName)
}
//关注列表
function followLists() {
$.ajax({
type: "GET",
async: false,
url: "/followList",
success: function (data) {
var followList = "<ul>"
$.each(data.data, function (index, item) {
followList += ("<li><span class='sort'><a href='javascript:void(0)' onclick='folSort(this)' class='prev'><img src='/images/up.png' alt=''></a><a href='javascript:void(0)' class='next' onclick='folSort(this)'><img src='/images/down.png' alt=''></a></span>" +
"<a href='/detail#%{followName}' class='followName'>%{followName}</a><a href='javascript:void(0)' onclick='delFollow(this)' class='del-fol'>" +
"<img src='/images/pro_close.png' alt=''></a></li>").format({followName: item});
});
followList += "</ul>";
$('.user-list').html(followList)
},
error: function (data) {
console.info(data);
}
})
}
function user(self) {
if (!$(self).hasClass('ac')) {
$(self).addClass('ac');
$('.user-list').show();
followLists();
} else {
$(self).removeClass('ac');
$('.user-list').hide()
}
}
function des(_this) {
$(_this).parents('.item').children('.des').show();
}
function _des(_this) {
$(_this).parents('.item').children('.des').hide();
}
function pageBtn(self, name) {
var pagination = {};
var curPage = location.hash.split("=")[1];
if (name == "first") {
pagination.limit = 1;
$(self).attr("disabled", true).addClass('disabled').siblings().attr("disabled", false).removeClass('disabled')
$("#pages .prevPage").attr("disabled", true).addClass("disabled");
} else if (name == "prev") {
pagination.limit = --curPage;
$("#pages button").removeAttr("disabled").removeClass('disabled');
if (pagination.limit <= 1) {
pagination.limit = 1;
$("#pages .firstPage").attr("disabled", true).addClass("disabled");
$("#pages .prevPage").attr("disabled", true).addClass("disabled");
}
} else if (name == "next") {
pagination.limit = ++curPage;
$("#pages button").removeAttr("disabled").removeClass('disabled');
if (pagination.limit >= sizes) {
pagination.limit = sizes;
// $("#pages button").removeAttr("disabled").removeClass('disabled');
$("#pages .lastPage").attr("disabled", true).addClass("disabled");
$("#pages .nextPage").attr("disabled", true).addClass("disabled");
}
} else if (name == "end") {
pagination.limit = sizes;
$(self).attr("disabled", true).addClass('disabled').siblings().attr("disabled", false).removeClass('disabled');
$("#pages .nextPage").attr("disabled", true).addClass("disabled");
}
$.ajax({
type: "post",
url: "/pageSize",
data: pagination,
success: function (data) {
var list = "<div class='item-list'>"
$.each(data.data, function (index, item) {
list += ("<div class='item'><div class='icon'><a href='/detail#%{name}' data-url='%{url}' onclick='absUrl(this)'><img src='%{icon}' alt='图片未找到'></a></div>" +
"<div class='item-title'><strong>%{name}</strong></div><div>作者:%{author}</div>" +
"<div class='item-info'><span class='version'>%{version}</span><span class='time'>%{date}<br/>%{time}</span></div>" +
"<div class='follow'><a href='javascript:void(0)' class='%{flwed}' onclick='follow(this)' data-follow='%{follow}'></a></div>" +
"<div class='detailed'><a href='/detail#%{name}' data-url='%{url}' onclick='absUrl(this)'>文档</a></div></div>").format({
icon: '/logo/' + item.name,
name: item.name,
author: item.author,
version: item.version,
time: item.createTime.split(" ")[1],
date: item.createTime.split(" ")[0],
flwed: ((item.follow == true) ? 'flwed' : ''),
detailed: item.description,
follow: item.follow,
url: item.url
})
});
list += "</div>";
$("#containal").html(list).fadeIn()
location.hash = "page=" + pagination.limit;
},
error: function (data) {
console.info(data);
}
})
}
//分页跳转
function logout() {
$.ajax({
type: "get",
url: "/userlogout",
success: function (data) {
window.location.href = "/login"
},
error: function (data) {
console.info(data);
}
})
}
function follow(_this) {
var data = {};
data.projectName = $(_this).parents('.item').children('.item-title').children().text();
if ($(_this).hasClass('flwed')) {
$(_this).removeClass('flwed');
$.ajax({
type: "POST",
url: "/delFollow",
data: data,
success: function (data) {
console.info(data);
},
error: function (data) {
console.info(data);
}
})
} else {
$(_this).addClass('flwed');
$.ajax({
type: "POST",
url: "/addFollow",
data: data,
success: function (data) {
// console.info();
},
error: function (data) {
console.info(data);
}
})
}
}
function BindEnter(event) {
if(event.code=='Enter'){
search()
}
}
function search() {
window.location.search = '?searchKey=' + $("#searchKey").val()
}
function delFollow(_this) {
var data = {};
data.projectName = $(_this).siblings('.followName').text();
$.ajax({
type: "POST",
url: "/delFollow",
data: data,
success: function (data) {
var proName = $(_this).parent().children('.followName').text()
$(_this).parent().remove();
$('.item-list .item .follow a[data-name=' + proName + ']').removeClass('flwed')
},
error: function (data) {
console.info(data);
}
})
}
//关注排序
function folSort(self) {
var name = $(self).attr("class");
var li = $(self).parents('li');
var sortData = {};
if (name == "next" && li.next()) {
li.next().after(li)
} else if (name == "prev" && li.prev()) {
li.prev().before(li);
}
var listSort = [];
for (var i = 0, len = $('.user-list li').length; i < len; i++) {
var listName = $('.user-list li').eq(i).children('.followName').text();
listSort.push(listName)
}
sortData.projects = listSort.join(',');
$.ajax({
type: "post",
url: "/sortList",
async: false,
data: sortData,
success: function (data) {
},
error: function (data) {
}
})
}
function absUrl(self) {
var absUrl = $(self).attr("data-url");
$.cookie("absUrl", absUrl, {expires: 7})
}
|
dounine/japi
|
node/js/index.js
|
JavaScript
|
mit
| 10,577
|
import datastructures._
def add1(l: List[Int]): List[Int] =
List.foldRight(l, Nil:List[Int])((h,t) => Cons(h+1,t))
val a = Cons(1,Cons(2,Cons(3,Nil)))
val b = List(1,2,3,4)
println(a)
println(b)
println(add1(a))
println(add1(List(3,4,5)))
|
shigemk2/functional_shibuya
|
chapter03/16.answer.scala
|
Scala
|
mit
| 244
|