repo_name
stringlengths 4
116
| path
stringlengths 3
942
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
jojow/opentosca-dockerfiles | engine/Dockerfile | 2100 | FROM ubuntu:14.04
MAINTAINER Johannes Wettinger, http://github.com/jojow
ENV ENGINE_BRANCH maven
ENV ENGINE_REV HEAD
ENV MAVEN_VERSION 3.3.9
ENV MAVEN_URL http://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
ENV HOME /root
WORKDIR ${HOME}
ENV DEBIAN_FRONTEND noninteractive
ENV PATH ${PATH}:/opt/apache-maven-${MAVEN_VERSION}/bin/
# Replace /dev/random by /dev/urandom to avoid blocking
RUN rm /dev/random && ln -s /dev/urandom /dev/random
# Install dependencies
RUN apt-get update -y && \
apt-get install -y curl wget git openjdk-7-jdk && \
apt-get clean -y
RUN wget ${MAVEN_URL} && \
tar -zxf apache-maven-${MAVEN_VERSION}-bin.tar.gz && \
cp -R apache-maven-${MAVEN_VERSION} /opt
# Install Docker, partly from https://github.com/docker-library/docker/blob/master/1.12/Dockerfile
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.12.0
ENV DOCKER_SHA256 3dd07f65ea4a7b4c8829f311ab0213bca9ac551b5b24706f3e79a97e22097f8b
ENV DOCKER_COMPOSE_VERSION 1.8.0
RUN set -x && \
curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz && \
echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - && \
tar -xzvf docker.tgz && \
mv docker/* /usr/local/bin/ && \
rmdir docker && \
rm docker.tgz && \
docker -v && \
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
docker-compose --version
# Install engine
RUN git clone --recursive https://github.com/OpenTOSCA/container.git -b ${ENGINE_BRANCH} /opt/engine
WORKDIR /opt/engine
RUN git checkout ${ENGINE_REV} && git reset --hard
RUN mvn clean package
#RUN mvn clean install
RUN ln -s /opt/engine/org.opentosca.container.product/target/products/org.opentosca.container.product/linux/gtk/x86_64/OpenTOSCA /usr/local/bin/opentosca-engine && \
chmod +x /usr/local/bin/opentosca-engine
EXPOSE 1337
CMD [ "/usr/local/bin/opentosca-engine" ]
| mit |
xsleonard/flask-dogstatsd | README.md | 1318 | flask-dogstatsd
===============
[](http://badge.fury.io/py/Flask-DogStatsd)
[](https://travis-ci.org/xsleonard/flask-dogstatsd)
[](https://coveralls.io/r/xsleonard/flask-dogstatsd)
Flask extension for [dogstatsd-python-fixed](https://github.com/xsleonard/dogstatsd-python)
Compatible with Python 2.7, 3.3 and pypy
Installation
============
```
pip install flask-dogstatsd
```
Tests
=====
```
pip install -r requirements.txt
pip install -r tests/requirements.txt
./setup.py develop
./setup.py test
```
Example
=======
```python
# app.py
from flask import Flask
from flask.ext.dogstatsd import DogStatsd
app = Flask(__name__)
app.config['DOGSTATSD_HOST'] = 'localhost' # This is the default
app.config['DOGSTATSD_PORT'] = 8125 # This is the default
app.config['DOGSTATSD_PREFIX'] = 'app' # False-y values disable prefixing
dogstatsd = DogStatsd(app)
@app.route('/'):
def index():
# See dogstatsd-python for the full API.
# Methods are forwarded to that.
# Since our prefix is 'app', the full key will be 'app.index.views'
dogstatsd.increment('index.views')
return 'Home'
```
| mit |
carlistew24/carlistew | project1.html | 474 | <h1>
FOOTBALL
</h1>
</body>
Since the beginning of school we have been analyzing our opponents data for our football team. Since I do not obtain any mathematical
skills, it was a challenge. All I could and did offer to the table was what appeared the most important out of the data. Such as,
certain number of times a certain play/form was used and the probability of the plays they would execute. My process is shown below.
<img src="power cat - Google Docs.mhtml"
| mit |
feiyan35488/feiyan35488.github.io | 2012/290.html | 4346 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>java枚举类型的使用,查一下</title>
<meta name="author" content="盒子">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" type="text/css" rel="stylesheet" media="all">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="/assets/twitter/javascripts/qrcode.js"></script>
<!-- Le fav and touch icons -->
<!-- Update these with your own images
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-->
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">韭菜盒子</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="/archive">归档</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/tags">标签</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/categories">分类</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/pages">分页</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about">关于我</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="page-header">
<h1>java枚举类型的使用,查一下 </h1>
</div>
<div class="row">
<div class="span8">
<p>她轻轻的动了动鼠标没留下一行文字</p>
<hr>
<div class="pagination">
<ul>
<ul>
<li class="prev"><a href="/2012/291.html" title="大概闲了2个星期了">← Previous</a></li>
<li><a href="/archive">Archive</a></li>
<li class="next"><a href="/2012/289.html" title="分享一首诗">Next →</a></li>
</ul>
</ul>
</div>
<hr>
</div>
<div class="span4">
<h4>Published</h4>
<div class="date"><span>2012-09-12 02:56:35</span></div>
<br>
<h4>Share to Weixin</h4>
<div id="share-qrcode"></div>
<script type="text/javascript">
new QRCode(document.getElementById("share-qrcode"), {
text:document.URL,
width:128,
height:128
});
</script>
<br>
<h4>Categories</h4>
<ul class="tag_box">
<li>
<a href="/categories/#%E5%BC%80%E5%8F%91%E6%8A%80%E6%9C%AF%E7%B1%BB--%E8%B0%8B%E7%94%9F%E7%AF%87-ref">开发技术类--谋生篇 <span>51</span></a>
</li>
</ul>
<br>
<h4>Tags</h4>
<ul class="tag_box">
</ul>
</div>
</div>
<footer>
<p>© 盒子 2016
with help from <a href="http://github.com/wendal/gor" target="_blank" title="Gor -- Fast Blog">Gor</a>
and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>
and Idea from <a href="http://ruhoh.com" target="_blank" title="The Definitive Technical Blogging Framework">ruhoh</a>
<a href="http://www.miitbeian.gov.cn" target="_blank">京ICP备17040577号-1</a>
</p>
</footer>
</div> <!-- /container -->
</body>
</html>
| mit |
preslavrachev/preslavrachev.github.io | tags/swift/index.html | 7715 | <!doctype html>
<!--
Minimal Mistakes Jekyll Theme 4.13.0 by Michael Rose
Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
-->
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<!-- begin _includes/seo.html --><title>Swift - Preslav Rachev</title>
<meta name="description" content="Finding beauty in everyday things.">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Preslav Rachev">
<meta property="og:title" content="Swift">
<meta property="og:url" content="https://preslav.me/tags/swift/">
<link rel="canonical" href="https://preslav.me/tags/swift/">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"name": "Your Name",
"url": "https://preslav.me",
"sameAs": null
}
</script>
<!-- end _includes/seo.html -->
<link href="/feed.xml" type="application/atom+xml" rel="alternate" title="Preslav Rachev Feed">
<!-- http://t.co/dKP3o1e -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
</script>
<!-- For all browsers -->
<link rel="stylesheet" href="/assets/css/main.css">
<!--[if lte IE 9]>
<style>
/* old IE unsupported flexbox fixes */
.greedy-nav .site-title {
padding-right: 3em;
}
.greedy-nav button {
position: absolute;
top: 0;
right: 0;
height: 100%;
}
</style>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700|PT+Serif:400,700,400italic" rel="stylesheet" type="text/css">
<link href="https://micro.blog/preslavrachev" rel="me" />
</head>
<body class="layout--archive-taxonomy">
<!--[if lt IE 9]>
<div class="notice--danger align-center" style="margin: 0;">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience.</div>
<![endif]-->
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
<a class="site-title" href="/">Preslav Rachev</a>
<ul class="visible-links"><li class="masthead__menu-item">
<a href="/about-me" >About</a>
</li><li class="masthead__menu-item">
<a href="/micro" >Microblog</a>
</li><li class="masthead__menu-item">
<a href="/archive" >Archive</a>
</li><li class="masthead__menu-item">
<a href="/contact" >Contact</a>
</li></ul>
<button class="search__toggle" type="button">
<svg class="icon" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.99 16">
<path d="M15.5,13.12L13.19,10.8a1.69,1.69,0,0,0-1.28-.55l-0.06-.06A6.5,6.5,0,0,0,5.77,0,6.5,6.5,0,0,0,2.46,11.59a6.47,6.47,0,0,0,7.74.26l0.05,0.05a1.65,1.65,0,0,0,.5,1.24l2.38,2.38A1.68,1.68,0,0,0,15.5,13.12ZM6.4,2A4.41,4.41,0,1,1,2,6.4,4.43,4.43,0,0,1,6.4,2Z" transform="translate(-.01)"></path>
</svg>
</button>
<button class="greedy-nav__toggle hidden" type="button">
<span class="visually-hidden">Toggle menu</span>
<div class="navicon"></div>
</button>
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
</div>
<div class="initial-content">
<div id="main" role="main">
<div class="archive">
<h1 class="page__title">Swift</h1>
<div class="list__item">
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
<h2 class="archive__item-title" itemprop="headline">
<a href="/2018/07/20/dont-throw-react-native-away-just-yet/" rel="permalink">Don’t Throw React Native Away Just Yet
</a>
</h2>
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i>
6 minute read
</p>
<p class="archive__item-excerpt" itemprop="description">The main reason why mobile developers get enticed by the cross-platform development capabilities of frameworks like React Native, is, of course, the ability to share code across platforms. A smaller, but no less important reason is the ability to build, debug, and refactor faster. Last but not least, such solutions often help broaden up the variety of tools, beyond the ones dictated by the platform vendor.
</p>
</article>
</div>
<div class="list__item">
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
<h2 class="archive__item-title" itemprop="headline">
<a href="/2018/06/17/embracing-the-future/" rel="permalink">Embracing the Future
</a>
</h2>
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i>
5 minute read
</p>
<p class="archive__item-excerpt" itemprop="description">Dominik Wagner (a.k.a. @monkeydom) published an article a few days ago, called On my misalignment with Apple’s love affair with Swift.
</p>
</article>
</div>
</div>
</div>
</div>
<div class="search-content">
<div class="search-content__inner-wrap"><input type="text" id="search" class="search-input" tabindex="-1" placeholder="Enter your search term..." />
<div id="results" class="results"></div></div>
</div>
<div class="page__footer">
<footer>
<script type="text/javascript">
var clicky_custom = clicky_custom || {};
clicky_custom.cookies_disable = 1;
</script>
<script src="//static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript">try { clicky.init(101131786); } catch (e) { }</script>
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/101131786ns.gif" /></p></noscript>
<script type="text/javascript">
// This should effectively disable all cookies being set on this site
// It is a bit of a crude measure, but I think it is necessary, having in mind how many seemingly innoncent
// 3rd-party scripts and embeds bring in tracking cookies with themselves
if (!document.__defineGetter__) {
Object.defineProperty(document, 'cookie', {
get: function () { return '' },
set: function () { return true },
});
} else {
document.__defineGetter__("cookie", function () { return ''; });
document.__defineSetter__("cookie", function () { });
}
</script>
<div class="page__footer-follow">
<ul class="social-icons">
<li><strong>Follow:</strong></li>
<li><a href="/feed.xml"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> Feed</a></li>
</ul>
</div>
<div class="page__footer-copyright">© 2019 Your Name. Powered by <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> & <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.</div>
</footer>
</div>
<script src="/assets/js/main.min.js"></script>
<script src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="/assets/js/lunr/lunr.min.js"></script>
<script src="/assets/js/lunr/lunr-store.js"></script>
<script src="/assets/js/lunr/lunr-en.js"></script>
</body>
</html> | mit |
appsignal/appsignal-docs | source/elixir/1.x/instrumentation/tagging.html.md | 3700 | ---
title: "Tagging and Sample Data"
---
Use the [`Appsignal.Transaction.set_sample_data`](https://hexdocs.pm/appsignal/Appsignal.Transaction.html#set_sample_data/2) function to supply extra context on errors and
performance issues. This can help to add information that is not already part of
the request, session or environment parameters.
```elixir
Appsignal.Transaction.set_sample_data("tags", %{locale: "en"})
```
!> **Warning**: Do not use tagging to send personal data such as names or email
addresses to AppSignal. If you want to identify a person, consider using a
user ID, hash or pseudonymized identifier instead. You can use
[link templates](/application/link-templates.html) to link them to your own
system.
## Tags
Using tags you can easily add more information to errors and performance issues
tracked by AppSignal. There are a few limitations on tagging though.
- The tag key must be a `String` or `Atom`.
- The tagged value must be a `String`, `Atom` or `Integer`.
Tags that do not meet these limitations are dropped without warning.
`set_sample_data` can be called multiple times, but only the last value will be retained:
```elixir
Appsignal.Transaction.set_sample_data("tags", %{locale: "en"})
Appsignal.Transaction.set_sample_data("tags", %{user: "bob"})
Appsignal.Transaction.set_sample_data("tags", %{locale: "de"})
```
will result in the following data:
```elixir
%{
locale: "de"
}
```
### Link templates
Tags can also be used to create link templates. Read more about link templates
in our [link templates guide](/application/link-templates.html).
## Sample Data
Besides tags you can add more metadata to a transaction (or override default metadata from integrations such as Phoenix), below is a list of valid keys that can be given to `set_sample_data` and the format of the value.
### `session_data`
Filled with session/cookie data by default, but can be overridden with the following call:
```
Appsignal.Transaction.set_sample_data("session_data", %{_csrf_token: "Z11CWRVG+I2egpmiZzuIx/qbFb/60FZssui5eGA8a3g="})
```
This key accepts nested objects that will be rendered as JSON on a Incident Sample page for both Exception and Performance samples.

### `params`
Filled with framework (such as Phoenix) parameters by default, but can be overridden or filled with the following call:
```
Appsignal.Transaction.set_sample_data("params", %{action: "show", controller: "homepage"})
```
This key accepts nested objects and will show up as follows on a Incident Sample page for both Exception and Performance samples, formatted as JSON.

### `environment`
Environment variables from a request/background job, filled by the Phoenix integration, but can be filled/overriden with the following call:
```
Appsignal.Transaction.set_sample_data("environment", %{CONTENT_LENGTH: "0"})
```
This call only accepts a one-level key/value object, nested values will be ignored.
This will result the following block on a Incident Sample page for both Exception and Performance samples.

### `custom_data`
Custom data is not set by default, but can be used to add additional debugging data to solve a performance issue or exception.
```
Appsignal.Transaction.set_sample_data("custom_data", %{foo: "bar"})
```
This key accepts nested objects and will result in the following block on a Incident Sample page for both Exception and Performance samples formatted as JSON.

| mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/ExpressRouteCircuitSku.java | 2518 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_04_01;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Contains SKU in an ExpressRouteCircuit.
*/
public class ExpressRouteCircuitSku {
/**
* The name of the SKU.
*/
@JsonProperty(value = "name")
private String name;
/**
* The tier of the SKU. Possible values include: 'Standard', 'Premium',
* 'Basic', 'Local'.
*/
@JsonProperty(value = "tier")
private ExpressRouteCircuitSkuTier tier;
/**
* The family of the SKU. Possible values include: 'UnlimitedData',
* 'MeteredData'.
*/
@JsonProperty(value = "family")
private ExpressRouteCircuitSkuFamily family;
/**
* Get the name of the SKU.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name of the SKU.
*
* @param name the name value to set
* @return the ExpressRouteCircuitSku object itself.
*/
public ExpressRouteCircuitSku withName(String name) {
this.name = name;
return this;
}
/**
* Get the tier of the SKU. Possible values include: 'Standard', 'Premium', 'Basic', 'Local'.
*
* @return the tier value
*/
public ExpressRouteCircuitSkuTier tier() {
return this.tier;
}
/**
* Set the tier of the SKU. Possible values include: 'Standard', 'Premium', 'Basic', 'Local'.
*
* @param tier the tier value to set
* @return the ExpressRouteCircuitSku object itself.
*/
public ExpressRouteCircuitSku withTier(ExpressRouteCircuitSkuTier tier) {
this.tier = tier;
return this;
}
/**
* Get the family of the SKU. Possible values include: 'UnlimitedData', 'MeteredData'.
*
* @return the family value
*/
public ExpressRouteCircuitSkuFamily family() {
return this.family;
}
/**
* Set the family of the SKU. Possible values include: 'UnlimitedData', 'MeteredData'.
*
* @param family the family value to set
* @return the ExpressRouteCircuitSku object itself.
*/
public ExpressRouteCircuitSku withFamily(ExpressRouteCircuitSkuFamily family) {
this.family = family;
return this;
}
}
| mit |
rdunlop/unicycling-registration | app/policies/judge_policy.rb | 827 | class JudgePolicy < ApplicationPolicy
def create_scores?
record.competition.unlocked? && (user_match? || director?(record.event) || super_admin?)
end
def view_scores?
(user_match? || director?(record.event) || super_admin?)
end
def index?
director?(record.event) || super_admin?
end
def toggle_status?
director?(record.event) || super_admin?
end
def create?
update?
end
def update?
record.scores.count.zero? && record.competition.unlocked? && (director?(record.event) || super_admin?)
end
def destroy?
update?
end
def can_judge?
record.competition.unlocked? && (user_match? || director?(record.event) || super_admin?)
end
private
def user_match?
record.user == user
end
class Scope < Scope
def resolve
scope.none
end
end
end
| mit |
LilyaSidorenko/jsmp-project2 | webpack.dev.config.js | 598 | const path = require('path');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.config.js');
module.exports = function () {
return webpackMerge(commonConfig, {
watch: true,
devtool: 'cheap-module-source-map',
// plugins: [
// new webpack.optimize.CommonsChunkPlugin({
// name: "common",
// })
// ],
devServer: {
contentBase: __dirname + "/public/",
port: 8080,
watchContentBase: true
}
})
};
| mit |
kuhlenh/port-to-core | Reports/by/bytescout.barcode.4.31.0.784/Bytescout.BarCode.WPF-net45.html | 131046 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
b6ccbef0-e4a6-409b-a471-81834341cdb9
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#Bytescout.BarCode.WPF">Bytescout.BarCode.WPF</a></strong></td>
<td class="text-center">59.96 %</td>
<td class="text-center">55.97 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">55.97 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
<a name="Bytescout.BarCode.WPF"><h3>Bytescout.BarCode.WPF</h3></a>
<table>
<tbody>
<tr>
<th>Target type</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
<th>Recommended changes</th>
</tr>
<tr>
<td>System.AppDomain</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Collections.Hashtable</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.BrowsableAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage. This is a deprecated attribute from Windows Forms for design-time property window support</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Boolean)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage. This is a deprecated attribute from Winforms for design-time property window support</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.CategoryAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.DescriptionAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.DesignerProperties</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetIsInDesignMode(System.Windows.DependencyObject)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.ToolboxItemAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Boolean)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ComponentModel.Win32Exception</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Configuration.ApplicationSettingsBase</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Configuration.SettingsBase</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Synchronized(System.Configuration.SettingsBase)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Diagnostics.StackFrame</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Consider removing dependency on this API.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Diagnostics.StackTrace</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Currently there is no workaround, but we are working on it. Please check back.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Bitmap</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Drawing.Image)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetHbitmap</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Brush</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Color</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FromArgb(System.Int32,System.Int32,System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_A</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_B</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Beige</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_G</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_R</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">op_Inequality(System.Drawing.Color,System.Drawing.Color)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Drawing2D.SmoothingMode</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Font</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String,System.Single,System.Drawing.GraphicsUnit)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_FontFamily</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Size</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Style</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.FontFamily</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Name</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.FontStyle</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Graphics</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FillRectangle(System.Drawing.Brush,System.Int32,System.Int32,System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FromImage(System.Drawing.Image)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.GraphicsUnit</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Image</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Dispose</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Height</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Width</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Save(System.IO.Stream,System.Drawing.Imaging.ImageFormat)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Imaging.ImageFormat</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Bmp</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Emf</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Exif</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Gif</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Icon</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Jpeg</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_MemoryBmp</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Png</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Tiff</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Wmf</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Point</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Size</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Empty</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Height</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Width</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">set_Height(System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">set_Width(System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.SizeF</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.SolidBrush</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Drawing.Color)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Drawing.Text.TextRenderingHint</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Assembly</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>typeof(CurrentType).GetTypeInfo().Assembly</td>
</tr>
<tr>
<td style="padding-left:2em">GetExecutingAssembly</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>typeof(CurrentType).GetTypeInfo().Assembly</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Binder</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use an overload that does not take a Binder.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.BindingFlags</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.AssemblyBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.AssemblyBuilderAccess</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.ILGenerator</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.Label</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.LocalBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.MethodBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.ModuleBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.ParameterBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.TypeBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.ObfuscationAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.ParameterModifier</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use an overload that does not take a ParameterModifier array.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.CompilerServices.SuppressIldasmAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Security.Cryptography.CryptoStream</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Security.Cryptography.CryptoStreamMode</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Security.Cryptography.DESCryptoServiceProvider</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Security.Cryptography.ICryptoTransform</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Security.Cryptography.SymmetricAlgorithm</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.String</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Intern(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Type</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().Assembly</td>
</tr>
<tr>
<td style="padding-left:2em">get_Assembly</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().Assembly</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Application</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Current</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_MainWindow</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Controls.Canvas</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.DependencyObject</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.DependencyProperty</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">OverrideMetadata(System.Type,System.Windows.PropertyMetadata)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Register(System.String,System.Type,System.Type,System.Windows.PropertyMetadata)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontStretch</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">op_Equality(System.Windows.FontStretch,System.Windows.FontStretch)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontStretches</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Condensed</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Expanded</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ExtraCondensed</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ExtraExpanded</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Medium</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Normal</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_SemiCondensed</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_SemiExpanded</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_UltraCondensed</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_UltraExpanded</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontStyle</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontStyles</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Italic</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Normal</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontWeight</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FontWeights</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Black</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Bold</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_DemiBold</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ExtraBlack</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ExtraBold</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_ExtraLight</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Heavy</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Light</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Medium</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Normal</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Thin</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FrameworkElement</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">DefaultStyleKeyProperty</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">OnRenderSizeChanged(System.Windows.SizeChangedInfo)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.FrameworkPropertyMetadata</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Freezable</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Freeze</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Int32Rect</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Int32,System.Int32,System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Interop.Imaging</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">CreateBitmapSourceFromHBitmap(System.IntPtr,System.IntPtr,System.Windows.Int32Rect,System.Windows.Media.Imaging.BitmapSizeOptions)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Color</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FromArgb(System.Byte,System.Byte,System.Byte,System.Byte)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_A</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_B</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_G</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_R</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.CompositionTarget</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_TransformToDevice</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.DrawingContext</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">DrawImage(System.Windows.Media.ImageSource,System.Windows.Rect)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.FontFamily</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Source</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.ImageSource</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapCacheOption</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapCreateOptions</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapDecoder</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">Create(System.IO.Stream,System.Windows.Media.Imaging.BitmapCreateOptions,System.Windows.Media.Imaging.BitmapCacheOption)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Frames</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapFrame</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapSizeOptions</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FromWidthAndHeight(System.Int32,System.Int32)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.BitmapSource</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Imaging.WriteableBitmap</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Windows.Media.Imaging.BitmapSource)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Matrix</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_M11</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_M22</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Media.Visual</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.PresentationSource</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">FromVisual(System.Windows.Media.Visual)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_CompositionTarget</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.PropertyMetadata</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Rect</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Double,System.Double,System.Double,System.Double)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.ResourceDictionaryLocation</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Size</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Empty</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Height</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Width</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">op_Equality(System.Windows.Size,System.Windows.Size)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">op_Inequality(System.Windows.Size,System.Windows.Size)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">set_Height(System.Double)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">set_Width(System.Double)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.SizeChangedInfo</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.ThemeInfoAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Windows.ResourceDictionaryLocation,System.Windows.ResourceDictionaryLocation)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.UIElement</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_RenderSize</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">InvalidateVisual</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Windows.Window</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p>
<a href="#Portability Summary">Back to Summary</a>
</p>
</div>
</div>
</body>
</html> | mit |
nikhilrajaram/nikhilrajaram.github.io | instructors/James_Kates.md | 1413 | ---
layout: page
title: "James Kates"
comments: true
description: "blanks"
keywords: "James Kates,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../assets/js/highcharts.js"></script> -->
<style type="text/css">@font-face {
font-family: "Bebas Neue";
src: url(https://www.filehosting.org/file/details/544349/BebasNeue Regular.otf) format("opentype");
}
h1.Bebas {
font-family: "Bebas Neue", Verdana, Tahoma;
}
</style>
</head>
#### TEACHING INFORMATION
**College**: College of Arts and Sciences
**Classes taught**: SLHS 5674, SLHS 6000
#### SLHS 5674: Signals and Systems in Audiology
**Terms taught**: Fall 2008, Fall 2010, Fall 2012, Fall 2014
**Instructor rating**: 4.16
**Standard deviation in instructor rating**: 0.69
**Average grade** (4.0 scale): 3.48
**Standard deviation in grades** (4.0 scale): 0.1
**Average workload** (raw): 2.94
**Standard deviation in workload** (raw): 0.29
#### SLHS 6000: TPC-DIGTL SIGNL PRCESSNG
**Terms taught**: Spring 2009
**Instructor rating**: 4.71
**Standard deviation in instructor rating**: 0.0
**Average grade** (4.0 scale): 3.48
**Standard deviation in grades** (4.0 scale): 0.0
**Average workload** (raw): 2.17
**Standard deviation in workload** (raw): 0.0
| mit |
BiathlonHelsinki/BiathlonContract | test/3_biathlontoken.js | 7223 | const Nodelist = artifacts.require("./Nodelist.sol");
const BiathlonNode = artifacts.require("./BiathlonNode.sol");
const SecondNode = artifacts.require("./SecondNode.sol");
const BiathlonToken = artifacts.require("./BiathlonToken.sol");
const Ownable = artifacts.require('../contracts/ownership/Ownable.sol');
// const MintableToken = artifacts.require('MintableToken.sol');
const SecondBiathlonToken = artifacts.require("./SecondBiathlonToken.sol");
let nl;
let bn;
let bt;
let sn;
let st;
contract('BiathlonToken', function(accounts) {
beforeEach(async function() {
bn = await BiathlonNode.deployed();
nl = await Nodelist.deployed();
bt = await BiathlonToken.deployed();
st = await SecondBiathlonToken.deployed();
sn = await SecondNode.deployed();
});
it('should have an owner', async function() {
let owner = await bt.owner();
assert.isTrue(owner !== 0);
});
it('should belong to the correct node', async function() {
let node = await bt.node_address();
let bna = await bn.address;
assert.equal(node, bna, "Token was not initialised to correct node");
});
it('should have a storage contract that is separate', async function() {
let storage_address = await bt.storage_address();
assert.notEqual(storage_address, bt.address);
});
it("should be able to register itself with the Node list of tokens", async function() {
let registration = await bt.register_with_node();
let node_token_count = await bn.count_tokens();
assert.equal(node_token_count, 1, "Node array of tokens doesn't have deployed BiathlonToken");
});
it('should mint a given amount of tokens to a given address', async function() {
const result = await bt.mint(accounts[0], 100, { from: accounts[0] });
assert.equal(result.logs[0].event, 'Mint');
assert.equal(result.logs[0].args.to.valueOf(), accounts[0]);
assert.equal(result.logs[0].args.amount.valueOf(), 100);
assert.equal(result.logs[1].event, 'Transfer');
assert.equal(result.logs[1].args.from.valueOf(), 0x0);
let balance0 = await bt.balanceOf(accounts[0]);
assert(balance0 == 100);
let totalSupply = await bt.totalSupply();
assert.equal(totalSupply, 100);
})
it('should allow owner to mint 50 to account #2', async function() {
let result = await bt.mint(accounts[2], 50);
assert.equal(result.logs[0].event, 'Mint');
assert.equal(result.logs[0].args.to.valueOf(), accounts[2]);
assert.equal(result.logs[0].args.amount.valueOf(), 50);
assert.equal(result.logs[1].event, 'Transfer');
assert.equal(result.logs[1].args.from.valueOf(), 0x0);
let new_balance = await bt.balanceOf(accounts[2]);
assert.equal(new_balance, 50, 'Owner could not mint 50 to account #2');
});
it('should have account #2 on registry after first token minting', async function() {
let check_user = await nl.users(accounts[2]);
assert.equal(check_user, bn.address);
});
it('should spend 25 of the tokens minted to account #2', async function() {
let result = await bt.spend(accounts[2], 25);
assert.equal(result.logs[0].event, 'Burn');
let new_balance = await bt.balanceOf(accounts[2]);
assert.equal(new_balance, 25);
});
it('should have total supply changed by these minting and spending operations', async function() {
let result = await bt.totalSupply();
assert.equal(result, 125);
});
it('should not allow non-onwers to spend', async function() {
try {
let spendtask = await bt.spend(accounts[0], 1, {from: accounts[2]})
} catch (error) {
const invalidJump = error.message.search('invalid opcode') >= 0;
assert(invalidJump, "Expected throw, got '" + error + "' instead");
return;
}
assert.fail("Expected to reject spending from non-owner");
});
it('should not allow non-owners to mint', async function() {
try {
let minttask = await bt.mint(accounts[2], 50, {from: accounts[1]});
} catch (error) {
const invalidJump = error.message.search('invalid opcode') >= 0;
assert(invalidJump, "Expected throw, got '" + error + "' instead");
return;
}
assert.fail("Expected to reject minting from non-owner");
});
it('should not be able to spend more than it has', async function() {
try {
let spendtask = await bt.spend(accounts[2], 66)
} catch (error) {
const invalidJump = error.message.search('invalid opcode') >= 0;
assert(invalidJump, "Expected throw, got '" + error + "' instead");
return;
}
assert.fail("Expected to reject spending more than limit");
});
it('second deployed token should belong to the correct node', async function() {
let node = await st.node_address();
let bna = await bn.address;
assert.equal(node, bna, "Token was not initialised to correct node");
});
it('second token should be able to upgrade the token with the node', async function() {
let name = await st.name();
const upgraded = await bn.upgrade_token(bt.address, st.address, name);
assert.equal(upgraded.logs[0].event, 'UpgradeToken');
let count_of_tokens = await bn.count_tokens();
assert.equal(count_of_tokens, 1, 'Should only be one token in tokenlist still');
});
it('should deactivate original token after upgrade', async function () {
let tia = await bn.tokens.call(bt.address);
assert.isNotTrue(tia[1]);
let newtoken = await bn.tokens.call(st.address);
assert.isTrue(newtoken[1]);
});
it('should carry over the previous balances since storage contract is fixed', async function() {
let get_balance = await st.balanceOf(accounts[2]);
assert.equal(get_balance, 25);
});
it('should not allow the deactivated contract to mint', async function() {
try {
let newmint = await bt.mint(accounts[2], 10);
} catch(error) {
const invalidJump = error.message.search('invalid opcode') >= 0;
assert(invalidJump, "Expected throw, got '" + error + "' instead");
return;
}
assert.fail("Expected to reject spending more than limit");
});
it('should allow minting more tokens to accounts', async function() {
let newmint = await st.mint(accounts[2], 3);
let getbalance = await st.balanceOf(accounts[2]);
let totalsupply = await st.totalSupply();
assert.equal(totalsupply, 128);
assert.equal(getbalance, 28);
});
it('should be able to transfer as contract owner from one account to another', async function() {
let thetransfer = await st.biathlon_transfer(accounts[2], accounts[3], 2);
let getbalance2 = await st.balanceOf(accounts[2]);
let getbalance3 = await st.balanceOf(accounts[3]);
assert.equal(getbalance2, 26);
assert.equal(getbalance3, 2);
});
it('should not be able to transfer as non-owner from one account to another', async function() {
try {
let thetransfer = await st.biathlon_transfer(accounts[3], accounts[4], 1, {from: accounts[1]});
} catch(error) {
const invalidJump = error.message.search('invalid opcode') >= 0;
assert(invalidJump, "Expected throw, got '" + error + "' instead");
return;
}
assert.fail("Expected to reject transfering from non-owner");
})
});
| mit |
wonghoifung/tips | goworkspace/src/jvmgo/classfile/class_reader.go | 874 | package classfile
import "encoding/binary"
type ClassReader struct {
data []byte
}
func (self *ClassReader) readUint8() uint8 {
val := self.data[0]
self.data = self.data[1:]
return val
}
func (self *ClassReader) readUint16() uint16 {
val := binary.BigEndian.Uint16(self.data)
self.data = self.data[2:]
return val
}
func (self *ClassReader) readUint32() uint32 {
val := binary.BigEndian.Uint32(self.data)
self.data = self.data[4:]
return val
}
func (self *ClassReader) readUint64() uint64 {
val := binary.BigEndian.Uint64(self.data)
self.data = self.data[8:]
return val
}
func (self *ClassReader) readUint16s() []uint16 {
n := self.readUint16()
s := make([]uint16, n)
for i := range s {
s[i] = self.readUint16()
}
return s
}
func (self *ClassReader) readBytes(n uint32) []byte {
bytes := self.data[:n]
self.data = self.data[n:]
return bytes
}
| mit |
mjsmith707/KSPCompiler | src/ASMCode.java | 4329 | import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.LinkedList;
//this code contains the output assembly code that the program outputs.
//will have at least three functions:
//add(string, string, string, string) <- adds an assembly code line
//optimise(int) <- optimises the output code, wherever possible
//write(string) <- writes the code to the desired filename
public class ASMCode {
LinkedList<String> lines = new LinkedList<String>();
LinkedList<String> data = new LinkedList<String>();
HashMap<String, String> stringMap = new HashMap<String, String>();
LinkedList<lineWrapper> functionLines = new LinkedList<lineWrapper>();
boolean hasFCall;
private interface lineWrapper {
String compile(int stacksize, boolean funcCall);
}
private class stdLineWrapper implements lineWrapper {
private String line;
@Override
public String compile(int stacksize, boolean funcCall) {
return line;
}
public stdLineWrapper(String s) {
line = s;
}
}
private class functionReturnWrapper implements lineWrapper {
@Override
public String compile(int stacksize, boolean funcCall) {
StringBuilder s = new StringBuilder();
if(stacksize != 0) {
s.append("\tmov\tsp, fp");
s.append(System.getProperty("line.separator"));//system independent newline
s.append("\tpop\tfp");
s.append(System.getProperty("line.separator"));
}
if(hasFCall) {
s.append("\tpop\tra");
s.append(System.getProperty("line.separator"));
}
s.append("\tjmpr\tra");
return s.toString();
}
}
public void add(String inst, String reg1, String reg2, String reg3) {
if(deadCode) return;
String newInst = "\t"+inst;
if(reg1 != null) {
newInst = newInst + "\t" + reg1;
if(reg2 != null) {
newInst = newInst + ", " + reg2;
if(reg3 != null) {
newInst = newInst + ", " + reg3;
}
}
}
functionLines.addLast(new stdLineWrapper(newInst));
}
public void add(String inst, String reg1, String reg2) {
add(inst, reg1, reg2, null);
}
public void add(String inst, String reg1) {
add(inst, reg1, null, null);
}
public void add(String inst) {
add(inst, null, null, null);
}
int labIndex = 0;
public String addString(String s) {
//makes sure we don't have duplicate strings in memory
if(stringMap.containsKey(s)) return stringMap.get(s);
//generate a label
String label = "string" + labIndex++;
data.addLast(label+":");
data.addLast("#string " +s);
stringMap.put(s, label);
return label;
}
public void addGlobal(String data, String label) {
//generate a label
this.data.addLast(label+":");
this.data.addLast(data);
}
public void put(String s) {
if(!deadCode)
functionLines.addLast(new stdLineWrapper(s));
}
private String fname;
public void beginFunction(String name) {
functionLines = new LinkedList<lineWrapper>();
fname = name;
hasFCall = false;
}
public void endFunction(int varCount) {
lines.addLast("#global " + fname);
lines.addLast(fname+":");
if(hasFCall) {
lines.addLast("\tpush\tra");
}
if(varCount != 0) {
lines.addLast("\tpush\tfp");
lines.addLast("\tmov\tfp, sp");
lines.addLast("\taddi\tsp, sp, " + varCount);
}
for(lineWrapper w : functionLines) {
lines.addLast(w.compile(varCount, hasFCall));
}
}
public void setHasFCall() {
if(deadCode) return;
hasFCall = true;
}
public void functionReturn() {
if(deadCode) return;
functionLines.addLast(new functionReturnWrapper());
}
public void write(String filename) {
//System.out.println(".text");
//for(String s : lines) {
// System.out.println(s);
//}
//System.out.println(".data");
//for(String s : data) {
// System.out.println(s);
//}
System.out.println("Compilation successful!");
System.out.println("Writing...");
try {
PrintWriter out = new PrintWriter(new FileWriter(filename+".asm"));
out.println(".text");
for(String s : lines) {
out.println(s);
}
out.println(".data");
for(String s : data) {
out.println(s);
}
out.close();
} catch(IOException e) {
System.out.println("Writing failed");
return;
}
System.out.println("Program created!");
}
boolean deadCode;
public void deadCode(boolean codeIsDead) {
deadCode = codeIsDead;
}
}
| mit |
zorec/ng2-pack | src/app/filter-input/filter-input.component.ts | 1320 | import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
import { Filter, FilterType } from 'lib/filter';
@Component({
selector: 'iw-filter-input',
templateUrl: './filter-input.component.html',
styleUrls: ['./filter-input.component.css']
})
export class FilterInputComponent implements OnInit {
@Input() filter: Filter;
@Output() change = new EventEmitter<Filter>();
constructor() { }
ngOnInit() {
}
get FilterType() {
return FilterType;
}
applyFilter(filter: Filter, value: string) {
filter.value = value;
this.change.emit(filter);
}
itemsForField(filter: Filter) {
if (filter.options) {
return filter.options;
}
// put to initialization
// if (!this.rows) { return []; }
// const items = [];
// this.rows.forEach((r) => {
// if (items.indexOf(r[filter.key]) < 0) {
// items.push(r[filter.key]);
// }
// });
// return items;
}
}
/*
filterData(key: string, value: any) {
let filter: Filter = this.filters
.find((f) => f.key === key);
if (!filter) {
filter = {
type: FilterType.String, key, value
};
this.filters.push(filter);
} else {
// overwritte previous value
filter.value = value;
}
this.filterChange.emit();
}
}
*/
| mit |
perusworld/mcdevapi-lostandstolen-refimpl-web | index.js | 2903 | var express = require('express');
var bodyParser = require('body-parser');
var fs = require('fs')
var app = express();
var lostStolen = require('mastercard-lost-stolen');
var MasterCardAPI = lostStolen.MasterCardAPI;
var dummyData = [];
var dummyDataFiles = ['www/data/menu.json', 'www/data/account-number.json'];
dummyDataFiles.forEach(function(file) {
fs.readFile(file, 'utf8', function(err, data) {
if (err) {
return console.log(err);
}
dummyData[file] = JSON.parse(data);
});
});
var config = {
p12file: process.env.KEY_FILE || null,
p12pwd: process.env.KEY_FILE_PWD || 'keystorepassword',
p12alias: process.env.KEY_FILE_ALIAS || 'keyalias',
apiKey: process.env.API_KEY || null,
sandbox: process.env.SANDBOX || 'true',
}
var useDummyData = null == config.p12file;
if (useDummyData) {
console.log('p12 file info missing, using dummy data')
} else {
console.log('has p12 file info, using MasterCardAPI')
var authentication = new MasterCardAPI.OAuth(config.apiKey, config.p12file, config.p12alias, config.p12pwd);
MasterCardAPI.init({
sandbox: 'true' === config.sandbox,
authentication: authentication
});
}
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static('www'));
app.post('/menu', function(req, res) {
res.json(dummyData[dummyDataFiles[0]]);
});
app.post('/orders', function(req, res) {
res.json({});
});
app.post('/confirm', function(req, res) {
res.json({});
});
app.post('/checkAccountNumber', function(req, res) {
if (useDummyData) {
if (null == dummyData[dummyDataFiles[1]][req.body.accountNumber]) {
res.json(dummyData[dummyDataFiles[1]].default);
} else {
res.json(dummyData[dummyDataFiles[1]][req.body.accountNumber]);
}
} else {
var requestData = {
"AccountInquiry": {
"AccountNumber": req.body.accountNumber
}
};
lostStolen.AccountInquiry.update(requestData, function(error, data) {
if (error) {
res.json({
"type": "APIError",
"message": "Error executing API call",
"status": 400,
"data": {
"Errors": {
"Error": {
"Source": "Unknown",
"ReasonCode": "UNKNOWN",
"Description": "Unknown error",
"Recoverable": "false"
}
}
}
});
}
else {
res.json(data);
}
});
}
});
app.listen(3000, function() {
console.log('Example app listening on port 3000!');
});
| mit |
Studio39/node-snapclone | routes/index.js | 301 | var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/about', function(req, res, next) {
res.render('about', { title: 'About' });
});
module.exports = router;
| mit |
NikolaySpasov/Softuni | C# Advanced/10. Advanced Retake Exam - 22 August 2016/10. Advanced Retake Exam - 22 August 2016/Properties/AssemblyInfo.cs | 1453 | 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("10. Advanced Retake Exam - 22 August 2016")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("10. Advanced Retake Exam - 22 August 2016")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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("8171b56b-59dc-4347-98ad-21d0c4690715")]
// 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")]
| mit |
brycelelbach/asl | documentation/html/structadobe_1_1unary__compose-members.html | 7661 | <!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->
<!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" lang="en" xml:lang="en">
<head>
<TITLE>Adobe Software Technology Lab: Member List</TITLE>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
<LINK TYPE="text/css" REL="stylesheet" HREF="adobe_source.css"/>
<LINK REL="alternate" TITLE="stlab.adobe.com RSS" HREF="http://sourceforge.net/export/rss2_projnews.php?group_id=132417&rss_fulltext=1" TYPE="application/rss+xml"/>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
</head>
<body>
<div id='content'>
<table><tr>
<td colspan='5'>
<div id='opensource_banner'>
<table style='width: 100%; padding: 5px;'><tr>
<td align='left'>
<a href='index.html' style='border: none'><img src='stlab2007.jpg' alt="stlab.adobe.com"/></a>
</td>
<td align='right'>
<a href='http://www.adobe.com' style='border: none'><img src='adobe_hlogo.gif' alt="Adobe Systems Incorporated"/></a>
</td>
</tr></table>
</div>
</td></tr><tr>
<td valign="top">
<div id='navtable' height='100%'>
<div style='margin: 5px'>
<h4>Documentation</h4>
<a href="group__asl__overview.html">Overview</a><br/>
<a href="asl_readme.html">Building ASL</a><br/>
<a href="asl_toc.html">Documentation</a><br/>
<a href="http://stlab.adobe.com/wiki/index.php/Supplementary_ASL_Documentation">Library Wiki Docs</a><br/>
<a href="asl_indices.html">Indices</a><br/>
<a href="http://stlab.adobe.com/perforce/">Browse Perforce</a><br/>
<h4>More Info</h4>
<a href="asl_release_notes.html">Release Notes</a><br/>
<a href="http://stlab.adobe.com/wiki/">Wiki</a><br/>
<a href="asl_search.html">Site Search</a><br/>
<a href="licenses.html">License</a><br/>
<a href="success_stories.html">Success Stories</a><br/>
<a href="asl_contributors.html">Contributors</a><br/>
<h4>Media</h4>
<a href="http://sourceforge.net/project/showfiles.php?group_id=132417&package_id=145420">Download</a><br/>
<a href="asl_download_perforce.html">Perforce Depots</a><br/>
<h4>Support</h4>
<a href="http://sourceforge.net/projects/adobe-source/">ASL SourceForge Home</a><br/>
<a href="http://sourceforge.net/mail/?group_id=132417">Mailing Lists</a><br/>
<a href="http://sourceforge.net/forum/?group_id=132417">Discussion Forums</a><br/>
<a href="http://sourceforge.net/tracker/?atid=724218&group_id=132417&func=browse">Report Bugs</a><br/>
<a href="http://sourceforge.net/tracker/?atid=724221&group_id=132417&func=browse">Suggest Features</a><br/>
<a href="asl_contributing.html">Contribute to ASL</a><br/>
<h4>RSS</h4>
<a href="http://sourceforge.net/export/rss2_projnews.php?group_id=132417">Short-text news</a><br/>
<a href="http://sourceforge.net/export/rss2_projnews.php?group_id=132417&rss_fulltext=1">Full-text news</a><br/>
<a href="http://sourceforge.net/export/rss2_projfiles.php?group_id=132417">File releases</a><br/>
<h4>Other Adobe Projects</h4>
<a href="http://sourceforge.net/adobe/">Open @ Adobe</a><br/>
<a href="http://opensource.adobe.com/">Adobe Open Source</a><br/>
<a href="http://labs.adobe.com/">Adobe Labs</a><br/>
<a href="http://stlab.adobe.com/amg/">Adobe Media Gallery</a><br/>
<a href="http://stlab.adobe.com/performance/">C++ Benchmarks</a><br/>
<h4>Other Resources</h4>
<a href="http://boost.org">Boost</a><br/>
<a href="http://www.riaforge.com/">RIAForge</a><br/>
<a href="http://www.sgi.com/tech/stl">SGI STL</a><br/>
</div>
</div>
</td>
<td id='maintable' width="100%" valign="top">
<!-- End Header -->
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
<div class="headertitle">
<h1>unary_compose< F, G > Member List</h1> </div>
</div>
<div class="contents">
This is the complete list of members for <a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="structadobe_1_1unary__compose.html#ae8e3eb881d7aa88edb168fe626cca8f0">operator()</a>(const U &x) const </td><td><a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structadobe_1_1unary__compose.html#afd30a06f605c1dbd8aea1206cb6fcd6f">operator()</a>(U &x) const </td><td><a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structadobe_1_1unary__compose.html#a4cf2df542e3bed6ef93ff54d61aa8844">result_type</a> typedef</td><td><a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structadobe_1_1unary__compose.html#ae6c9f90e50c0c070cc48371950b81071">unary_compose</a>()</td><td><a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structadobe_1_1unary__compose.html#a3fd198d939304e15f7fc66ca74ef2556">unary_compose</a>(F f, G g)</td><td><a class="el" href="structadobe_1_1unary__compose.html">unary_compose< F, G ></a></td><td></td></tr>
</table></div>
<!-- Begin Footer -->
</td></tr>
</table>
</div> <!-- content -->
<div class='footerdiv'>
<div id='footersub'>
<ul>
<li><a href="http://www.adobe.com/go/gftray_foot_aboutadobe">Company</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_privacy_security">Online Privacy Policy</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_terms">Terms of Use</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_contact_adobe">Contact Us</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_accessibility">Accessibility</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_report_piracy">Report Piracy</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_permissions_trademarks">Permissions & Trademarks</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_product_license_agreements">Product License Agreements</a> | </li>
<li><a href="http://www.adobe.com/go/gftray_foot_feedback">Send Feedback</a></li>
</ul>
<div>
<p>Copyright © 2006-2007 Adobe Systems Incorporated.</p>
<p>Use of this website signifies your agreement to the <a href="http://www.adobe.com/go/gftray_foot_terms">Terms of Use</a> and <a href="http://www.adobe.com/go/gftray_foot_privacy_security">Online Privacy Policy</a>.</p>
<p>Search powered by <a href="http://www.google.com/" target="new">Google</a></p>
</div>
</div>
</div>
<script type="text/javascript">
_uacct = "UA-396569-1";
urchinTracker();
</script>
</body>
</html>
| mit |
BlancheXu/test | examples/with-stomp/README.md | 1312 | # Stomp example
## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
```bash
npx create-next-app --example with-stomp with-stomp-app
# or
yarn create next-app --example with-stomp with-stomp-app
```
### Download manually
Download the example:
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-stomp
cd with-stomp
```
Install it and run:
```bash
npm install
STOMP_SERVER=wss://some.stomp.server npm run dev
# or
yarn
STOMP_SERVER=wss://some.stomp.server yarn dev
```
You'll need to provide the STOMP url of your server in `STOMP_SERVER`
> If you're on Windows you may want to use [cross-env](https://www.npmjs.com/package/cross-env)
## The idea behind the example
This example show how to use [STOMP](http://stomp.github.io/) inside a Next.js application.
STOMP is a simple text-orientated messaging protocol. It defines an interoperable wire format so that any of the available STOMP clients can communicate with any STOMP message broker.
Read more about [STOMP](http://jmesnil.net/stomp-websocket/doc/) protocol.
| mit |
chrisjsherm/SurplusMvc | Surplus/Migrations/201504291914587_EstValueMaxMin.Designer.cs | 821 | // <auto-generated />
namespace Surplus.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class EstValueMaxMin : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(EstValueMaxMin));
string IMigrationMetadata.Id
{
get { return "201504291914587_EstValueMaxMin"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
| mit |
johnnoone/salt-targeting | src/salt/utils/__init__.py | 537 | '''
salt.utils
~~~~~~~~~~
'''
class lazy_property(object):
'''
meant to be used for lazy evaluation of an object attribute.
property should represent non-mutable data, as it replaces itself.
http://stackoverflow.com/a/6849299/564003
'''
def __init__(self, fget):
self.fget = fget
self.func_name = fget.__name__
def __get__(self, obj, cls):
if obj is None:
return None
value = self.fget(obj)
setattr(obj, self.func_name, value)
return value
| mit |
hejunbinlan/iOSStarterTemplate | Classes/Service/Reachability.h | 3955 | /*
File: Reachability.h
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.1
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modification or redistribution of this Apple software
constitutes acceptance of these terms. If you do not agree with these terms,
please do not use, install, modify or redistribute this Apple software.
In consideration of your agreement to abide by the following terms, and subject
to these terms, Apple grants you a personal, non-exclusive license, under
Apple's copyrights in this original Apple software (the "Apple Software"), to
use, reproduce, modify and redistribute the Apple Software, with or without
modifications, in source and/or binary forms; provided that if you redistribute
the Apple Software in its entirety and without modifications, you must retain
this notice and the following text and disclaimers in all such redistributions
of the Apple Software.
Neither the name, trademarks, service marks or logos of Apple Inc. may be used
to endorse or promote products derived from the Apple Software without specific
prior written permission from Apple. Except as expressly stated in this notice,
no other rights or licenses, express or implied, are granted by Apple herein,
including but not limited to any patent rights that may be infringed by your
derivative works or by other works in which the Apple Software may be
incorporated.
The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
COMBINATION WITH YOUR PRODUCTS.
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (C) 2010 Apple Inc. All Rights Reserved.
*/
#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
typedef enum {
NotReachable = 0,
ReachableViaWiFi,
ReachableViaWWAN
} NetworkStatus;
#define kReachabilityChangedNotification @"kNetworkReachabilityChangedNotification"
@interface Reachability: NSObject
{
BOOL localWiFiRef;
SCNetworkReachabilityRef reachabilityRef;
}
//reachabilityWithHostName- Use to check the reachability of a particular host name.
+ (Reachability*) reachabilityWithHostName: (NSString*) hostName;
//reachabilityWithAddress- Use to check the reachability of a particular IP address.
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;
//reachabilityForInternetConnection- checks whether the default route is available.
// Should be used by applications that do not connect to a particular host
+ (Reachability*) reachabilityForInternetConnection;
//reachabilityForLocalWiFi- checks whether a local wifi connection is available.
+ (Reachability*) reachabilityForLocalWiFi;
//Start listening for reachability notifications on the current run loop
- (BOOL) startNotifier;
- (void) stopNotifier;
- (NetworkStatus) currentReachabilityStatus;
//WWAN may be available, but not active until a connection has been established.
//WiFi may require a connection for VPN on Demand.
- (BOOL) connectionRequired;
@end
| mit |
YushengLi/MultimediaDesignProject | config/application.rb | 1124 | require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module FlashFinalProject
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
end
end
| mit |
LeifBloomquist/LeapMotion | C#/LeapMIDI/LeapStuff.cs | 2374 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Leap;
namespace LeapMIDI
{
class LeapStuff
{
private Controller controller = new Controller();
public float posX { get; private set; }
public float posY { get; private set; }
public float posZ { get; private set; }
public float velX { get; private set; }
public float velY { get; private set; }
public float velZ { get; private set; }
public float pinch { get; private set; }
public string info { get; private set; }
public LeapStuff()
{
//controller.EnableGesture(Gesture.GestureType.;
controller.SetPolicy(Controller.PolicyFlag.POLICY_BACKGROUND_FRAMES);
}
internal void Update()
{
Frame frame = controller.Frame();
info = "Connected: " + controller.IsConnected + "\n" +
"Frame ID: " + frame.Id + "\n" +
"Hands: " + frame.Hands.Count + "\n" +
"Fingers: " + frame.Fingers.Count + "\n\n";
if (frame.Hands.Count == 1)
{
info += "Hand #1 Position X:" + frame.Hands[0].PalmPosition.x + "\n";
info += "Hand #1 Position Y:" + frame.Hands[0].PalmPosition.y + "\n";
info += "Hand #1 Position Z:" + frame.Hands[0].PalmPosition.z + "\n\n";
info += "Hand #1 Velocity X:" + frame.Hands[0].PalmVelocity.x + "\n";
info += "Hand #1 Velocity Y:" + frame.Hands[0].PalmVelocity.y + "\n";
info += "Hand #1 Velocity Z:" + frame.Hands[0].PalmVelocity.z + "\n";
info += "Hand #1 Pinch:" + frame.Hands[0].PinchStrength + "\n";
posX = frame.Hands[0].PalmPosition.x;
posY = frame.Hands[0].PalmPosition.y;
posZ = frame.Hands[0].PalmPosition.z;
velX = frame.Hands[0].PalmVelocity.x;
velY = frame.Hands[0].PalmVelocity.y;
velZ = frame.Hands[0].PalmVelocity.z;
pinch = frame.Hands[0].PinchStrength;
}
else
{
velX = 0;
velY = 0;
velZ = 0;
pinch = 0;
}
}
}
}
| mit |
bzcheeseman/pytorch-inference | test/test_product.cpp | 1213 | //
// Created by Aman LaChapelle on 5/26/17.
//
// pytorch_inference
// Copyright (c) 2017 Aman LaChapelle
// Full license at pytorch_inference/LICENSE.txt
//
#include "../include/layers.hpp"
#include "utils.hpp"
int main(){
std::vector<pytorch::tensor> tests = test_setup({1, 1, 1},
{2, 2, 2},
{45, 45, 45},
{50, 50, 50},
{1},
{2},
{45},
{50},
{"test_prod1.dat", "test_prod2.dat", "test_prod3.dat"},
"test_prod");
// tests has {input1, input2, input3, pytorch_output}
pytorch::Product p(pytorch::k, 3);
af::timer::start();
pytorch::tensor prod;
for (int j = 49; j >= 0; j--){
prod = p({tests[0], tests[1], tests[2]})[0];
prod.eval();
}
af::sync();
std::cout << "arrayfire forward took (s): " << af::timer::stop()/50 << "(avg)" << std::endl;
assert(almost_equal(prod, tests[3]));
}
| mit |
weeniearms/graffiti | src/main/java/com/github/weeniearms/graffiti/GraphService.java | 1097 | package com.github.weeniearms.graffiti;
import com.github.weeniearms.graffiti.config.CacheConfiguration;
import com.github.weeniearms.graffiti.generator.GraphGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.Arrays;
@Service
public class GraphService {
private final GraphGenerator[] generators;
@Autowired
public GraphService(GraphGenerator[] generators) {
this.generators = generators;
}
@Cacheable(CacheConfiguration.GRAPH)
public byte[] generateGraph(String source, GraphGenerator.OutputFormat format) throws IOException {
GraphGenerator generator =
Arrays.stream(generators)
.filter(g -> g.isSourceSupported(source))
.findFirst()
.orElseThrow(() -> new IllegalArgumentException("No matching generator found for source"));
return generator.generateGraph(source, format);
}
}
| mit |
amostalong/SSFS | Assets/LuaFramework/ToLua/Source/Generate/UnityEngine_SkinnedMeshRendererWrap.cs | 10657 | //this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class UnityEngine_SkinnedMeshRendererWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(UnityEngine.SkinnedMeshRenderer), typeof(UnityEngine.Renderer));
L.RegFunction("BakeMesh", BakeMesh);
L.RegFunction("GetBlendShapeWeight", GetBlendShapeWeight);
L.RegFunction("SetBlendShapeWeight", SetBlendShapeWeight);
L.RegFunction("New", _CreateUnityEngine_SkinnedMeshRenderer);
L.RegFunction("__eq", op_Equality);
L.RegFunction("__tostring", ToLua.op_ToString);
L.RegVar("bones", get_bones, set_bones);
L.RegVar("rootBone", get_rootBone, set_rootBone);
L.RegVar("quality", get_quality, set_quality);
L.RegVar("sharedMesh", get_sharedMesh, set_sharedMesh);
L.RegVar("updateWhenOffscreen", get_updateWhenOffscreen, set_updateWhenOffscreen);
L.RegVar("skinnedMotionVectors", get_skinnedMotionVectors, set_skinnedMotionVectors);
L.RegVar("localBounds", get_localBounds, set_localBounds);
L.EndClass();
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _CreateUnityEngine_SkinnedMeshRenderer(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 0)
{
UnityEngine.SkinnedMeshRenderer obj = new UnityEngine.SkinnedMeshRenderer();
ToLua.Push(L, obj);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.SkinnedMeshRenderer.New");
}
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int BakeMesh(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
obj.BakeMesh(arg0);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetBlendShapeWeight(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
float o = obj.GetBlendShapeWeight(arg0);
LuaDLL.lua_pushnumber(L, o);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int SetBlendShapeWeight(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 3);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.SkinnedMeshRenderer));
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
obj.SetBlendShapeWeight(arg0, arg1);
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int op_Equality(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
bool o = arg0 == arg1;
LuaDLL.lua_pushboolean(L, o);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_bones(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Transform[] ret = obj.bones;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bones on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_rootBone(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Transform ret = obj.rootBone;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rootBone on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_quality(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.SkinQuality ret = obj.quality;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index quality on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_sharedMesh(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Mesh ret = obj.sharedMesh;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_updateWhenOffscreen(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
bool ret = obj.updateWhenOffscreen;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateWhenOffscreen on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_skinnedMotionVectors(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
bool ret = obj.skinnedMotionVectors;
LuaDLL.lua_pushboolean(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skinnedMotionVectors on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int get_localBounds(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Bounds ret = obj.localBounds;
ToLua.Push(L, ret);
return 1;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index localBounds on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_bones(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Transform[] arg0 = ToLua.CheckObjectArray<UnityEngine.Transform>(L, 2);
obj.bones = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bones on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_rootBone(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
obj.rootBone = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rootBone on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_quality(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.SkinQuality arg0 = (UnityEngine.SkinQuality)ToLua.CheckObject(L, 2, typeof(UnityEngine.SkinQuality));
obj.quality = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index quality on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_sharedMesh(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
obj.sharedMesh = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMesh on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_updateWhenOffscreen(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.updateWhenOffscreen = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateWhenOffscreen on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_skinnedMotionVectors(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
obj.skinnedMotionVectors = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skinnedMotionVectors on a nil value" : e.Message);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int set_localBounds(IntPtr L)
{
object o = null;
try
{
o = ToLua.ToObject(L, 1);
UnityEngine.SkinnedMeshRenderer obj = (UnityEngine.SkinnedMeshRenderer)o;
UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 2);
obj.localBounds = arg0;
return 0;
}
catch(Exception e)
{
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index localBounds on a nil value" : e.Message);
}
}
}
| mit |
sylviawan/oop_assignment1 | Desktop/Processing.app/Contents/Java/modes/java/reference/modelY_.html | 8356 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>modelY() \ Language (API) \ Processing 2+</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="Processing Foundation" />
<meta name="Publisher" content="Processing Foundation" />
<meta name="Keywords" content="Processing, Sketchbook, Programming, Coding, Code, Art, Design" />
<meta name="Description" content="Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology." />
<meta name="Copyright" content="All contents copyright the Processing Foundation, Ben Fry, Casey Reas, and the MIT Media Laboratory" />
<script src="javascript/modernizr-2.6.2.touch.js" type="text/javascript"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body id="Langauge-en" onload="" >
<!-- ==================================== PAGE ============================ -->
<div id="container">
<!-- ==================================== HEADER ============================ -->
<div id="ribbon">
<ul class="left">
<li class="highlight"><a href="http://processing.org/">Processing</a></li>
<li><a href="http://p5js.org/">p5.js</a></li>
<li><a href="http://py.processing.org/">Processing.py</a></li>
<li><a href="http://android.processing.org/">Processing for Android</a></li>
</ul>
<ul class="right">
<li><a href="https://processingfoundation.org/">Processing Foundation</a></li>
</ul>
<div class="clear"></div>
</div>
<div id="header">
<a href="/" title="Back to the Processing cover."><div class="processing-logo no-cover" alt="Processing cover"></div></a>
<form name="search" method="get" action="//www.google.com/search">
<p><input type="hidden" name="as_sitesearch" value="processing.org" />
<input type="text" name="as_q" value="" size="20" class="text" />
<input type="submit" value=" " /></p>
</form>
</div>
<a id="TOP" name="TOP"></a>
<div id="navigation">
<div class="navBar" id="mainnav">
<a href="index.html" class='active'>Language</a><br>
<a href="libraries/index.html" >Libraries</a><br>
<a href="tools/index.html">Tools</a><br>
<a href="environment/index.html">Environment</a><br>
</div>
<script> document.querySelectorAll(".processing-logo")[0].className = "processing-logo"; </script>
</div>
<!-- ==================================== CONTENT - Headers ============================ -->
<div class="content">
<p class="ref-notice">This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, <a href="https://github.com/processing/processing-docs/issues?state=open">please let us know</a>. If you prefer a more technical reference, visit the <a href="http://processing.github.io/processing-javadocs/core/">Processing Core Javadoc</a> and <a href="http://processing.github.io/processing-javadocs/libraries/">Libraries Javadoc</a>.</p>
<table cellpadding="0" cellspacing="0" border="0" class="ref-item">
<tr class="name-row">
<th scope="row">Name</th>
<td><h3>modelY()</h3></td>
</tr>
<tr class="">
<tr class=""><th scope="row">Examples</th><td><div class="example"><pre >
void setup() {
size(500, 500, P3D);
noFill();
}
void draw() {
background(0);
pushMatrix();
// start at the middle of the screen
translate(width/2, height/2, -200);
// some random rotation to make things interesting
rotateY(1.0); //yrot);
rotateZ(2.0); //zrot);
// rotate in X a little more each frame
rotateX(frameCount / 100.0);
// offset from center
translate(0, 150, 0);
// draw a white box outline at (0, 0, 0)
stroke(255);
box(50);
// the box was drawn at (0, 0, 0), store that location
float x = modelX(0, 0, 0);
float y = modelY(0, 0, 0);
float z = modelZ(0, 0, 0);
// clear out all the transformations
popMatrix();
// draw another box at the same (x, y, z) coordinate as the other
pushMatrix();
translate(x, y, z);
stroke(255, 0, 0);
box(50);
popMatrix();
}
</pre></div>
</td></tr>
<tr class="">
<th scope="row">Description</th>
<td>
Returns the three-dimensional X, Y, Z position in model space. This returns the Y value for a given coordinate based on the current set of transformations (scale, rotate, translate, etc.) The Y value can be used to place an object in space relative to the location of the original point once the transformations are no longer in use.<br />
<br />
In the example, the <b>modelX()</b>, <b>modelY()</b>, and <b>modelZ()</b> functions record the location of a box in space after being placed using a series of translate and rotate commands. After popMatrix() is called, those transformations no longer apply, but the (x, y, z) coordinate returned by the model functions is used to place another box in the same location.
</td>
</tr>
<tr class=""><th scope="row">Syntax</th><td><pre>modelY(<kbd>x</kbd>, <kbd>y</kbd>, <kbd>z</kbd>)</pre></td></tr>
<tr class=""> <th scope="row">Parameters</th><td><table cellpadding="0" cellspacing="0" border="0"><tr class="">
<th scope="row" class="code">x</th>
<td>float: 3D x-coordinate to be mapped</td>
</tr>
<tr class="">
<th scope="row" class="code">y</th>
<td>float: 3D y-coordinate to be mapped</td>
</tr>
<tr class="">
<th scope="row" class="code">z</th>
<td>float: 3D z-coordinate to be mapped</td>
</tr></table></td> </tr>
<tr class=""><th scope="row">Returns</th><td class="code">float</td></tr>
<tr class=""><th scope="row">Related</th><td><a class="code" href="modelX_.html">modelX()</a><br />
<a class="code" href="modelZ_.html">modelZ()</a><br /></td></tr>
</table>
Updated on July 30, 2016 04:31:58am EDT<br /><br />
<!-- Creative Commons License -->
<div class="license">
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border: none" src="http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
</div>
<!--
<?xpacket begin='' id=''?>
<x:xmpmeta xmlns:x='adobe:ns:meta/'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about=''
xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'>
<xapRights:Marked>True</xapRights:Marked>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'
>
<xapRights:UsageTerms>
<rdf:Alt>
<rdf:li xml:lang='x-default' >This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.</rdf:li>
<rdf:li xml:lang='en' >This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.</rdf:li>
</rdf:Alt>
</xapRights:UsageTerms>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:cc='http://creativecommons.org/ns#'>
<cc:license rdf:resource='http://creativecommons.org/licenses/by-nc-sa/4.0/'/>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='r'?>
-->
</div>
<!-- ==================================== FOOTER ============================ -->
<div id="footer">
<div id="copyright">Processing is an open project intiated by <a href="http://benfry.com/">Ben Fry</a> and <a href="http://reas.com">Casey Reas</a>. It is developed by a <a href="http://processing.org/about/people/">team of volunteers</a>.</div>
<div id="colophon">
<a href="copyright.html">© Info</a>
</div>
</div>
</div>
<script src="javascript/jquery-1.9.1.min.js"></script>
<script src="javascript/site.js" type="text/javascript"></script>
</body>
</html>
| mit |
sSeewald/nCore | src/nCore/Core/Router/Exception/RouterException.php | 572 | <?php
/**
* This file is part of the [n]core framework
*
* Copyright (c) 2014 Sascha Seewald / novael.de
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace nCore\Core\Router\Exception;
use nCore\Core\Exception\DefaultException;
/**
* Class RouterException
* @package nCore\Core\Router\Exception
*/
class RouterException extends DefaultException
{
/**
* @inheritdoc
*/
public function dispatchException()
{
$this->httpCode = 500;
}
}
| mit |
jimolina/bakeangular | tests/Fixture/ParametersFixture.php | 1636 | <?php
namespace App\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* ParametersFixture
*
*/
class ParametersFixture extends TestFixture
{
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
'name' => ['type' => 'string', 'length' => 50, 'null' => false, 'default' => null, 'collate' => 'latin1_spanish_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
'value' => ['type' => 'text', 'length' => null, 'null' => false, 'default' => null, 'collate' => 'latin1_spanish_ci', 'comment' => '', 'precision' => null],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
],
'_options' => [
'engine' => 'InnoDB',
'collation' => 'latin1_spanish_ci'
],
];
// @codingStandardsIgnoreEnd
/**
* Records
*
* @var array
*/
public $records = [
[
'id' => 1,
'name' => 'Lorem ipsum dolor sit amet',
'value' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
],
];
}
| mit |
mulhod/bob_dylan_lyrics | songs/html/lay_lady_lay_3.html | 12400 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</meta>
<meta content="width=device-width, initial-scale=1" name="viewport">
</meta>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</link>
<link href="../../resources/stof-style.css" rel="stylesheet">
</link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">
</script>
<script src="../../resources/search.js">
</script>
<script src="../../resources/analytics.js">
</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button aria-expanded="false" class="navbar-toggle collapsed" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button">
<span class="sr-only">
Toggle navigation
</span>
<span class="icon-bar">
</span>
<span class="icon-bar">
</span>
<span class="icon-bar">
</span>
</button>
<a class="navbar-brand" href="../../index.html">
Bob Dylan Lyrics
</a>
</div>
<div aria-expanded="false" class="navbar-collapse collapse" id="bs-example-navbar-collapse-1" style="height: 1px">
<ul class="nav navbar-nav">
<li>
<a href="../../full_lyrics_file_dumps/downloads.html">
Downloads
</a>
</li>
<li>
<a href="../../songs/song_index/song_index.html">
All Songs
</a>
</li>
<li>
<a href="../../albums/album_index/album_index.html">
All Albums
</a>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
1960s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/bob_dylan.html">
Bob Dylan (1962)
</a>
</li>
<li>
<a class="album" href="../../albums/the_freewheelin_bob_dylan.html">
The Freewheelin' Bob Dylan (1963)
</a>
</li>
<li>
<a class="album" href="../../albums/the_times_they_are_a-changin.html">
The Times They Are A-Changin' (1964)
</a>
</li>
<li>
<a class="album" href="../../albums/another_side_of_bob_dylan.html">
Another Side of Bob Dylan (1964)
</a>
</li>
<li>
<a class="album" href="../../albums/bringing_it_all_back_home.html">
Bringing It All Back Home (1965)
</a>
</li>
<li>
<a class="album" href="../../albums/highway_61_revisited.html">
Highway 61 Revisited (1965)
</a>
</li>
<li>
<a class="album" href="../../albums/blonde_on_blonde.html">
Blonde on Blonde (1966))
</a>
</li>
<li>
<a class="album" href="../../albums/bob_dylans_greatest_hits.html">
Bob Dylan's Greatest Hits (1967)
</a>
</li>
<li>
<a class="album" href="../../albums/john_wesley_harding.html">
John Wesley Harding (1967)
</a>
</li>
<li>
<a class="album" href="../../albums/nashville_skyline.html">
Nashville Skyline (1969)
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
1970s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/self_portrait.html">
Self Portrait (1970)
</a>
</li>
<li>
<a class="album" href="../../albums/new_morning.html">
New Morning (1970)
</a>
</li>
<li>
<a class="album" href="../../albums/bob_dylans_greatest_hits_vol_ii.html">
Bob Dylan's Greatest Hits, Vol. II (1971)
</a>
</li>
<li>
<a class="album" href="../../albums/pat_garrett_and_billy_the_kid.html">
Pat Garrett & Billy the Kid (1973)
</a>
</li>
<li>
<a class="album" href="../../albums/dylan.html">
Dylan (1973)
</a>
</li>
<li>
<a class="album" href="../../albums/planet_waves.html">
Planet Waves (1974)
</a>
</li>
<li>
<a class="album" href="../../albums/before_the_flood.html">
Before the Flood (1974)
</a>
</li>
<li>
<a class="album" href="../../albums/blood_on_the_tracks.html">
Blood on the Tracks (1975)
</a>
</li>
<li>
<a class="album" href="../../albums/the_basement_tapes.html">
The Basement Tapes (1975)
</a>
</li>
<li>
<a class="album" href="../../albums/desire.html">
Desire (1976)
</a>
</li>
<li>
<a class="album" href="../../albums/hard_rain.html">
Hard Rain (1976)
</a>
</li>
<li>
<a class="album" href="../../albums/street_legal.html">
Street-Legal (1978)
</a>
</li>
<li>
<a class="album" href="../../albums/bob_dylan_at_budokan.html">
Bob Dylan at Budokan (1979)
</a>
</li>
<li>
<a class="album" href="../../albums/slow_train_coming.html">
Slow Train Coming (1979)
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
1980s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/saved.html">
Saved (1980)
</a>
</li>
<li>
<a class="album" href="../../albums/shot_of_love.html">
Shot of Love (1981)
</a>
</li>
<li>
<a class="album" href="../../albums/infidels.html">
Infidels (1983)
</a>
</li>
<li>
<a class="album" href="../../albums/real_live_1.html">
Real Live (1984)
</a>
</li>
<li>
<a class="album" href="../../albums/empire_burlesque.html">
Empire Burlesque (1985)
</a>
</li>
<li>
<a class="album" href="../../albums/biograph.html">
Biograph (1985)
</a>
</li>
<li>
<a class="album" href="../../albums/knocked_out_loaded.html">
Knocked Out Loaded (1986)
</a>
</li>
<li>
<a class="album" href="../../albums/down_in_the_groove.html">
Down in the Groove (1988)
</a>
</li>
<li>
<a class="album" href="../../albums/dylan_and_the_dead.html">
Dylan & the Dead (1989)
</a>
</li>
<li>
<a class="album" href="../../albums/oh_mercy.html">
Oh Mercy (1989)
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
1990s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/under_the_red_sky.html">
Under the Red Sky (1990)
</a>
</li>
<li>
<a class="album" href="../../albums/the_bootleg_series_volumes_1-3_rare_and_unreleased_1961-1991.html">
The Bootleg Series Volumes 1-3 (Rare & Unreleased) 1961-1991 (1991)
</a>
</li>
<li>
<a class="album" href="../../albums/good_as_i_been_to_you.html">
Good As I Been to You (1992)
</a>
</li>
<li>
<a class="album" href="../../albums/world_gone_wrong.html">
World Gone Wrong (1993)
</a>
</li>
<li>
<a class="album" href="../../albums/bob_dylans_greatest_hits_volume_3.html">
Bob Dylan's Greatest Hits Volume 3 (1994)
</a>
</li>
<li>
<a class="album" href="../../albums/mtv_unplugged.html">
MTV Unplugged (1995)
</a>
</li>
<li>
<a class="album" href="../../albums/time_out_of_mind.html">
Time Out of Mind (1997)
</a>
</li>
<li>
<a class="album" href="../../albums/the_bootleg_series_vol_4_bob_dylan_live_1966.html">
The Bootleg Series Vol. 4: Bob Dylan Live 1966, The "Royal Albert Hall" Concert (1998)
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
2000s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/the_essential_bob_dylan.html">
The Essential Bob Dylan (2000)
</a>
</li>
<li>
<a class="album" href="../../albums/love_and_theft.html">
Love and Theft (2001)
</a>
</li>
<li>
<a class="album" href="../../albums/the_bootleg_series_vol_5_bob_dylan_live_1975_the_rolling_thunder_revue.html">
The Bootleg Series Vol. 5: Bob Dylan Live 1975, The Rolling Thunder Revue (2002)
</a>
</li>
<li>
<a class="album" href="../../albums/the_bootleg_series_vol_6_bob_dylan_live_1964_concert_at_philharmonic_hall.html">
The Bootleg Series Vol. 6: Bob Dylan Live 1964, Concert at Philharmonic Hall (2004)
</a>
</li>
<li>
<a class="album" href="../../albums/the_best_of_bob_dylan.html">
The Best of Bob Dylan (2005)
</a>
</li>
<li>
<a class="album" href="../../albums/modern_times.html">
Modern Times (2006)
</a>
</li>
<li>
<a class="album" href="../../albums/together_through_life.html">
Together through Life (2009)
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
2010s
<span class="caret">
</span>
</a>
<ul class="dropdown-menu">
<li>
<a class="album" href="../../albums/tempest.html">
Tempest (2012)
</a>
</li>
</ul>
</li>
</ul>
<div class="col-md-3" style="border:0px solid;width:30%;height:auto;">
<gcse:search>
<form class="navbar-form navbar-right" role="search">
</form>
</gcse:search>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>
Lay Lady Lay
</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>
<div>
Lay<a href="#1"><sup>1</sup></a>, lady, lay, lay across my big brass bed,
</div>
<div>
Lay, lady, lay, lay across my big brass bed.
</div>
<div>
Whatever colors you have in your mind,
</div>
<div>
I'll show them to you and you'll see them shine.
</div>
</p>
<p>
<div>
Lay, lady, lay, lay across my big brass bed,
</div>
<div>
Forget this dance, let's go upstairs.
</div>
<div>
Let's take a chance – who really cares?
</div>
<div>
Why don't you know you got nothing to prove?
</div>
<div>
It's all in your eyes and the way that you move.
</div>
</p>
<p>
<div>
Forget this dance, let's go upstairs.
</div>
<div>
Why wait any longer for no need to complain?<a href="#2"><sup>2</sup></a>
</div>
<div>
You can have love, but you might lose it.
</div>
<div>
Why run any longer when you're running in vain?
</div>
<div>
You can have the truth, but you got to choose it.
</div>
</p>
<p>
<div>
Stay, lady, stay, stay with your man awhile,
</div>
<div>
Till the break of day let me see you make him smile.
</div>
<div>
I long to see you in the morning light,
</div>
<div>
I long to hold you in the night –
</div>
<div>
Stay, lady, stay, stay with your man awhile.
</div>
</p>
<p>
<div>
Lay, lady, lay, lay across my big brass bed.
</div>
</p>
<p>
<div>
<a name="1">
<sup>
1
</sup>
</a>
<small>
The correct verb to use would technically be "lie" (she lies, she lay, she has lain), not "lay", which is the transitive form of "lie". However, the distinction between the two forms has been increasingly disappearing in English due at least partially to the fact that the base form of the verb <i>lay</i> looks and sounds exactly the same as the simple past form of <i>lay</i>. But just because the use of <i>lay</i> in this song is technically incorrect doesn't mean that it was not intentional: it would not sound right to hear "lie, lady, lie, lie across my big brass bed" (because of the assonance) and, besides, this is how real people talk every day and there's nothing wrong with it.
</small>
</div>
<div>
<a name="2">
<sup>
2
</sup>
</a>
<small>
Here it's almost as though Dylan begins to sing the line from the original album version, "Why wait any longer for the world to begin?", before improvising about halfway through, which might explain why the line sounds sort of meaningless and inane.
</small>
</div>
</p>
</div>
</div>
</div>
</body>
</html> | mit |
heil-hydra/hydramq | src/message/mod.rs | 12795 | mod message_set;
use std;
use std::fmt;
use linked_hash_map::{Iter, LinkedHashMap};
use uuid::Uuid;
pub mod message;
#[derive(Debug, PartialEq)]
pub struct Message {
properties: Map,
body: Option<Value>,
}
impl Message {
pub fn new() -> MessageBuilder {
MessageBuilder::new()
}
pub fn with_property<K, V>(key: K, value: V) -> MessageBuilder
where
K: Into<String>,
V: Into<Value>,
{
MessageBuilder::new().with_property(key.into(), value.into())
}
pub fn with_body<V>(value: V) -> MessageBuilder
where
V: Into<Value>,
{
MessageBuilder::new().with_body(value.into())
}
pub fn properties(&self) -> &Map {
&self.properties
}
pub fn body(&self) -> Option<&Value> {
match self.body {
Some(ref value) => Some(value),
None => None,
}
}
}
pub struct MessageBuilder {
map: LinkedHashMap<String, Value>,
body: Option<Value>,
}
impl MessageBuilder {
pub fn new() -> MessageBuilder {
MessageBuilder {
map: LinkedHashMap::new(),
body: None,
}
}
pub fn with_property<K, V>(mut self, key: K, value: V) -> MessageBuilder
where
K: Into<String>,
V: Into<Value>,
{
self.map.insert(key.into(), value.into());
self
}
pub fn with_body<V>(mut self, value: V) -> MessageBuilder
where
V: Into<Value>,
{
self.body = Some(value.into());
self
}
pub fn build(self) -> Message {
Message {
properties: Map { map: self.map },
body: self.body,
}
}
}
#[derive(PartialEq, Clone)]
pub struct Map {
map: LinkedHashMap<String, Value>,
}
impl Map {
pub fn new() -> MapBuilder {
MapBuilder {
map: LinkedHashMap::new(),
}
}
pub fn get(&self, key: &str) -> Option<&Value> {
self.map.get(key)
}
pub fn iter(&self) -> Iter<String, Value> {
self.map.iter()
}
pub fn len(&self) -> usize {
self.map.len()
}
}
impl fmt::Debug for Map {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.map.fmt(f)
}
}
pub struct MapBuilder {
map: LinkedHashMap<String, Value>,
}
impl MapBuilder {
pub fn insert<K, V>(mut self, key: K, value: V) -> MapBuilder
where
K: Into<String>,
V: Into<Value>,
{
self.map.insert(key.into(), value.into());
self
}
pub fn build(self) -> Map {
Map { map: self.map }
}
}
#[derive(Clone, PartialEq)]
pub struct List {
list: Vec<Value>,
}
impl List {
pub fn new() -> ListBuilder {
ListBuilder { list: Vec::new() }
}
pub fn iter(&self) -> std::slice::Iter<Value> {
self.list.iter()
}
pub fn len(&self) -> usize {
self.list.len()
}
}
impl std::ops::Index<usize> for List {
type Output = Value;
fn index(&self, index: usize) -> &Self::Output {
&self.list[index]
}
}
impl fmt::Debug for List {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.list.fmt(f)
}
}
pub struct ListBuilder {
list: Vec<Value>,
}
impl ListBuilder {
pub fn append<V>(mut self, value: V) -> ListBuilder
where
V: Into<Value>,
{
self.list.push(value.into());
self
}
pub fn build(self) -> List {
List { list: self.list }
}
}
#[derive(Debug, PartialEq, Clone)]
pub enum Value {
Null,
String(String),
Int64(i64),
Int32(i32),
Float32(f32),
Float64(f64),
Boolean(bool),
Bytes(Vec<u8>),
List(List),
Map(Map),
Uuid(Uuid),
}
impl From<String> for Value {
fn from(value: String) -> Self {
Value::String(value)
}
}
impl<'a> From<&'a str> for Value {
fn from(value: &'a str) -> Self {
Value::String(value.to_string())
}
}
impl From<i64> for Value {
fn from(value: i64) -> Self {
Value::Int64(value)
}
}
impl From<i32> for Value {
fn from(value: i32) -> Self {
Value::Int32(value)
}
}
impl From<f64> for Value {
fn from(value: f64) -> Self {
Value::Float64(value)
}
}
impl From<bool> for Value {
fn from(value: bool) -> Self {
Value::Boolean(value)
}
}
impl From<Vec<u8>> for Value {
fn from(value: Vec<u8>) -> Self {
Value::Bytes(value)
}
}
impl From<List> for Value {
fn from(value: List) -> Self {
Value::List(value)
}
}
impl From<Map> for Value {
fn from(value: Map) -> Self {
Value::Map(value)
}
}
impl From<Uuid> for Value {
fn from(value: Uuid) -> Self {
Value::Uuid(value)
}
}
pub trait MessageVisitor {
type Output;
fn visit_message(&self, value: &Message, buffer: &mut Self::Output);
fn visit_map(&self, value: &Map, buffer: &mut Self::Output);
fn visit_list(&self, value: &List, buffer: &mut Self::Output);
fn visit_value(&self, value: &Value, buffer: &mut Self::Output);
fn visit_bytes(&self, value: &Vec<u8>, buffer: &mut Self::Output);
fn visit_int32(&self, value: i32, buffer: &mut Self::Output);
fn visit_int64(&self, value: i64, buffer: &mut Self::Output);
fn visit_float32(&self, value: f32, buffer: &mut Self::Output);
fn visit_float64(&self, value: f64, buffer: &mut Self::Output);
fn visit_boolean(&self, _value: bool, _buffer: &mut Self::Output);
fn visit_string(&self, _value: &String, _buffer: &mut Self::Output);
fn visit_uuid(&self, value: &Uuid, buffer: &mut Self::Output);
fn visit_null(&self, _buffer: &mut Self::Output);
}
pub struct BinaryFormatSizeCalculator {}
impl MessageVisitor for BinaryFormatSizeCalculator {
type Output = usize;
fn visit_message(&self, message: &Message, buffer: &mut Self::Output) {
*buffer += 4;
for (key, value) in message.properties().iter() {
self.visit_string(key, buffer);
self.visit_value(value, buffer);
}
if let Some(value) = message.body() {
self.visit_value(value, buffer);
}
}
fn visit_map(&self, map: &Map, buffer: &mut Self::Output) {
*buffer += map.len();
for (key, value) in map.iter() {
self.visit_string(key, buffer);
self.visit_value(value, buffer);
}
}
fn visit_list(&self, list: &List, buffer: &mut Self::Output) {
*buffer += list.len();
for value in list.iter() {
self.visit_value(value, buffer);
}
}
fn visit_value(&self, value: &Value, buffer: &mut Self::Output) {
*buffer += 1;
match value {
&Value::Null => self.visit_null(buffer),
&Value::String(ref value) => {
self.visit_string(value, buffer);
}
&Value::Int32(value) => {
self.visit_int32(value, buffer);
}
&Value::Int64(value) => {
self.visit_int64(value, buffer);
}
&Value::Float32(value) => {
self.visit_float32(value, buffer);
}
&Value::Float64(value) => {
self.visit_float64(value, buffer);
}
&Value::Boolean(value) => {
self.visit_boolean(value, buffer);
}
&Value::Bytes(ref value) => {
self.visit_bytes(value, buffer);
}
&Value::Map(ref value) => {
self.visit_map(value, buffer);
}
&Value::List(ref value) => {
self.visit_list(value, buffer);
}
&Value::Uuid(ref value) => {
self.visit_uuid(value, buffer);
}
}
}
fn visit_bytes(&self, value: &Vec<u8>, buffer: &mut Self::Output) {
*buffer += 4 + value.len()
}
fn visit_int32(&self, _value: i32, buffer: &mut Self::Output) {
*buffer += 4;
}
fn visit_int64(&self, _value: i64, buffer: &mut Self::Output) {
*buffer += 8;
}
fn visit_float32(&self, _value: f32, buffer: &mut Self::Output) {
*buffer += 4;
}
fn visit_float64(&self, _value: f64, buffer: &mut Self::Output) {
*buffer += 8;
}
fn visit_boolean(&self, _value: bool, buffer: &mut Self::Output) {
*buffer += 1;
}
fn visit_string(&self, value: &String, buffer: &mut Self::Output) {
*buffer += 4 + value.len()
}
fn visit_uuid(&self, _value: &Uuid, buffer: &mut Self::Output) {
*buffer += 16
}
fn visit_null(&self, _buffer: &mut Self::Output) {}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let message = Message::new()
.with_body("Hello")
.with_property(
"vehicles",
List::new().append("Aprilia").append("Infiniti").build(),
)
.with_property(
"address",
Map::new()
.insert("street", "400 Beale ST")
.insert("city", "San Francisco")
.insert("state", "CA")
.insert("zip", "94105")
.build(),
)
.build();
println!("message = {:?}", message);
let message = Message::new()
.with_body("Wicked!!")
.with_property("Hello", "World!")
.with_property("age", 42)
.with_property("weight", 175.5)
.with_property("address", "400 Beale ST APT 1403")
.with_property("city", "San Francisco")
.with_property("state", "CA")
.with_property("zip", "94105")
.with_property("married", false)
.build();
println!("message = {:?}", &message);
}
#[test]
fn get_property_value() {
let m = Message::with_property("msg", "World!").build();
assert_eq!(m.properties().get("msg"), Some(&Value::from("World!")));
assert_eq!(m.properties().get("missing"), None);
if let Some(&Value::String(ref value)) = m.properties().get("msg") {
println!("value = {:?}", value);
}
assert_eq!(m.body(), None);
}
#[test]
fn map_as_body() {
let m = Message::with_body(
Map::new()
.insert("fname", "Jimmie")
.insert("lname", "Fulton")
.build(),
).build();
println!("message = {:?}", &m);
match m.body() {
Some(&Value::Map(ref map)) => {
assert_eq!(map.get("fname"), Some(&Value::from("Jimmie")));
assert_eq!(map.get("lname"), Some(&Value::from("Fulton")));
}
_ => panic!("Map expected!"),
}
}
#[test]
fn list_index() {
let l = List::new()
.append("one")
.append("two")
.append("three")
.build();
assert_eq!(l[0], Value::from("one"));
}
#[test]
fn map_iterator() {
let map = Map::new()
.insert("key1", "value1")
.insert("key2", "value2")
.build();
let mut counter = 0;
for (_key, _value) in map.iter() {
counter += 1;
}
assert_eq!(counter, 2);
eprintln!("message = {:?}", map);
}
#[test]
pub fn examples() {}
#[test]
fn binary_size_calulator() {
let calculator = BinaryFormatSizeCalculator {};
let message = Message::with_body("Hello").build();
let mut size = 0;
calculator.visit_message(&message, &mut size);
assert_eq!(size, 14);
}
#[test]
fn binary_size_calcuator_2() {
let calculator = BinaryFormatSizeCalculator {};
let message = example();
let mut size = 0;
calculator.visit_message(&message, &mut size);
eprintln!("size = {:?}", size);
}
fn example() -> Message {
Message::new()
.with_property("fname", "Jimmie")
.with_property("lname", "Fulton")
.with_property("age", 42)
.with_property("temp", 98.6)
.with_property(
"vehicles",
List::new().append("Aprilia").append("Infiniti").build(),
)
.with_property(
"siblings",
Map::new()
.insert("brothers", List::new().append("Jason").build())
.insert(
"sisters",
List::new().append("Laura").append("Sariah").build(),
)
.build(),
)
.build()
}
}
| mit |
typeset/typeset | Typeset.Domain.Configuration/IConfigurationRepository.cs | 233 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Typeset.Domain.Configuration
{
public interface IConfigurationRepository
{
IConfiguration Read(string path);
}
}
| mit |
spiridonov-oa/people-ma | public/modules/about/controllers/about.client.controller.js | 281 | 'use strict';
// Projects controller
angular.module('about').controller('AboutUsController', ['$scope', '$stateParams', '$state', '$location', 'Authentication',
function($scope, $stateParams, $state, $location, Authentication) {
$scope.authentication = Authentication;
}
]);
| mit |
libgraviton/graviton | src/Graviton/DocumentBundle/DependencyInjection/Compiler/Utils/AbstractField.php | 2983 | <?php
/**
* AbstractField class file
*/
namespace Graviton\DocumentBundle\DependencyInjection\Compiler\Utils;
/**
* Base document field
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://swisscom.ch
*/
class AbstractField
{
/**
* @var string
*/
private $fieldName;
/**
* @var string
*/
private $exposedName;
/**
* @var bool
*/
private $readOnly;
/**
* @var bool
*/
private $required;
/**
* @var bool
*/
private $searchable;
/**
* @var bool
*/
private $recordOriginException;
/**
* Constructor
*
* @param string $fieldName Field name
* @param string $exposedName Exposed name
* @param bool $readOnly Read only
* @param bool $required Is required
* @param bool $searchable Is searchable
* @param bool $recordOriginException Is an exception to record origin
*/
public function __construct(
$fieldName,
$exposedName,
$readOnly,
$required,
$searchable,
$recordOriginException
) {
$this->fieldName = $fieldName;
$this->exposedName = $exposedName;
$this->readOnly = $readOnly;
$this->required = $required;
$this->searchable = $searchable;
$this->recordOriginException = $recordOriginException;
}
/**
* Get field name
*
* @return string
*/
public function getFieldName()
{
return $this->fieldName;
}
/**
* Get exposed name
*
* @return string
*/
public function getExposedName()
{
return $this->exposedName;
}
/**
* Is read only
*
* @return bool
*/
public function isReadOnly()
{
return $this->readOnly;
}
/**
* Is required
*
* @return bool
*/
public function isRequired()
{
return $this->required;
}
/**
* Is searchable
*
* @return boolean
*/
public function isSearchable()
{
return $this->searchable;
}
/**
* @param boolean $searchable Is searchable
*
* @return void
*/
public function setSearchable($searchable)
{
$this->searchable = $searchable;
}
/**
* get RecordOriginException
*
* @return boolean RecordOriginException
*/
public function isRecordOriginException()
{
return $this->recordOriginException;
}
/**
* set RecordOriginException
*
* @param boolean $recordOriginException recordOriginException
*
* @return void
*/
public function setRecordOriginException($recordOriginException)
{
$this->recordOriginException = $recordOriginException;
}
}
| mit |
layheng/pog | doc/warmup.sql | 6079 | -- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: warmup
-- ------------------------------------------------------
-- Server version 5.5.49-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `add_member`
--
DROP TABLE IF EXISTS `add_member`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `add_member` (
`POWON_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`POWON_id`,`group_id`),
KEY `group_id_idx` (`group_id`),
CONSTRAINT `group_id` FOREIGN KEY (`group_id`) REFERENCES `group` (`group_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `POWON_id` FOREIGN KEY (`POWON_id`) REFERENCES `member` (`POWON_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `add_member`
--
LOCK TABLES `add_member` WRITE;
/*!40000 ALTER TABLE `add_member` DISABLE KEYS */;
/*!40000 ALTER TABLE `add_member` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `group`
--
DROP TABLE IF EXISTS `group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group` (
`group_id` int(11) NOT NULL AUTO_INCREMENT,
`group_name` varchar(45) NOT NULL,
`POWON_id` int(11) NOT NULL,
PRIMARY KEY (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `group`
--
LOCK TABLES `group` WRITE;
/*!40000 ALTER TABLE `group` DISABLE KEYS */;
/*!40000 ALTER TABLE `group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `interest`
--
DROP TABLE IF EXISTS `interest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `interest` (
`interest_id` int(11) NOT NULL AUTO_INCREMENT,
`interest_name` varchar(45) NOT NULL,
PRIMARY KEY (`interest_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `interest`
--
LOCK TABLES `interest` WRITE;
/*!40000 ALTER TABLE `interest` DISABLE KEYS */;
/*!40000 ALTER TABLE `interest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `member`
--
DROP TABLE IF EXISTS `member`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `member` (
`POWON_id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`lastname` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`user_name` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`address` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`dob` year(4) NOT NULL,
`city` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`member_status` tinyint(1) DEFAULT '0',
`fee_membership` tinyint(1) DEFAULT '0',
PRIMARY KEY (`POWON_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `member`
--
LOCK TABLES `member` WRITE;
/*!40000 ALTER TABLE `member` DISABLE KEYS */;
/*!40000 ALTER TABLE `member` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `member_interest`
--
DROP TABLE IF EXISTS `member_interest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `member_interest` (
`POWON_id` int(11) NOT NULL,
`interest_id` int(11) NOT NULL,
PRIMARY KEY (`POWON_id`,`interest_id`),
KEY `interest_id_idx` (`interest_id`),
CONSTRAINT `member_interest_ibfk_1` FOREIGN KEY (`POWON_id`) REFERENCES `member` (`POWON_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `member_interest_ibfk_2` FOREIGN KEY (`interest_id`) REFERENCES `interest` (`interest_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `member_interest`
--
LOCK TABLES `member_interest` WRITE;
/*!40000 ALTER TABLE `member_interest` DISABLE KEYS */;
/*!40000 ALTER TABLE `member_interest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `name`
--
DROP TABLE IF EXISTS `name`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `name` (
`id` int(6) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `name`
--
LOCK TABLES `name` WRITE;
/*!40000 ALTER TABLE `name` DISABLE KEYS */;
/*!40000 ALTER TABLE `name` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-07-13 22:32:20
| mit |
Dabea/BasicLogin | src/Abe/FileUploadBundle/Controller/UploadController.php | 3780 | <?php
namespace Abe\FileUploadBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Abe\FileUploadBundle\Entity\Document;
use Abe\FileUploadBundle\Form\DocumentType;
/**
* user2 controller.
*
* @Route("/main/upload")
*/
class UploadController extends Controller
{
/**
* creates the form to uplaod a file with the Documetn entity entities.
*
* @Route("/new", name="main_upload_file")
* @Method("GET")
* @Template()
*/
public function uploadAction()
{
$entity = new Document();
$form = $this->createUploadForm($entity);
return array(
'entity' => $entity,
'form' => $form->createView(),
);
}
/**
* @Template()
* @Route("/", name="main_upload")
* @Method("POST")
*/
public function uploadFileAction(Request $request)
{
return $this->redirect($this->generateUrl('homepage'));
$document = new Document();
$form = $this->createUploadForm($document);
$form->handleRequest($request);
$test = $form->getErrors();
//if ($this->getRequest()->getMethod() === 'POST') {
// $form->bindRequest($this->getRequest());
if ($form->isSubmitted()) {
$fileinfomation = $form->getData();
exit(\Doctrine\Common\Util\Debug::dump($test));
$em = $this->getDoctrine()->getEntityManager();
$document->upload();
$em->persist($document);
$em->flush();
return $this->redirect($this->generateUrl('homepage'));
}
//}
return array(
'form' => $form->createView(),
'entity' =>$document,
);
}
/**
* Creates a form to create a Document entity.
*
* @param Document $entity The entity
*
* @return \Symfony\Component\Form\Form The form
*/
private function createUploadForm(Document $entity)
{
$form = $this->createForm(new DocumentType(), $entity, array(
'action' => $this->generateUrl('document_create'),
'method' => 'POST',
));
$form->add('submit', 'button', array('label' => 'Upload'));
return $form;
}
public function upload()
{
// the file property can be empty if the field is not required
if (null === $this->getFile()) {
return;
}
// use the original file name here but you should
// sanitize it at least to avoid any security issues
// move takes the target directory and then the
// target filename to move to
$this->getFile()->move(
$this->getUploadRootDir(),
$this->getFile()->getClientOriginalName()
);
// set the path property to the filename where you've saved the file
$this->path = $this->getFile()->getClientOriginalName();
// clean up the file property as you won't need it anymore
$this->file = null;
}
/**
* @Template()
* @Route("/", name="main_uploadfile")
* @Method("POST")
*/
public function uploadFileAction2(Request $request)
{
$document = new Document();
$test = $form->getErrors();
if(2) {
$fileinfomation = $form->getData();
$em = $this->getDoctrine()->getEntityManager();
$document->upload();
$em->persist($document);
$em->flush();
return $this->redirect($this->generateUrl('homepage'));
}
}
}
| mit |
g0v/projectV | mirror/prvCode_07/cityCode_000-areaCode_06-deptCode_032/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_06-deptCode_032-liCode_0587.html | 6086 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script type="text/javascript">
function AddToFaves_hp() {
var is_4up = parseInt(navigator.appVersion);
var is_mac = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
var is_ie = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
var thePage = location.href;
if (thePage.lastIndexOf('#')!=-1)
thePage = thePage.substring(0,thePage.lastIndexOf('#'));
if (is_ie && is_4up && !is_mac)
window.external.AddFavorite(thePage,document.title);
else if (is_ie || document.images)
booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
//booker_hp.focus();
}
</script>
</head>
<body class="frame">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 標題:選舉資料庫網站 -->
<div style="width: 100%; height: 56px; margin: 0px 0px 0px 0px; border-style: solid; border-width: 0px 0px 1px 0px; border-color: black;">
<div style="float: left;">
<img src="http://db.cec.gov.tw/images/main_title.gif" />
</div>
<div style="width: 100%; height: 48px;">
<div style="text-align: center;">
<img src="http://db.cec.gov.tw/images/small_ghost.gif" /> <span
style="height: 30px; font-size: 20px;"> <a href="http://www.cec.gov.tw"
style="text-decoration: none;">回中選會網站</a>
</span>
</div>
</div>
<div style="width: 100%; height: 8px; background-color: #fde501;">
</div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 頁籤 -->
<div
style="width: 100%; height: 29px; background-image: url('http://db.cec.gov.tw/images/tab_background.gif'); background-repeat: repeat-x;">
<div style="text-align: center;">
<a href="histMain.jsp"><img border="0" src="http://db.cec.gov.tw/images/tab_01.gif" /></a>
<a href="histCand.jsp"><img border="0" src="http://db.cec.gov.tw/images/tab_02.gif" /></a>
<!-- <a href=""><img border="0" src="images/tab_03.gif" /></a> -->
<!-- <a href=""><img border="0" src="images/tab_04.gif" /></a> -->
<a href="histQuery.jsp?voteCode=20120101T1A2&qryType=ctks&prvCode=05&cityCode=000&areaCode=06&deptCode=032&liCode=0587#"><img border="0" src="http://db.cec.gov.tw/images/tab_05.gif" onClick="AddToFaves_hp()" /></a>
<a href="mailto:[email protected];[email protected]"><img border="0" src="http://db.cec.gov.tw/images/tab_06.gif" /></a>
</div>
</div>
<div
style="width: 100%; height: 22px; background-image: url('http://db.cec.gov.tw/images/tab_separator.gif'); background-repeat: repeat-x;">
</div>
<div class="query">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 子頁面:查詢候選人得票數 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 標題 -->
<div class="titlebox">
<div class="title">
<div class="head">第 08 屆 立法委員選舉(區域) 候選人得票數</div>
<div class="date">投票日期:中華民國101年01月14日</div>
<div class="separator"></div>
</div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 查詢:候選人得票數,縣市多選區,如區域立委 -->
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/qryCtks.css" />
<!-- 投開票所表頭 -->
<table class="ctks" width="950" height="22" border=1 cellpadding="0" cellspacing="0" >
<tr class="title">
<td nowrap align="center">地區</td>
<td nowrap align="center">姓名</td>
<td nowrap align="center">號次</td>
<td nowrap align="center">得票數</td>
<td nowrap align="center">得票率</td>
</tr>
<!-- 投開票所內容 -->
<tr class="data">
<td nowrap rowspan=2 align=center>高雄市第06選區三民區灣勝里第1156投開票所</td>
<td nowrap align="center">侯彩鳳</td>
<td nowrap align="center">1</td>
<td nowrap align="right">301</td>
<td nowrap align="right"> 40.95%</td>
</tr>
<!-- 投開票所內容 -->
<tr class="data">
<td nowrap align="center">李昆澤</td>
<td nowrap align="center">2</td>
<td nowrap align="right">434</td>
<td nowrap align="right"> 59.04%</td>
</tr>
<!-- 投開票所內容 -->
<tr class="data">
<td nowrap rowspan=2 align=center>高雄市第06選區三民區灣勝里第1157投開票所</td>
<td nowrap align="center">侯彩鳳</td>
<td nowrap align="center">1</td>
<td nowrap align="right">277</td>
<td nowrap align="right"> 36.83%</td>
</tr>
<!-- 投開票所內容 -->
<tr class="data">
<td nowrap align="center">李昆澤</td>
<td nowrap align="center">2</td>
<td nowrap align="right">475</td>
<td nowrap align="right"> 63.16%</td>
</tr>
</table>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<div style="width: 100%; height: 20px; margin: 30px 0px 0px 0px; text-align: center; ">
<span>
<img src="http://db.cec.gov.tw/images/leave_arrow_left.gif" />
</span>
<span style="margin: 0px 10px 0px 10px; ">
<a style="text-decoration: none; font-size: 15px; " href="histPrint">下載</a>
</span>
<span>
<img src="http://db.cec.gov.tw/images/leave_arrow_right.gif" />
</span>
<span style="margin-right: 100px;"> </span>
<span>
<img src="http://db.cec.gov.tw/images/leave_arrow_left.gif" />
</span>
<span style="margin: 0px 10px 0px 10px; ">
<a style="text-decoration: none; font-size: 15px; " href="histMain.jsp">離開</a>
</span>
<span>
<img src="http://db.cec.gov.tw/images/leave_arrow_right.gif" />
</span>
</div>
</div>
</body>
</html> | mit |
zhiyuanMA/ReactNativeShowcase | components/utils.js | 765 | import { Dimensions, PixelRatio } from 'react-native';
const Utils = {
ratio: PixelRatio.get(),
pixel: 1 / PixelRatio.get(),
size: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
post(url, data, callback) {
const fetchOptions = {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
};
fetch(url, fetchOptions)
.then(response => {
response.json();
})
.then(responseData => {
callback(responseData);
});
},
};
export default Utils;
| mit |
tgbugs/pyontutils | librdflib/setup.py | 1448 | import re
from setuptools import setup
def find_version(filename):
_version_re = re.compile(r"__version__ = '(.*)'")
for line in open(filename):
version_match = _version_re.match(line)
if version_match:
return version_match.group(1)
__version__ = find_version('librdflib/__init__.py')
with open('README.md', 'rt') as f:
long_description = f.read()
tests_require = ['pytest']
setup(
name='librdflib',
version=__version__,
description='librdf parser for rdflib',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/tgbugs/pyontutils/tree/master/librdflib',
author='Tom Gillespie',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='rdflib librdf rdf parser parsing ttl rdfxml',
packages=['librdflib'],
python_requires='>=3',
tests_require=tests_require,
install_requires=[
'rdflib', # really 5.0.0 if my changes go in but dev < 5
],
extras_require={'dev': ['pytest-cov', 'wheel'],
'test': tests_require,
},
entry_points={
'rdf.plugins.parser': [
'librdfxml = librdflib:libRdfxmlParser',
'libttl = librdflib:libTurtleParser',
],
},
)
| mit |
ucsf-ckm/ucsf-history-website | theme_photo21.html | 1709 | ---
---
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Photo - A History of UCSF</title>
<link href='https://fonts.googleapis.com/css?family=Gilda+Display%7CPT+Sans+Narrow:300' rel='stylesheet' type='text/css'>
<link href="ucsf_history.css" rel="stylesheet" type="text/css" media="all" />
{% include google_analytics.html %}
</head>
<body>
<div id="mainbody">
{% include ucsf_banner.html %}
<div class="banner"><h1><a href="/">A History of UCSF</a></h1></div>
<div id="insidebody">
<div id="photocopy">
<div id="photocopy_text"><h2 class="title"><span class="title-primary">Photos</span></h2><br />
<div id="subhead">Robert A. “Bob” Derzon </div>
<br />
<img src="images/pictures/derzon.jpg"/><br/>
<br/><br/>
</div>
</div>
<div id="sidebar">
<div id="sidenav_inside">{% include search_include.html %}<br />
<div id="sidenavtype">
<a href="story.html" class="sidenavtype"><strong>THE STORY</strong></a><br/>
<br/>
<a href="special_topics.html" class="sidenavtype"><strong>SPECIAL TOPICS</strong></a><br/><br/>
<a href="people.html" class="sidenavtype"><strong>PEOPLE</strong></a><br/>
<br/>
<div id="sidenav_subnav_header"><strong><a href="photos.html" class="sidenav_subnav_type_visited">PHOTOS</a></strong></div>
<br/>
<a href="buildings.html" class="sidenavtype"><strong>BUILDINGS</strong></a><br/>
<br/>
<a href="index.html" class="sidenavtype"><strong>HOME</strong></a><br/>
</div>
</div>
</div>
</div>
{% include footer.html %}
</div>
{% include bottom_js.html %}
</body>
</html>
| mit |
hhariri/Humanizer | src/Humanizer.Tests/Localisation/pt-BR/DateHumanizeTests.cs | 3481 | using Humanizer.Localisation;
using Xunit;
using Xunit.Extensions;
namespace Humanizer.Tests.Localisation.ptBR
{
public class DateHumanizeTests : AmbientCulture
{
public DateHumanizeTests() : base("pt-BR") { }
[Theory]
[InlineData(-2, "2 segundos atrás")]
[InlineData(-1, "um segundo atrás")]
public void SecondsAgo(int seconds, string expected)
{
DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Past);
}
[Theory]
[InlineData(1, "em um segundo")]
[InlineData(2, "em 2 segundos")]
public void SecondsFromNow(int seconds, string expected)
{
DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Future);
}
[Theory]
[InlineData(-2, "2 minutos atrás")]
[InlineData(-1, "um minuto atrás")]
public void MinutesAgo(int minutes, string expected)
{
DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Past);
}
[Theory]
[InlineData(1, "em um minuto")]
[InlineData(2, "em 2 minutos")]
public void MinutesFromNow(int minutes, string expected)
{
DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Future);
}
[Theory]
[InlineData(-2, "2 horas atrás")]
[InlineData(-1, "uma hora atrás")]
public void HoursAgo(int hours, string expected)
{
DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Past);
}
[Theory]
[InlineData(1, "em uma hora")]
[InlineData(2, "em 2 horas")]
public void HoursFromNow(int hours, string expected)
{
DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Future);
}
[Theory]
[InlineData(-2, "2 dias atrás")]
[InlineData(-1, "ontem")]
public void DaysAgo(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
}
[Theory]
[InlineData(1, "amanhã")]
[InlineData(2, "em 2 dias")]
public void DaysFromNow(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
}
[Theory]
[InlineData(-2, "2 meses atrás")]
[InlineData(-1, "um mês atrás")]
public void MonthsAgo(int months, string expected)
{
DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Past);
}
[Theory]
[InlineData(1, "em um mês")]
[InlineData(2, "em 2 meses")]
public void MonthsFromNow(int months, string expected)
{
DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Future);
}
[Theory]
[InlineData(-2, "2 anos atrás")]
[InlineData(-1, "um ano atrás")]
public void YearsAgo(int years, string expected)
{
DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Past);
}
[Theory]
[InlineData(1, "em um ano")]
[InlineData(2, "em 2 anos")]
public void YearsFromNow(int years, string expected)
{
DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Future);
}
[Fact]
public void Now()
{
DateHumanize.Verify("agora", 0, TimeUnit.Day, Tense.Future);
}
}
}
| mit |
xdougx/scala-activerecord | macro/src/main/scala/Deprecations.scala | 377 | package com.github.aselab.activerecord
import scala.language.experimental.macros
import scala.reflect.macros._
trait Deprecations {
def unsupportedInTransaction[A](c: Context)(a: c.Expr[A]): c.Expr[A] = {
import c.universe._
c.error(c.enclosingPosition, "dsl#inTransaction is deprecated. use ActiveRecordCompanion#inTransaction instead.")
reify(a.splice)
}
}
| mit |
hdl881127/mean_io | packages/core/users/public/views/index.html | 177 | <div class="form main-form" ng-controller="AuthCtrl" ng-class="($state.is('auth.register')) ? 'register-form' : ''">
<div class="row login-form__left" ui-view></div>
</div>
| mit |
zatricion/Streams | ExamplesElementaryOperations/ExamplesOpNoState.py | 4241 | """This module contains examples of the op() function
where:
op(f,x) returns a stream where x is a stream, and f
is an operator on lists, i.e., f is a function from
a list to a list. These lists are of lists of arbitrary
objects other than streams and agents.
Function f must be stateless, i.e., for any lists u, v:
f(u.extend(v)) = f(u).extend(f(v))
(Stateful functions are given in OpStateful.py with
examples in ExamplesOpWithState.py.)
Let f be a stateless operator on lists and let x be a stream.
If at some point, the value of stream x is a list u then at
that point, the value of stream op(f,x) is the list f(u).
If at a later point, the value of stream x is the list:
u.extend(v) then, at that point the value of stream op(f,x)
is f(u).extend(f(v)).
As a specific example, consider the following f():
def f(lst): return [w * w for w in lst]
If at some point in time, the value of x is [3, 7],
then at that point the value of op(f,x) is f([3, 7])
or [9, 49]. If at a later point, the value of x is
[3, 7, 0, 11, 5] then the value of op(f,x) at that point
is f([3, 7, 0, 11, 5]) or [9, 49, 0, 121, 25].
"""
if __name__ == '__main__':
if __package__ is None:
import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
from Agent import *
from ListOperators import *
from PrintFunctions import print_streams_recent
def example_1():
print "example_1"
print "op(f, x): f is a function from a list to a list"
print "x is a stream \n"
# FUNCTIONS FROM LIST TO LIST
# This example uses the following list operators:
# functions from a list to a list.
# f, g, h, r
# Example A: function using list comprehension
def f(lst): return [w*w for w in lst]
# Example B: function using filter
threshold = 6
def predicate(w):
return w > threshold
def g(lst):
return filter(predicate, lst)
# Example C: function using map
# Raise each element of the list to the n-th power.
n = 3
def power(w):
return w**n
def h(lst):
return map(power, lst)
# Example D: function using another list comprehension
# Discard any element of x that is not a
# multiple of a parameter n, and divide the
# elements that are multiples of n by n.
n = 3
def r(lst):
result = []
for w in lst:
if w%n == 0: result.append(w/n)
return result
# EXAMPLES OF OPERATIONS ON STREAMS
# The input stream for these examples
x = Stream('x')
print 'x is the input stream.'
print 'a is a stream consisting of the squares of the input'
print 'b is the stream consisting of values that exceed 6'
print 'c is the stream consisting of the third powers of the input'
print 'd is the stream consisting of values that are multiples of 3 divided by 3'
print 'newa is the same as a. It is defined in a more succinct fashion.'
print 'newb has squares that exceed 6.'
print ''
# The output streams a, b, c, d obtained by
# applying the list operators f, g, h, r to
# stream x.
a = op(f, x)
b = op(g, x)
c = op(h, x)
d = op(r, x)
# You can also define a function only on streams.
# You can do this using functools in Python or
# by simple encapsulation as shown below.
def F(x): return op(f,x)
def G(x): return op(g,x)
newa = F(x)
newb = G(F(x))
# The advantage is that F is a function only
# of streams. So, function composition looks cleaner
# as in G(F(x))
# Name the output streams to label the output
# so that reading the output is easier.
a.set_name('a')
newa.set_name('newa')
b.set_name('b')
newb.set_name('newb')
c.set_name('c')
d.set_name('d')
# At this point x is the empty stream:
# its value is []
x.extend([3, 7])
# Now the value of x is [3, 7]
print "FIRST STEP"
print_streams_recent([x, a, b, c, d, newa, newb])
print ""
x.extend([0, 11, 15])
# Now the value of x is [3, 7, 0, 11, 15]
print "SECOND STEP"
print_streams_recent([x, a, b, c, d, newa, newb])
def main():
example_1()
if __name__ == '__main__':
main()
| mit |
pocky/MenuBundle | Model/MenuInterface.php | 845 | <?php
/*
* This file is part of the Black package.
*
* (c) Alexandre Balmes <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Black\Bundle\MenuBundle\Model;
/**
* Class MenuInterface
*
* @package Black\Bundle\MenuBundle\Model
* @author Alexandre Balmes <[email protected]>
* @license http://opensource.org/licenses/mit-license.php MIT
*/
interface MenuInterface
{
/**
* @return mixed
*/
public function getId();
/**
* @return mixed
*/
public function getName();
/**
* @return mixed
*/
public function getSlug();
/**
* @return mixed
*/
public function getDescription();
/**
* @return mixed
*/
public function getItems();
}
| mit |
GoWebyCMS/goweby-core-dev | pages/templates/page/page_detail.html | 1375 | {% extends 'base.html' %}
{% load staticfiles %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-9">
<div class="post-header">
<h2>{{page.page_title}}</h2>
</div>
{% if page.image %}
<div class="video-wrapper">
<img class="img-responsive" src="/static/media/{{page.image}}" alt="{{page.title}}">
</div>
{% endif %}
<div class="page-body">
{{page.body|safe}}
</div>
<div class="page-share">
<a href="https://www.facebook.com/profile.php?id=100012050839136" target="_blank"><span class="share-box"><i class="fa fa-facebook"></i></span></a>
<a href="https://www.instagram.com/theamateuravantgarde/" target="_blank"><span class="share-box"><i class="fa fa-instagram"></i></span></a>
<a href="https://twitter.com/Eleni_Zouliami" target="_blank"><span class="share-box"><i class="fa fa-twitter"></i></span></a>
</div>
</div>
<div class="col-lg-3 custom-sidebar">
{% if page.image %}
<div class="col-md-6">
<div class="video-wrapper">
<img src="/media/{{page.image}}" alt="{{page.title}}">
</div>
</div>
{% endif %}
{% include "sidebar.html" %}
</div>
</div>
</div>
{% endblock content %}
| mit |
HaikuArchives/FeedKit | libfeedkit/FeedKitConstants.h | 2663 | #ifndef LIBFEEDKIT_CONSTANTS_H
#define LIBFEEDKIT_CONSTANTS_H
#include <String.h>
#include <vector>
namespace FeedKit {
class Channel;
class Content;
class Enclosure;
class Feed;
class Item;
extern const char *ServerSignature;
typedef std::vector<BString> uuid_list_t;
typedef std::vector<Content *> content_list_t;
typedef std::vector<Channel *> channel_list_t;
typedef std::vector<Enclosure *> enclosure_list_t;
typedef std::vector<Feed *> feed_list_t;
typedef std::vector<Item *> item_list_t;
namespace FromServer {
enum msg_what {
SettingsUpdated = 'rfsu', // Settings have been updated
};
};
namespace ErrorCode {
enum code {
UnableToParseFeed = 'ecpf', // Unable to parse the Feed
InvalidItem = 'ecii', // Invalid Item
InvalidEnclosure = 'ecie', // Invalid Enclosure
InvalidEnclosurePath = 'ecip', // Invalid Enclosure path
UnableToStartDownload = 'ecsd', // Unable to start downloading the Enclosure
};
};
// The Settings namespace details things relating to settings and settings templates
namespace Settings {
enum display_type {
Unset = ' ', // Unset - don't use, used internally
Hidden = 'hide', // A setting not controlled by the user
RadioButton = 'rabu', // Radio buttons
CheckBox = 'chkb', // Check boxes
MenuSingle = 'mens', // Single-select menu
MenuMulti = 'menm', // Multiple-select menu
TextSingle = 'txts', // Single line text control
TextMulti = 'txtm', // Multi line text control
TextPassword = 'txtp', // Single line, hidden input, text control
FilePickerSingle = 'fpks', // File Picker - single file
FilePickerMulti = 'fpkm', // File Picker - multiple file
DirectoryPickerSingle = 'dpks', // Directory Picker - single
DirectoryPickerMultiple = 'dpkm', // Directory picker - multiple
};
// These are some common types of applications. The Type param of FeedListener is free
// form but you should use one of these constants, if possible, to ensure consistency
namespace AppTypes {
extern const char *SettingClient; // Something which allows user interaction
extern const char *SettingServer; // The server
extern const char *SettingUtil; // Interacts with the FeedKit but not the
// user
extern const char *SettingParser; // An addon for parsing data into FeedKit
// objects
extern const char *SettingFeed; // Settings specific to a feed
};
namespace Icon {
enum Location {
Contents = 'cnts', // Icon comes from the contents of the file
TrackerIcon = 'trki', // Use the Tracker icon
};
};
};
};
#endif
| mit |
arvici/framework | src/Arvici/Exception/ResponseAlreadySendException.php | 640 | <?php
/**
* Response Already Send Exception
*
* @author Tom Valk <[email protected]>
* @copyright 2017 Tom Valk
*/
namespace Arvici\Exception;
class ResponseAlreadySendException extends ArviciException
{
/**
* ResponseAlreadySendException constructor.
* @param string $message
* @param int $code
* @param \Exception $previous
*/
public function __construct($message, $code = 0, \Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}
}
| mit |
Macelai/operating-systems | system-call/main.c | 4505 | #include <stdio.h>
struct Employee {
unsigned int id;
char name[256];
char gender;
float salary;
};
void addEmployee(FILE *f) {
struct Employee emp;
printf("Adding a new employee, please type his id \n");
int id;
scanf("%d", &id);
if (id > 0) {
while (1) { //search if id already in use
struct Employee tmp;
fread(&tmp, sizeof(struct Employee), 1, f);
if (feof(f) != 0) { //end of file
emp.id = id;
break;
}
if (id == tmp.id) {
printf("Id already in use, id must be unique \n");
return;
} else {
emp.id = id;
}
}
} else {
printf("Id must be greater than 0 \n");
return;
}
printf("Please type his name \n");
scanf("%s", &emp.name);
printf("Please type his gender (m or f) \n");
scanf(" %c", &emp.gender);
if ((emp.gender != 'm') && (emp.gender != 'f')) {
printf("Gender should be 'm' or 'f'");
return;
}
printf("Please type his salary \n");
scanf("%f", &emp.salary);
fwrite(&emp, sizeof(struct Employee), 1, f);
}
void removeEmployee(FILE *f) {
printf("Removing employee, please type his id \n");
int id;
scanf("%d)", &id);
while (1) {
struct Employee tmp;
fread(&tmp, sizeof(struct Employee), 1, f);
if (feof(f) != 0) {
printf("Employee not found");
return;
}
if (id == tmp.id) {
fseek(f, -sizeof(struct Employee), SEEK_CUR);
tmp.id = 0;
fwrite(&tmp, sizeof(struct Employee), 1, f);
printf("Sucess \n");
return;
}
}
}
void calculateAvarageSalaryByGender(FILE *f) {
printf("Calculating the avarage salary by gender \n");
int maleNumber = 0;
int femaleNumber = 0;
float sumMale = 0;
float sumFemale = 0;
while (1) {
struct Employee tmp;
fread(&tmp, sizeof(struct Employee), 1, f);
if (feof(f) != 0)
break;
if (tmp.id == 0)
continue;
if (tmp.gender == 'm') {
maleNumber++;
sumMale += tmp.salary;
} else {
femaleNumber++;
sumFemale += tmp.salary;
}
}
printf("Avarage male salary: %f \n", sumMale/maleNumber);
printf("Avarage female salary: %f \n", sumFemale/femaleNumber);
}
void exportTextFile(FILE *f) {
char path[256];
printf("Please type the name of the file to store the data \n");
scanf("%s)", &path);
FILE *final;
if ((final = fopen(path, "w")) == NULL) {
printf("Error opening/creating the file");
} else {
while (1) {
struct Employee tmp;
fread(&tmp, sizeof(struct Employee), 1, f);
if (feof(f) != 0)
break;
if (tmp.id != 0) {
fprintf(final, "ID: %d \n", tmp.id);
fprintf(final, "Name: %s \n", tmp.name);
fprintf(final, "Gender: %c \n", tmp.gender);
fprintf(final, "Salary: %f \n", tmp.salary);
}
}
}
fclose(final);
}
void compactData(FILE *f, char fileName[]) {
FILE *copy;
if ((copy = fopen("copy", "wb")) == NULL) {
printf("Error creating the copy file");
} else {
while (1) {
struct Employee tmp;
fread(&tmp, sizeof(struct Employee), 1, f);
if (feof(f) != 0)
break;
if (tmp.id != 0) {
fwrite(&tmp, sizeof(struct Employee), 1, copy);
}
}
fclose(copy);
remove(fileName);
rename("copy", fileName);
}
printf("Database compacted");
}
int main(int argc, char *argv[]) {
if (argc == 3) {
int option = atoi(argv[2]);
FILE *f;
f = fopen(argv[1], "ab+");
fclose(f);
switch(option) {
case 1:
if ((f = fopen(argv[1], "ab+")) == NULL) {
printf("Error opening/creating the file");
} else {
addEmployee(f);
fclose(f);
}
break;
case 2:
if ((f = fopen(argv[1], "rb+")) == NULL) {
printf("Error opening/creating the file");
} else {
removeEmployee(f);
fclose(f);
}
break;
case 3:
if ((f = fopen(argv[1], "rb")) == NULL) {
printf("Error opening/creating the file");
} else {
calculateAvarageSalaryByGender(f);
fclose(f);
}
break;
case 4:
if ((f = fopen(argv[1], "rb")) == NULL) {
printf("Error opening/creating the file");
} else {
exportTextFile(f);
fclose(f);
}
break;
case 5:
if ((f = fopen(argv[1], "rb")) == NULL) {
printf("Error opening/creating the file");
} else {
compactData(f, argv[1]);
fclose(f);
}
break;
}
} else {
printf("Need to provide two arguments, the first one is the binary file and second is the option. \n");
printf("1 - Add employee \n");
printf("2 - Remove employee \n");
printf("3 - Calculate avarage salary by gender \n");
printf("4 - Export data to a text file \n");
printf("5 - Compact data \n");
}
return 0;
}
| mit |
novstylessee/novstylessee.github.io | _posts/2016-05-17-WEDDING-DRESSES-Jersey-Cap-Sleeve-Bridal-Dress-JB98629.md | 1759 | ---
layout: post
date: 2016-05-17
title: "WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629"
category: WEDDING DRESSES
tags: [WEDDING DRESSES]
---
### WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629
Just **$279.99**
###
<a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html"><img src="//img.readybrides.com/88522/jersey-cap-sleeve-bridal-dress-jb98629.jpg" alt="Jersey Cap Sleeve Bridal Dress JB98629" style="width:100%;" /></a>
<!-- break --><a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html"><img src="//img.readybrides.com/88523/jersey-cap-sleeve-bridal-dress-jb98629.jpg" alt="Jersey Cap Sleeve Bridal Dress JB98629" style="width:100%;" /></a>
<a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html"><img src="//img.readybrides.com/88524/jersey-cap-sleeve-bridal-dress-jb98629.jpg" alt="Jersey Cap Sleeve Bridal Dress JB98629" style="width:100%;" /></a>
<a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html"><img src="//img.readybrides.com/88525/jersey-cap-sleeve-bridal-dress-jb98629.jpg" alt="Jersey Cap Sleeve Bridal Dress JB98629" style="width:100%;" /></a>
<a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html"><img src="//img.readybrides.com/88521/jersey-cap-sleeve-bridal-dress-jb98629.jpg" alt="Jersey Cap Sleeve Bridal Dress JB98629" style="width:100%;" /></a>
Buy it: [https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html](https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal-dress-jb98629.html)
| mit |
itslab-kyushu/youtube-comment-crawler | bin/cli.js | 867 | #!/usr/bin/env node
//
// cli.js
//
// Copyright (c) 2016-2017 Junpei Kawamoto
//
// This software is released under the MIT License.
//
// http://opensource.org/licenses/mit-license.php
//
const {
start,
crawl
} = require("../lib/crawler");
const argv = require("yargs")
.option("lang", {
describe: "Language to be used to scrape trand pages. Not used in crawl command."
})
.default("lang", "EN")
.option("dir", {
describe: "Path to the directory to store database files"
})
.demandOption(["dir"])
.command("*", "Start crawling", () => {}, (argv) => {
start(argv.lang, argv.dir);
})
.command("crawl", "Crawl comments form a video", () => {}, (argv) => {
crawl(argv.dir).catch((err) => {
console.error(err);
});
})
.help("h")
.alias("h", "help")
.argv;
| mit |
mikee385/CollegeFbsRankings | Domain/Validations/ValidationService.cs | 1400 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CollegeFbsRankings.Domain.Games;
using CollegeFbsRankings.Domain.Rankings;
using CollegeFbsRankings.Domain.Teams;
namespace CollegeFbsRankings.Domain.Validations
{
public class ValidationService
{
public Validation<GameId> GameValidationFromRanking<TRankingValue>(
IEnumerable<CompletedGame> games,
Ranking<TeamId, TRankingValue> performance)
where TRankingValue : IRankingValue
{
return new Validation<GameId>(games.Select(game =>
{
var winningTeamData = performance[game.WinningTeamId];
var losingTeamData = performance[game.LosingTeamId];
foreach (var values in winningTeamData.Values.Zip(losingTeamData.Values, Tuple.Create))
{
if (values.Item1 > values.Item2)
return new KeyValuePair<GameId, eValidationResult>(game.Id, eValidationResult.Correct);
if (values.Item1 < values.Item2)
return new KeyValuePair<GameId, eValidationResult>(game.Id, eValidationResult.Incorrect);
}
return new KeyValuePair<GameId, eValidationResult>(game.Id, eValidationResult.Skipped);
}));
}
}
}
| mit |
sdether/Calculon | Calculon.Tests/BuilderTests.cs | 2235 | /* ----------------------------------------------------------------------------
* Copyright (C) 2013 Arne F. Claassen
* geekblog [at] claassen [dot] net
* http://github.com/sdether/Calculon
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
* ----------------------------------------------------------------------------
*/
using Droog.Calculon.Backstage;
using NUnit.Framework;
namespace Droog.Calculon.Tests {
[TestFixture]
public class BuilderTests {
public interface IFoo {
}
public class Foo : AActor, IFoo {
}
[Test]
public void Can_create_class() {
var builder = new ActorBuilder();
var foo = builder.GetBuilder<Foo>()();
Assert.IsNotNull(foo);
Assert.IsInstanceOfType(typeof(Foo),foo);
}
[Test]
public void Can_create_interface_with_appropriately_named_class() {
var builder = new ActorBuilder();
var foo = builder.GetBuilder<IFoo>()();
Assert.IsNotNull(foo);
Assert.IsInstanceOfType(typeof(Foo), foo);
}
}
}
| mit |
r45r54r45/simplewe | application/views/consultation.php | 26096 | <div class="container" >
<div class="row page-title">
<div class="col-xs-12 text-center">
<span>Consultation</span>
</div>
</div>
</div>
<script type="text/javascript">
/**
* Created by Kupletsky Sergey on 05.11.14.
*
* Material Design Responsive Table
* Tested on Win8.1 with browsers: Chrome 37, Firefox 32, Opera 25, IE 11, Safari 5.1.7
* You can use this table in Bootstrap (v3) projects. Material Design Responsive Table CSS-style will override basic bootstrap style.
* JS used only for table constructor: you don't need it in your project
*/
$(document).ready(function() {
var table = $('#table');
// Table bordered
$('#table-bordered').change(function() {
var value = $( this ).val();
table.removeClass('table-bordered').addClass(value);
});
// Table striped
$('#table-striped').change(function() {
var value = $( this ).val();
table.removeClass('table-striped').addClass(value);
});
// Table hover
$('#table-hover').change(function() {
var value = $( this ).val();
table.removeClass('table-hover').addClass(value);
});
// Table color
$('#table-color').change(function() {
var value = $(this).val();
table.removeClass(/^table-mc-/).addClass(value);
});
});
// jQuery’s hasClass and removeClass on steroids
// by Nikita Vasilyev
// https://github.com/NV/jquery-regexp-classes
(function(removeClass) {
jQuery.fn.removeClass = function( value ) {
if ( value && typeof value.test === "function" ) {
for ( var i = 0, l = this.length; i < l; i++ ) {
var elem = this[i];
if ( elem.nodeType === 1 && elem.className ) {
var classNames = elem.className.split( /\s+/ );
for ( var n = classNames.length; n--; ) {
if ( value.test(classNames[n]) ) {
classNames.splice(n, 1);
}
}
elem.className = jQuery.trim( classNames.join(" ") );
}
}
} else {
removeClass.call(this, value);
}
return this;
}
})(jQuery.fn.removeClass);
</script>
<style media="screen">
/* -- Material Design Table style -------------- */
.table {
width: 100%;
max-width: 100%;
margin-bottom: 2rem;
background-color: #fff;
}
.table > thead > tr,
.table > tbody > tr,
.table > tfoot > tr {
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
text-align: left;
padding: 1.6rem;
vertical-align: top;
border-top: 0;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.table > thead > tr > th {
font-weight: 400;
color: #757575;
vertical-align: bottom;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.table .table {
background-color: #fff;
}
.table .no-border {
border: 0;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 0.8rem;
}
.table-bordered {
border: 0;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 0;
border-bottom: 1px solid #e0e0e0;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
background-color: #f5f5f5;
}
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
background-color: rgba(0, 0, 0, 0.12);
}
@media screen and (max-width: 768px) {
.table-responsive-vertical > .table {
margin-bottom: 0;
background-color: transparent;
}
.table-responsive-vertical > .table > thead,
.table-responsive-vertical > .table > tfoot {
display: none;
}
.table-responsive-vertical > .table > tbody {
display: block;
}
.table-responsive-vertical > .table > tbody > tr {
display: block;
border: 1px solid #e0e0e0;
border-radius: 2px;
margin-bottom: 1.6rem;
}
.table-responsive-vertical > .table > tbody > tr > td {
background-color: #fff;
display: block;
vertical-align: middle;
text-align: right;
}
.table-responsive-vertical > .table > tbody > tr > td[data-title]:before {
content: attr(data-title);
float: left;
font-size: inherit;
font-weight: 400;
color: #757575;
}
.table-responsive-vertical.shadow-z-1 {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.table-responsive-vertical.shadow-z-1 > .table > tbody > tr {
border: none;
-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
-moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
}
.table-responsive-vertical > .table-bordered {
border: 0;
}
.table-responsive-vertical > .table-bordered > tbody > tr > td {
border: 0;
border-bottom: 1px solid #e0e0e0;
}
.table-responsive-vertical > .table-bordered > tbody > tr > td:last-child {
border-bottom: 0;
}
.table-responsive-vertical > .table-striped > tbody > tr > td,
.table-responsive-vertical > .table-striped > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical > .table-striped > tbody > tr > td:nth-child(odd) {
background-color: #f5f5f5;
}
.table-responsive-vertical > .table-hover > tbody > tr:hover > td,
.table-responsive-vertical > .table-hover > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical > .table-hover > tbody > tr > td:hover {
background-color: rgba(0, 0, 0, 0.12);
}
}
.table-striped.table-mc-red > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-red > tbody > tr:nth-child(odd) > th {
background-color: #fde0dc;
}
.table-hover.table-mc-red > tbody > tr:hover > td,
.table-hover.table-mc-red > tbody > tr:hover > th {
background-color: #f9bdbb;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-red > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-red > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-red > tbody > tr > td:nth-child(odd) {
background-color: #fde0dc;
}
.table-responsive-vertical .table-hover.table-mc-red > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-red > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-red > tbody > tr > td:hover {
background-color: #f9bdbb;
}
}
.table-striped.table-mc-pink > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-pink > tbody > tr:nth-child(odd) > th {
background-color: #fce4ec;
}
.table-hover.table-mc-pink > tbody > tr:hover > td,
.table-hover.table-mc-pink > tbody > tr:hover > th {
background-color: #f8bbd0;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-pink > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-pink > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-pink > tbody > tr > td:nth-child(odd) {
background-color: #fce4ec;
}
.table-responsive-vertical .table-hover.table-mc-pink > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-pink > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-pink > tbody > tr > td:hover {
background-color: #f8bbd0;
}
}
.table-striped.table-mc-purple > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-purple > tbody > tr:nth-child(odd) > th {
background-color: #f3e5f5;
}
.table-hover.table-mc-purple > tbody > tr:hover > td,
.table-hover.table-mc-purple > tbody > tr:hover > th {
background-color: #e1bee7;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-purple > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-purple > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-purple > tbody > tr > td:nth-child(odd) {
background-color: #f3e5f5;
}
.table-responsive-vertical .table-hover.table-mc-purple > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-purple > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-purple > tbody > tr > td:hover {
background-color: #e1bee7;
}
}
.table-striped.table-mc-deep-purple > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-deep-purple > tbody > tr:nth-child(odd) > th {
background-color: #ede7f6;
}
.table-hover.table-mc-deep-purple > tbody > tr:hover > td,
.table-hover.table-mc-deep-purple > tbody > tr:hover > th {
background-color: #d1c4e9;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-deep-purple > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-deep-purple > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-deep-purple > tbody > tr > td:nth-child(odd) {
background-color: #ede7f6;
}
.table-responsive-vertical .table-hover.table-mc-deep-purple > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-deep-purple > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-deep-purple > tbody > tr > td:hover {
background-color: #d1c4e9;
}
}
.table-striped.table-mc-indigo > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-indigo > tbody > tr:nth-child(odd) > th {
background-color: #e8eaf6;
}
.table-hover.table-mc-indigo > tbody > tr:hover > td,
.table-hover.table-mc-indigo > tbody > tr:hover > th {
background-color: #c5cae9;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-indigo > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-indigo > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-indigo > tbody > tr > td:nth-child(odd) {
background-color: #e8eaf6;
}
.table-responsive-vertical .table-hover.table-mc-indigo > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-indigo > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-indigo > tbody > tr > td:hover {
background-color: #c5cae9;
}
}
.table-striped.table-mc-blue > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-blue > tbody > tr:nth-child(odd) > th {
background-color: #e7e9fd;
}
.table-hover.table-mc-blue > tbody > tr:hover > td,
.table-hover.table-mc-blue > tbody > tr:hover > th {
background-color: #d0d9ff;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-blue > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-blue > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-blue > tbody > tr > td:nth-child(odd) {
background-color: #e7e9fd;
}
.table-responsive-vertical .table-hover.table-mc-blue > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-blue > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-blue > tbody > tr > td:hover {
background-color: #d0d9ff;
}
}
.table-striped.table-mc-light-blue > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-light-blue > tbody > tr:nth-child(odd) > th {
background-color: #e1f5fe;
}
.table-hover.table-mc-light-blue > tbody > tr:hover > td,
.table-hover.table-mc-light-blue > tbody > tr:hover > th {
background-color: #b3e5fc;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-light-blue > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-light-blue > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-light-blue > tbody > tr > td:nth-child(odd) {
background-color: #e1f5fe;
}
.table-responsive-vertical .table-hover.table-mc-light-blue > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-light-blue > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-light-blue > tbody > tr > td:hover {
background-color: #b3e5fc;
}
}
.table-striped.table-mc-cyan > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-cyan > tbody > tr:nth-child(odd) > th {
background-color: #e0f7fa;
}
.table-hover.table-mc-cyan > tbody > tr:hover > td,
.table-hover.table-mc-cyan > tbody > tr:hover > th {
background-color: #b2ebf2;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-cyan > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-cyan > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-cyan > tbody > tr > td:nth-child(odd) {
background-color: #e0f7fa;
}
.table-responsive-vertical .table-hover.table-mc-cyan > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-cyan > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-cyan > tbody > tr > td:hover {
background-color: #b2ebf2;
}
}
.table-striped.table-mc-teal > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-teal > tbody > tr:nth-child(odd) > th {
background-color: #e0f2f1;
}
.table-hover.table-mc-teal > tbody > tr:hover > td,
.table-hover.table-mc-teal > tbody > tr:hover > th {
background-color: #b2dfdb;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-teal > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-teal > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-teal > tbody > tr > td:nth-child(odd) {
background-color: #e0f2f1;
}
.table-responsive-vertical .table-hover.table-mc-teal > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-teal > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-teal > tbody > tr > td:hover {
background-color: #b2dfdb;
}
}
.table-striped.table-mc-green > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-green > tbody > tr:nth-child(odd) > th {
background-color: #d0f8ce;
}
.table-hover.table-mc-green > tbody > tr:hover > td,
.table-hover.table-mc-green > tbody > tr:hover > th {
background-color: #a3e9a4;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-green > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-green > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-green > tbody > tr > td:nth-child(odd) {
background-color: #d0f8ce;
}
.table-responsive-vertical .table-hover.table-mc-green > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-green > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-green > tbody > tr > td:hover {
background-color: #a3e9a4;
}
}
.table-striped.table-mc-light-green > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-light-green > tbody > tr:nth-child(odd) > th {
background-color: #f1f8e9;
}
.table-hover.table-mc-light-green > tbody > tr:hover > td,
.table-hover.table-mc-light-green > tbody > tr:hover > th {
background-color: #dcedc8;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-light-green > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-light-green > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-light-green > tbody > tr > td:nth-child(odd) {
background-color: #f1f8e9;
}
.table-responsive-vertical .table-hover.table-mc-light-green > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-light-green > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-light-green > tbody > tr > td:hover {
background-color: #dcedc8;
}
}
.table-striped.table-mc-lime > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-lime > tbody > tr:nth-child(odd) > th {
background-color: #f9fbe7;
}
.table-hover.table-mc-lime > tbody > tr:hover > td,
.table-hover.table-mc-lime > tbody > tr:hover > th {
background-color: #f0f4c3;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-lime > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-lime > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-lime > tbody > tr > td:nth-child(odd) {
background-color: #f9fbe7;
}
.table-responsive-vertical .table-hover.table-mc-lime > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-lime > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-lime > tbody > tr > td:hover {
background-color: #f0f4c3;
}
}
.table-striped.table-mc-yellow > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-yellow > tbody > tr:nth-child(odd) > th {
background-color: #fffde7;
}
.table-hover.table-mc-yellow > tbody > tr:hover > td,
.table-hover.table-mc-yellow > tbody > tr:hover > th {
background-color: #fff9c4;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-yellow > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-yellow > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-yellow > tbody > tr > td:nth-child(odd) {
background-color: #fffde7;
}
.table-responsive-vertical .table-hover.table-mc-yellow > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-yellow > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-yellow > tbody > tr > td:hover {
background-color: #fff9c4;
}
}
.table-striped.table-mc-amber > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-amber > tbody > tr:nth-child(odd) > th {
background-color: #fff8e1;
}
.table-hover.table-mc-amber > tbody > tr:hover > td,
.table-hover.table-mc-amber > tbody > tr:hover > th {
background-color: #ffecb3;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-amber > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-amber > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-amber > tbody > tr > td:nth-child(odd) {
background-color: #fff8e1;
}
.table-responsive-vertical .table-hover.table-mc-amber > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-amber > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-amber > tbody > tr > td:hover {
background-color: #ffecb3;
}
}
.table-striped.table-mc-orange > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-orange > tbody > tr:nth-child(odd) > th {
background-color: #fff3e0;
}
.table-hover.table-mc-orange > tbody > tr:hover > td,
.table-hover.table-mc-orange > tbody > tr:hover > th {
background-color: #ffe0b2;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-orange > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-orange > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-orange > tbody > tr > td:nth-child(odd) {
background-color: #fff3e0;
}
.table-responsive-vertical .table-hover.table-mc-orange > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-orange > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-orange > tbody > tr > td:hover {
background-color: #ffe0b2;
}
}
.table-striped.table-mc-deep-orange > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-deep-orange > tbody > tr:nth-child(odd) > th {
background-color: #fbe9e7;
}
.table-hover.table-mc-deep-orange > tbody > tr:hover > td,
.table-hover.table-mc-deep-orange > tbody > tr:hover > th {
background-color: #ffccbc;
}
@media screen and (max-width: 767px) {
.table-responsive-vertical .table-striped.table-mc-deep-orange > tbody > tr > td,
.table-responsive-vertical .table-striped.table-mc-deep-orange > tbody > tr:nth-child(odd) {
background-color: #fff;
}
.table-responsive-vertical .table-striped.table-mc-deep-orange > tbody > tr > td:nth-child(odd) {
background-color: #fbe9e7;
}
.table-responsive-vertical .table-hover.table-mc-deep-orange > tbody > tr:hover > td,
.table-responsive-vertical .table-hover.table-mc-deep-orange > tbody > tr:hover {
background-color: #fff;
}
.table-responsive-vertical .table-hover.table-mc-deep-orange > tbody > tr > td:hover {
background-color: #ffccbc;
}
}
.new{
color: #49c4d5;
background-color: white;
border: 1px solid #49c4d5;
font-weight: 400;
margin-left: 10px;
}
.page-link{
color: rgb(157, 157, 157) !important;
font-size: 10px;
}
</style>
<div class="container" ng-controller="consultation" ng-init="uid='<?=$uid?>';init()">
<div class="row" style="max-width:1000px; margin:auto; margin-bottom:70px;">
<div class="col-xs-12 ">
<table id="table" class="table table-hover table-mc-light-blue" >
<thead>
<tr>
<th class="hidden-xs">Num</th>
<th>Title</th>
<th class="hidden-xs">Author</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="i in consultList" ng-click="openConsult(i)" style="color:#9d9d9d">
<td data-title="Number" style="width:50px;" class="hidden-xs">{{$index+(start)+1}}</td>
<td data-title="Title" style="color:#525252">{{i.TITLE}} ({{i.count}}) <div class="label label-default new" ng-show="i.TIME|new">new</div></td>
<td data-title="Author" class="hidden-xs" style="width:150px;">
{{i.AUTHOR}}
</td>
<td data-title="Date" style="width:150px;">
{{i.TIME|Cdate}}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-xs-12" style="text-align:center">
<ul class="pagination">
<!-- <li class="page-item">
<a class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
<span class="sr-only">Previous</span>
</a>
</li> -->
<li class="page-item" ng-repeat="i in consultRange">
<a class="page-link" ng-click="goConsult(i)">{{i}}</a>
</li>
<!-- <li class="page-item">
<a class="page-link" href="#" aria-label="Next">
<span aria-hidden="true">»</span>
<span class="sr-only">Next</span>
</a>
</li> -->
</ul>
</div>
<div class="col-xs-12">
<div onclick="$('#write_new').modal('show')" class="pull-right banner-button" >WRITE
</div>
</div>
</div>
<div class="modal fade" id="write_new" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body" style="padding:0">
<div class="row" >
<div class="col-xs-12">
<div class="well" ng-init="consult={}" style="margin-bottom:0;">
<!-- <div class="text-center page-title">
<span >Consultation</span>
</div> -->
<div class="form-group has-feedback-none has-feedback-left-none">
<input type="text" class="placeholder form-control no-border" placeholder="Name" ng-model="consult.author" />
</div>
<div class="form-group has-feedback-none has-feedback-left-none">
<input type="text" class="placeholder form-control no-border" placeholder="Title" ng-model="consult.title" />
</div>
<div class="form-group has-feedback-none has-feedback-left-none">
<input type="password" class=" placeholder form-control no-border" placeholder="Password" ng-model="consult.password"/>
</div>
<div class="form-group has-feedback-none has-feedback-left-none">
<textarea style="resize:none;border:none;"class="placeholder form-control" rows="5" style="border:none; box-shadow:none;" placeholder="Message" ng-model="consult.body" ></textarea>
</div>
<div class="btn btnForm btn-block" ng-click="consultForm(consult)">SEND</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
| mit |
StoikoNeykov/Telerik | CSharp1/Loops/DecimalToHex/Properties/AssemblyInfo.cs | 1400 | 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("DecimalToHex")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DecimalToHex")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3e808379-6e11-4c24-853e-7d2b4720cbb1")]
// 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")]
| mit |
notmessenger/poker-analysis | test/lib/errors/app.js | 1211 | const AppError = require('../../../lib/errors/app')
const assert = require('assert')
function doSomethingBad () {
throw new AppError('app error message')
}
it('Error details', function () {
try {
doSomethingBad()
} catch (err) {
assert.strictEqual(
err.name,
'AppError',
"Name property set to error's name"
)
assert(
err instanceof AppError,
'Is an instance of its class'
)
assert(
err instanceof Error,
'Is instance of built-in Error'
)
assert(
require('util').isError(err),
'Should be recognized by Node.js util#isError'
)
assert(
err.stack,
'Should have recorded a stack'
)
assert.strictEqual(
err.toString(),
'AppError: app error message',
'toString should return the default error message formatting'
)
assert.strictEqual(
err.stack.split('\n')[0],
'AppError: app error message',
'Stack should start with the default error message formatting'
)
assert.strictEqual(
err.stack.split('\n')[1].indexOf('doSomethingBad'),
7,
'The first stack frame should be the function where the error was thrown'
)
}
})
| mit |
emk/blogitr | spec/document_spec.rb | 3231 | require 'spec_helper'
describe Blogitr::Document do
def parse text, filter=:html
@doc = Blogitr::Document.new :text => text, :filter => filter
end
def should_parse_as headers, body, extended=nil
@doc.headers.should == headers
@doc.body.should == body
@doc.extended.should == extended
end
it "should raise an error if an unknown fitler is specified" do
lambda do
parse "foo *bar* \"baz\"", :unknown
end.should raise_error(Blogitr::UnknownFilterError)
end
it "should parse documents with a YAML header" do
parse <<EOD
title: My Doc
subtitle: An Essay
foo
bar
EOD
should_parse_as({ 'title' => "My Doc", 'subtitle' => 'An Essay' },
"foo\n\nbar\n")
end
it "should parse documents without a YAML header" do
parse "foo\nbar\nbaz"
should_parse_as({}, "foo\nbar\nbaz")
end
it "should parse documents with a YAML header but no body" do
parse "title: My Doc"
should_parse_as({ 'title' => "My Doc" }, '')
end
it "should separate extended content from the main body" do
parse <<EOD
foo
<!--more-->
bar
EOD
should_parse_as({}, "foo", "bar\n")
end
it "should expand macros" do
input = "title: Foo\n\n<macro:example foo=\"bar\">baz</macro:example>"
parse input
should_parse_as({'title' => "Foo"},
"Options: {\"foo\"=>\"bar\"}\nBody: baz")
end
it "should provide access to raw body and extended content" do
parse "*foo*\n<!--more-->\n_bar_", :textile
@doc.raw_body.should == "*foo*"
@doc.raw_extended.should == "_bar_"
end
describe "with a :textile filter" do
it "should filter content" do
parse "foo *bar*\n<!--more-->\n\"baz\"", :textile
should_parse_as({}, "<p>foo <strong>bar</strong></p>",
"<p>“baz”</p>")
end
it "should protect expanded macros from filtering" do
text = "\n<macro:example>*foo*</macro:example>"
parse text, :textile
should_parse_as({}, "Options: {}\nBody: *foo*")
end
end
describe "with a :markdown filter" do
it "should filter content" do
parse "foo *bar* \"baz\"", :markdown
should_parse_as({}, "<p>foo <em>bar</em> “baz”</p>\n")
end
it "should protect expanded macros from filtering" do
text = "\n<macro:example>*foo*</macro:example>"
parse text, :markdown
should_parse_as({},
"<div class=\"raw\">Options: {}\nBody: *foo*</div>\n\n")
end
end
describe "#to_s" do
def should_serialize_as headers, body, extended, serialized
opts = { :headers => headers, :raw_body => body,
:raw_extended => extended, :filter => :html }
Blogitr::Document.new(opts).to_s.should == serialized
end
it "should serialize documents with headers" do
should_serialize_as({'title' => 'Foo'}, "_Bar_.", nil,
"title: Foo\n\n_Bar_.")
end
it "should serialize documents without headers" do
should_serialize_as({}, "_Bar_.", nil, "\n_Bar_.")
end
it "should serialize extended content using \\<!--more-->" do
should_serialize_as({}, "Bar.", "_Baz_.", "\nBar.\n<!--more-->\n_Baz_.")
end
end
end
| mit |
Grupo3-TallerUNLP/InfoSquid | src/Grupo3TallerUNLP/ConfiguracionBundle/Tests/Controller/ConfiguracionControllerTest.php | 2024 | <?php
namespace Grupo3TallerUNLP\ConfiguracionBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ConfiguracionControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
// Create a new entry in the database
$crawler = $client->request('GET', '/configuracion/');
$this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /configuracion/");
$crawler = $client->click($crawler->selectLink('Create a new entry')->link());
// Fill in the form and submit it
$form = $crawler->selectButton('Create')->form(array(
'grupo3tallerunlp_configuracionbundle_configuracion[field_name]' => 'Test',
// ... other fields to fill
));
$client->submit($form);
$crawler = $client->followRedirect();
// Check data in the show view
$this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
// Edit the entity
$crawler = $client->click($crawler->selectLink('Edit')->link());
$form = $crawler->selectButton('Update')->form(array(
'grupo3tallerunlp_configuracionbundle_configuracion[field_name]' => 'Foo',
// ... other fields to fill
));
$client->submit($form);
$crawler = $client->followRedirect();
// Check the element contains an attribute with value equals "Foo"
$this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
// Delete the entity
$client->submit($crawler->selectButton('Delete')->form());
$crawler = $client->followRedirect();
// Check the entity has been delete on the list
$this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
}
*/
}
| mit |
linpan/iScript | README.md | 36263 | ## iScript
包含项目:
> *[L]* *[W]* *[LW]* 分别表示,在linux, windows, linux和windows 下通过测试。
> ***windows用户可在babun (https://github.com/babun/babun) 下运行。***
- *[L]* [xiami.py](#xiami.py) - 下载或播放高品质虾米音乐(xiami.com)
- *[L]* [pan.baidu.com.py](#pan.baidu.com.py) - 百度网盘的下载、离线下载、上传、播放、转存、文件操作
- *[L]* [bt.py](#bt.py) - magnet torrent 互转、及 过滤敏.感.词
- *[L]* [115.py](#115.py) - 115网盘的下载和播放
- *[L]* [yunpan.360.cn.py](#yunpan.360.cn.py) - 360网盘的下载
- *[L]* [music.baidu.com.py](#music.baidu.com.py) - 下载或播放高品质百度音乐(music.baidu.com)
- *[L]* [music.163.com.py](#music.163.com.py) - 下载或播放高品质网易音乐(music.163.com)
- *[L]* [flvxz_cl.py](#flvxz_cl.py) - flvxz.com 视频解析 client - 支持下载、播放
- *[L]* [tumblr.py](#tumblr.py) - 下载某个tumblr.com的所有图片
- *[L]* [unzip.py](#unzip.py) - 解决linux下unzip乱码的问题
- *[L]* [ed2k_search.py](#ed2k_search.py) - 基于 donkey4u.com 的emule搜索
- *[L]* [91porn.py](#91porn.py) - 下载或播放91porn
- *[L]* [ThunderLixianExporter.user.js](#ThunderLixianExporter.user.js) - A fork of https://github.com/binux/ThunderLixianExporter - 增加了mpv和mplayer的导出。
- 待续
---
---
<a name="xiami.py"></a>
### xiami.py - 下载或播放高品质虾米音乐(xiami.com)
1. 依赖
wget
python2-requests (https://github.com/kennethreitz/requests)
python2-mutagen (https://code.google.com/p/mutagen/)
mpv (http://mpv.io)
2. 使用说明
初次使用需要登录 xm login
**支持淘宝账户** xm logintaobao
**对于淘宝账户,登录后只保存有关虾米的cookies,删除了有关淘宝的cookies**
**vip账户**支持高品质音乐的下载和播放。
下载的MP3默认添加id3 tags,保存在当前目录下。
cookies保存在 ~/.Xiami.cookies。
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
命令:
# 虾米账号登录
g
login
login username
login username password
# 淘宝账号登录
gt
logintaobao
logintaobao username
logintaobao username password
signout # 退出登录
d 或 download url1 url2 .. # 下载
p 或 play url1 url2 .. # 播放
s 或 save url1 url2 .. # 收藏
参数:
-p, --play play with mpv
-d, --undescription 不加入disk的描述
-f num, --from_ num 从第num个开始
-t TAGS, --tags TAGS 收藏用的tags,用英文逗号分开, eg: -t piano,cello,guitar
-n, --undownload 不下载,用于修改已存在的MP3的id3 tags
3. 用法
\# xm 是xiami.py的马甲 (alias xm='python2 /path/to/xiami.py')
# 登录
xm g
xm login
xm login username
xm login username password
# 退出登录
xm signout
# 下载专辑
xm d http://www.xiami.com/album/168709?spm=a1z1s.6928801.1561534521.114.ShN6mD
# 下载单曲
xm d http://www.xiami.com/song/2082998?spm=a1z1s.6659513.0.0.DT2j7T
# 下载精选集
xm d http://www.xiami.com/song/showcollect/id/30374035?spm=a1z1s.3061701.6856305.16.fvh75t
# 下载该艺术家所有专辑, Top 20 歌曲, radio
xm d http://www.xiami.com/artist/23460?spm=a1z1s.6928801.1561534521.115.ShW08b
# 下载用户的收藏, 虾米推荐, radio
xm d http://www.xiami.com/u/141825?spm=a1z1s.3521917.0.0.zI0APP
# 下载排行榜
xm d http://www.xiami.com/chart/index/c/2?spm=a1z1s.2943549.6827465.6.VrEAoY
# 下载 风格 genre, radio
xm d http://www.xiami.com/genre/detail/gid/2?spm=a1z1s.3057857.6850221.1.g9ySan
xm d http://www.xiami.com/genre/detail/sid/2970?spm=a1z1s.3057857.6850221.4.pkepgt
播放:
# url 是上面的
xm p url
收藏:
xm s http://www.xiami.com/album/168709?spm=a1z1s.6928801.1561534521.114.ShN6mD
xm s -t 'tag1,tag 2,tag 3' http://www.xiami.com/song/2082998?spm=a1z1s.6659513.0.0.DT2j7T
xm s http://www.xiami.com/song/showcollect/id/30374035?spm=a1z1s.3061701.6856305.16.fvh75t
xm s http://www.xiami.com/artist/23460?spm=a1z1s.6928801.1561534521.115.ShW08b
4. 参考:
> http://kanoha.org/2011/08/30/xiami-absolute-address/
> http://www.blackglory.me/xiami-vip-audition-with-no-quality-difference-between-downloading/
> https://gist.github.com/lepture/1014329
> 淘宝登录代码: https://github.com/ly0/xiami-tools
---
<a name="pan.baidu.com.py"></a>
### pan.baidu.com.py - 百度网盘的下载、离线下载、上传、播放、转存、文件操作
1. 依赖
wget, aria2
python2-requests (https://github.com/kennethreitz/requests)
requests-toolbelt (https://github.com/sigmavirus24/requests-toolbelt)
mpv (http://mpv.io)
mplayer # 我的linux上mpv播放wmv出错,换用mplayer
2. 使用说明
初次使用需要登录 bp login
**支持多帐号登录**
他人分享的网盘连接,只支持单个的下载。
下载工具默认为wget, 可用参数-a num选用aria2
下载的文件,保存在当前目录下。
下载默认为非递归,递归下载加 -R
搜索时,默认在 /
搜索支持高亮
上传模式默认是 c (续传)。
理论上,上传的单个文件最大支持 2T
cookies保存在 ~/.bp.cookies
上传数据保存在 ~/.bp.pickle
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
<a name="cmd"></a>
命令:
**!!注意:命令参数中,所有网盘的路径必须是 绝对路径**
# 登录
g
login
login username
login username password
# 删除帐号
userdelete 或 ud
# 切换帐号
userchange 或 uc
# 帐号信息
user
p 或 play url1 url2 .. path1 path2 .. 播放
u 或 upload localpath remotepath 上传
s 或 save url remotepath [-s secret] 转存
# 下载
d 或 download url1 url2 .. path1 path2 .. 非递归下载 到当前目录(cwd)
d 或 download url1 url2 .. path1 path2 .. -R 递归下载 到当前目录(cwd)
# !! 注意:
# d /path/to/download -R 递归下载 *download文件夹* 到当前目录(cwd)
# d /path/to/download/ -R 递归下载 *download文件夹中的文件* 到当前目录(cwd)
# 文件操作
md 或 mkdir path1 path2 .. 创建文件夹
rn 或 rename path new_path 重命名
rm 或 remove path1 path2 .. 删除
mv 或 move path1 path2 .. /path/to/directory 移动
cp 或 copy path /path/to/directory_or_file 复制
cp 或 copy path1 path2 .. /path/to/directory 复制
# 使用正则表达式进行文件操作
rnr 或 rnre foo bar dir1 dir2 .. -I re1 re2 .. 重命名文件夹中的文件名
rmr 或 rmre dir1 dir2 .. -E re1 re2 .. 删除文件夹下匹配到的文件
mvr 或 mvre dir1 dir2 .. /path/to/dir -H head1 head2 .. 移动文件夹下匹配到的文件
cpr 或 cpre dir1 dir2 .. /path/to/dir -T tail1 tail2 .. 复制文件夹下匹配到的文件
# 递归加 -R
# rmr, mvr, cpr 中 -t, -I, -E, -H, -T 至少要有一个,放在命令行末尾
# -I, -E, -H, -T 后可跟多个匹配式
# 可以用 -t 指定操作的文件类型
-t f # 文件
-t d # 文件夹
# rnr 中 foo bar 都是 regex
# -y, --yes # 不显示警示,直接进行。 !!注意,除非你知道你做什么,否则请不要使用。
rmr / -I '.*' -y # !! 删除网盘中的所有文件
# 回复用bt.py做base64加密的文件
rnr /path/to/decode1 /path/to/decode2 .. -t f,bd64
# 搜索
f 或 find keyword1 keyword2 .. [directory] 非递归搜索
ff keyword1 keyword2 .. [directory] 非递归搜索 反序
ft keyword1 keyword2 .. [directory] 非递归搜索 by time
ftt keyword1 keyword2 .. [directory] 非递归搜索 by time 反序
fs keyword1 keyword2 .. [directory] 非递归搜索 by size
fss keyword1 keyword2 .. [directory] 非递归搜索 by size 反序
fn keyword1 keyword2 .. [directory] 非递归搜索 by name
fnn keyword1 keyword2 .. [directory] 非递归搜索 by name 反序
# 递归搜索加 -R
f 'ice and fire' /doc -R
# 搜索所有的账户加 -t all
f keyword1 keyword2 .. [directory] -t all -R
f keyword1 keyword2 .. [directory] -t f,all -R
# directory 默认为 /
# 关于-H, -T, -I, -E
# -I, -E, -H, -T 后可跟多个匹配式, 需要放在命令行末尾
f keyword1 keyword2 ... [directory] -H head -T tail -I "re(gul.*) ex(p|g)ress$"
f keyword1 keyword2 ... [directory] -H head -T tail -E "re(gul.*) ex(p|g)ress$"
# 搜索 加 通道(只支持 donwload, play, rnre, rm, mv)
f keyword1 keyword2 .. [directory] \| d -R 递归搜索后递归下载
ftt keyword1 keyword2 .. [directory] \| p -R 递归搜索(by time 反序)后递归播放
f keyword1 keyword2 .. [directory] \| rnr foo bar -R 递归搜索后rename by regex
f keyword1 keyword2 .. [directory] \| rm -R -T tail 递归搜索后删除
f keyword1 keyword2 .. [directory] \| mv /path/to -R 递归搜索后移动
# 列出文件
l path1 path2 .. ls by name
ll path1 path2 .. ls by name 反序
ln path1 path2 .. ls by name
lnn path1 path2 .. ls by name 反序
lt path1 path2 .. ls by time
ltt path1 path2 .. ls by time 反序
ls path1 path2 .. ls by size
lss path1 path2 .. ls by size 反序
l /doc/books /videos
# 以下是只列出文件或文件夹
l path1 path2 .. -t f ls files
l path1 path2 .. -t d ls directorys
# 关于-H, -T, -I, -E
# -I, -E, -H, -T 后可跟多个匹配式, 需要放在命令行末尾
l path1 path2 .. -H head -T tail -I "^re(gul.*) ex(p|g)ress$"
l path1 path2 .. -H head -T tail -E "^re(gul.*) ex(p|g)ress$"
# 显示文件size, md5
l path1 path2 .. -v
# 空文件夹
l path1 path2 -t e,d
# 非空文件夹
l path1 path2 -t ne,d
# 查看文件占用空间
du path1 path2 .. 文件夹下所有*文件(不包含下层文件夹)*总大小
du path1 path2 .. -R 文件夹下所有*文件(包含下层文件夹)*总大小
如果下层文件多,会花一些时间
# 相当于 l path1 path2 .. -t du [-R]
# eg:
du /doc /videos -R
# 离线下载
a 或 add http https ftp ed2k .. remotepath
a 或 add magnet .. remotepath [-t {m,i,d,p}]
a 或 add remote_torrent .. [-t {m,i,d,p}] # 使用网盘中torrent
# 离线任务操作
j 或 job # 列出离线下载任务
jd 或 jobdump # 清除全部 *非正在下载中的任务*
jc 或 jobclear taskid1 taskid2 .. # 清除 *正在下载中的任务*
jca 或 jobclearall # 清除 *全部任务*
参数:
-a num, --aria2c num aria2c分段下载数量: eg: -a 10
-p, --play play with mpv
-y, --yes yes # 用于 rmre, mvre, cpre, !!慎用
-q, --quiet 无输出模式
-v, --view view detail
eg: a magnet /path -v # 离线下载并显示下载的文件
d -p url1 url2 .. -v # 显示播放文件的完整路径
l path1 path2 .. -v # 显示文件的size, md5
-s SECRET, --secret SECRET 提取密码
-f number, --from_ number 从第几个开始(用于download, play),eg: p /video -f 42
-t ext, --type_ ext 类型参数, 用 “,” 分隔
eg:
l -t f # 文件
l -t d # 文件夹
l -t du # 查看文件占用空间
l -t e,d # 空文件夹
f -t all # 搜索所有账户
a -t m,d,p,a
u -t r # 只进行 rapidupload
u -t e # 如果云端已经存在则不上传(不比对md5)
u -t r,e
-l amount, --limit amount 下载速度限制,eg: -l 100k
-m {o,c}, --uploadmode {o,c} 上传模式: o # 重新上传. c # 连续上传.
-R, --recursive 递归, 用于download, play, ls, find, rmre, rnre, rmre, cpre
-H HEADS, --head HEADS 匹配开头的字符,eg: -H Headishere
-T TAILS, --tail TAILS 匹配结尾的字符,eg: -T Tailishere
-I INCLUDES, --include INCLUDES 不排除匹配到表达的文件名, 可以是正则表达式,eg: -I "*.mp3"
-E EXCLUDES, --exclude EXCLUDES 排除匹配到表达的文件名, 可以是正则表达式,eg: -E "*.html"
-c {on, off}, --ls_color {on, off} ls 颜色,默认是on
# -t, -H, -T, -I, -E 都能用于 download, play, ls, find, rnre, rmre, cpre, mvre
3. 用法
\# bp 是pan.baidu.com.py的马甲 (alias bp='python2 /path/to/pan.badiu.com.py')
登录:
bp g
bp login
bp login username
bp login username password
# 多帐号登录
# 一直用 bp login 即可
删除帐号:
bp ud
切换帐号:
bp uc
帐号信息:
bp user
下载:
# 下载自己网盘中的*单个或多个文件*
bp d http://pan.baidu.com/disk/home#dir/path=/path/to/filename1 http://pan.baidu.com/disk/home#dir/path=/path/to/filename2 ..
# or
bp d /path/to/filename1 /path/to/filename2 ..
# 递归下载自己网盘中的*单个或多个文件夹*
bp d -R http://pan.baidu.com/disk/home#dir/path=/path/to/directory1 http://pan.baidu.com/disk/home#dir/path=/path/to/directory2 ..
# or
bp d -R /path/to/directory1 /path/to/directory2 ..
# 递归下载后缀为 .mp3 的文件
bp d -R /path/to/directory1 /path/to/directory2 .. -T .mp3
# 非递归下载
bp d /path/to/directory1 /path/to/directory2 ..
# 下载别人分享的*单个文件*
bp d http://pan.baidu.com/s/1o6psfnxx ..
bp d http://pan.baidu.com/share/link?shareid=1622654699&uk=1026372002&fid=2112674284 ..
# 下载别人加密分享的*单个文件*,密码参数-s
bp d http://pan.baidu.com/s/1i3FVlw5 -s vuej
# 用aria2下载
bp d http://pan.baidu.com/s/1i3FVlw5 -s vuej -a 5
bp d /movie/her.mkv -a 4
bp d url -s [secret] -a 10
播放:
bp p /movie/her.mkv
bp p http://pan.baidu.com/s/xxxxxxxxx -s [secret]
bp p /movie -R # 递归播放 /movie 中所有媒体文件
离线下载:
bp a http://mirrors.kernel.org/archlinux/iso/latest/archlinux-2014.06.01-dual.iso /path/to/save
bp a https://github.com/PeterDing/iScript/archive/master.zip /path/to/save
bp a ftp://ftp.netscape.com/testfile /path/to/save
bp a 'magnet:?xt=urn:btih:64b7700828fd44b37c0c045091939a2c0258ddc2' /path/to/save -v -t a
bp a 'ed2k://|file|[美]徐中約《中国近代史》第六版原版PDF.rar|547821118|D09FC5F70DEA63E585A74FBDFBD7598F|/' /path/to/save
bp a /path/to/a.torrent .. -v -t m,i # 使用网盘中torrent,下载到/path/to
# 注意 ---------------------
↓
网盘中的torrent
magnet离线下载 -- 文件选择:
-t m # 视频文件 (默认), 如: mkv, avi ..etc
-t i # 图像文件, 如: jpg, png ..etc
-t d # 文档文件, 如: pdf, doc, docx, epub, mobi ..etc
-t p # 压缩文件, 如: rar, zip ..etc
-t a # 所有文件
m, i, d, p, a 可以任意组合(用,分隔), 如: -t m,i,d -t d,p -t i,p
remotepath 默认为 /
bp a 'magnet:?xt=urn:btih:64b7700828fd44b37c0c045091939a2c0258ddc2' /path/to/save -v -t p,d
bp a /download/a.torrent -v -t m,i,d # 使用网盘中torrent,下载到/download
离线任务操作:
bp j
bp j 3482938 8302833
bp jd
bp jc taskid1 taskid2 ..
bp jc 1208382 58239221 ..
bp jca
上传:
bp u ~/Documents/reading/三体\ by\ 刘慈欣.mobi /doc -m o
# 上传模式:
# -m o --> 重传
# -m c --> 续传 (默认)
bp u ~/Videos/*.mkv /videos -t r
# 只进行rapidupload
bp u ~/Documents ~/Videos ~/Documents /backup -t e
# 如果云端已经存在则不上传(不比对md5)
# 用 -t e 时, -m o 无效
bp u ~/Documents ~/Videos ~/Documents /backup -t r,e # 以上两种模式
转存:
bp s url remotepath [-s secret]
# url是他人分享的连接, 如: http://pan.baidu.com/share/link?shareid=xxxxxxx&uk=xxxxxxx, http://pan.baidu.com/s/xxxxxxxx
bp s http://pan.baidu.com/share/link?shareid=xxxxxxx&uk=xxxxxxx /path/to/save
bp s http://pan.baidu.com/s/xxxxxxxx /path/to/save
bp s http://pan.baidu.com/s/xxxxxxxx /path/to/save -s xxxx
bp s http://pan.baidu.com/s/xxxxxxxx#dir/path=/path/to/anything /path/to/save -s xxxx
bp s http://pan.baidu.com/inbox/i/xxxxxxxx /path/to/save
搜索:
bp f keyword1 keyword2
bp f "this is one keyword" "this is another keyword" /path/to/search
bp f ooxx -R
bp f 三体 /doc/fiction -R
bp f 晓波 /doc -R
bp ff keyword1 keyword2 .. /path/to/music 非递归搜索 反序
bp ft keyword1 keyword2 .. /path/to/doc 非递归搜索 by time
bp ftt keyword1 keyword2 .. /path/to/other 非递归搜索 by time 反序
bp fs keyword1 keyword2 .. 非递归搜索 by size
bp fss keyword1 keyword2 .. 非递归搜索 by size 反序
bp fn keyword1 keyword2 .. 非递归搜索 by name
bp fnn keyword1 keyword2 .. 非递归搜索 by name 反序
# 递归搜索加 -R
# 关于-H, -T, -I, -E
bp f mp3 /path/to/search -H "[" "01" -T ".tmp" -I ".*-.*" -R
# 搜索所有的账户
f iDoNotKnow .. [directory] -t all -R
f archlinux ubuntu .. [directory] -t f,all -T .iso -R
# 搜索 加 通道(只支持 donwload, play, rnre, rm, mv)
f bioloy \| d -R 递归搜索后递归下载
ftt ooxx \| p -R -t f 递归搜索(by time 反序)后递归播放
f sound \| rnr mp3 mp4 -R 递归搜索后rename by regex
f ccav \| rm -R -T avi 递归搜索后删除
f 新闻联播(大结局) \| mv /Favor -R 递归搜索后移动
回复用bt.py做base64加密的文件:
rnr /ooxx -t f,bd64
!! 注意: /ooxx 中的所有文件都必须是被base64加密的,且加密段要有.base64后缀
# 可以参考 by.py 的用法
ls、重命名、移动、删除、复制、使用正则表达式进行文件操作:
见[命令](#cmd)
4. 参考:
> https://gist.github.com/HououinRedflag/6191023
> https://github.com/banbanchs/pan-baidu-download/blob/master/bddown_core.py
> https://github.com/houtianze/bypy
---
<a name="bt.py"></a>
### bt.py - magnet torrent 互转、及 过滤敏.感.词
1. 依赖
python2-requests (https://github.com/kennethreitz/requests)
bencode (https://github.com/bittorrent/bencode)
2. 使用说明
magnet 和 torrent 的相互转换
~~过滤敏.感.词功能用于净网时期的 baidu, xunlei~~
**8.30日后,无法使用。 见 http://tieba.baidu.com/p/3265467666**
~~**!! 注意:过滤后生成的torrent在百度网盘只能用一次,如果需要再次使用,则需用 -n 改顶层目录名**~~
磁力连接转种子,用的是
http://bt.box.n0808.com
http://btcache.me
http://www.sobt.org # 302 --> http://www.win8down.com/url.php?hash=
http://www.31bt.com
http://178.73.198.210
http://www.btspread.com # link to http://btcache.me
http://torcache.net
http://zoink.it
http://torrage.com # 用torrage.com需要设置代理, eg: -p 127.0.0.1:8087
http://torrentproject.se
http://istoretor.com
http://torrentbox.sx
http://www.torrenthound.com
http://www.silvertorrent.org
http://magnet.vuze.com
如果有更好的种子库,请提交issue
> 对于baidu, 加入离线任务后,需等待一段时间才会下载完成。
命令:
# magnet 2 torrent
m 或 mt magnet_link1 magnet_link2 .. [-d /path/to/save]
m -i /there/are/files -d new
# torrent 2 magnet, 输出magnet
t 或 tm path1 path2 ..
# 过滤敏.感.词
# 有2种模式
# -t n (默认) 用数字替换文件名
# -t be64 用base64加密文件名,torrent用百度下载后,可用 pan.baidu.com.py rnr /path -t f,bd64 改回原名字
c 或 ct magnet_link1 magnet_link2 .. /path/to/torrent1 /path/to/torrent2 .. [-d /path/to/save]
c -i /there/are/files and_other_dir -d new # 从文件或文件夹中寻找 magnet,再过滤
# 过滤敏.感.词 - 将magnet或torrent转成不敏感的 torrent
# /path/to/save 默认为 .
# 用base64加密的文件名:
c magnet_link1 magnet_link2 .. /path/to/torrent1 /path/to/torrent2 .. [-d /path/to/save] -t be64
# 使用正则表达式过滤敏.感.词
cr 或 ctre foo bar magnet_link1 /path/to/torrent1 .. [-d /path/to/save]
# foo bar 都是 regex
参数:
-p PROXY, --proxy PROXY proxy for torrage.com, eg: -p 127.0.0.1:8087 (默认)
-t TYPE_, --type_ TYPE_ 类型参数:
-t n (默认) 用数字替换文件名
-t be64 用base64加密文件名,torrent用百度下载后,可用 pan.baidu.com.py rnr /path -t f,bd64 改回原名字
-d DIRECTORY, --directory DIRECTORY 指定torrents的保存路径, eg: -d /path/to/save
-n NAME, --name NAME 顶级文件夹名称, eg: -m thistopdirectory
-i localpath1 localpath2 .., --import_from localpath1 localpath2 .. 从本地文本文件导入magnet (用正则表达式匹配)
3. 用法
\# bt 是bt.py的马甲 (alias bt='python2 /path/to/bt.py')
bt mt magnet_link1 magnet_link2 .. [-d /path/to/save]
bt tm path1 path2 ..
bt ct magnet_link1 path1 .. [-d /path/to/save]
bt m magnet_link1 magnet_link2 .. [-d /path/to/save]
bt t path1 path2 ..
bt c magnet_link1 path1 .. [-d /path/to/save]
# 用torrage.com
bt m magnet_link1 path1 .. -p 127.0.0.1:8087
bt c magnet_link1 path1 .. -p 127.0.0.1:8087
# 从文件或文件夹中寻找 magnet,再过滤
bt c -i ~/Downloads -d new
# 使用正则表达式过滤敏.感.词
bt cr '.*(old).*' '\1' magnet_link
bt cr 'old.iso' 'new.iso' /path/to/torrent
# 用base64加密的文件名:
bt c magnet_link -t be64
4. 参考:
> http://blog.chinaunix.net/uid-28450123-id-4051635.html
> http://en.wikipedia.org/wiki/Torrent_file
---
<a name="115.py"></a>
### 115.py - 115网盘的下载和播放
1. 依赖
wget, aria2
python2-requests (https://github.com/kennethreitz/requests)
mpv (http://mpv.io)
mplayer # 我的linux上mpv播放wmv出错,换用mplayer
2. 使用说明
初次使用需要登录 pan115 login
**脚本是用于下载自己的115网盘文件,不支持他人分享文件。**
**非vip用户下载只能有4个通道,理论上,用aria2的下载速度最大为 4*300kb/s。**
下载工具默认为wget, 可用参数-a选用aria2。
对所有文件,默认执行下载(用wget),如要播放媒体文件,加参数-p。
下载的文件,保存在当前目录下。
cookies保存在 ~/.115.cookies
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
参数:
-a, --aria2c download with aria2c
-p, --play play with mpv
-f number, --from_ number 从第几个开始下载,eg: -f 42
-t ext, --type_ ext 要下载的文件的后缀,eg: -t mp3
-l amount, --limit amount 下载速度限制,eg: -l 100k
-d "url" 增加离线下载 "http/ftp/magnet/ed2k"
3. 用法
\# pan115 是115.py的马甲 (alias pan115='python2 /path/to/115.py')
# 登录
pan115 g
pan115 login
pan115 login username
pan115 login username password
# 退出登录
pan115 signout
# 递归下载自己网盘中的*文件夹*
pan115 http://115.com/?cid=xxxxxxxxxxxx&offset=0&mode=wangpan
# 下载自己网盘中的*单个文件* -- 只能是115上可单独打开的文件,如pdf,视频
pan115 http://wenku.115.com/preview/?pickcode=xxxxxxxxxxxx
# 下载用aria2, url 是上面的
pan115 -a url
# 增加离线下载
pan115 -d "magnet:?xt=urn:btih:757fc565c56462b28b4f9c86b21ac753500eb2a7&dn=archlinux-2014.04.01-dual.iso"
播放
# url 是上面的
pan115 -p url
4. 参考:
> http://passport.115.com/static/wap/js/common.js?v=1.6.39
---
<a name="yunpan.360.cn.py"></a>
### yunpan.360.cn.py - 360网盘的下载
1. 依赖
wget, aria2
python2-requests (https://github.com/kennethreitz/requests)
2. 使用说明
初次使用需要登录 yp login
**!!!!!! 万恶的360不支持断点续传 !!!!!!**
由于上面的原因,不能播放媒体文件。
只支持自己的\*文件夹\*的递归下载。
下载工具默认为wget, 可用参数-a选用aria2
下载的文件,保存在当前目录下。
cookies保存在 ~/.360.cookies
参数:
-a, --aria2c download with aria2c
-f number, --from_ number 从第几个开始下载,eg: -f 42
-t ext, --type_ ext 要下载的文件的后缀,eg: -t mp3
-l amount, --limit amount 下载速度限制,eg: -l 100k
3. 用法
\# yp 是yunpan.360.cn.py的马甲 (alias yp='python2 /path/to/yunpan.360.cn.py')
# 登录
yp g
yp login
yp login username
yp login username password
# 退出登录
yp signout
# 递归下载自己网盘中的*文件夹*
yp http://c17.yunpan.360.cn/my/?sid=#/path/to/directory
yp http://c17.yunpan.360.cn/my/?sid=#%2Fpath%3D%2Fpath%2Fto%2Fdirectory
# or
yp sid=/path/to/directory
yp sid%3D%2Fpath%2Fto%2Fdirectory
# 下载用aria2, url 是上面的
yp -a url
4. 参考:
> https://github.com/Shu-Ji/gorthon/blob/master/_3rdapp/CloudDisk360/main.py
---
<a name="music.baidu.com.py"></a>
### music.baidu.com.py - 下载或播放高品质百度音乐(music.baidu.com)
1. 依赖
wget
python2-mutagen (https://code.google.com/p/mutagen/)
mpv (http://mpv.io)
2. 使用说明
默认执行下载,如要播放,加参数-p。
参数:
-f, --flac download flac
-i, --high download 320, default
-l, --low download 128
-p, --play play with mpv
下载的MP3默认添加id3 tags,保存在当前目录下。
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
3. 用法
\# bm 是music.baidu.com.py的马甲 (alias bm='python2 /path/to/music.baidu.com.py')
# 下载专辑
bm http://music.baidu.com/album/115032005
# 下载单曲
bm http://music.baidu.com/song/117948039
播放:
# url 是上面的
bm -p url
4. 参考:
> http://v2ex.com/t/77685 # 第9楼
---
<a name="music.163.com.py"></a>
### music.163.com.py - 下载或播放高品质网易音乐(music.163.com)
1. 依赖
wget
python2-requests (https://github.com/kennethreitz/requests)
python2-mutagen (https://code.google.com/p/mutagen/)
mpv (http://mpv.io)
2. 使用说明
**默认下载和播放高品质音乐,如果服务器没有高品质音乐则转到低品质音乐。**
默认执行下载,如要播放,加参数-p。
下载的MP3默认添加id3 tags,保存在当前目录下。
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
3. 用法
\# nm 是music.163.com.py的马甲 (alias nm='python2 /path/to/music.163.com.py')
# 下载专辑
nm http://music.163.com/#/album?id=18915
# 下载单曲
nm http://music.163.com/#/song?id=186114
# 下载歌单
nm http://music.163.com/#/playlist?id=12214308
# 下载该艺术家所有专辑或 Top 50 歌曲
nm http://music.163.com/#/artist?id=6452
# 下载DJ节目
nm http://music.163.com/#/dj?id=675051
# 下载排行榜
nm http://music.163.com/#/discover/toplist?id=11641012
播放:
# url 是上面的
nm -p url
4. 参考:
> https://github.com/yanunon/NeteaseCloudMusic/wiki/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90API%E5%88%86%E6%9E%90
> http://s3.music.126.net/s/2/core.js
---
<a name="flvxz_cl.py"></a>
### flvxz_cl.py - flvxz.com 视频解析 client - 支持下载、播放
1. 依赖
wget
python2-requests (https://github.com/kennethreitz/requests)
mpv (http://mpv.io)
2. 使用说明
flvxz.com 视频解析
**不提供视频合并操作**
支持的网站:
"""
已知支持120个以上视频网站,覆盖大多数国内视频站点,少量国外视频站点
"""
-- flvxz.com
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
3. 用法
\# fl是flvxz_cl.py的马甲 (alias fl='python2 /path/to/flvxz_cl.py')
下载:
fl http://v.youku.com/v_show/id_XNTI2Mzg4NjAw.html
fl http://www.tudou.com/albumplay/Lqfme5hSolM/tJ_Gl3POz7Y.html
播放:
# url 是上面的
fl url -p
4. 相关脚本:
> https://github.com/iambus/youku-lixian
> https://github.com/rg3/youtube-dl
> https://github.com/soimort/you-get
---
<a name="tumblr.py"></a>
### tumblr.py - 下载某个tumblr.com的所有图片
1. 依赖
wget
python2-requests (https://github.com/kennethreitz/requests)
2. 使用说明
* 使用前需用在 http://www.tumblr.com/oauth/apps 加入一个app,证实后得到api_key,再在源码中填入,完成后则可使用。
* 或者用 http://www.tumblr.com/docs/en/api/v2 提供的api_key ( fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4 )
默认开5个进程,如需改变用参数-p [num]。
下载的文件,保存在当前目录下。
默认下载原图。
支持连续下载,下载进度储存在下载文件夹内的 json.json。
参数:
-p PROCESSES, --processes PROCESSES 指定多进程数,默认为5个,最多为20个 eg: -p 20
-c, --check 尝试修复未下载成功的图片
-t TAG, --tag TAG 下载特定tag的图片, eg: -t beautiful
3. 用法
\# tm是tumblr.py的马甲 (alias tm='python2 /path/to/tumblr.py')
# 下载某个tumblr
tm http://sosuperawesome.tumblr.com/
tm http://sosuperawesome.tumblr.com/ -t beautiful
# 指定tag下载
tm beautiful
tm cool
---
<a name="unzip.py"></a>
### unzip.py - 解决linux下unzip乱码的问题
用法
python2 unzip.py azipfile1.zip azipfile2.zip ..
python2 unzip.py azipfile.zip -s secret
# -s 密码
代码来自以下连接,我改了一点。
> http://wangqige.com/the-solution-of-unzip-files-which-zip-under-windows/解决在Linux环境下解压zip的乱码问题
---
<a name="ed2k_search.py"></a>
### ed2k_search.py - 基于 donkey4u.com 的emule搜索
1. 依赖
python2
2. 用法
\# ed 是ed2k_search.py的马甲 (alias ed='python2 /path/to/ed2k_search.py')
ed this is a keyword
or
ed "this is a keyword"
---
<a name="91porn.py"></a>
### 91porn.py - 下载或播放91porn
**警告: 18岁以下者,请自觉远离。**
1. 依赖
wget, aria2
python2-requests (https://github.com/kennethreitz/requests)
mpv (http://mpv.io)
2. 使用说明
> 没有解决 *7个/day* 限制
下载工具默认为wget, 可用参数-a选用aria2
默认执行下载,如要播放媒体文件,加参数-p。
下载的文件,保存在当前目录下。
关于播放操作:
> 在运行脚本的终端,输入1次Enter,关闭当前播放并播放下一个文件,连续输入2次Enter,关闭当前播放并退出。
3. 用法
\# pn 是91porn.py的马甲 (alias pn='python2 /path/to/91porn.py')
pn url # 91porn.com(或其镜像) 视频的url
播放:
pn -p url
4. 参考
> http://v2ex.com/t/110196 # 第16楼
---
<a name="ThunderLixianExporter.user.js"></a>
### ThunderLixianExporter.user.js - A fork of https://github.com/binux/ThunderLixianExporter
**一个github.com/binux的迅雷离线导出脚本的fork。**
增加了mpv和mplayer的导出。
用法见: https://github.com/binux/ThunderLixianExporter
| mit |
IDCI-Consulting/ExtraFormBundle | Resources/public/js/editor/src/store/mutations.js | 854 |
export default {
cache: function (state, payload) {
state.apiCache[payload.api_url] = payload.api_response;
},
addConfiguredType: function (state, type) {
state.configuredTypes.push(type);
},
removeConfiguredType: function (state, index) {
state.configuredTypes.splice(index, 1);
},
updateConfiguredType: function (state, type) {
for (var i = 0, len = state.configuredTypes.length; i < len; i++) {
if (state.configuredTypes[i].name === type.name) {
state.configuredTypes.splice(i, 1);
state.configuredTypes.push(type);
// Avoid too keep looping over a spliced array
return;
}
}
},
setBaseExtraFormTypes: function (state, types) {
state.baseTypes = types;
},
setConfiguredExtraFormTypes: function (state, types) {
state.configuredTypes = types;
}
};
| mit |
mongrelion/di-darkhttpd | Dockerfile | 181 | FROM gliderlabs/alpine:latest
MAINTAINER Carlos León <[email protected]>
RUN apk-install darkhttpd
EXPOSE 80
ENTRYPOINT ["/usr/bin/darkhttpd"]
CMD ["/var/www", "--chroot"]
| mit |
7986LiChang/MyLearnDemos | js/DragDrop/README.md | 388 | ### 实现元素拖拽功能:
- EventUtil 封装跨浏览器时间处理对象
- EventTarget 自定义事件对象
- dragdrop 在其中实现元素拖拽
关键点:
**被拖拽元素使用 绝对定位absolute 或 相对定位relative**,在mousemove事件中,重新设置left 及 top值
添加mousedown/mouseup事件
修缮拖动:鼠标点击位置与元素顶端位置差异 | mit |
kodeitsolutions/ef-reports | PAS_fNotas_Credito.aspx.vb | 10260 | '-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
' Importando librerias
'-------------------------------------------------------------------------------------------'
Imports System.Data
'-------------------------------------------------------------------------------------------'
' Inicio de clase "PAS_fNotas_Credito"
'-------------------------------------------------------------------------------------------'
Partial Class PAS_fNotas_Credito
Inherits vis2formularios.frmReporte
Dim loObjetoReporte As CrystalDecisions.CrystalReports.Engine.ReportDocument
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim loConsulta As New StringBuilder()
loConsulta.AppendLine("SELECT Clientes.Nom_Cli,")
loConsulta.AppendLine(" Clientes.Rif,")
loConsulta.AppendLine(" Clientes.Nit,")
loConsulta.AppendLine(" Clientes.Dir_Fis,")
loConsulta.AppendLine(" Clientes.Telefonos,")
loConsulta.AppendLine(" Clientes.Fax,")
loConsulta.AppendLine(" Cuentas_Cobrar.Documento,")
loConsulta.AppendLine(" CASE WHEN DAY(Cuentas_Cobrar.Fec_Ini) < 10")
loConsulta.AppendLine(" THEN CONCAT('0', DAY(Cuentas_Cobrar.Fec_Ini))")
loConsulta.AppendLine(" ELSE DAY(Cuentas_Cobrar.Fec_Ini)")
loConsulta.AppendLine(" END AS Dia,")
loConsulta.AppendLine(" CASE WHEN MONTH(Cuentas_Cobrar.Fec_Ini) < 10 ")
loConsulta.AppendLine(" THEN CONCAT('0', MONTH(Cuentas_Cobrar.Fec_Ini))")
loConsulta.AppendLine(" ELSE MONTH(Cuentas_Cobrar.Fec_Ini)")
loConsulta.AppendLine(" END AS Mes,")
loConsulta.AppendLine(" YEAR(Cuentas_Cobrar.Fec_Ini) AS Anio,")
loConsulta.AppendLine(" Cuentas_Cobrar.Mon_Bru AS Mon_Bru, ")
loConsulta.AppendLine(" Cuentas_Cobrar.Mon_Imp1 AS Mon_Imp1, ")
loConsulta.AppendLine(" Cuentas_Cobrar.Por_Imp1 AS Por_Imp1, ")
loConsulta.AppendLine(" Cuentas_Cobrar.Mon_Net AS Mon_Net,")
loConsulta.AppendLine(" Cuentas_Cobrar.Mon_Sal AS Mon_Sal,")
loConsulta.AppendLine(" Cuentas_Cobrar.Por_Des AS Por_Des, ")
loConsulta.AppendLine(" Cuentas_Cobrar.Mon_Des AS Mon_Des, ")
loConsulta.AppendLine(" Cuentas_Cobrar.Comentario,")
loConsulta.AppendLine(" Cuentas_Cobrar.Referencia,")
loConsulta.AppendLine(" Renglones_Documentos.Can_Art,")
loConsulta.AppendLine(" Renglones_Documentos.Cod_Uni,")
loConsulta.AppendLine(" Renglones_Documentos.Precio1,")
loConsulta.AppendLine(" Renglones_Documentos.Precio2,")
loConsulta.AppendLine(" Renglones_Documentos.Mon_Net AS Neto,")
loConsulta.AppendLine(" Renglones_Documentos.Comentario AS Com_Renglon,")
loConsulta.AppendLine(" Renglones_Documentos.Notas,")
loConsulta.AppendLine(" Articulos.Nom_Art")
loConsulta.AppendLine("FROM Cuentas_Cobrar")
loConsulta.AppendLine(" JOIN Clientes ")
loConsulta.AppendLine(" ON Cuentas_Cobrar.Cod_Cli = Clientes.Cod_Cli")
loConsulta.AppendLine(" JOIN Renglones_Documentos ")
loConsulta.AppendLine(" ON Cuentas_Cobrar.Documento = Renglones_Documentos.Documento")
loConsulta.AppendLine(" AND Renglones_Documentos.Cod_Tip = 'N/CR'")
loConsulta.AppendLine(" JOIN Articulos ")
loConsulta.AppendLine(" ON Renglones_Documentos.Cod_Art = Articulos.Cod_Art")
loConsulta.AppendLine(" ")
loConsulta.AppendLine("WHERE " & cusAplicacion.goFormatos.pcCondicionPrincipal)
Dim loServicios As New cusDatos.goDatos()
' Me.mEscribirConsulta(loConsulta.ToString())
Dim laDatosReporte As DataSet = loServicios.mObtenerTodosSinEsquema(loConsulta.ToString(), "curReportes")
'Dim lcXml As String = "<impuesto></impuesto>"
'Dim lcPorcentajesImpueto As String
'Dim loImpuestos As New System.Xml.XmlDocument()
'lcPorcentajesImpueto = "("
''Recorre cada renglon de la tabla
'For lnNumeroFila As Integer = 0 To laDatosReporte.Tables(0).Rows.Count - 1
' lcXml = laDatosReporte.Tables(0).Rows(lnNumeroFila).Item("dis_imp")
' If String.IsNullOrEmpty(lcXml.Trim()) Then
' Continue For
' End If
' loImpuestos.LoadXml(lcXml)
' 'En cada renglón lee el contenido de la distribució de impuestos
' For Each loImpuesto As System.Xml.XmlNode In loImpuestos.SelectNodes("impuestos/impuesto")
' If lnNumeroFila = laDatosReporte.Tables(0).Rows.Count - 1 Then
' If CDec(loImpuesto.SelectSingleNode("porcentaje").InnerText) <> 0 Then
' lcPorcentajesImpueto = lcPorcentajesImpueto & ", " & CDec(loImpuesto.SelectSingleNode("porcentaje").InnerText) & "%"
' End If
' End If
' Next loImpuesto
'Next lnNumeroFila
'lcPorcentajesImpueto = lcPorcentajesImpueto & ")"
'lcPorcentajesImpueto = lcPorcentajesImpueto.Replace("(,", "(")
'--------------------------------------------------'
' Carga la imagen del logo en cusReportes '
'--------------------------------------------------'
Me.mCargarLogoEmpresa(laDatosReporte.Tables(0), "LogoEmpresa")
'-------------------------------------------------------------------------------------------------------
' Verificando si el select (tabla nº0) trae registros
'-------------------------------------------------------------------------------------------------------
If (laDatosReporte.Tables(0).Rows.Count <= 0) Then
Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Información", _
"No se Encontraron Registros para los Parámetros Especificados. ", _
vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Informacion, _
"350px", _
"200px")
End If
loObjetoReporte = cusAplicacion.goFormatos.mCargarInforme("PAS_fNotas_Credito", laDatosReporte)
'lcPorcentajesImpueto = lcPorcentajesImpueto.Replace(".", ",")
'CType(loObjetoReporte.ReportDefinition.ReportObjects("Text1"), CrystalDecisions.CrystalReports.Engine.TextObject).Text = lcPorcentajesImpueto.ToString
Me.mTraducirReporte(loObjetoReporte)
Me.mFormatearCamposReporte(loObjetoReporte)
Me.crvPAS_fNotas_Credito.ReportSource = loObjetoReporte
Catch loExcepcion As Exception
Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Error", _
"No se pudo Completar el Proceso: " & loExcepcion.Message, _
vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Error, _
"auto", _
"auto")
End Try
End Sub
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
Try
loObjetoReporte.Close()
Catch loExcepcion As Exception
End Try
End Sub
End Class
'-------------------------------------------------------------------------------------------'
' Fin del codigo '
'-------------------------------------------------------------------------------------------'
' GMO: 16/08/08: Codigo inicial. '
'-------------------------------------------------------------------------------------------'
' JJD: 08/11/08: Ajustes al select. '
'-------------------------------------------------------------------------------------------'
' RJG: 01/09/09: Agregado código para mostrar unidad segundaria. '
'-------------------------------------------------------------------------------------------'
' CMS: 10/09/09: Se ajusto el nombre del articulo para los casos de aquellos articulos gen. '
'-------------------------------------------------------------------------------------------'
' JJD: 09/01/10: Se cambio para que leyera los datos genericos de la Factura cuando aplique.'
'-------------------------------------------------------------------------------------------'
' CMS: 18/03/10: Se aplicaron los metodos carga de imagen y validacion de registro cero. '
'-------------------------------------------------------------------------------------------'
' CMS: 19/03/10: Se a justo la logica para determinar el nombre del cliente '
' (Clientes.Generico = 0 ) a (Clientes.Generico = 0 AND Cuentas_Cobrar.Nom_Cli = '') '
'-------------------------------------------------------------------------------------------'
' MAT: 23/02/11: Se programo la distribución de impuestos para mostrarlo en el formato. '
'-------------------------------------------------------------------------------------------'
' MAT: 19/04/11 : Ajuste de la vista de diseño. '
'-------------------------------------------------------------------------------------------'
' RJG: 06/02/14 : Ajuste de la formato (comentario, indentación...) de código y SQL. '
'-------------------------------------------------------------------------------------------'
| mit |
ohjames/chilon | bin/Makefile | 288 | .PHONY: build clean
build: .obj/chilon_sql_to_source
clean:
rm -rf .obj
.obj/%: %.cpp
@mkdir -p .obj
${CXX} -std=c++0x $^ -o $@ -I ../..
ifeq ($(wildcard .obj/*),)
install:
else
install:
@mkdir -p ${DESTDIR}/${prefix}/bin
@strip .obj/*
@cp .obj/* ${DESTDIR}/${prefix}/bin
endif
| mit |
rdtaylor/SimpleANN | src/test/scala/com/korpisystems/ANN/ANNTest.scala | 3200 | package com.korpisystems.SimpleANN
import org.scalatest.FunSuite
class ANNTest extends FunSuite {
test("ANN learns non-linear XOR properly") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(0)
, List(1)
, List(1)
, List(0)
)
val ann = new ANN(List(2, 4, 1), 1.0)
ann.train(inputs, expected_out, iter=5000)
val xor_1_1 = ann.getOutput(inputs(0))(0)
assert(xor_1_1 < 0.04)
val xor_0_1 = ann.getOutput(inputs(1))(0)
assert(xor_0_1 > 0.96)
val xor_1_0 = ann.getOutput(inputs(2))(0)
assert(xor_1_0 > 0.96)
val xor_0_0 = ann.getOutput(inputs(3))(0)
assert(xor_0_0 < 0.04)
}
test("ANN learns XOR with multiple hidden layers") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(0)
, List(1)
, List(1)
, List(0)
)
val ann = new ANN(List(2, 4, 3, 1), 1.0)
ann.train(inputs, expected_out, iter=5000)
val xor_1_1 = ann.getOutput(inputs(0))(0)
assert(xor_1_1 < 0.04)
val xor_0_1 = ann.getOutput(inputs(1))(0)
assert(xor_0_1 > 0.96)
val xor_1_0 = ann.getOutput(inputs(2))(0)
assert(xor_1_0 > 0.96)
val xor_0_0 = ann.getOutput(inputs(3))(0)
assert(xor_0_0 < 0.04)
}
test("ANN learns first input is output") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(1)
, List(0)
, List(1)
, List(0)
)
val ann = new ANN(List(2, 4, 1), 1.0)
ann.train(inputs, expected_out, iter=5000)
val first_1_1 = ann.getOutput(inputs(0))(0)
assert(first_1_1 > 0.96)
val first_0_1 = ann.getOutput(inputs(1))(0)
assert(first_0_1 < 0.04)
val first_1_0 = ann.getOutput(inputs(2))(0)
assert(first_1_0 > 0.96)
val first_0_0 = ann.getOutput(inputs(3))(0)
assert(first_0_0 < 0.04)
}
test("ANN learns second input is output") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(1)
, List(1)
, List(0)
, List(0)
)
val ann = new ANN(List(2, 4, 1), 1.0)
ann.train(inputs, expected_out, iter=5000)
val first_1_1 = ann.getOutput(inputs(0))(0)
assert(first_1_1 > 0.96)
val first_0_1 = ann.getOutput(inputs(1))(0)
assert(first_0_1 > 0.96)
val first_1_0 = ann.getOutput(inputs(2))(0)
assert(first_1_0 < 0.04)
val first_0_0 = ann.getOutput(inputs(3))(0)
assert(first_0_0 < 0.04)
}
test("UnevenTrainingInstanceLists thrown properly") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(1)
, List(0)
, List(1)
)
val ann = new ANN(List(2, 4, 1), 1.0)
intercept[Exceptions.UnevenTrainingInstanceLists] {
ann.train(inputs, expected_out, iter=5000)
}
}
}
| mit |
alxhub/angular | aio/src/test.ts | 640 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
| mit |
Peekmo/RPGit | api/filters.go | 953 | /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /*
@author Axel Anceau - 2014
Package api contains general tools
*/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
package api
import (
"fmt"
"github.com/revel/revel"
"runtime/debug"
)
/**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /*
PanicFilter renders a panic as JSON
@see revel/panic.go
*/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
func PanicFilter(c *revel.Controller, fc []revel.Filter) {
defer func() {
if err := recover(); err != nil && err != "HttpException" {
error := revel.NewErrorFromPanic(err)
if error == nil {
revel.ERROR.Print(err, "\n", string(debug.Stack()))
c.Response.Out.WriteHeader(500)
c.Response.Out.Write(debug.Stack())
return
}
revel.ERROR.Print(err, "\n", error.Stack)
c.Result = HttpException(c, 500, fmt.Sprint(err))
}
}()
fc[0](c, fc[1:])
}
| mit |
zhenyaracheva/TelerikAcademy | CSS/CSSLayout/01.tree-view.html | 1546 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tree View</title>
<link href="01.tree-view.css" rel="stylesheet" />
</head>
<body>
<nav>
<ul class="first">
<li>
<a href="#">List Item</a>
<ul>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
</ul>
</li>
<li>
<a href="#">List Item</a>
<ul>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
</ul>
</li>
<li>
<a href="#">List Item</a>
<ul>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
<li>
<a href="#">Sublist item</a>
</li>
</ul>
</li>
<li>
<a href="#">List Item</a>
<ul>
<li>
<a href="#">Sublist item</a>
</li>
</ul>
</li>
</ul>
</nav>
</body>
</html>
| mit |
silshack/summer2017 | _posts/nurahill/2017-05-30-nurahill-clicky-turtle.md | 1910 | ---
layout: post
author: nurahill
title: "Nura's Clicky turtle excercise"
---
Here is my code for option 1:
<iframe src="https://trinket.io/embed/python/3c8744a1ac" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
On option one, as usual, it took me a bit to come up with an idea of a program for this one. I ended up deciding to draw a ground and sky. on lines 38-46 i created my clicky funtion. I made it so if tinas y coordinate of the place you click on is greater than -152 it would draw a star (on the sky), and if it was less than it would draw a flower (on the ground). My helper functions are the star and flower.
Here is my code for option 2:
<iframe src="https://trinket.io/embed/python/b8a6b80918" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
I wasnt able to get to do a whole lot with option two. I bascially was just able to make it work, as it took me sometime to get it working properly. I created the list of colors so by clicking on shift, the turle color would change to different colors. Below is where i was able to use randint to make it choose a random color. where it says [randint(0,len(color)-1)] it means that I want it to pick a random color (randint) from 0 to the length of color, -1 (-1 makes sure that it never picks a color out of range)
```
# Define a function to change the color
def color_change():
tina.color(colors[randint(0,len(colors)-1)])
```
I feel like this excersice was a good foundation to build on futher in the future. Its pretty cool to able to manipulate the turtle with the keyboard and make it draw things. I particularly like that penup and pendown part that i created (wich you can turn on or off by clicking 'u') becaue that gave me the ability to draw things (like a square, triabgle, etc.). Th e penup/pendown was my something creative!
| mit |
SCLInternet/SclZfCurrency | src/SCL/ZF2/Currency/Form/Fieldset/TaxedPrice.php | 581 | <?php
namespace SCL\ZF2\Currency\Form\Fieldset;
use Zend\Form\Fieldset;
class TaxedPrice extends Fieldset
{
const AMOUNT_LABEL = 'Amount';
const TAX_LABEL = 'Tax';
public function init()
{
$this->add([
'name' => 'amount',
'type' => 'text',
'options' => [
'label' => self::AMOUNT_LABEL,
]
]);
$this->add([
'name' => 'tax',
'type' => 'text',
'options' => [
'label' => self::TAX_LABEL,
]
]);
}
}
| mit |
IsaacMiguel/ProchemBio | routes.js | 12314 | var indexController = require('./controllers/cIndex');
var usuarioController = require('./controllers/cUsuario');
var clientesController = require('./controllers/cCliente');
var adminController = require('./controllers/cAdmin');
var umedController = require('./controllers/cUmed');
var matepController = require('./controllers/cMatep');
var empleController = require('./controllers/cEmple');
var accesosController = require('./controllers/cAccesos');
var cargoController = require('./controllers/cCargos');
var reactoController = require('./controllers/cReacto');
var lineasController = require('./controllers/cLineas');
var prodController = require('./controllers/cProd');
var envasesController = require('./controllers/cEnvases');
var tanquesController = require('./controllers/cTanques');
var ubicaController = require('./controllers/cUbica');
var recetaController = require('./controllers/cReceta');
var remitosController = require('./controllers/cRemitos');
var progController = require('./controllers/cProgramacion');
var FormEnReactorController = require('./controllers/cFormEnReactor');
var labController = require('./controllers/cLab');
var formController = require('./controllers/cFormulados');
var mEventos = require('./models/mEventos');
var consuController = require('./controllers/cConsumibles');
var produccionController = require('./controllers/cProduccion');
var fraccionadoController = require('./controllers/cFraccionado');
var aprobacionController = require('./controllers/cAprobacion');
var navesController = require('./controllers/cNaves');
var mapaController = require('./controllers/cMapa');
function logout (req, res) {
fecha = new Date();
day = fecha.getDate();
month = fecha.getMonth();
if (day<10)
day = "0" + day;
if (month<10)
month = "0" + month;
fecha = fecha.getFullYear() + "/"+month+"/"+day+" "+fecha.getHours()+":"+fecha.getMinutes()
mEventos.add(req.session.user.unica, fecha, "Logout", "", function(){
});
req.session = null;
return res.redirect('/');
}
// Verifica que este logueado
function auth (req, res, next) {
if (req.session.auth) {
return next();
} else {
console.log("dentro del else del auth ")
return res.redirect('/')
}
}
module.exports = function(app) {
app.get('/', adminController.getLogin);
app.get('/login', adminController.getLogin)
app.post('/login', adminController.postLogin);
app.get('/logout', logout);
app.get('/inicio', auth, indexController.getInicio);
app.get('/error', indexController.getError);
//ayuda
app.get('/ayuda', indexController.getAyuda);
app.get('/ayudaver/:id', indexController.AyudaVer);
//novedades
app.get('/listanovedades', indexController.getNovedades);
//usuarios
app.get('/usuarioslista', auth, usuarioController.getUsuarios);
app.get('/usuariosalta', auth, usuarioController.getUsuariosAlta);
app.post('/usuariosalta', auth, usuarioController.putUsuario);
app.get('/usuariosmodificar/:id', auth, usuarioController.getUsuarioModificar);
app.post('/usuariosmodificar', auth, usuarioController.postUsuarioModificar);
app.get('/usuariosborrar/:id', auth, usuarioController.getDelUsuario);
//configurar accesos
app.get('/accesoslista/:id', auth, accesosController.getAccesos);
app.post('/accesoslista', auth, accesosController.postAccesos);
//clientes
app.get('/clienteslista', auth, clientesController.getClientes);
app.get('/clientesalta', auth, clientesController.getClientesAlta);
app.post('/clientesalta', auth, clientesController.putCliente);
app.get('/clientesmodificar/:id', auth, clientesController.getClienteModificar);
app.post('/clientesmodificar', auth, clientesController.postClienteModificar);
app.get('/clientesborrar/:id', auth, clientesController.getDelCliente);
app.get('/:cliente/materiasprimas', auth, clientesController.getMatep);
//unidades de medida "umed"
app.get('/umedlista', auth, umedController.getAllUmed);
app.get('/umedalta', auth, umedController.getAlta);
app.post('/umedalta', auth, umedController.postAlta);
app.get('/umedmodificar/:id', auth, umedController.getModificar);
app.post('/umedactualizar', auth, umedController.postModificar);
app.get('/umedborrar/:id', auth, umedController.getDelUmed);
//materias primas por cliente
app.get('/mateplista/:cdcliente', auth, matepController.getAllMatepPorCliente);
app.get('/matepalta/:cdcliente', auth, matepController.getAlta);
app.post('/matepalta', auth, matepController.postAlta);
app.get('/matepmodificar/:id', auth, matepController.getModificar);
app.post('/matepmodificar', auth, matepController.postModificar);
app.get('/matepborrar/:id', auth, matepController.getDelMatep);
//cantidad maxima en tanque por matep
app.get('/formenreactor/:id', auth, FormEnReactorController.getFormEnReactor);
app.get('/formenreactoralta/:idform', auth, FormEnReactorController.getAlta);
app.post('/formenreactoralta', auth, FormEnReactorController.postAlta);
app.get('/formenreactormodificar/:id', auth, FormEnReactorController.getModificar);
app.post('/formenreactormodificar', auth, FormEnReactorController.postModificar);
app.get('/formenreactorborrar/:id', auth, FormEnReactorController.del);
//producto por clientereactor
app.get('/prodlista/:cdcliente', auth, prodController.getAllProdPorCliente);
app.get('/prodalta/:cdcliente', auth, prodController.getAlta);
app.post('/prodalta', auth, prodController.postAlta);
app.get('/prodmodificar/:id', auth, prodController.getModificar);
app.post('/prodmodificar', auth, prodController.postModificar);
app.get('/prodborrar/:id', auth, prodController.getDelProd);
app.get('/:idprod/ablote', auth, prodController.getAbLote);
//empleados
app.get('/emplelista', auth, empleController.getEmpleados);
app.get('/emplealta', auth, empleController.getAlta);
app.post('/emplealta', auth, empleController.postAlta);
app.get('/emplemodificar/:codigo', auth, empleController.getModificar);
app.post('/emplemodificar', auth, empleController.postModificar);
app.get('/empleborrar/:codigo', auth, empleController.getDelEmple);
//cargos de empleados
app.get('/cargoslista', auth, cargoController.getAllCargos);
app.get('/cargosalta', auth, cargoController.getAlta);
app.post('/cargosalta', auth, cargoController.postAlta);
app.get('/cargosmodificar/:id', auth, cargoController.getModificar);
app.post('/cargosmodificar', auth, cargoController.postModificar);
app.get('/cargosborrar/:id', auth, cargoController.getDelCargo);
//reactores
app.get('/reactolista', auth, reactoController.getAll);
app.get('/reactoalta', auth, reactoController.getAlta);
app.post('/reactoalta', auth, reactoController.postAlta);
app.get('/reactomodificar/:id', auth, reactoController.getModificar);
app.post('/reactomodificar', auth, reactoController.postModificar);
app.get('/reactoborrar/:id', auth, reactoController.getDel);
//lineas
app.get('/lineaslista', auth, lineasController.getAll);
app.get('/lineasalta', auth, lineasController.getAlta);
app.post('/lineasalta', auth, lineasController.postAlta);
app.get('/lineasmodificar/:id', auth, lineasController.getModificar);
app.post('/lineasmodificar', auth, lineasController.postModificar);
app.get('/lineasborrar/:id', auth, lineasController.getDel);
//envases
app.get('/envaseslista', auth, envasesController.getAll);
app.get('/envasesalta', auth, envasesController.getAlta);
app.post('/envasesalta', auth, envasesController.postAlta);
app.get('/envasesmodificar/:id', auth, envasesController.getModificar);
app.post('/envasesmodificar', auth, envasesController.postModificar);
app.get('/envasesborrar/:id', auth, envasesController.getDel);
app.get('/capacidadenvase/:id', auth, envasesController.getCapacidad);
//tanques
app.get('/tanqueslista', auth, tanquesController.getAll);
app.get('/tanquesalta', auth, tanquesController.getAlta);
app.post('/tanquesalta', auth, tanquesController.postAlta);
app.get('/tanquesmodificar/:id', auth, tanquesController.getModificar);
app.post('/tanquesmodificar', auth, tanquesController.postModificar);
app.get('/tanquesborrar/:id', auth, tanquesController.getDel);
//ubicaciones "ubica"
app.get('/ubicalista', auth, ubicaController.getAll);
app.get('/ubicaalta', auth, ubicaController.getAlta);
app.post('/ubicaalta', auth, ubicaController.postAlta);
app.get('/ubicamodificar/:id', auth, ubicaController.getModificar);
app.post('/ubicamodificar', auth, ubicaController.postModificar);
app.get('/ubicaborrar/:id', auth, ubicaController.getDel);
//recetas
app.get('/recetalista/:id', auth, recetaController.getRecetaPorFormulado);
app.get('/recetaalta/:id', auth, recetaController.getAlta);
app.post('/recetaalta', auth, recetaController.postAlta);
app.get('/recetaborrar/:id', auth, recetaController.getDel);
app.get('/recetamodificar/:id', auth, recetaController.getModificar);
app.post('/recetamodificar', auth, recetaController.postModificar);
//remitos
app.get('/remitoslista', auth, remitosController.getAll);
app.get('/remitosalta', auth, remitosController.getAlta);
app.post('/remitosalta', auth, remitosController.postAlta);
app.get('/remitosmodificar/:id', auth, remitosController.getModificar);
app.post('/remitosmodificar', auth, remitosController.postModificar);
app.get('/remitosborrar/:id', auth, remitosController.getDel);
app.get('/buscarremito/:finicio/:ffin', auth, remitosController.getRemitos);
//programacion
app.get('/prog1lista', auth, progController.getAll);
app.get('/prog1alta', auth, progController.getAlta);
app.post('/prog1alta', auth, progController.postAlta);
app.get('/prog2lista', auth, progController.getLista);
app.get('/prog1alta2/:idprog', auth, progController.getAlta2);
app.post('/prog1alta2', auth, progController.postAlta2);
app.get('/prog1/:lote/:anio/:clienteid/:prodid', auth, progController.getCodigo);
app.get('/prog1borrar/:id', auth, progController.getDel);
app.get('/refrescaremito/:idcliente/:idmatep', auth, progController.getRemitos);
app.get('/traerpa/:idform', auth, progController.getPA);
app.get('/buscarprogramaciones/:fecha', auth, progController.getProgramaciones);
app.get('/produccionborrarprogram/:id', auth, progController.getDelProgram);
//laboratorio
app.get('/lab/:idremito', auth, labController.getLab);
app.post('/lab', auth, labController.postLab);
//formulados
app.get('/formuladoalta/:cdcliente', auth, formController.getAlta);
app.post('/formuladoalta', auth, formController.postAlta);
app.get('/formuladolista/:cdcliente', auth, formController.getAllFormuladoPorCliente);
app.get('/formuladomodificar/:id', auth, formController.getModificar);
app.post('/formuladomodificar', auth, formController.postModificar);
app.get('/formuladoborrar/:id', auth, formController.getDelFormulado);
app.get('/:id/formulados', auth, formController.getForms);
app.get('/:idform/ablotee', auth, formController.getAbLote);
//consumibles
app.get('/consumibleslista/:idprod', auth, consuController.getAll);
app.get('/consumiblesalta/:idprod', auth, consuController.getAlta);
app.post('/consumiblesalta', auth, consuController.postAlta);
app.get('/consumiblesborrar/:id', auth, consuController.getDel);
//produccion
app.get('/produccionlista', auth, produccionController.getLista);
app.get('/buscarprogramaciones2/:fi/:ff', auth, produccionController.getProgramaciones);
app.get('/produccionver/:id', auth, produccionController.getVerFormulado);
app.post('/produccionver', auth, produccionController.postDatosFormulado);
app.get('/produccionimprimir/:id', auth, produccionController.getImprimir);
//borrar
//fraccionado
app.get('/fraccionadolista', auth, fraccionadoController.getLista);
app.get('/fraccionadoalta/:id', auth, fraccionadoController.getAlta);
app.post('/fraccionadoalta', auth, fraccionadoController.postAlta);
app.get('/fraccionadomodificar/:id', auth, fraccionadoController.getModificar);
app.post('/fraccionadomodificar', auth, fraccionadoController.postModificar);
//borrar?
//aprobacion
app.get('/aprobacionlista', auth, aprobacionController.getLista);
app.get('/aprobacionver/:id', auth, aprobacionController.getVer);
app.post('/aprobacionver', auth, aprobacionController.postVer);
app.get('/aprobacionimprimir/:id', auth, aprobacionController.getImprimir);
//naves
app.get('/naveslista', auth, navesController.getLista);
//mapa
app.get('/mapaver', auth, mapaController.getMapa);
}; | mit |
sergiormb/ritsiga | src/AppBundle/Behat/BrowserContext.php | 1153 | <?php
/**
* Created by PhpStorm.
* User: tfg
* Date: 25/08/15
* Time: 20:03
*/
namespace AppBundle\Behat;
use Sylius\Bundle\ResourceBundle\Behat\DefaultContext;
class BrowserContext extends DefaultContext
{
/**
* @Given estoy autenticado como :username con :password
*/
public function iAmAuthenticated($username, $password)
{
$this->getSession()->visit($this->generateUrl('fos_user_security_login', [], true));
$this->fillField('_username', $username);
$this->fillField('_password', $password);
$this->pressButton('_submit');
}
/**
* @Then /^presiono "([^"]*)" con clase "([^"]*)"$/
*
* @param string $text
* @param string $class
*/
public function iFollowLinkWithClass($text, $class)
{
$link = $this->getSession()->getPage()->find(
'xpath', sprintf("//*[@class='%s' and contains(., '%s')]", $class, $text)
);
if (!$link) {
throw new ExpectationException(sprintf('Unable to follow the link with class: %s and text: %s', $class, $text), $this->getSession());
}
$link->click();
}
} | mit |
jacksarick/My-Code | Python/python challenges/euler/012_divisable_tri_nums.py | 219 | ## Close
### What is the value of the first triangle number to have over five hundred divisors?
print max([len(m) for m in map(lambda k: [n for n in range(1,(k+1)) if k%n == 0], [sum(range(n)) for n in range(1,1000)])]) | mit |
shopOFF/Autos4Sale | Autos4Sale/Data/Autos4Sale.Data.Models/Properties/AssemblyInfo.cs | 1415 | 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("Autos4Sale.Data.Models")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Autos4Sale.Data.Models")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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("280798cb-7923-404f-90bb-e890b732d781")]
// 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")]
| mit |
Livefyre/pseudonym | pseudonym/__init__.py | 55 | from errors import *
from manager import SchemaManager
| mit |
syrma-php/web-container | src/Syrma/WebContainer/ServerInterface.php | 552 | <?php
namespace Syrma\WebContainer;
/**
*
*/
interface ServerInterface
{
/**
* Start the server.
*
* @param ServerContextInterface $context
* @param RequestHandlerInterface $requestHandler
*/
public function start(ServerContextInterface $context, RequestHandlerInterface $requestHandler);
/**
* Stop the server.
*/
public function stop();
/**
* The server is avaiable.
*
* Here check requirements
*
* @return bool
*/
public static function isAvaiable();
}
| mit |
iiet/iiet-git | doc/development/fe_guide/architecture.md | 792 | # Architecture
When you are developing a new feature that requires architectural design, or if
you are changing the fundamental design of an existing feature, make sure it is
discussed with one of the Frontend Architecture Experts.
A Frontend Architect is an expert who makes high-level Frontend design decisions
and decides on technical standards, including coding standards and frameworks.
Architectural decisions should be accessible to everyone, so please document
them in the relevant Merge Request discussion or by updating our documentation
when appropriate.
You can find the Frontend Architecture experts on the [team page](https://about.gitlab.com/team).
## Examples
You can find documentation about the desired architecture for a new feature
built with Vue.js [here](vue.md).
| mit |
herimedia/mailchimp-gem | lib/mailchimp/api.rb | 1894 | module Mailchimp
class API
include HTTParty
format :plain
default_timeout 30
attr_accessor :api_key, :timeout, :throws_exceptions
def initialize(api_key = nil, extra_params = {})
@api_key = api_key || ENV['MAILCHIMP_API_KEY'] || self.class.api_key
@default_params = {:apikey => @api_key}.merge(extra_params)
@throws_exceptions = false
end
def api_key=(value)
@api_key = value
@default_params = @default_params.merge({:apikey => @api_key})
end
def base_api_url
"https://#{dc_from_api_key}api.mailchimp.com/1.3/?method="
end
def valid_api_key?(*args)
"Everything's Chimpy!" == call("ping")
end
protected
def call(method, params = {})
api_url = base_api_url + method
params = @default_params.merge(params)
timeout = params.delete(:timeout) || @timeout
response = self.class.post(api_url, :body => CGI::escape(params.to_json), :timeout => timeout)
begin
response = JSON.parse(response.body)
rescue
response = JSON.parse('['+response.body+']').first
end
if @throws_exceptions && response.is_a?(Hash) && response["error"]
raise "Error from MailChimp API: #{response["error"]} (code #{response["code"]})"
end
response
end
def method_missing(method, *args)
method = method.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase } #Thanks for the gsub, Rails
method = method[0].chr.downcase + method[1..-1].gsub(/aim$/i, 'AIM')
call(method, *args)
end
class << self
attr_accessor :api_key
def method_missing(sym, *args, &block)
new(self.api_key).send(sym, *args, &block)
end
end
def dc_from_api_key
(@api_key.nil? || @api_key.length == 0 || @api_key !~ /-/) ? '' : "#{@api_key.split("-").last}."
end
end
end
| mit |
CommonAccord/Cmacc-Org | Doc/Wx/com/cooleygo/US/Consult/Sec/Confidentiality_Ownership_v01.md | 194 | Ti=Ownership
sec=All {_Confidential_Information} furnished to {_the_Consultant} by {_the_Client} is the sole and exclusive property of {_the_Client} or its suppliers or customers.
=[G/Z/ol/0]
| mit |
gokr/ardunimo | wrapper/src/cores/arduino/Print.cpp | 5552 | /*
Print.cpp - Base class that provides print() and println()
Copyright (c) 2008 David A. Mellis. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
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.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Modified 23 November 2006 by David A. Mellis
Modified 20 Aug 2014 by MediaTek Inc.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "Arduino.h"
#include "Print.h"
// Public Methods //////////////////////////////////////////////////////////////
/* default implementation: may be overridden */
size_t Print::write(const uint8_t *buffer, size_t size)
{
size_t n = 0;
while (size--) {
n += write(*buffer++);
}
return n;
}
size_t Print::print(const __FlashStringHelper *ifsh)
{
return print(reinterpret_cast<const char *>(ifsh));
}
size_t Print::print(const String &s)
{
return write(s.c_str(), s.length());
}
size_t Print::print(const char str[])
{
return write(str);
}
size_t Print::print(char c)
{
return write(c);
}
size_t Print::print(unsigned char b, int base)
{
return print((unsigned long) b, base);
}
size_t Print::print(int n, int base)
{
return print((long) n, base);
}
size_t Print::print(unsigned int n, int base)
{
return print((unsigned long) n, base);
}
size_t Print::print(long n, int base)
{
if (base == 0) {
return write(n);
} else if (base == 10) {
if (n < 0) {
int t = print('-');
n = -n;
return printNumber(n, 10) + t;
}
return printNumber(n, 10);
} else {
return printNumber(n, base);
}
}
size_t Print::print(unsigned long n, int base)
{
if (base == 0) return write(n);
else return printNumber(n, base);
}
size_t Print::print(double n, int digits)
{
return printFloat(n, digits);
}
size_t Print::println(const __FlashStringHelper *ifsh)
{
size_t n = print(ifsh);
n += println();
return n;
}
size_t Print::print(const Printable& x)
{
return x.printTo(*this);
}
size_t Print::println(void)
{
size_t n = print('\r');
n += print('\n');
return n;
}
size_t Print::println(const String &s)
{
size_t n = print(s);
n += println();
return n;
}
size_t Print::println(const char c[])
{
size_t n = print(c);
n += println();
return n;
}
size_t Print::println(char c)
{
size_t n = print(c);
n += println();
return n;
}
size_t Print::println(unsigned char b, int base)
{
size_t n = print(b, base);
n += println();
return n;
}
size_t Print::println(int num, int base)
{
size_t n = print(num, base);
n += println();
return n;
}
size_t Print::println(unsigned int num, int base)
{
size_t n = print(num, base);
n += println();
return n;
}
size_t Print::println(long num, int base)
{
size_t n = print(num, base);
n += println();
return n;
}
size_t Print::println(unsigned long num, int base)
{
size_t n = print(num, base);
n += println();
return n;
}
size_t Print::println(double num, int digits)
{
size_t n = print(num, digits);
n += println();
return n;
}
size_t Print::println(const Printable& x)
{
size_t n = print(x);
n += println();
return n;
}
#include <stdarg.h>
size_t Print::printf(const char *fmt, ...)
{
va_list args;
char buf[256] = {0};
va_start(args, fmt);
vsprintf(buf, fmt, args);
va_end(args);
return write(buf, strlen(buf));
}
// Private Methods /////////////////////////////////////////////////////////////
size_t Print::printNumber(unsigned long n, uint8_t base) {
char buf[8 * sizeof(long) + 1]; // Assumes 8-bit chars plus zero byte.
char *str = &buf[sizeof(buf) - 1];
*str = '\0';
// prevent crash if called with base == 1
if (base < 2) base = 10;
do {
unsigned long m = n;
n /= base;
char c = m - base * n;
*--str = c < 10 ? c + '0' : c + 'A' - 10;
} while(n);
return write(str);
}
size_t Print::printFloat(double number, uint8_t digits)
{
size_t n = 0;
if (isnan(number)) return print("nan");
if (isinf(number)) return print("inf");
if (number > 4294967040.0) return print ("ovf"); // constant determined empirically
if (number <-4294967040.0) return print ("ovf"); // constant determined empirically
// Handle negative numbers
if (number < 0.0)
{
n += print('-');
number = -number;
}
// Round correctly so that print(1.999, 2) prints as "2.00"
double rounding = 0.5;
for (uint8_t i=0; i<digits; ++i)
rounding /= 10.0;
number += rounding;
// Extract the integer part of the number and print it
unsigned long int_part = (unsigned long)number;
double remainder = number - (double)int_part;
n += print(int_part);
// Print the decimal point, but only if there are digits beyond
if (digits > 0) {
n += print(".");
}
// Extract digits from the remainder one at a time
while (digits-- > 0)
{
remainder *= 10.0;
int toPrint = int(remainder);
n += print(toPrint);
remainder -= toPrint;
}
return n;
}
| mit |
caohonghiep/lkth | src/app/services/events.service.ts | 1639 | import { Injectable } from '@angular/core';
/**
* Created by AAAA on 3/21/2017.
*/
//http://stackoverflow.com/questions/9671995/javascript-custom-event-listener
//http://www.typescriptlang.org/play/
class MyEvent{
private context:Object;
private cbs: Function[] = [];
constructor(context: Object){
this.context = context;
}
public addListener(cb: Function){
this.cbs.push(cb);
}
public removeListener(cb: Function){
let i = this.cbs.indexOf(cb);
if (i >-1) {
this.cbs.splice(i, 1);
}
}
public removeAllListeners(){
this.cbs=[];
}
public trigger(...args){
this.cbs.forEach(cb => cb.apply(this.context, args))
};
}
class EventContainer{
private events: MyEvent[]= [];
public createEvent(context:Object):MyEvent{
let myEvent = new MyEvent(context);
this.events.push(myEvent);
return myEvent;
}
public removeEvent(myEvent:MyEvent):void{
let i = this.events.indexOf(myEvent);
if (i >-1) {
this.events.splice(i, 1);
}
};
public trigger(...args):void{
this.events.forEach(event => event.trigger(args));
};
}
class LoginEvent extends EventContainer{}
class LogoutEvent extends EventContainer{}
@Injectable()
export class EventsService {
private _loginEvent:LoginEvent;
private _logoutEvent:LogoutEvent;
constructor() {}
get loginEvent():LoginEvent{
if(!this._loginEvent) {
this._loginEvent = new LoginEvent();
}
return this._loginEvent;
}
get logoutEvent():LogoutEvent{
if(!this._logoutEvent) {
this._logoutEvent = new LogoutEvent();
}
return this._logoutEvent;
}
}
| mit |
ndt93/tetris | scripts/agent3.py | 5234 | import random
from datetime import datetime
from multiprocessing import Pool
import numpy as np
from scipy.optimize import minimize
def worker_func(args):
self = args[0]
m = args[1]
k = args[2]
r = args[3]
return (self.eval_func(m, k, r) -
self.eval_func(m, k, self.rt) -
self.temporal_diff_sum(m, k)) ** 2
def optimized_func_i_der(args):
"""
The derivative of the optimized function with respect to the
ith component of the vector r
"""
self = args[0]
r = args[1]
i = args[2]
result = 0
M = len(self.data)
for m in range(M):
Nm = self.data[m].shape[0] - 1
for k in range(Nm + 1):
result += ((self.eval_func(m, k, r) -
self.eval_func(m, k, self.rt) -
self.temporal_diff_sum(m, k)) * 2 *
self.eval_func_der(m, k, r, i))
return result
def worker_func_der(args):
self = args[0]
m = args[1]
k = args[2]
r = args[3]
i = args[4]
return ((self.eval_func(m, k, r) -
self.eval_func(m, k, self.rt) -
self.temporal_diff_sum(m, k)) * 2 *
self.eval_func_der(m, k, r, i))
class Agent:
num_features = 22
def __init__(self):
self.lf = 0.2 # Learning factor lambda
self.data = [] # The features' values for all the games
self.rewards = [] # Reward values for moving from 1 state to the next
self.rt = np.array([])
self.max_iter = 50
def set_learning_factor(self, learning_factor):
assert(learning_factor >= 0 and learning_factor <= 1)
self.lf = learning_factor
def set_rt(self, rt):
assert(len(rt) == self.num_features)
self.rt = rt
def set_iter(self, max_iter):
self.max_iter = max_iter
def set_data(self, data):
self.data = []
self.rewards = []
for game in data:
game = np.vstack((game, np.zeros(self.num_features + 1)))
self.data.append(game[:, :-1])
self.rewards.append(game[:, -1:])
def eval_func(self, m, k, r):
"""
The evaluation function value for the set of weights (vector) r
at the mth game and kth board state """
return np.dot(r, self.data[m][k])
def eval_func_der(self, m, k, r, i):
"""
Find the derivative of the evaluation function with respect
to the ith component of the vector r
"""
return self.data[m][k][i]
def get_reward(self, m, s):
"""
Get reward for moving from state s to state (s + 1)
"""
return self.rewards[m][s + 1][0]
def temporal_diff(self, m, s):
"""
The temporal diffence value for state s to state (s+1) in the mth game
"""
return (self.get_reward(m, s) + self.eval_func(m, s + 1, self.rt) -
self.eval_func(m, s, self.rt))
def temporal_diff_sum(self, m, k):
Nm = self.data[m].shape[0] - 1
result = 0
for s in range(k, Nm):
result += self.lf**(s - k) * self.temporal_diff(m, s)
return result
def optimized_func(self, r):
result = 0
M = len(self.data)
pool = Pool(processes=4)
for m in range(M):
Nm = self.data[m].shape[0] - 1
k_args = range(Nm + 1)
self_args = [self] * len(k_args)
m_args = [m] * len(k_args)
r_args = [r] * len(k_args)
result += sum(pool.map(worker_func,
zip(self_args, m_args, k_args, r_args)))
return result
def optimized_func_i_der(self, r, i):
"""
The derivative of the optimized function with respect to the
ith component of the vector r
"""
result = 0
M = len(self.data)
for m in range(M):
Nm = self.data[m].shape[0] - 1
for k in range(Nm + 1):
result += ((self.eval_func(m, k, r) -
self.eval_func(m, k, self.rt) -
self.temporal_diff_sum(m, k)) * 2 *
self.eval_func_der(m, k, r, i))
return result
def optimized_func_der(self, r):
p = Pool(processes=4)
self_args = [self] * len(r)
i_args = range(len(r))
r_args = [r] * len(r)
return np.array(p.map(optimized_func_i_der,
zip(self_args, r_args, i_args)))
def callback(self, r):
print("Iteration %d completed at %s" %
(self.cur_iter, datetime.now().strftime("%d/%m/%Y %H:%M:%S")))
self.cur_iter += 1
def compute_next_rt(self):
print("Start computing at %s" %
(datetime.now().strftime("%d/%m/%Y %H:%M:%S")))
self.cur_iter = 1
r0 = np.array([random.randint(-10, 10)
for i in range(self.num_features)])
res = minimize(self.optimized_func, r0, method='BFGS',
jac=self.optimized_func_der,
options={'maxiter': self.max_iter, 'disp': True},
callback=self.callback)
return res.x
| mit |
jwright/porch | spec/porch/step_decorators/proc_step_decorator_spec.rb | 747 | RSpec.describe Porch::ProcStepDecorator do
describe ".decorates?" do
it "returns true if the step is a proc" do
expect(described_class).to be_decorates Proc.new {}
end
it "returns true if the step is a lambda" do
expect(described_class).to be_decorates lambda {}
end
it "returns false if the step is a class" do
expect(described_class).to_not be_decorates Object
end
end
describe "#execute" do
let(:context) { Hash.new }
let(:organizer) { double(:organizer) }
let(:step) { Proc.new {} }
subject { described_class.new step, organizer }
it "calls the proc with the context" do
expect(step).to receive(:call).with(context)
subject.execute context
end
end
end
| mit |
Symplify/MultiCodingStandard | tests/PhpCsFixer/Factory/FixerFactoryTest.php | 1399 | <?php
declare(strict_types=1);
namespace Symplify\MultiCodingStandard\Tests\PhpCsFixer\Factory;
use PhpCsFixer\Fixer\FixerInterface;
use PHPUnit\Framework\TestCase;
use Symplify\MultiCodingStandard\PhpCsFixer\Factory\FixerFactory;
final class FixerFactoryTest extends TestCase
{
/**
* @var FixerFactory
*/
private $fixerFactory;
protected function setUp()
{
$this->fixerFactory = new FixerFactory();
}
/**
* @dataProvider provideCreateData
*/
public function testResolveFixerLevels(
array $fixerLevels,
array $fixers,
array $excludedFixers,
int $expectedFixerCount
) {
$fixers = $this->fixerFactory->createFromLevelsFixersAndExcludedFixers($fixerLevels, $fixers, $excludedFixers);
$this->assertCount($expectedFixerCount, $fixers);
if (count($fixers)) {
$fixer = $fixers[0];
$this->assertInstanceOf(FixerInterface::class, $fixer);
}
}
public function provideCreateData() : array
{
return [
[[], [], [], 0],
[[], ['no_whitespace_before_comma_in_array'], [], 1],
[['psr1'], [], [], 2],
[['psr2'], [], [], 24],
[['psr2'], [], ['visibility'], 24],
[['psr1', 'psr2'], [], [], 26],
[['psr1', 'psr2'], [], ['visibility'], 26],
];
}
}
| mit |
chrisenytc/pydemi | api/controllers/users.py | 1151 | # -*- coding: utf-8 -*-
""""
ProjectName: pydemi
Repo: https://github.com/chrisenytc/pydemi
Copyright (c) 2014 Christopher EnyTC
Licensed under the MIT license.
"""
# Dependencies
import uuid
from api import app
from hashlib import sha1
from flask import request
from flask import jsonify as JSON
from api.models.user import User
from cors import cors
@app.route('/signup', methods=['POST'])
@cors(origin='*', methods=['POST'])
def signup():
# Create new user
new_user = User()
new_user.name = request.form['name']
new_user.email = request.form['email']
new_user.password = sha1(request.form['password']).hexdigest()
new_user.token = str(uuid.uuid4())
new_user.save()
return JSON(message='User created successfully')
@app.route('/signin', methods=['POST'])
@cors(origin='*', methods=['POST'])
def signin():
# Retorna a user data
user_info = User.objects(email=request.form['email'], password=sha1(
request.form['password']).hexdigest())
if user_info.count():
return JSON(token=user_info.get().token, roles=user_info.get().roles)
else:
return JSON(message='User not found')
| mit |
MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/node-addon-api/test/error.js | 2328 | 'use strict';
const buildType = process.config.target_defaults.default_configuration;
const assert = require('assert');
if (process.argv[2] === 'fatal') {
const binding = require(process.argv[3]);
binding.error.throwFatalError();
return;
}
test(`./build/${buildType}/binding.node`);
test(`./build/${buildType}/binding_noexcept.node`);
function test(bindingPath) {
const binding = require(bindingPath);
assert.throws(() => binding.error.throwApiError('test'), function(err) {
return err instanceof Error && err.message.includes('Invalid');
});
assert.throws(() => binding.error.throwJSError('test'), function(err) {
return err instanceof Error && err.message === 'test';
});
assert.throws(() => binding.error.throwTypeError('test'), function(err) {
return err instanceof TypeError && err.message === 'test';
});
assert.throws(() => binding.error.throwRangeError('test'), function(err) {
return err instanceof RangeError && err.message === 'test';
});
assert.throws(
() => binding.error.doNotCatch(
() => {
throw new TypeError('test');
}),
function(err) {
return err instanceof TypeError && err.message === 'test' && !err.caught;
});
assert.throws(
() => binding.error.catchAndRethrowError(
() => {
throw new TypeError('test');
}),
function(err) {
return err instanceof TypeError && err.message === 'test' && err.caught;
});
const err = binding.error.catchError(
() => { throw new TypeError('test'); });
assert(err instanceof TypeError);
assert.strictEqual(err.message, 'test');
const msg = binding.error.catchErrorMessage(
() => { throw new TypeError('test'); });
assert.strictEqual(msg, 'test');
assert.throws(() => binding.error.throwErrorThatEscapesScope('test'), function(err) {
return err instanceof Error && err.message === 'test';
});
assert.throws(() => binding.error.catchAndRethrowErrorThatEscapesScope('test'), function(err) {
return err instanceof Error && err.message === 'test' && err.caught;
});
const p = require('./napi_child').spawnSync(
process.execPath, [ __filename, 'fatal', bindingPath ]);
assert.ifError(p.error);
assert.ok(p.stderr.toString().includes(
'FATAL ERROR: Error::ThrowFatalError This is a fatal error'));
}
| mit |
Manoj-Bisht/WebAPI-Boilerplate | WebAPI.Boilerplate.Api/App_Start/BundleConfig.cs | 1123 | using System.Web;
using System.Web.Optimization;
namespace WebAPI.Boilerplate.Api
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
}
}
| mit |
chuanxiaoshi/YYBaseLib | YYBaseLib.framework/Headers/YYBaseLib.h | 1471 | //
// YYBaseLib.h
// YYBaseLib
//
// Created by 银羽网络 on 16/7/19.
// Copyright © 2016年 银羽网络. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppConfig.h"
#import "BaseViewController.h"
#import "CommonTool.h"
#import "DataVerify.h"
#import "FSMediaPicker.h"
#import "MBProgressHUD+MBProgressHUD_Category.h"
#import "EnumModel.h"
#import "UsersModel.h"
#import "NSDataAdditions.h"
#import "NSDate_Extensions.h"
#import "NSDictionary_Extensions.h"
#import "NSObject_Extensions.h"
#import "NSString_Extensions.h"
#import "UIImageExtentions.h"
#import "UILabel_Extensions.h"
#import "PopupBaseView.h"
#import "SDCycleScrollView.h"
#import "UIButton+FillColor.h"
#import "UIColor_Extensions.h"
#import "UIImage+UIImage.h"
#import "UIImage+UIImageScale.h"
#import "UITableView+FDTemplateLayoutCell.h"
#import "UITextView+Placeholder.h"
#import "UIView+extensions.h"
#import "UIView+Masonry.h"
#import "AuthService.h"
#import "AppManager.h"
#import "ApiService.h"
#import "GTMBase64.h"
#import "GTMDefines.h"
#import "ConsultGradeModel.h"
#import "CategoryModel.h"
#import "CityModel.h"
#import "MenuModel.h"
//! Project version number for YYBaseLib.
FOUNDATION_EXPORT double YYBaseLibVersionNumber;
//! Project version string for YYBaseLib.
FOUNDATION_EXPORT const unsigned char YYBaseLibVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <YYBaseLib/PublicHeader.h>
| mit |
ProJobless/nyus | nyusocial/expressionengine/third_party/friends/views/members_friends.html | 3351 | <table id="member_table" class="mainTable padTable" style="width:100%;" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th style="width:3%;" ><?=$lang_id?></th>
<th style="width:22%;"><?=$lang_name?></th>
<th style="width:15%;"><?=$lang_total_friends?></th>
<th style="width:15%;"><?=$lang_total_reciprocal_friends?></th>
<th style="width:15%;"><?=$lang_total_blocked_friends?></th>
<th style="width:15%;"><?=$lang_friends_groups_public?></th>
<th style="width:15%;"><?=$lang_friends_groups_private?></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><?=$member['member_id']?></td>
<td><?=$member['screen_name']?></td>
<td><?=$member['total_friends']?></td>
<td><?=$member['total_reciprocal_friends']?></td>
<td><?=$member['total_blocked_friends']?></td>
<td><?=$member['friends_groups_public']?></td>
<td><?=$member['friends_groups_private']?></td>
</tr>
</tbody>
</table>
<?php if ( count( $friends ) == 0 ) : ?>
<p><span class="notice"><?=$member['screen_name']?><?=$lang__added_no_friends_yet?></span></p>
<?php else: ?>
<form action="<?=$form_uri?>" method="post" id="delete_friend_form">
<input type="hidden" name="XID" value="<?=$XID_SECURE_HASH?>" />
<input type="hidden" name="member_id" value="<?=$member['member_id']?>" />
<table class="mainTable padTable magicCheckboxTable"
style="width:100%;" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th style="width:3%;"> </th>
<th style="width:7%;">
<input class="checkbox" type="checkbox"
name="toggle_all_checkboxes" value="" /> <?=$lang_delete?>
</th>
<th style="width:30%;"><?=$lang_name?></th>
<th style="width:20%;"><?=$lang_date?></th>
<th style="width:15%;"><?=$lang_reciprocal?></th>
<th style="width:15%;"><?=$lang_blocked?></th>
<th style="width:10%;"><?=$lang_total_friends?></th>
</tr>
</thead>
<tbody>
<?php foreach ( $friends as $key => $val ) :
$key = $key + 1 + $row_count;
$switch = $this->cycle('odd', 'even'); ?>
<tr class="<?=$switch?>">
<td><?=$key?></td>
<td>
<input class="checkbox" type="checkbox"
name="toggle[]" value="<?=$val['entry_id']?>" id="delete_box_<?=$key?>" />
</td>
<td>
<a href="<?=$val['friend_uri']?>"
title="<?=$lang_view_friends_of_?><?=$val['screen_name']?>">
<?=$val['screen_name']; ?></a>
</td>
<td><?=$val['date']?></td>
<td><?=$val['reciprocal']?></td>
<td><?=$val['block']?></td>
<td><?=$val['total_friends']?></td>
</tr>
<?php endforeach; ?>
<?php $switch = $this->cycle('odd', 'even'); ?>
<tr class="<?=$switch?>">
<td> </td>
<td colspan="6">
<input class="checkbox" type="checkbox"
name="toggle_all_checkboxes" value="" /> <strong><?=$lang_delete?></strong>
</td>
</tr>
<?php if ( $paginate !== '' ) : ?>
<?php $switch = $this->cycle('odd', 'even'); ?>
<tr class="<?=$switch?>">
<td colspan="7">
<?=$paginate?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<p><input type="submit" class="submit" value="<?=$lang_delete?>" /></p>
</form>
<?php endif; ?> | mit |
caat91/NagiosAlert | NagiosAlert-App/src/redes3/proyecto/nagiosalert/InfoServiceActivity.java | 2141 | package redes3.proyecto.nagiosalert;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class InfoServiceActivity extends Activity {
String nombre;
int status;
String duracion;
String revision;
String info;
ImageView image ;
TextView tvNombre ;
TextView tvStatus ;
TextView tvDuracion ;
TextView tvRevision ;
TextView tvInfo ;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_info_service);
nombre = new String();
status = 0 ;
duracion = new String();
revision = new String();
info = new String();
image = (ImageView) findViewById(R.id.image);
tvNombre = (TextView)this.findViewById(R.id.tvNombreServicio);
tvStatus = (TextView)this.findViewById(R.id.status);
tvDuracion = (TextView)this.findViewById(R.id.duracion);
tvRevision = (TextView)this.findViewById(R.id.revision);
tvInfo = (TextView)this.findViewById(R.id.info);
Bundle extras = getIntent().getExtras();
nombre = extras.getString("nombre");
status = extras.getInt("status");
duracion = extras.getString("duracion");
revision = extras.getString("revision");
info = extras.getString("info");
tvNombre.setText(nombre);
tvDuracion.setText("Duracion : \n"+duracion);
tvRevision.setText("Revision : \n"+revision);
tvInfo.setText("Descripción : \n"+info);
if(status== 0){
tvStatus.setText("Estado : \nOk");
image.setImageResource(R.drawable.fine);
}else if(status== 1){
tvStatus.setText("Estado : \nFail");
image.setImageResource(R.drawable.fail);
}if(status== 2){
tvStatus.setText("Estado : \nWarning");
image.setImageResource(R.drawable.warning);
}if(status== 3){
tvStatus.setText("Estado : \nUnknown");
image.setImageResource(R.drawable.unknown);
}
}
} | mit |
cuellarfr/cuellarfr.github.io | _posts/2004-08-13-fool-s-world-map.md | 358 | ---
layout: post
title: !binary |-
Rm9vbOKAmXMgV29ybGQgTWFw
tags:
- micrographic
---
Hoy me he encontrado en Microsiervos y en Halón disparado una cosa realmente curiosa, una revisión freakie del mapa del mundo! Se trata de un mapa donde los países están colocados donde la gente (yanquis, claro) cree que están. El resultado es impagable, de verdad.
| mit |
dormantor/ofxCogEngine | COGengine/src/Behaviors/MultiSelection.cpp | 2863 |
#include "MultiSelection.h"
#include "ofxCogEngine.h"
#include "EnumConverter.h"
#include "Node.h"
namespace Cog {
void MultiSelection::Load(Setting& setting) {
string group = setting.GetItemVal("selection_group");
if (group.empty()) CogLogError("MultiSelection", "Error while loading MultiSelection behavior: expected parameter selection_group");
this->selectionGroup = StrId(group);
// load all attributes
string defaultImg = setting.GetItemVal("default_img");
string selectedImg = setting.GetItemVal("selected_img");
if (!defaultImg.empty() && !selectedImg.empty()) {
this->defaultImg = CogGet2DImage(defaultImg);
this->selectedImg = CogGet2DImage(selectedImg);
}
else {
string defaultColorStr = setting.GetItemVal("default_color");
string selectedColorStr = setting.GetItemVal("selected_color");
if (!defaultColorStr.empty() && !selectedColorStr.empty()) {
this->defaultColor = EnumConverter::StrToColor(defaultColorStr);
this->selectedColor = EnumConverter::StrToColor(selectedColorStr);
}
}
}
void MultiSelection::OnInit() {
SubscribeForMessages(ACT_OBJECT_HIT_ENDED, ACT_STATE_CHANGED);
}
void MultiSelection::OnStart() {
CheckState();
owner->SetGroup(selectionGroup);
}
void MultiSelection::OnMessage(Msg& msg) {
if (msg.HasAction(ACT_OBJECT_HIT_ENDED) && msg.GetContextNode()->IsInGroup(selectionGroup)) {
// check if the object has been clicked (user could hit a different area and release touch over the button)
auto evt = msg.GetDataPtr<InputEvent>();
if (evt->input->handlerNodeId == msg.GetContextNode()->GetId()) {
ProcessHit(msg, false);
}
}
else if (msg.HasAction(ACT_STATE_CHANGED) && msg.GetContextNode()->IsInGroup(selectionGroup)) {
ProcessHit(msg, true); // set directly, because STATE_CHANGED event has been already invoked
}
}
void MultiSelection::ProcessHit(Msg& msg, bool setDirectly) {
if (msg.GetContextNode()->GetId() == owner->GetId()) {
// selected actual node
if (!owner->HasState(selectedState)) {
if (setDirectly) owner->GetStates().SetState(selectedState);
else owner->SetState(selectedState);
SendMessage(ACT_OBJECT_SELECTED);
CheckState();
}
else {
CheckState();
}
}
else {
if (owner->HasState(selectedState)) {
if (setDirectly) owner->GetStates().ResetState(selectedState);
else owner->ResetState(selectedState);
CheckState();
}
}
}
void MultiSelection::CheckState() {
if (owner->HasState(selectedState)) {
if (selectedImg) {
owner->GetMesh<Image>()->SetImage(selectedImg);
}
else {
owner->GetMesh()->SetColor(selectedColor);
}
}
else if (!owner->HasState(selectedState)) {
if (defaultImg) {
owner->GetMesh<Image>()->SetImage(defaultImg);
}
else {
owner->GetMesh()->SetColor(defaultColor);
}
}
}
}// namespace | mit |
jonestimd/finances | src/main/java/io/github/jonestimd/finance/file/Reconciler.java | 3250 | // The MIT License (MIT)
//
// Copyright (c) 2016 Tim Jones
//
// 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 io.github.jonestimd.finance.file;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import io.github.jonestimd.finance.domain.transaction.Transaction;
import io.github.jonestimd.finance.swing.transaction.TransactionTableModel;
import static io.github.jonestimd.util.JavaPredicates.*;
public class Reconciler {
private final TransactionTableModel tableModel;
private final List<Transaction> uncleared;
public Reconciler(TransactionTableModel tableModel) {
this.tableModel = tableModel;
this.uncleared = tableModel.getBeans().stream()
.filter(not(Transaction::isCleared)).filter(not(Transaction::isNew))
.collect(Collectors.toList());
}
public void reconcile(Collection<Transaction> transactions) {
transactions.forEach(this::reconcile);
}
private void reconcile(Transaction transaction) {
Transaction toClear = select(transaction);
if (toClear.isNew()) {
toClear.setCleared(true);
tableModel.queueAdd(tableModel.getBeanCount()-1, toClear);
}
else {
tableModel.setValueAt(true, tableModel.rowIndexOf(toClear), tableModel.getClearedColumn());
}
}
private Transaction select(Transaction transaction) {
return uncleared.stream().filter(sameProperties(transaction)).min(nearestDate(transaction)).orElse(transaction);
}
private Predicate<Transaction> sameProperties(Transaction transaction) {
return t2 -> transaction.getAmount().compareTo(t2.getAmount()) == 0
&& transaction.getAssetQuantity().compareTo(t2.getAssetQuantity()) == 0
&& Objects.equals(transaction.getPayee(), t2.getPayee())
&& Objects.equals(transaction.getSecurity(), t2.getSecurity());
}
private Comparator<Transaction> nearestDate(Transaction transaction) {
return Comparator.comparingInt(t -> transaction.getDate().compareTo(t.getDate()));
}
}
| mit |
ayimdomnic/Qicksite | src/PublishedAssets/Migrations/2016_03_20_186046_add_templates_to_events.php | 605 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddTemplatesToEvents extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
$table->string('template')->default('show');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('events', function ($table) {
$table->dropColumn('template');
});
}
}
| mit |
jabley/cf-metrics | vendor/src/code.cloudfoundry.org/cli/plugin/plugin_suite_test.go | 355 | package plugin_test
import (
"path/filepath"
"code.cloudfoundry.org/cli/utils/testhelpers/pluginbuilder"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestPlugin(t *testing.T) {
RegisterFailHandler(Fail)
pluginbuilder.BuildTestBinary(filepath.Join("..", "fixtures", "plugins"), "test_1")
RunSpecs(t, "Plugin Suite")
}
| mit |
EdmonJiang/FA_Inventory | app.js | 2979 | var express = require('express'),
compression = require('compression'),
path = require('path'),
favicon = require('serve-favicon'),
logger = require('morgan'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
session = require('express-session'),
session = require('express-session'),
flash = require('connect-flash'),
moment = require('moment'),
mongoose = require('mongoose'),
MongoStore = require('connect-mongo')(session),
Pclog = require('./models/pclog.js'),
configDB = require('./config/database.js');
mongoose.Promise = global.Promise = require('bluebird');
mongoose.connect(configDB.uri);
var routes = require('./routes/index'),
reports = require('./routes/reports'),
statistics = require('./routes/statistics'),
charts = require('./routes/charts'),
logs = require('./routes/logs'),
organization = require('./routes/organization'),
users = require('./routes/users');
var app = express();
//var rootFolder = __dirname;
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(compression());
// uncomment after placing your favicon in /public
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(session({
secret: 'safe_session_cat',
resave: true,
rolling: true,
saveUninitialized: false,
cookie: {secure: false, maxAge: 900000},
store: new MongoStore({ url: configDB.uri })
}));
app.use(flash());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', function(req,res,next){
app.locals.currentUrl = req.path;
app.locals.moment = moment;
res.locals.messages = require('express-messages')(req, res);
if(req.session & req.session.user){
app.locals.user = req.session.user;
}
console.log(app.locals.user);
next();
});
app.use('/', routes);
app.use('/reports', reports);
app.use('/statistics', statistics);
app.use('/charts', charts);
app.use('/logs', logs);
app.use('/organization', organization);
app.use('/users', users);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
var err = new Error('Page Not Found.');
err.status = 404;
next(err);
});
// error handlers
// development error handler
// will print stacktrace
// if (app.get('env') === 'development') {
// app.use(function(err, req, res, next) {
// res.status(err.status || 500);
// res.render('error', {
// message: err.message,
// error: err
// });
// });
// }
// production error handler
// no stacktraces leaked to user
app.use(function(err, req, res, next) {
if(err.status){
res.status(err.status);
}else{
err.status = 500;
err.message = "Internal Server Error."
res.status(500);
}
res.render('404', {error: err});
});
module.exports = app;
| mit |
tsmith328/Homework | Java/CS 1332/Homework 01/CircularLinkedList.java | 4722 | /**
* CircularLinkedList implementation
* @author Tyler Smith
* @version 1.0
*/
public class CircularLinkedList<T> implements LinkedListInterface<T> {
private Node<T> head = null, tail = head;
private int size = 0;
@Override
public void addAtIndex(int index, T data) {
if (index < 0 || index > this.size()) {
throw new IndexOutOfBoundsException();
}
if (index == 0) {
this.addToFront(data);
} else if (index == this.size()) {
this.addToBack(data);
} else {
Node<T> current = head;
if (index == 1) {
current.setNext(new Node<T>(data, current.getNext()));
} else {
for (int i = 0; i < index - 1; i++) {
current = current.getNext();
}
Node<T> temp = current;
current = new Node<T>(data, temp);
}
size++;
}
}
@Override
public T get(int index) {
if (index < 0 || index >= size) {
throw new IndexOutOfBoundsException();
}
Node<T> current = head;
for (int i = 0; i < index; i++) {
current = current.getNext();
}
return current.getData();
}
@Override
public T removeAtIndex(int index) {
if (index < 0 || index >= this.size()) {
throw new IndexOutOfBoundsException();
}
if (index == 0) {
T data = head.getData();
head = head.getNext();
tail.setNext(head);
size--;
return data;
} else {
Node<T> before = tail;
Node<T> current = head;
for (int i = 0; i < index; i++) {
before = current;
current = current.getNext();
}
T data = current.getData();
before.setNext(current.getNext());
size--;
return data;
}
}
@Override
public void addToFront(T t) {
if (this.isEmpty()) {
head = new Node<T>(t, tail);
tail = head;
tail.setNext(head);
size++;
return;
}
Node<T> node = new Node<T>(t, head);
head = node;
tail.setNext(head);
size++;
}
@Override
public void addToBack(T t) {
if (this.isEmpty()) {
tail = new Node<T>(t);
head = tail;
tail.setNext(head);
head.setNext(tail);
size++;
} else {
Node<T> temp = tail;
tail = new Node<T>(t, head);
temp.setNext(tail);
size++;
}
}
@Override
public T removeFromFront() {
if (this.isEmpty()) {
return null;
}
Node<T> ret = head;
head = head.getNext();
tail.setNext(head);
size--;
return ret.getData();
}
@Override
public T removeFromBack() {
if (this.isEmpty()) {
return null;
}
Node<T> iterate = head;
while (iterate.getNext() != tail) {
iterate = iterate.getNext();
}
iterate.setNext(head);
Node<T> ret = tail;
tail = iterate;
size--;
return ret.getData();
}
@SuppressWarnings("unchecked")
@Override
public T[] toList() {
Object[] list = new Object[this.size()];
int i = 0;
Node<T> current = head;
while (i < this.size()) {
list[i] = current.getData();
current = current.getNext();
i++;
}
return ((T[]) list);
}
@Override
public boolean isEmpty() {
return (this.size() == 0);
}
@Override
public int size() {
return size;
}
@Override
public void clear() {
head = null;
tail = null;
size = 0;
}
/**
* Reference to the head node of the linked list.
* Normally, you would not do this, but we need it
* for grading your work.
*
* @return Node representing the head of the linked list
*/
public Node<T> getHead() {
return head;
}
/**
* Reference to the tail node of the linked list.
* Normally, you would not do this, but we need it
* for grading your work.
*
* @return Node representing the tail of the linked list
*/
public Node<T> getTail() {
return tail;
}
/**
* This method is for your testing purposes.
* You may choose to implement it if you wish.
*/
@Override
public String toString() {
return "";
}
}
| mit |
CoderMJLee/MJRefresh | .github/ISSUE_TEMPLATE/bug--.md | 942 | ---
name: Bug上报
about: 提交Bug让框架更加健壮
title: ''
labels: bug
assignees: ''
---
🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶
😁为了能够更好地复现问题和修复问题, 请提供 Demo 和详细的 bug 重现步骤😭
🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶
> 记得删除以上内容
**描述bug**
清晰简单地描述这个bug是啥
**必现/偶发?**
必现
**怎么样重现这个bug**
1. 显示哪个页面
2. 点击哪个位置
3. 滚动到哪个位置
4. 发生了什么错误
**你期望的结果是什么?**
你本来期望得到的正确结果是怎样的?就是解决bug之后的结果
**截图**
如果有必要的话,请上传几张截图
**运行环境**
- iPhone6
- iOS8.1
- Xcode10
**额外的**
最好能提供出现bug的Demo
| mit |
Subsets and Splits