answer
stringlengths
15
1.25M
import * as React from 'react'; import * as ReactDom from 'react-dom'; import * as strings from '<API key>'; import { Version } from '@microsoft/sp-core-library'; import { <API key>, <API key>, } from '@microsoft/sp-webpart-base'; import { <API key> } from '@pnp/<API key>/lib/<API key>'; import BarChartDemo from './components/BarChartDemo'; import { IBarChartDemoProps } from './components/IBarChartDemo.types'; export interface <API key> { description: string; } /** * This web part retrieves data asynchronously and renders a bar chart once loaded * It mimics a "real-life" scenario by loading (random) data asynchronously * and rendering the chart once the data has been retrieved. * To keep the demo simple, we don't specify custom colors. */ export default class BarChartDemoWebPart extends <API key><<API key>> { public render(): void { const element: React.ReactElement<IBarChartDemoProps > = React.createElement( BarChartDemo, { // there are no properties to pass for this demo } ); ReactDom.render(element, this.domElement); } protected onDispose(): void { ReactDom.<API key>(this.domElement); } protected get dataVersion(): Version { return Version.parse('1.0'); } protected <API key>(): <API key> { return { pages: [ { groups: [ { groupFields: [ <API key>({ description: strings.WebPartDescription, moreInfoLink: strings.MoreInfoLinkUrl, key: 'webPartInfoId' }) ] } ] } ] }; } }
package ca.wescook.wateringcans.events; import ca.wescook.wateringcans.potions.ModPotions; import net.minecraft.entity.<API key>; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.client.event.FOVUpdateEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class EventFOV { @SubscribeEvent public void fovUpdates(FOVUpdateEvent event) { // Get player object EntityPlayer player = event.getEntity(); if (player.<API key>(ModPotions.inhibitFOV) != null) { // Get player data double playerSpeed = player.getEntityAttribute(<API key>.MOVEMENT_SPEED).getAttributeValue(); float capableSpeed = player.capabilities.getWalkSpeed(); float fov = event.getFov(); // Disable FOV change event.setNewfov((float) (fov / ((playerSpeed / capableSpeed + 1.0) / 2.0))); } } }
<html><body> <h4>Windows 10 x64 (18362.449)</h4><br> <h2>FEATURE_CHANGE_TIME</h2> <font face="arial"> <API key> = 0n0<br> <API key> = 0n1<br> <API key> = 0n2<br> <API key> = 0n3<br> <API key> = 0n128<br> </font></body></html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/favicon.ico" /> <link rel="apple-touch-icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/iosicon.png" /> <!-- DEVELOPMENT LESS --> <!-- <link rel="stylesheet/less" href="css/photon.less" media="all" /> <link rel="stylesheet/less" href="css/photon-responsive.less" media="all" /> --> <!-- PRODUCTION CSS --> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/css/css_compiled/photon-min.css?v1.1" media="all" /> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/css/css_compiled/photon-min-part2.css?v1.1" media="all" /> <link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/css/css_compiled/<API key>.css?v1.1" media="all" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="css/css_compiled/ie-only-min.css?v1.1" /> <![endif] <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="css/css_compiled/ie8-only-min.css?v1.1" /> <script type="text/javascript" src="js/plugins/excanvas.js"></script> <script type="text/javascript" src="js/plugins/html5shiv.js"></script> <script type="text/javascript" src="js/plugins/respond.min.js"></script> <script type="text/javascript" src="js/plugins/fixFontIcons.js"></script> <![endif] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/bootstrap/bootstrap.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/modernizr.custom.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.pnotify.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/less-1.3.1.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/xbreadcrumbs.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.maskedinput-1.3.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.autotab-1.1b.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/charCount.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.textareaCounter.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/elrte.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/elrte.en.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/select2.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery-picklist.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.validate.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/additional-methods.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.form.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.metadata.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.mockjax.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.uniform.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.tagsinput.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.rating.pack.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/farbtastic.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.timeentry.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.dataTables.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.jstree.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/dataTables.bootstrap.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.mousewheel.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.mCustomScrollbar.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.stack.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.pie.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.flot.resize.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/raphael.2.1.0.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/justgage.1.0.1.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.qrcode.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.clock.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.countdown.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.jqtweet.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/jquery.cookie.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/<API key>.min.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/prettify/prettify.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/bootstrapSwitch.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/plugins/mfupload.js"></script> <script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/js/common.js"></script> </head> <body class="body-login"> <div class="nav-fixed-topright" style="visibility: hidden"> <ul class="nav nav-user-menu"> <li class="<API key>"> <a href="javascript:;"> <i class="user-icon"></i><span class="nav-user-selection">Theme Options</span><i class="icon-menu-arrow"></i> </a> <ul class="nav user-sub-menu"> <li class="light"> <a href="javascript:;"> <i class='icon-photon stop'></i>Light Version </a> </li> <li class="dark"> <a href="javascript:;"> <i class='icon-photon stop'></i>Dark Version </a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-photon mail"></i> </a> </li> <li> <a href="javascript:;"> <i class="icon-photon comment_alt2_stroke"></i> <div class="notification-count">12</div> </a> </li> </ul> </div> <script> $(function(){ setTimeout(function(){ $('.nav-fixed-topright').removeAttr('style'); }, 300); $(window).scroll(function(){ if($('.<API key>').length){ var scrollState = $(window).scrollTop(); if (scrollState > 0) $('.nav-fixed-topright').addClass('nav-released'); else $('.nav-fixed-topright').removeClass('nav-released') } }); $('.<API key>').on('click', function(){ $(this).toggleClass('active-user-menu'); }); $('.user-sub-menu .light').on('click', function(){ if ($('body').is('.light-version')) return; $('body').addClass('light-version'); setTimeout(function() { $.cookie('themeColor', 'light', { expires: 7, path: '/' }); }, 500); }); $('.user-sub-menu .dark').on('click', function(){ if ($('body').is('.light-version')) { $('body').removeClass('light-version'); $.cookie('themeColor', 'dark', { expires: 7, path: '/' }); } }); }); </script> <div class="container-login"> <div class="<API key>"> <div class="form-window-login"> <div class="<API key>"> <div class="login-logo"> <img src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/js/plugins/prettify/js/plugins/images/photon/login-logo@2x.png" alt="Photon UI"/> </div> <h2 class="login-title">Welcome to Photon UI!</h2> <div class="login-member">Not a Member?&nbsp;<a href="raphael.2.1.0.min.js.html#">Sign Up &#187;</a> <a href="raphael.2.1.0.min.js.html#" class="btn btn-facebook"><i class="icon-fb"></i>Login with Facebook<i class="icon-fb-arrow"></i></a> </div> <div class="login-or">Or</div> <div class="login-input-area"> <form method="POST" action="dashboard.php"> <span class="help-block">Login With Your Photon Account</span> <input type="text" name="email" placeholder="Email"> <input type="password" name="password" placeholder="Password"> <button type="submit" class="btn btn-large btn-success btn-login">Login</button> </form> <a href="raphael.2.1.0.min.js.html#" class="forgot-pass">Forgot Your Password?</a> </div> </div> </div> </div> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1936460-27']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https: var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>
var GoogleStrategy = require('<API key>').OAuth2Strategy; var util = require('util'); var session = require('express-session'); var passport = require('passport'); module.exports = (app, url, appEnv, User) => { app.use(session({ secret: process.env.SESSION_SECRET, name: 'freelancalot', proxy: true, resave: true, saveUninitialized: true })); app.use(passport.initialize()); app.use(passport.session()); passport.serializeUser((user, done) => { var id = user.get('id'); console.log('serializeUser: ' + id) done(null, id); }); passport.deserializeUser((id, done) => { User.findById(id).then((user) => { done(null, user); }) }); var googleOAuth = appEnv.getService('googleOAuth'), googleOAuthCreds = googleOAuth.credentials; passport.use(new GoogleStrategy({ clientID: googleOAuthCreds.clientID, client<API key>.clientSecret, callbackURL: util.format("http://%s%s", url, googleOAuthCreds.callbackPath) }, (token, refreshToken, profile, done) => { process.nextTick(() => { User.findOrCreate({ where: { googleId: profile.id }, defaults: { name: profile.displayName, email: profile.emails[0].value, photo: profile.photos[0].value } }) .spread((user, created) => { done(null, user); }) }); })); app.get('/auth/google', passport.authenticate('google', { scope: ['profile', 'email'] })); app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/' })); app.get('/logout', (req, res) => { req.logout(); res.redirect('/'); }); }
const path = require('path'); const express = require('express'); const bodyParser = require('body-parser'); const auth = require('http-auth'); // const basicAuth = require('basic-auth-connect'); const apiHandler = require('./api-handler') /** * Installs routes that serve production-bundled client-side assets. * It is set up to allow for HTML5 mode routing (404 -> /dist/index.html). * This should be the last router in your express server's chain. */ console.log('running node-app-server.js'); module.exports = (app) => { const distPath = path.join(__dirname, '../dist'); const indexFileName = 'index.html'; console.log('Setting up Express'); console.log(' distPath=%s',distPath); console.log(' indexFileName=%s',indexFileName); // configure app to use bodyParser() // this will let us get the data from a POST // app.use(bodyParser.urlencoded({ extended: true })); // app.use(bodyParser.json()); // basic authentication. not production-ready // TODO: add more robust authentication after POC console.log ("__dirname = " + __dirname); var basic = auth.basic({ realm: "Project NLS.", file: __dirname + "/users.htpasswd" } ); app.use( auth.connect(basic)); // var router = express.Router(); // middleware to use for all requests app.use(function(req, res, next) { // do logging console.log('Router request %s',req.url); next(); // make sure we go to the next routes and don't stop here }); // app.get() app.get(/localapi\/.*$/, (req, res) => apiHandler(req, res) ); app.post(/localapi\/.*$/, (req, res) => apiHandler(req, res) ); // note: this regex exludes API app.use( express.static(distPath)); app.get('*', (req, res) =>res.sendFile(path.join(distPath, indexFileName)));; }
from djblets.cache.backend import cache_memoize class BugTracker(object): """An interface to a bug tracker. BugTracker subclasses are used to enable interaction with different bug trackers. """ def get_bug_info(self, repository, bug_id): """Get the information for the specified bug. This should return a dictionary with 'summary', 'description', and 'status' keys. This is cached for 60 seconds to reduce the number of queries to the bug trackers and make things seem fast after the first infobox load, but is still a short enough time to give relatively fresh data. """ return cache_memoize(self.make_bug_cache_key(repository, bug_id), lambda: self.<API key>(repository, bug_id), expiration=60) def <API key>(self, repository, bug_id): """Get the information for the specified bug (implementation). This should be implemented by subclasses, and should return a dictionary with 'summary', 'description', and 'status' keys. If any of those are unsupported by the given bug tracker, the unknown values should be given as an empty string. """ return { 'summary': '', 'description': '', 'status': '', } def make_bug_cache_key(self, repository, bug_id): """Returns a key to use when caching fetched bug information.""" return 'repository-%s-bug-%s' % (repository.pk, bug_id)
using System; using System.Linq; namespace <API key>.Common.Extensions { public static class StringExtensions { public static string ToCamelCase(this string value) { return value.Substring(0, 1).ToLower() + value.Substring(1); } public static string ToPascalCase(this string value) { return value.Substring(0, 1).ToUpper() + value.Substring(1); } public static string[] <API key>(this string typeScriptType) { var startIndex = typeScriptType.IndexOf("<") + 1; var count = typeScriptType.Length; if (startIndex > 0) count = typeScriptType.LastIndexOf(">") - startIndex; typeScriptType = typeScriptType.Substring(startIndex, count); var parts = typeScriptType.Split(','); return parts .Where(p => p.Split('.').Length > 1) .Select(p => p.Split('.')[0]) .Select(p => p.Trim()) .ToArray(); } public static string <API key>(this string source, string find, string replace) { var index = source.LastIndexOf(find); if (index > -1) { return source.Remove(index, find.Length).Insert(index, replace); } return source; } public static int <API key>(this string source, string value) { return source.Substring(0, source.LastIndexOf(value, StringComparison.Ordinal)).LastIndexOf(value, StringComparison.Ordinal) + 1; } } }
package net.zer0bandwidth.android.lib.content.querybuilder; import android.content.ContentResolver; import android.support.test.runner.AndroidJUnit4; import android.test.ProviderTestCase2; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import static junit.framework.Assert.assertNull; /** * Exercises {@link DeletionBuilder}. * @since zer0bandwidth-net/android 0.1.7 (#39) */ @RunWith( AndroidJUnit4.class ) public class DeletionBuilderTest extends ProviderTestCase2<MockContentProvider> { protected QueryBuilderTest.MockContext m_mockery = new QueryBuilderTest.MockContext() ; @SuppressWarnings( "unused" ) // sAuthority is intentionally ignored public DeletionBuilderTest() { super( MockContentProvider.class, QueryBuilderTest.MockContext.AUTHORITY ) ; } @Override @Before public void setUp() throws Exception { super.setUp() ; } /** Exercises {@link DeletionBuilder#deleteAll} */ @Test public void testDeleteAll() { DeletionBuilder qb = new DeletionBuilder( m_mockery.ctx, m_mockery.uri ) ; qb.<API key> = "qarnflarglebarg" ; qb.<API key> = new String[] { "foo", "bar", "baz" } ; qb.deleteAll() ; assertNull( qb.<API key> ) ; assertNull( qb.<API key> ) ; } /** Exercises {@link DeletionBuilder#executeQuery}. */ @Test public void testExecuteQuery() throws Exception // Any uncaught exception is a failure. { ContentResolver rslv = this.<API key>() ; int nDeleted = QueryBuilder.deleteFrom( rslv, m_mockery.uri ).execute(); assertEquals( MockContentProvider.<API key>, nDeleted ) ; } }
#ifndef PIN_MANAGER_H #define PIN_MANAGER_H #define INPUT 1 #define OUTPUT 0 #define HIGH 1 #define LOW 0 #define TOGGLE 2 #define ANALOG 1 #define DIGITAL 0 #define PULL_UP_ENABLED 1 #define PULL_UP_DISABLED 0 // get/set Volume aliases #define Volume_TRIS TRISA5 #define Volume_LAT LATA5 #define Volume_PORT PORTAbits.RA5 #define Volume_ANS ANSA5 #define Volume_SetHigh() do { LATA5 = 1; } while(0) #define Volume_SetLow() do { LATA5 = 0; } while(0) #define Volume_Toggle() do { LATA5 = ~LATA5; } while(0) #define Volume_GetValue() PORTAbits.RA5 #define <API key>() do { TRISA5 = 1; } while(0) #define <API key>() do { TRISA5 = 0; } while(0) #define <API key>() do { ANSA5 = 1; } while(0) #define <API key>() do { ANSA5 = 0; } while(0) // get/set INDICATOR aliases #define INDICATOR_TRIS TRISA3 #define INDICATOR_LAT LATA3 #define INDICATOR_PORT PORTAbits.RA3 #define INDICATOR_ANS ANSA3 #define INDICATOR_SetHigh() do { LATA3 = 1; } while(0) #define INDICATOR_SetLow() do { LATA3 = 0; } while(0) #define INDICATOR_Toggle() do { LATA3 = ~LATA3; } while(0) #define INDICATOR_GetValue() PORTAbits.RA3 #define <API key>() do { TRISA3 = 1; } while(0) #define <API key>() do { TRISA3 = 0; } while(0) #define <API key>() do { ANSA3 = 1; } while(0) #define <API key>() do { ANSA3 = 0; } while(0) // get/set Button8 aliases #define Button8_TRIS TRISA2 #define Button8_LAT LATA2 #define Button8_PORT PORTAbits.RA2 #define Button8_ANS ANSA2 #define Button8_SetHigh() do { LATA2 = 1; } while(0) #define Button8_SetLow() do { LATA2 = 0; } while(0) #define Button8_Toggle() do { LATA2 = ~LATA2; } while(0) #define Button8_GetValue() PORTAbits.RA2 #define <API key>() do { TRISA2 = 1; } while(0) #define <API key>() do { TRISA2 = 0; } while(0) #define <API key>() do { ANSA2 = 1; } while(0) #define <API key>() do { ANSA2 = 0; } while(0) // get/set Button7 aliases #define Button7_TRIS TRISA1 #define Button7_LAT LATA1 #define Button7_PORT PORTAbits.RA1 #define Button7_ANS ANSA1 #define Button7_SetHigh() do { LATA1 = 1; } while(0) #define Button7_SetLow() do { LATA1 = 0; } while(0) #define Button7_Toggle() do { LATA1 = ~LATA1; } while(0) #define Button7_GetValue() PORTAbits.RA1 #define <API key>() do { TRISA1 = 1; } while(0) #define <API key>() do { TRISA1 = 0; } while(0) #define <API key>() do { ANSA1 = 1; } while(0) #define <API key>() do { ANSA1 = 0; } while(0) // get/set Button6 aliases #define Button6_TRIS TRISA0 #define Button6_LAT LATA0 #define Button6_PORT PORTAbits.RA0 #define Button6_ANS ANSA0 #define Button6_SetHigh() do { LATA0 = 1; } while(0) #define Button6_SetLow() do { LATA0 = 0; } while(0) #define Button6_Toggle() do { LATA0 = ~LATA0; } while(0) #define Button6_GetValue() PORTAbits.RA0 #define <API key>() do { TRISA0 = 1; } while(0) #define <API key>() do { TRISA0 = 0; } while(0) #define <API key>() do { ANSA0 = 1; } while(0) #define <API key>() do { ANSA0 = 0; } while(0) // get/set LED1 aliases #define LED1_TRIS TRISB5 #define LED1_LAT LATB5 #define LED1_PORT PORTBbits.RB5 #define LED1_WPU WPUB5 #define LED1_ANS ANSB5 #define LED1_SetHigh() do { LATB5 = 1; } while(0) #define LED1_SetLow() do { LATB5 = 0; } while(0) #define LED1_Toggle() do { LATB5 = ~LATB5; } while(0) #define LED1_GetValue() PORTBbits.RB5 #define <API key>() do { TRISB5 = 1; } while(0) #define <API key>() do { TRISB5 = 0; } while(0) #define LED1_SetPullup() do { WPUB5 = 1; } while(0) #define LED1_ResetPullup() do { WPUB5 = 0; } while(0) #define LED1_SetAnalogMode() do { ANSB5 = 1; } while(0) #define LED1_SetDigitalMode() do { ANSB5 = 0; } while(0) // get/set Button5 aliases #define Button5_TRIS TRISB4 #define Button5_LAT LATB4 #define Button5_PORT PORTBbits.RB4 #define Button5_WPU WPUB4 #define Button5_ANS ANSB4 #define Button5_SetHigh() do { LATB4 = 1; } while(0) #define Button5_SetLow() do { LATB4 = 0; } while(0) #define Button5_Toggle() do { LATB4 = ~LATB4; } while(0) #define Button5_GetValue() PORTBbits.RB4 #define <API key>() do { TRISB4 = 1; } while(0) #define <API key>() do { TRISB4 = 0; } while(0) #define Button5_SetPullup() do { WPUB4 = 1; } while(0) #define Button5_ResetPullup() do { WPUB4 = 0; } while(0) #define <API key>() do { ANSB4 = 1; } while(0) #define <API key>() do { ANSB4 = 0; } while(0) // get/set LED0 aliases #define LED0_TRIS TRISB3 #define LED0_LAT LATB3 #define LED0_PORT PORTBbits.RB3 #define LED0_WPU WPUB3 #define LED0_ANS ANSB3 #define LED0_SetHigh() do { LATB3 = 1; } while(0) #define LED0_SetLow() do { LATB3 = 0; } while(0) #define LED0_Toggle() do { LATB3 = ~LATB3; } while(0) #define LED0_GetValue() PORTBbits.RB3 #define <API key>() do { TRISB3 = 1; } while(0) #define <API key>() do { TRISB3 = 0; } while(0) #define LED0_SetPullup() do { WPUB3 = 1; } while(0) #define LED0_ResetPullup() do { WPUB3 = 0; } while(0) #define LED0_SetAnalogMode() do { ANSB3 = 1; } while(0) #define LED0_SetDigitalMode() do { ANSB3 = 0; } while(0) // get/set Button4 aliases #define Button4_TRIS TRISB2 #define Button4_LAT LATB2 #define Button4_PORT PORTBbits.RB2 #define Button4_WPU WPUB2 #define Button4_ANS ANSB2 #define Button4_SetHigh() do { LATB2 = 1; } while(0) #define Button4_SetLow() do { LATB2 = 0; } while(0) #define Button4_Toggle() do { LATB2 = ~LATB2; } while(0) #define Button4_GetValue() PORTBbits.RB2 #define <API key>() do { TRISB2 = 1; } while(0) #define <API key>() do { TRISB2 = 0; } while(0) #define Button4_SetPullup() do { WPUB2 = 1; } while(0) #define Button4_ResetPullup() do { WPUB2 = 0; } while(0) #define <API key>() do { ANSB2 = 1; } while(0) #define <API key>() do { ANSB2 = 0; } while(0) // get/set Button3 aliases #define Button3_TRIS TRISB1 #define Button3_LAT LATB1 #define Button3_PORT PORTBbits.RB1 #define Button3_WPU WPUB1 #define Button3_ANS ANSB1 #define Button3_SetHigh() do { LATB1 = 1; } while(0) #define Button3_SetLow() do { LATB1 = 0; } while(0) #define Button3_Toggle() do { LATB1 = ~LATB1; } while(0) #define Button3_GetValue() PORTBbits.RB1 #define <API key>() do { TRISB1 = 1; } while(0) #define <API key>() do { TRISB1 = 0; } while(0) #define Button3_SetPullup() do { WPUB1 = 1; } while(0) #define Button3_ResetPullup() do { WPUB1 = 0; } while(0) #define <API key>() do { ANSB1 = 1; } while(0) #define <API key>() do { ANSB1 = 0; } while(0) // get/set Button2 aliases #define Button2_TRIS TRISB0 #define Button2_LAT LATB0 #define Button2_PORT PORTBbits.RB0 #define Button2_WPU WPUB0 #define Button2_ANS ANSB0 #define Button2_SetHigh() do { LATB0 = 1; } while(0) #define Button2_SetLow() do { LATB0 = 0; } while(0) #define Button2_Toggle() do { LATB0 = ~LATB0; } while(0) #define Button2_GetValue() PORTBbits.RB0 #define <API key>() do { TRISB0 = 1; } while(0) #define <API key>() do { TRISB0 = 0; } while(0) #define Button2_SetPullup() do { WPUB0 = 1; } while(0) #define Button2_ResetPullup() do { WPUB0 = 0; } while(0) #define <API key>() do { ANSB0 = 1; } while(0) #define <API key>() do { ANSB0 = 0; } while(0) // get/set RX1 aliases #define RX1_TRIS TRISC7 #define RX1_LAT LATC7 #define RX1_PORT PORTCbits.RC7 #define RX1_ANS ANSC7 #define RX1_SetHigh() do { LATC7 = 1; } while(0) #define RX1_SetLow() do { LATC7 = 0; } while(0) #define RX1_Toggle() do { LATC7 = ~LATC7; } while(0) #define RX1_GetValue() PORTCbits.RC7 #define RX1_SetDigitalInput() do { TRISC7 = 1; } while(0) #define <API key>() do { TRISC7 = 0; } while(0) #define RX1_SetAnalogMode() do { ANSC7 = 1; } while(0) #define RX1_SetDigitalMode() do { ANSC7 = 0; } while(0) // get/set TX1 aliases #define TX1_TRIS TRISC6 #define TX1_LAT LATC6 #define TX1_PORT PORTCbits.RC6 #define TX1_ANS ANSC6 #define TX1_SetHigh() do { LATC6 = 1; } while(0) #define TX1_SetLow() do { LATC6 = 0; } while(0) #define TX1_Toggle() do { LATC6 = ~LATC6; } while(0) #define TX1_GetValue() PORTCbits.RC6 #define TX1_SetDigitalInput() do { TRISC6 = 1; } while(0) #define <API key>() do { TRISC6 = 0; } while(0) #define TX1_SetAnalogMode() do { ANSC6 = 1; } while(0) #define TX1_SetDigitalMode() do { ANSC6 = 0; } while(0) // get/set Talk aliases #define Talk_TRIS TRISC5 #define Talk_LAT LATC5 #define Talk_PORT PORTCbits.RC5 #define Talk_ANS ANSC5 #define Talk_SetHigh() do { LATC5 = 1; } while(0) #define Talk_SetLow() do { LATC5 = 0; } while(0) #define Talk_Toggle() do { LATC5 = ~LATC5; } while(0) #define Talk_GetValue() PORTCbits.RC5 #define <API key>() do { TRISC5 = 1; } while(0) #define <API key>() do { TRISC5 = 0; } while(0) #define Talk_SetAnalogMode() do { ANSC5 = 1; } while(0) #define Talk_SetDigitalMode() do { ANSC5 = 0; } while(0) // get/set SDA1 aliases #define SDA1_TRIS TRISC4 #define SDA1_LAT LATC4 #define SDA1_PORT PORTCbits.RC4 #define SDA1_ANS ANSC4 #define SDA1_SetHigh() do { LATC4 = 1; } while(0) #define SDA1_SetLow() do { LATC4 = 0; } while(0) #define SDA1_Toggle() do { LATC4 = ~LATC4; } while(0) #define SDA1_GetValue() PORTCbits.RC4 #define <API key>() do { TRISC4 = 1; } while(0) #define <API key>() do { TRISC4 = 0; } while(0) #define SDA1_SetAnalogMode() do { ANSC4 = 1; } while(0) #define SDA1_SetDigitalMode() do { ANSC4 = 0; } while(0) // get/set SCL1 aliases #define SCL1_TRIS TRISC3 #define SCL1_LAT LATC3 #define SCL1_PORT PORTCbits.RC3 #define SCL1_ANS ANSC3 #define SCL1_SetHigh() do { LATC3 = 1; } while(0) #define SCL1_SetLow() do { LATC3 = 0; } while(0) #define SCL1_Toggle() do { LATC3 = ~LATC3; } while(0) #define SCL1_GetValue() PORTCbits.RC3 #define <API key>() do { TRISC3 = 1; } while(0) #define <API key>() do { TRISC3 = 0; } while(0) #define SCL1_SetAnalogMode() do { ANSC3 = 1; } while(0) #define SCL1_SetDigitalMode() do { ANSC3 = 0; } while(0) // get/set Button1 aliases #define Button1_TRIS TRISD5 #define Button1_LAT LATD5 #define Button1_PORT PORTDbits.RD5 #define Button1_ANS ANSD5 #define Button1_SetHigh() do { LATD5 = 1; } while(0) #define Button1_SetLow() do { LATD5 = 0; } while(0) #define Button1_Toggle() do { LATD5 = ~LATD5; } while(0) #define Button1_GetValue() PORTDbits.RD5 #define <API key>() do { TRISD5 = 1; } while(0) #define <API key>() do { TRISD5 = 0; } while(0) #define <API key>() do { ANSD5 = 1; } while(0) #define <API key>() do { ANSD5 = 0; } while(0) // get/set LED2 aliases #define LED2_TRIS TRISD1 #define LED2_LAT LATD1 #define LED2_PORT PORTDbits.RD1 #define LED2_ANS ANSD1 #define LED2_SetHigh() do { LATD1 = 1; } while(0) #define LED2_SetLow() do { LATD1 = 0; } while(0) #define LED2_Toggle() do { LATD1 = ~LATD1; } while(0) #define LED2_GetValue() PORTDbits.RD1 #define <API key>() do { TRISD1 = 1; } while(0) #define <API key>() do { TRISD1 = 0; } while(0) #define LED2_SetAnalogMode() do { ANSD1 = 1; } while(0) #define LED2_SetDigitalMode() do { ANSD1 = 0; } while(0) // get/set LED3 aliases #define LED3_TRIS TRISE2 #define LED3_LAT LATE2 #define LED3_PORT PORTEbits.RE2 #define LED3_ANS ANSE2 #define LED3_SetHigh() do { LATE2 = 1; } while(0) #define LED3_SetLow() do { LATE2 = 0; } while(0) #define LED3_Toggle() do { LATE2 = ~LATE2; } while(0) #define LED3_GetValue() PORTEbits.RE2 #define <API key>() do { TRISE2 = 1; } while(0) #define <API key>() do { TRISE2 = 0; } while(0) #define LED3_SetAnalogMode() do { ANSE2 = 1; } while(0) #define LED3_SetDigitalMode() do { ANSE2 = 0; } while(0) // get/set LED4 aliases #define LED4_TRIS TRISE1 #define LED4_LAT LATE1 #define LED4_PORT PORTEbits.RE1 #define LED4_ANS ANSE1 #define LED4_SetHigh() do { LATE1 = 1; } while(0) #define LED4_SetLow() do { LATE1 = 0; } while(0) #define LED4_Toggle() do { LATE1 = ~LATE1; } while(0) #define LED4_GetValue() PORTEbits.RE1 #define <API key>() do { TRISE1 = 1; } while(0) #define <API key>() do { TRISE1 = 0; } while(0) #define LED4_SetAnalogMode() do { ANSE1 = 1; } while(0) #define LED4_SetDigitalMode() do { ANSE1 = 0; } while(0) // get/set LED5 aliases #define LED5_TRIS TRISE0 #define LED5_LAT LATE0 #define LED5_PORT PORTEbits.RE0 #define LED5_ANS ANSE0 #define LED5_SetHigh() do { LATE0 = 1; } while(0) #define LED5_SetLow() do { LATE0 = 0; } while(0) #define LED5_Toggle() do { LATE0 = ~LATE0; } while(0) #define LED5_GetValue() PORTEbits.RE0 #define <API key>() do { TRISE0 = 1; } while(0) #define <API key>() do { TRISE0 = 0; } while(0) #define LED5_SetAnalogMode() do { ANSE0 = 1; } while(0) #define LED5_SetDigitalMode() do { ANSE0 = 0; } while(0) /** * @Param none * @Returns none * @Description GPIO and peripheral I/O initialization * @Example <API key>(); */ void <API key> (void); /** * @Param none * @Returns none * @Description Interrupt on Change Handling routine * @Example PIN_MANAGER_IOC(); */ void PIN_MANAGER_IOC(void); #endif // PIN_MANAGER_H /** End of File */
using System; namespace DD.Cloud.WebApi.TemplateToolkit { <summary> Factory methods for creating value providers. </summary> <typeparam name="TContext"> The type used as a context for each request. </typeparam> public static class ValueProvider<TContext> { <summary> Create a value provider from the specified selector function. </summary> <typeparam name="TValue"> The type of value returned by the selector. </typeparam> <param name="selector"> A selector function that, when given an instance of <typeparamref name="TContext"/>, and returns a well-known value of type <typeparamref name="TValue"/> derived from the context. </param> <returns> The value provider. </returns> public static IValueProvider<TContext, TValue> FromSelector<TValue>(Func<TContext, TValue> selector) { if (selector == null) throw new <API key>("selector"); return new <API key><TValue>(selector); } <summary> Create a value provider from the specified function. </summary> <typeparam name="TValue"> The type of value returned by the function. </typeparam> <param name="getValue"> A function that returns a well-known value of type <typeparamref name="TValue"/>. </param> <returns> The value provider. </returns> public static IValueProvider<TContext, TValue> FromFunction<TValue>(Func<TValue> getValue) { if (getValue == null) throw new <API key>("getValue"); return new <API key><TValue>(getValue); } <summary> Create a value provider from the specified constant value. </summary> <typeparam name="TValue"> The type of value returned by the provider. </typeparam> <param name="value"> A constant value that is returned by the provider. </param> <returns> The value provider. </returns> public static IValueProvider<TContext, TValue> FromConstantValue<TValue>(TValue value) { if (value == null) throw new <API key>("value"); return new <API key><TValue>(value); } <summary> Value provider that invokes a selector function on the context to extract its value. </summary> <typeparam name="TValue"> The type of value returned by the provider. </typeparam> class <API key><TValue> : IValueProvider<TContext, TValue> { <summary> The selector function that extracts a value from the context. </summary> readonly Func<TContext, TValue> _selector; <summary> Create a new selector-based value provider. </summary> <param name="selector"> The selector function that extracts a value from the context. </param> public <API key>(Func<TContext, TValue> selector) { _selector = selector; } <summary> Extract the value from the specified context. </summary> <param name="source"> The TContext instance from which the value is to be extracted. </param> <returns> The value. </returns> public TValue Get(TContext source) { if (source == null) throw new <API key>("The current request template has one more more deferred parameters that refer to its context; the context parameter must therefore be supplied."); return _selector(source); } } <summary> Value provider that invokes a function to extract its value. </summary> <typeparam name="TValue"> The type of value returned by the provider. </typeparam> class <API key><TValue> : IValueProvider<TContext, TValue> { <summary> The function that is invoked to provide a value. </summary> readonly Func<TValue> _getValue; <summary> Create a new function-based value provider. </summary> <param name="getValue"> The function that is invoked to provide a value. </param> public <API key>(Func<TValue> getValue) { _getValue = getValue; } <summary> Extract the value from the specified context. </summary> <param name="source"> The TContext instance from which the value is to be extracted. </param> <returns> The value. </returns> public TValue Get(TContext source) { if (source == null) return default(TValue); // AF: Is this correct? return _getValue(); } } <summary> Value provider that returns a constant value. </summary> <typeparam name="TValue"> The type of value returned by the provider. </typeparam> class <API key><TValue> : IValueProvider<TContext, TValue> { <summary> The constant value returned by the provider. </summary> readonly TValue _value; <summary> Create a new constant value provider. </summary> <param name="value"> The constant value returned by the provider. </param> public <API key>(TValue value) { _value = value; } <summary> Extract the value from the specified context. </summary> <param name="source"> The TContext instance from which the value is to be extracted. </param> <returns> The value. </returns> public TValue Get(TContext source) { if (source == null) return default(TValue); // AF: Is this correct? return _value; } } } }
#ifndef <API key> #define <API key> #pragma once #include <cobalt/utility/compare_floats.hpp> #include <cobalt/utility/enum_traits.hpp> #include <cobalt/utility/enumerator.hpp> #include <cobalt/utility/factory.hpp> #include <cobalt/utility/hash.hpp> #include <cobalt/utility/type_index.hpp> #include <cobalt/utility/identifier.hpp> #include <cobalt/utility/intrusive.hpp> #include <cobalt/utility/throw_error.hpp> #include <cobalt/utility/overload.hpp> #endif // <API key>
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Babylonian</source> <translation>در مورد Babylonian</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Babylonian&lt;/b&gt; version</source> <translation>نسخه Babylonian</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http: <translation>⏎ ⏎ این نسخه نرم افزار آزمایشی است⏎ ⏎ نرم افزار تحت لیسانس MIT/X11 منتشر شده است. به فایل coping یا آدرس http: </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The Babylonian developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>فهرست آدرس</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>برای ویرایش آدرس یا بر چسب دو بار کلیک کنید</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>آدرس جدید ایجاد کنید</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>آدرس انتخاب شده در سیستم تخته رسم گیره دار کپی کنید</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>آدرس جدید</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Babylonian addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>این آدرسها، آدرسهای Babylonian شما برای دریافت وجوه هستند. شما ممکن است آدرسهای متفاوت را به هر گیرنده اختصاص دهید که بتوانید مواردی که پرداخت می کنید را پیگیری نمایید</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>کپی آدرس</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>نمایش &amp;کد QR</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Babylonian address</source> <translation>پیام را برای اثبات آدرس Babylonian خود امضا کنید</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>امضا و پیام</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>آدرس انتخاب شده در سیستم تخته رسم گیره دا حذف</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>داده ها نوارِ جاری را به فایل انتقال دهید</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Babylonian address</source> <translation>یک پیام را برای حصول اطمینان از ورود به سیستم با آدرس Babylonian مشخص، شناسایی کنید</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>شناسایی پیام</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>حذف</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Babylonian addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>کپی و برچسب گذاری</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>ویرایش</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>آدرس انتخاب شده در سیستم تخته رسم گیره دار کپی کنید</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Comma separated file (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>خطای صدور</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>تا فایل %1 نمی شود نوشت</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>بر چسب</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>آدرس</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>بدون برچسب</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>دیالوگ Passphrase </translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>وارد عبارت عبور</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>عبارت عبور نو</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>تکرار عبارت عبور نو</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>وارد کنید..&amp;lt;br/&amp;gt عبارت عبور نو در پنجره 10 یا بیشتر کاراکتورهای تصادفی استفاده کنید &amp;lt;b&amp;gt لطفا عبارت عبور</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>رمز بندی پنجره</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>این عملیت نیاز عبارت عبور پنجره شما دارد برای رمز گشایی آن</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>تکرار عبارت عبور نو</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>این عملیت نیاز عبارت عبور شما دارد برای رمز بندی آن</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>رمز بندی پنجره</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>تغییر عبارت عبور</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>عبارت عبور نو و قدیم در پنجره وارد کنید</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>تایید رمز گذاری</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR QUARKCOINS&lt;/b&gt;!</source> <translation>هشدار: اگر wallet رمزگذاری شود و شما passphrase را گم کنید شما همه اطلاعات Babylonian را از دست خواهید داد.</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>آیا اطمینان دارید که می خواهید wallet رمزگذاری شود؟</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>هشدار: Caps lock key روشن است</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>تغییر عبارت عبور</translation> </message> <message> <location line="-56"/> <source>Babylonian will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your quarkcoins from being stolen by malware infecting your computer.</source> <translation>Biticon هم اکنون بسته می‌شود تا فرایند رمزگذاری را تمام کند. به خاطر داشته باشید که رمزگذاری کیف پولتان نمی‌تواند به طور کامل بیتیکون‌های شما را در برابر دزدیده شدن توسط بدافزارهایی که رایانه شما را آلوده می‌کنند، محافظت نماید.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>عبارت عبور نو و قدیم در پنجره وارد کنید</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>تنا موفق رمز بندی پنجره ناشی از خطای داخل شد. پنجره شما مرز بندی نشده است</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>عبارت عبور عرضه تطابق نشد</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>نجره رمز گذار شد</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>اموفق رمز بندی پنجر</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>ناموفق رمز بندی پنجره</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>wallet passphrase با موفقیت تغییر یافت</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>امضا و پیام</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>همگام سازی با شبکه ...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>بررسی اجمالی</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>نمای کلی پنجره نشان بده</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;معاملات</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>نمایش تاریخ معاملات</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>ویرایش لیست آدرسها و بر چسب های ذخیره ای</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>نمایش لیست آدرس ها برای در یافت پر داخت ها</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>خروج</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>خروج از برنامه </translation> </message> <message> <location line="+4"/> <source>Show information about Babylonian</source> <translation>نمایش اطلاعات در مورد بیتکویین</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>درباره &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>نمایش اطلاعات درباره Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>تنظیمات...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>رمزگذاری wallet</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>پشتیبان گیری از wallet</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>تغییر Passphrase</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a Babylonian address</source> <translation>سکه ها را به آدرس bitocin ارسال کن</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Babylonian</source> <translation>انتخابهای پیکربندی را برای Babylonian اصلاح کن</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>نسخه پیشتیبان wallet را به محل دیگر انتقال دهید</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>عبارت عبور رمز گشایی پنجره تغییر کنید</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>اشکال زدایی از صفحه</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>کنسول اشکال زدایی و تشخیص را باز کنید</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>بازبینی پیام</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Babylonian</source> <translation>یت کویین </translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>wallet</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Babylonian</source> <translation>در مورد Babylonian</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;نمایش/ عدم نمایش</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your Babylonian addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Babylonian addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>فایل</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>تنظیمات</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>کمک</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>نوار ابزار زبانه ها</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>آزمایش شبکه</translation> </message> <message> <location line="+47"/> <source>Babylonian client</source> <translation>مشتری Babylonian</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Babylonian network</source> <translation><numerusform>در صد ارتباطات فعال بیتکویین با شبکه %n</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>تا تاریخ</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>ابتلا به بالا</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>هزینه تراکنش را تایید کنید</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>معامله ارسال شده</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>معامله در یافت شده</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>تاریخ %1 مبلغ%2 نوع %3 آدرس %4</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>مدیریت URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Babylonian address or malformed URI parameters.</source> <translation>URI قابل تحلیل نیست. این خطا ممکن است به دلیل ادرس Babylonian اشتباه یا پارامترهای اشتباه URI رخ داده باشد</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>زمایش شبکهه</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>زمایش شبکه</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Babylonian can no longer continue safely and will quit.</source> <translation>خطا روی داده است. Babylonian نمی تواند بدون مشکل ادامه دهد و باید بسته شود</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>پیام شبکه</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>اصلاح آدرس</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>بر چسب</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>بر چسب با دفتر آدرس ورود مرتبط است</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>آدرس</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>آدرس با دفتر آدرس ورودی مرتبط است. این فقط در مورد آدرسهای ارسال شده است</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>آدرس در یافت نو</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>آدرس ارسال نو</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>اصلاح آدرس در یافت</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>اصلاح آدرس ارسال</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>%1آدرس وارد شده دیگر در دفتر آدرس است</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Babylonian address.</source> <translation>آدرس وارد شده %1 یک ادرس صحیح Babylonian نیست</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>رمز گشایی پنجره امکان پذیر نیست</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>کلید نسل جدید ناموفق است</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Babylonian-Qt</source> <translation>Babylonian-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>نسخه</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>ستفاده :</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>انتخابها برای خطوط دستور command line</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>انتخابهای UI </translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>زبان را تنظیم کنید برای مثال &quot;de_DE&quot; (پیش فرض: system locale)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>شروع حد اقل</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>نمایش صفحه splash در STARTUP (پیش فرض:1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>اصلی</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>اصلی</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>دستمزد&amp;پر داخت معامله</translation> </message> <message> <location line="+31"/> <source>Automatically start Babylonian after logging in to the system.</source> <translation>در زمان ورود به سیستم به صورت خودکار Babylonian را اجرا کن</translation> </message> <message> <location line="+3"/> <source>&amp;Start Babylonian on system login</source> <translation>اجرای Babylonian در زمان ورود به سیستم</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>شبکه</translation> </message> <message> <location line="+6"/> <source>Automatically open the Babylonian client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>اتوماتیک باز کردن بندر بیتکویین در روتر . این فقط در مواردی می باشد که روتر با کمک یو پ ن پ کار می کند</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>درگاه با استفاده از</translation> </message> <message> <location line="+7"/> <source>Connect to the Babylonian network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>اتصال به شبکه Babylonian از طریق پراکسی ساکس (برای مثال وقتی از طریق نرم افزار TOR متصل می شوید)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>اتصال با پراکسی SOCKS</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>پراکسی و آی.پی.</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>درس پروکسی</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>درگاه</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>درگاه پراکسی (مثال 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS و نسخه</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>نسخه SOCKS از پراکسی (مثال 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>صفحه</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>tray icon را تنها بعد از کوچک کردن صفحه نمایش بده</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>حد اقل رساندن در جای نوار ابزار ها</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>حد اقل رساندن در جای خروج بر نامه وقتیکه پنجره بسته است.وقتیکه این فعال است برنامه خاموش می شود بعد از انتخاب دستور خاموش در منیو</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>کوچک کردن صفحه در زمان بستن</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>نمایش</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>میانجی کاربر و زبان</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Babylonian.</source> <translation>زبان میانجی کاربر می تواند در اینجا تنظیم شود. این تنظیمات بعد از شروع دوباره RESTART در Babylonian اجرایی خواهند بود.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>واحد برای نمایش میزان وجوه در:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>بخش فرعی پیش فرض را برای نمایش میانجی و زمان ارسال سکه ها مشخص و انتخاب نمایید</translation> </message> <message> <location line="+9"/> <source>Whether to show Babylonian addresses in the transaction list or not.</source> <translation>تا آدرسهای bITCOIN در فهرست تراکنش نمایش داده شوند یا نشوند.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>نمایش آدرسها در فهرست تراکنش</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>تایید</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>رد</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>انجام</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>پیش فرض</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>هشدار</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Babylonian.</source> <translation>این تنظیمات پس از اجرای دوباره Babylonian اعمال می شوند</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>آدرس پراکسی داده شده صحیح نیست</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>تراز</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Babylonian network after a connection is established, but this process has not completed yet.</source> <translation>اطلاعات نمایش داده شده روزآمد نیستند.wallet شما به صورت خودکار با شبکه Babylonian بعد از برقراری اتصال روزآمد می شود اما این فرایند هنوز کامل نشده است.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>راز:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>تایید نشده</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>wallet</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>نابالغ</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>بالانس/تتمه حساب استخراج شده، نابالغ است /تکمیل نشده است</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>اخرین معاملات&amp;lt</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>تزار جاری شما</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>تعداد معاملات که تایید شده ولی هنوز در تزار جاری شما بر شمار نرفته است</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>روزآمد نشده</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start Babylonian: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>دیالوگ QR CODE</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>درخواست پرداخت</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>مقدار:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>برچسب:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>پیام</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;ذخیره به عنوان...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>خطا در زمان رمزدار کردن URI در کد QR</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>میزان وجه وارد شده صحیح نیست، لطفا بررسی نمایید</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI ذکر شده بسیار طولانی است، متن برچسب/پیام را کوتاه کنید</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>ذخیره کد QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>تصاویر با فرمت PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>نام مشتری</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>-</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>نسخه مشتری</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>اطلاعات</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>استفاده از نسخه OPENSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>زمان آغاز STARTUP</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>شبکه</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>تعداد اتصالات</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>در testnetکها</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>زنجیره بلاک</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>تعداد کنونی بلاکها</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>تعداد تخمینی بلاکها</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>زمان آخرین بلاک</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>باز کردن</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>گزینه های command-line</translation> </message> <message> <location line="+7"/> <source>Show the Babylonian-Qt help message to get a list with possible Babylonian command-line options.</source> <translation>پیام راهنمای Babylonian-Qt را برای گرفتن فهرست گزینه های command-line نشان بده</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>نمایش</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>کنسول</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>ساخت تاریخ</translation> </message> <message> <location line="-104"/> <source>Babylonian - Debug window</source> <translation>صفحه اشکال زدایی Babylonian </translation> </message> <message> <location line="+25"/> <source>Babylonian Core</source> <translation> هسته Babylonian </translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>فایلِ لاگِ اشکال زدایی</translation> </message> <message> <location line="+7"/> <source>Open the Babylonian debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>فایلِ لاگِ اشکال زدایی Babylonian را از دایرکتوری جاری داده ها باز کنید. این عملیات ممکن است برای فایلهای لاگِ حجیم طولانی شود.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>پاکسازی کنسول</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Babylonian RPC console.</source> <translation>به کنسول Babylonian RPC خوش آمدید</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>دکمه های بالا و پایین برای مرور تاریخچه و Ctrl-L برای پاکسازی صفحه</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>با تایپ عبارت HELP دستورهای در دسترس را مرور خواهید کرد</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>ارسال سکه ها</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>ارسال چندین در یافت ها فورا</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>اضافه کردن دریافت کننده</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>پاک کردن تمام ستون‌های تراکنش</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>پاکسازی همه</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>تزار :</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 بتس</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>عملیت دوم تایید کنید</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;;ارسال</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>(%3) تا &lt;b&gt;%1&lt;/b&gt; درصد%2</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>ارسال سکه ها تایید کنید</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation> %1شما متماینید که می خواهید 1% ارسال کنید ؟</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>و</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>آدرس گیرنده نادرست است، لطفا دوباره بررسی کنید.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>مبلغ پر داخت باید از 0 بیشتر باشد </translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>میزان وجه از بالانس/تتمه حساب شما بیشتر است</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>کل میزان وجه از بالانس/تتمه حساب شما بیشتر می شود وقتی %1 هزینه تراکنش نیز به ین میزان افزوده می شود</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>آدرس تکراری یافت شده است، در زمان انجام عملیات به هر آدرس تنها یکبار می توانید اطلاعات ارسال کنید</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>خطا: تراکنش تایید نشد. این پیام زمانی روی می دهد که مقداری از سکه های WALLET شما استفاده شده اند برای مثال اگر شما از WALLET.DAT استفاده کرده اید، ممکن است سکه ها استفاده شده باشند اما در اینجا نمایش داده نشوند</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>تراز</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>A&amp;مبلغ :</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>به&amp;پر داخت :</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>برای آدرس بر پسب وارد کنید که در دفتر آدرس اضافه شود</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;بر چسب </translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>اآدرسن ازدفتر آدرس انتخاب کنید</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>آدرس از تخته رسم گیره دار پست کنید </translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>بر داشتن این در یافت کننده</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Babylonian address (e.g. <API key>)</source> <translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: <API key>)</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>امضا - امضا کردن /شناسایی یک پیام</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;امضای پیام</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>شما می توانید پیامها را با آدرس خودتان امضا نمایید تا ثابت شود متعلق به شما هستند. مواظب باشید تا چیزی که بدان مطمئن نیستنید را امضا نکنید زیرا حملات فیشینگ در زمان ورود شما به سیستم فریبنده هستند. تنها مواردی را که حاوی اطلاعات دقیق و قابل قبول برای شما هستند را امضا کنید</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. <API key>)</source> <translation>آدرس برای امضا کردن پیام با (برای مثال <API key>)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>یک آدرس را از فهرست آدرسها انتخاب کنید</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>آدرس از تخته رسم گیره دار پست کنید </translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>پیامی را که می‌خواهید امضا کنید در اینجا وارد کنید</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>این امضا را در system clipboard کپی کن</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Babylonian address</source> <translation>پیام را برای اثبات آدرس Babylonian خود امضا کنید</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>تنظیم دوباره تمامی فیلدهای پیام</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>پاکسازی همه</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>تایید پیام</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>آدرس/پیام خود را وارد کنید (مطمئن شوید که فاصله بین خطوط، فاصله ها، تب ها و ... را دقیقا کپی می کنید) و سپس امضا کنید تا پیام تایید شود. مراقب باشید که پیام را بیشتر از مطالب درون امضا مطالعه نمایید تا فریب شخص سوم/دزدان اینترنتی را نخورید.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. <API key>)</source> <translation>آدرس برای امضا کردن پیام با (برای مثال <API key>)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Babylonian address</source> <translation>پیام را برای اطمنان از ورود به سیستم با آدرس Babylonian مشخص خود،تایید کنید</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>تنظیم دوباره تمامی فیلدهای پیام تایید شده</translation> </message> <message> <location filename="../<API key>.cpp" line="+27"/> <location line="+3"/> <source>Enter a Babylonian address (e.g. <API key>)</source> <translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: <API key>)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>با کلیک بر &quot;امضای پیام&quot; شما یک امضای جدید درست می کنید</translation> </message> <message> <location line="+3"/> <source>Enter Babylonian signature</source> <translation>امضای BITOCOIN خود را وارد کنید</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>آدرس وارد شده صحیح نیست</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>اطفا آدرس را بررسی کرده و دوباره امتحان کنید</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>آدرس وارد شده با کلید وارد شده مرتبط نیست</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>قفل کردن wallet انجام نشد</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>کلید شخصی برای آدرس وارد شده در دسترس نیست</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>پیام امضا کردن انجام نشد</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>پیام امضا شد</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>امضا نمی تواند رمزگشایی شود</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>لطفا امضا را بررسی و دوباره تلاش نمایید</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>امضا با تحلیلِ پیام مطابقت ندارد</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>عملیات شناسایی پیام انجام نشد</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>پیام شناسایی شد</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Babylonian developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>آزمایش شبکه</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>باز کردن تا%1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1 آفلاین</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1 تایید نشده </translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>ایید %1 </translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>وضعیت</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>انتشار از طریق n% گره انتشار از طریق %n گره</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>تاریخ </translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>منبع</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>تولید شده</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>فرستنده</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>گیرنده</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>آدرس شما</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>برچسب</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>بدهی </translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>بلوغ در n% از بیشتر بلاکها بلوغ در %n از بیشتر بلاکها</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>غیرقابل قبول</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>اعتبار</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>هزینه تراکنش</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>هزینه خالص</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>پیام</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>نظر</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>شناسه کاربری برای تراکنش</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 240 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>سکه های ایجاد شده باید 240 بلاک را قبل از استفاده بالغ کنند. در هنگام ایجاد بلاک، آن بلاک در شبکه منتشر می شود تا به زنجیره بلاکها بپیوندد. اگر در زنجیره قرار نگیرد، پیام وضعیت به غیرقابل قبول تغییر می بپیابد و قابل استفاده نیست. این مورد معمولا زمانی پیش می آید که گره دیگری به طور همزمان بلاکی را با فاصل چند ثانیه ای از شما ایجاد کند.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>اشکال زدایی طلاعات</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>تراکنش</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>درونداد</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>صحیح</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>نادرست</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>هنوز با مو فقیت ارسال نشده</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>مشخص نیست </translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Transaction details</source> <translation>جزییات معاملات</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>در این قاب شیشه توصیف دقیق معامله نشان می شود</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../<API key>.cpp" line="+225"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>نوع</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>ایل جدا </translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>از شده تا 1%1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>افلایین (%1)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>تایید نشده (%1/%2)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>تایید شده (%1)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>بالانس/تتمه حساب استخراج شده زمانی که %n از بیشتر بلاکها بالغ شدند در دسترس خواهد بود بالانس/تتمه حساب استخراج شده زمانی که n% از بیشتر بلاکها بالغ شدند در دسترس خواهد بود</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>این بلوک از دیگر گره ها در یافت نشده بدین دلیل شاید قابل قابول نیست</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>تولید شده ولی قبول نشده</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>در یافت با :</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>دریافتی از</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>ارسال به :</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>پر داخت به خودتان</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>استخراج</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(کاربرد ندارد)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>وضعیت معالمه . عرصه که تعداد تایید نشان می دهد</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>تاریخ و ساعت در یافت معامله</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>نوع معاملات</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>آدرس مقصود معاملات </translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>مبلغ از تزار شما خارج یا وارد شده</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>همه</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>امروز</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>این هفته</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>این ماه</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>ماه گذشته</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>امسال</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>محدوده </translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>در یافت با</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>ارسال به</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>به خودتان </translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>استخراج</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>یگر </translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>برای جست‌‌وجو نشانی یا برچسب را وارد کنید</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>حد اقل مبلغ </translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>کپی آدرس </translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>کپی بر چسب</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>روگرفت مقدار</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>اصلاح بر چسب</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>جزئیات تراکنش را نمایش بده</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>صادرات تاریخ معامله</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Comma فایل جدا </translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>تایید شده</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>تاریخ </translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>نوع </translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>ر چسب</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>ایل جدا </translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>آی دی</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>خطای صادرت</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>تا فایل %1 نمی شود نوشت</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>&gt;محدوده</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>به</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>ارسال سکه ها</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>داده ها نوارِ جاری را به فایل انتقال دهید</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>Babylonian-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Babylonian version</source> <translation>سخه بیتکویین</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>ستفاده :</translation> </message> <message> <location line="-29"/> <source>Send command to -server or quarkcoind</source> <translation>ارسال فرمان به سرور یا باتکویین</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>لیست فومان ها</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>کمک برای فرمان </translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>تنظیمات</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: Babylonian.conf)</source> <translation>(: Babylonian.confپیش فرض: )فایل تنظیمی خاص </translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: quarkcoind.pid)</source> <translation>(quarkcoind.pidپیش فرض : ) فایل پید خاص</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>دایرکتور اطلاعاتی خاص</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>سایز کَش بانک داده را بر حسب مگابایت تنظیم کنید (پیش فرض:25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation>برای اتصالات به &lt;port&gt; (پیش‌فرض: 8333 یا تست‌نت: 18333) گوش کنید</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>حداکثر &lt;n&gt; اتصال با همکاران برقرار داشته باشید (پیش‌فرض: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>اتصال به گره برای دریافت آدرسهای قرینه و قطع اتصال</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>آدرس عمومی خود را ذکر کنید</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>آستانه برای قطع ارتباط با همکاران بدرفتار (پیش‌فرض: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>مدت زمان به ثانیه برای جلوگیری از همکاران بدرفتار برای اتصال دوباره (پیش‌فرض: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>در زمان تنظیم درگاه RPX %u در فهرست کردن %s اشکالی رخ داده است</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332 or testnet: 18332)</source> <translation>( 8332پیش فرض :) &amp;lt;poort&amp;gt; JSON-RPC شنوایی برای ارتباطات</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>JSON-RPC قابل فرمانها و</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>اجرای در پس زمینه به عنوان شبح و قبول فرمان ها</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>استفاده شبکه آزمایش</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>پذیرش اتصالات از بیرون (پیش فرض:1 بدون پراکسی یا اتصال)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=quarkcoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Babylonian Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Babylonian is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>حجم حداکثر تراکنشهای با/کم اهمیت را به بایت تنظیم کنید (پیش فرض:27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>هشدار:paytxfee بسیار بالا تعریف شده است! این هزینه تراکنش است که باید در زمان ارسال تراکنش بپردازید</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>هشدار: تراکنش نمایش داده شده ممکن است صحیح نباشد! شما/یا یکی از گره ها به روزآمد سازی نیاز دارید </translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Babylonian will not work properly.</source> <translation>هشدار: لطفا زمان و تاریخ رایانه خود را تصحیح نمایید! اگر ساعت رایانه شما اشتباه باشد Babylonian ممکن است صحیح کار نکند</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>بستن گزینه ایجاد</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>تنها در گره (های) مشخص شده متصل شوید</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>آدرس آی.پی. خود را شناسایی کنید (پیش فرض:1 در زمان when listening وno -externalip)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>شنیدن هر گونه درگاه انجام پذیر نیست. ازlisten=0 برای اینکار استفاده کیند.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>قرینه ها را برای جستجوی DNS بیاب (پیش فرض: 1 مگر در زمان اتصال)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>آدرس نرم افزار تور غلط است %s</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>حداکثر بافر دریافت شده بر اساس اتصال &lt;n&gt;* 1000 بایت (پیش فرض:5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>حداکثر بافر دریافت شده بر اساس اتصال &lt;n&gt;* 1000 بایت (پیش فرض:1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>تنها =به گره ها در شبکه متصا شوید &lt;net&gt; (IPv4, IPv6 or Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>برونداد اطلاعات اشکال زدایی اضافی. گزینه های اشکال زدایی دیگر رفع شدند</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>برونداد اطلاعات اشکال زدایی اضافی برای شبکه</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>به خروجی اشکال‌زدایی برچسب زمان بزنید</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Babylonian Wiki for SSL setup instructions)</source> <translation>گزینه ssl (به ویکیquarkcoin برای راهنمای راه اندازی ssl مراجعه شود)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>نسخه ای از پراکسی ساکس را برای استفاده انتخاب کنید (4-5 پیش فرض:5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>اطلاعات ردگیری/اشکال‌زدایی را به جای فایل لاگ اشکال‌زدایی به کنسول بفرستید</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>اطلاعات ردگیری/اشکال‌زدایی را به اشکال‌زدا بفرستید</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>حداکثر سایز بلاک بر اساس بایت تنظیم شود (پیش فرض: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>حداقل سایز بلاک بر اساس بایت تنظیم شود (پیش فرض: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>فایل debug.log را در startup مشتری کوچک کن (پیش فرض:1 اگر اشکال زدایی روی نداد)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>(میلی ثانیه )فاصله ارتباط خاص</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:1 در زمان شنیدن)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>برای دستیابی به سرویس مخفیانه نرم افزار تور از پراکسی استفاده کنید (پیش فرض:same as -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC شناسه برای ارتباطات</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>هشدار: این نسخه قدیمی است، روزآمدسازی مورد نیاز است</translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC عبارت عبور برای ارتباطات</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>از آدرس آی پی خاص JSON-RPC قبول ارتباطات</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>(127.0.0.1پیش فرض: ) &amp;lt;ip&amp;gt; دادن فرمانها برای استفاده گره ها روی</translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>زمانی که بهترین بلاک تغییر کرد، دستور را اجرا کن (%s در cmd با block hash جایگزین شده است)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>wallet را به جدیدترین فرمت روزآمد کنید</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation> (100پیش فرض:)&amp;lt;n&amp;gt; گذاشتن اندازه کلید روی </translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>اسکان مجدد زنجیر بلوکها برای گم والت معامله</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>JSON-RPCبرای ارتباطات استفاده کنید OpenSSL (https)</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation> (server.certپیش فرض: )گواهی نامه سرور</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>(server.pemپیش فرض: ) کلید خصوصی سرور</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>رمز های قابل قبول( TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>پیام کمکی</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>امکان اتصال به %s از این رایانه وجود ندارد ( bind returned error %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>اتصال از طریق پراکسی ساکس</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>به DNS اجازه بده تا برای addnode ، seednode و اتصال جستجو کند</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>بار گیری آدرس ها</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>خطا در بارگیری wallet.dat: کیف پول خراب شده است</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Babylonian</source> <translation>خطا در بارگیری wallet.dat: کیف پول به ویرایش جدیدتری از Biticon نیاز دارد</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Babylonian to complete</source> <translation>سلام</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>خطا در بارگیری wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>آدرس پراکسی اشتباه %s</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>شبکه مشخص شده غیرقابل شناسایی در onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>نسخه پراکسی ساکس غیرقابل شناسایی درخواست شده است: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>آدرس قابل اتصال- شناسایی نیست %s</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>آدرس خارجی قابل اتصال- شناسایی نیست %s</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>میزان وجه اشتباه برای paytxfee=&lt;میزان وجه&gt;: %s</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>میزان وجه اشتباه</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>بود جه نا کافی </translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>بار گیری شاخص بلوک</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>به اتصال یک گره اضافه کنید و اتصال را باز نگاه دارید</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Babylonian is probably already running.</source> <translation>اتصال به %s از این رایانه امکان پذیر نیست. Babylonian احتمالا در حال اجراست.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>پر داجت برای هر کیلو بیت برای اضافه به معامله ارسال</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>بار گیری والت</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>امکان تنزل نسخه در wallet وجود ندارد</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>آدرس پیش فرض قابل ذخیره نیست</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>اسکان مجدد</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>بار گیری انجام شده است</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>برای استفاده از %s از انتخابات</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>خطا</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>%s، شما باید یک rpcpassword را در فایل پیکربندی تنظیم کنید :⏎%s⏎ اگر فایل ایجاد نشد، یک فایل فقط متنی ایجاد کنید. </translation> </message> </context> </TS>
import sys from stack import Stack def <API key>(expression): """ Parse expression into list of parts :rtype : list :param expression: str # i.e. "2 * 3 + ( 2 - 3 )" """ raise NotImplementedError("complete me!") def evaluate_expression(a, b, op): raise NotImplementedError("complete me!") def evaluate_postfix(parts): raise NotImplementedError("complete me!") if __name__ == "__main__": expr = None if len(sys.argv) > 1: expr = sys.argv[1] parts = <API key>(expr) print "Evaluating %s == %s" % (expr, evaluate_postfix(parts)) else: print 'Usage: python postfix.py "<expr>" -- i.e. python postfix.py "9 1 3 + 2 * -"' print "Spaces are required between every term."
namespace TraverseDirectory { using System; using System.IO; using System.Text; using System.Xml; class Program { static void Main() { using (XmlTextWriter writer = new XmlTextWriter("../../dir.xml", Encoding.UTF8)) { writer.Formatting = Formatting.Indented; writer.IndentChar = ' '; writer.Indentation = 4; string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); writer.WriteStartDocument(); writer.WriteStartElement("Desktop"); Traverse(desktopPath, writer); writer.WriteEndDocument(); } Console.WriteLine("result saved as dir.xml"); } static void Traverse(string dir, XmlTextWriter writer) { foreach (var directory in Directory.GetDirectories(dir)) { writer.WriteStartElement("dir"); writer.<API key>("path", directory); Traverse(directory, writer); writer.WriteEndElement(); } foreach (var file in Directory.GetFiles(dir)) { writer.WriteStartElement("file"); writer.<API key>("name", Path.<API key>(file)); writer.<API key>("ext", Path.GetExtension(file)); writer.WriteEndElement(); } } } }
__history = [{"date":"Fri, 12 Jul 2013 08:56:55 GMT","sloc":9,"lloc":7,"functions":0,"deliveredBugs":0.05805500935039566,"maintainability":67.90674087790423,"lintErrors":3,"difficulty":5.3076923076923075}]
/* eslint-disable */ 'use strict'; var path = require('path'); module.exports = function configGrunt(grunt, p) { grunt.registerTask('test', []); };
// Preprocessor Directives #define <API key> // Local Headers #include "glitter.hpp" #include "shader.h" #include "camera.h" // Console Color #include "consoleColor.hpp" // System Headers #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/gtc/matrix_transform.hpp> // Standard Headers //#include <cstdio> //#include <cstdlib> #include <iostream> void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode); void do_movement(); void mouse_callback(GLFWwindow* window, double xpos, double ypos); void scroll_callback(GLFWwindow* window, double xoffset, double yoffset); Camera camera(glm::vec3(0.0f, 0.0f, 3.0f)); bool keys[1024]; GLfloat lastX = 400, lastY = 300; bool firstMouse = true; GLfloat deltaTime = 0.0f; // Time between current frame and last frame GLfloat lastFrame = 0.0f; // Time of last frame int main(int argc, char * argv[]) { glfwInit(); glfwWindowHint(<API key>, 3); glfwWindowHint(<API key>, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, <API key>); glfwWindowHint(<API key>, GL_TRUE); glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); GLFWwindow* window = glfwCreateWindow(mWidth, mHeight, "LearnOpenGL", nullptr, nullptr); if (window == nullptr) { std::cout << "Failed to create GLFW window" << std::endl; glfwTerminate(); return -1; } <API key>(window); glfwSetKeyCallback(window, key_callback); <API key>(window, mouse_callback); <API key>(window, scroll_callback); // Load OpenGL Functions gladLoadGL(); // fprintf(stderr, "OpenGL %s\n", glGetString(GL_VERSION)); std::cout << BLUE << "OpenGL " << glGetString(GL_VERSION) << RESET << std::endl; // GLint nrAttributes; // glGetIntegerv(<API key>, &nrAttributes); // std::cout << GREEN << "Maximum nr of vertex attributes supported: " << nrAttributes << RESET << std::endl; int width, height; <API key>(window, &width, &height); glViewport(0, 0, width, height); glEnable(GL_DEPTH_TEST); glfwSetInputMode(window, GLFW_CURSOR, <API key>); Shader ourShader("vert.vert", "frag.frag"); GLfloat vertices[] = { 4.77E-09,1.20595,-0.03172, -4.77E-09,1.21835,-0.03041, 0.0203,1.20699,-0.02182, 0.0203,1.20699,-0.02182, -4.77E-09,1.21835,-0.03041, 0.01984,1.2199,-0.02031, 0.02003,1.23105,-0.02186, 0.02721,1.23366,-0.00837, 0.01984,1.2199,-0.02031, 0.01984,1.2199,-0.02031, 0.02721,1.23366,-0.00837, 0.02645,1.21863,-0.00141, -4.77E-09,1.21835,-0.03041, 0,1.22734,-0.03069, 0.01984,1.2199,-0.02031, 0.01984,1.2199,-0.02031, 0,1.22734,-0.03069, 0.02003,1.23105,-0.02186, 0.01468,1.22309,0.01994, -4.77E-09,1.21742,0.02325, 0.01567,1.21306,0.01439, 0.01567,1.21306,0.01439, -4.77E-09,1.21742,0.02325, 0,1.20973,0.0205, 0,1.1706,0.01972, 0.01756,1.17823,0.0107, -9.54E-09,1.19759,0.01869, -9.54E-09,1.19759,0.01869, 0.01756,1.17823,0.0107, 0.01641,1.19993,0.01229, 0.01756,1.17823,0.0107, 0.02891,1.19263,-0.00685, 0.01641,1.19993,0.01229, 0.01641,1.19993,0.01229, 0.02891,1.19263,-0.00685, 0.02695,1.20501,-0.00425, 0.02695,1.20501,-0.00425, 0.02891,1.19263,-0.00685, 0.0203,1.20699,-0.02182, 0.0203,1.20699,-0.02182, 0.02891,1.19263,-0.00685, 0.02235,1.18587,-0.02614, 9.55E-09,1.1844,-0.03646, 4.77E-09,1.20595,-0.03172, 0.02235,1.18587,-0.02614, 0.02235,1.18587,-0.02614, 4.77E-09,1.20595,-0.03172, 0.0203,1.20699,-0.02182, 0.01567,1.21306,0.01439, 0,1.20973,0.0205, 0.01641,1.19993,0.01229, 0.01641,1.19993,0.01229, 0,1.20973,0.0205, -9.54E-09,1.19759,0.01869, 0.0203,1.20699,-0.02182, 0.01984,1.2199,-0.02031, 0.02695,1.20501,-0.00425, 0.02695,1.20501,-0.00425, 0.01984,1.2199,-0.02031, 0.02645,1.21863,-0.00141, 0.02645,1.21863,-0.00141, 0.01567,1.21306,0.01439, 0.02695,1.20501,-0.00425, 0.02695,1.20501,-0.00425, 0.01567,1.21306,0.01439, 0.01641,1.19993,0.01229, -0.01984,1.2199,-0.02031, -4.77E-09,1.21835,-0.03041, -0.0203,1.20699,-0.02182, -0.0203,1.20699,-0.02182, -4.77E-09,1.21835,-0.03041, 4.77E-09,1.20595,-0.03172, -0.02003,1.23105,-0.02186, -0.01984,1.2199,-0.02031, -0.02721,1.23366,-0.00837, -0.02721,1.23366,-0.00837, -0.01984,1.2199,-0.02031, -0.02645,1.21863,-0.00141, -4.77E-09,1.21835,-0.03041, -0.01984,1.2199,-0.02031, 0,1.22734,-0.03069, 0,1.22734,-0.03069, -0.01984,1.2199,-0.02031, -0.02003,1.23105,-0.02186, 0,1.20973,0.0205, -4.77E-09,1.21742,0.02325, -0.01567,1.21306,0.01439, -0.01567,1.21306,0.01439, -4.77E-09,1.21742,0.02325, -0.01468,1.22309,0.01994, -0.01641,1.19993,0.01229, -0.01756,1.17823,0.0107, -9.54E-09,1.19759,0.01869, -9.54E-09,1.19759,0.01869, -0.01756,1.17823,0.0107, 0,1.1706,0.01972, -0.01756,1.17823,0.0107, -0.01641,1.19993,0.01229, -0.02891,1.19263,-0.00685, -0.02891,1.19263,-0.00685, -0.01641,1.19993,0.01229, -0.02695,1.20501,-0.00425, -0.02235,1.18587,-0.02614, -0.02891,1.19263,-0.00685, -0.0203,1.20699,-0.02182, -0.0203,1.20699,-0.02182, -0.02891,1.19263,-0.00685, -0.02695,1.20501,-0.00425, -0.0203,1.20699,-0.02182, 4.77E-09,1.20595,-0.03172, -0.02235,1.18587,-0.02614, -0.02235,1.18587,-0.02614, 4.77E-09,1.20595,-0.03172, 9.55E-09,1.1844,-0.03646, -9.54E-09,1.19759,0.01869, 0,1.20973,0.0205, -0.01641,1.19993,0.01229, -0.01641,1.19993,0.01229, 0,1.20973,0.0205, -0.01567,1.21306,0.01439, -0.0203,1.20699,-0.02182, -0.02695,1.20501,-0.00425, -0.01984,1.2199,-0.02031, -0.01984,1.2199,-0.02031, -0.02695,1.20501,-0.00425, -0.02645,1.21863,-0.00141, -0.01641,1.19993,0.01229, -0.01567,1.21306,0.01439, -0.02695,1.20501,-0.00425, -0.02695,1.20501,-0.00425, -0.01567,1.21306,0.01439, -0.02645,1.21863,-0.00141, 0.01567,1.21306,0.01439, 0.02503,1.23017,0.00403, 0.01468,1.22309,0.01994, 0.01567,1.21306,0.01439, 0.02645,1.21863,-0.00141, 0.02503,1.23017,0.00403, 0.02503,1.23017,0.00403, 0.02645,1.21863,-0.00141, 0.02721,1.23366,-0.00837, -0.01567,1.21306,0.01439, -0.01468,1.22309,0.01994, -0.02503,1.23017,0.00403, -0.01567,1.21306,0.01439, -0.02503,1.23017,0.00403, -0.02645,1.21863,-0.00141, -0.02503,1.23017,0.00403, -0.02721,1.23366,-0.00837, -0.02645,1.21863,-0.00141, 0.03139,1.3603,0.07762, 0.04587,1.36008,0.07223, 0.03149,1.37552,0.0749, 0.03149,1.37552,0.0749, 0.04587,1.36008,0.07223, 0.04652,1.37396,0.06917, 0.07023,1.27958,0.03767, 0.0723,1.28971,0.038, 0.06858,1.27965,0.0514, 0.06858,1.27965,0.0514, 0.0723,1.28971,0.038, 0.07096,1.29082,0.0514, 0.01638,1.25964,0.08754, 0.01459,1.25007,0.08622, 0.02834,1.25692,0.08309, 0.02834,1.25692,0.08309, 0.01459,1.25007,0.08622, 0.02647,1.2487,0.08191, 0.0061,1.21616,0.06352, 0.0124,1.21815,0.06233, 0.00641,1.21884,0.06702, 0.00641,1.21884,0.06702, 0.0124,1.21815,0.06233, 0.01268,1.2208,0.0666, 0.01261,1.21771,0.05502, 0.0124,1.21815,0.06233, 0.00648,1.21591,0.05586, 0.00648,1.21591,0.05586, 0.0124,1.21815,0.06233, 0.0061,1.21616,0.06352, 0.05295,1.24491,0.06126, 0.05363,1.24466,0.05153, 0.05795,1.25184,0.06138, 0.05795,1.25184,0.06138, 0.05363,1.24466,0.05153, 0.0591,1.25166,0.05157, 0.02235,1.22209,0.06108, 0.02252,1.2218,0.05414, 0.03282,1.22791,0.0613, 0.03282,1.22791,0.0613, 0.02252,1.2218,0.05414, 0.0333,1.22787,0.05316, 0.02252,1.2218,0.05414, 0.02235,1.22209,0.06108, 0.01261,1.21771,0.05502, 0.01261,1.21771,0.05502, 0.02235,1.22209,0.06108, 0.0124,1.21815,0.06233, 0.02894,1.22811,0.0672, 0.03093,1.22799,0.06463, 0.0362,1.23491,0.06981, 0.0362,1.23491,0.06981, 0.03093,1.22799,0.06463, 0.03978,1.23434,0.06523, 0.05434,1.25252,0.06685, 0.04685,1.25365,0.07409, 0.05024,1.24555,0.06635, 0.05024,1.24555,0.06635, 0.04685,1.25365,0.07409, 0.04379,1.24654,0.07316, 0.0735,1.28922,0.02501, 0.0723,1.28971,0.038, 0.07095,1.27964,0.02588, 0.07095,1.27964,0.02588, 0.0723,1.28971,0.038, 0.07023,1.27958,0.03767, 0.05134,1.24564,0.01876, 0.0536,1.24468,0.02831, 0.04519,1.2403,0.02048, 0.04519,1.2403,0.02048, 0.0536,1.24468,0.02831, 0.04799,1.23945,0.02951, 0.0595,1.25156,0.0393, 0.05957,1.25153,0.02703, 0.06331,1.25887,0.03872, 0.06331,1.25887,0.03872, 0.05957,1.25153,0.02703, 0.06318,1.25883,0.02643, 0.05957,1.25153,0.02703, 0.0595,1.25156,0.0393, 0.0536,1.24468,0.02831, 0.0536,1.24468,0.02831, 0.0595,1.25156,0.0393, 0.05402,1.24445,0.04027, 0.04692,1.24657,0.00995, 0.05342,1.25298,0.00928, 0.05134,1.24564,0.01876, 0.05134,1.24564,0.01876, 0.05342,1.25298,0.00928, 0.05723,1.2522,0.01787, 0.04194,1.23381,0.04234, 0.04066,1.2338,0.03086, 0.04878,1.23893,0.04124, 0.04878,1.23893,0.04124, 0.04066,1.2338,0.03086, 0.04799,1.23945,0.02951, 0.07095,1.27964,0.02588, 0.07023,1.27958,0.03767, 0.06646,1.26648,0.02626, 0.06646,1.26648,0.02626, 0.07023,1.27958,0.03767, 0.06571,1.26606,0.03842, 0.02345,1.22239,0.04425, 0.02252,1.2218,0.05414, 0.01466,1.21907,0.0448, 0.01466,1.21907,0.0448, 0.02252,1.2218,0.05414, 0.01261,1.21771,0.05502, 0.04206,1.2795,0.07332, 0.03143,1.28117,0.07577, 0.04158,1.27434,0.07525, 0.04158,1.27434,0.07525, 0.03143,1.28117,0.07577, 0.03085,1.27622,0.0786, 0.06246,1.25878,0.0519, 0.06331,1.25887,0.03872, 0.06464,1.26573,0.05144, 0.06464,1.26573,0.05144, 0.06331,1.25887,0.03872, 0.06571,1.26606,0.03842, 0.05705,1.25905,0.06705, 0.04882,1.25987,0.07409, 0.05434,1.25252,0.06685, 0.05434,1.25252,0.06685, 0.04882,1.25987,0.07409, 0.04685,1.25365,0.07409, 0.00896,1.28062,0.0836, 0.0086,1.28722,0.08112, 0,1.28235,0.08499, 0,1.28235,0.08499, 0.0086,1.28722,0.08112, 0,1.2891,0.08302, 0.04061,1.26738,0.07744, 0.03032,1.26928,0.08152, 0.03952,1.26106,0.0782, 0.03952,1.26106,0.0782, 0.03032,1.26928,0.08152, 0.02943,1.26329,0.08302, 0.00949,1.26841,0.09069, 0.0179,1.26613,0.08729, 0.00942,1.27385,0.08785, 0.00942,1.27385,0.08785, 0.0179,1.26613,0.08729, 0.01921,1.27166,0.0853, 0.01254,1.35949,0.0839, 0.03139,1.3603,0.07762, 0.01352,1.37449,0.0805, 0.01352,1.37449,0.0805, 0.03139,1.3603,0.07762, 0.03149,1.37552,0.0749, 0.02173,1.31709,0.07831, 0.03247,1.32076,0.0765, 0.02158,1.32687,0.07898, 0.02158,1.32687,0.07898, 0.03247,1.32076,0.0765, 0.0331,1.33154,0.07653, 0.06019,1.27317,0.06641, 0.06462,1.27315,0.06051, 0.05984,1.28019,0.06589, 0.05984,1.28019,0.06589, 0.06462,1.27315,0.06051, 0.06572,1.2798,0.06003, 0.04519,1.23945,0.06554, 0.04016,1.2401,0.07158, 0.03978,1.23434,0.06523, 0.03978,1.23434,0.06523, 0.04016,1.2401,0.07158, 0.0362,1.23491,0.06981, 0.02432,1.24212,0.08008, 0.02647,1.2487,0.08191, 0.01386,1.2431,0.08354, 0.01386,1.2431,0.08354, 0.02647,1.2487,0.08191, 0.01459,1.25007,0.08622, 0.04066,1.2338,0.03086, 0.04194,1.23381,0.04234, 0.03154,1.22797,0.03229, 0.03154,1.22797,0.03229, 0.04194,1.23381,0.04234, 0.03257,1.22766,0.04363, 0.04066,1.2338,0.03086, 0.03154,1.22797,0.03229, 0.03809,1.23448,0.02291, 0.03809,1.23448,0.02291, 0.03154,1.22797,0.03229, 0.02885,1.22882,0.02475, 0.0357,1.24758,0.07746, 0.02647,1.2487,0.08191, 0.0329,1.24107,0.07576, 0.0329,1.24107,0.07576, 0.02647,1.2487,0.08191, 0.02432,1.24212,0.08008, 0.03817,1.25507,0.07805, 0.02834,1.25692,0.08309, 0.0357,1.24758,0.07746, 0.0357,1.24758,0.07746, 0.02834,1.25692,0.08309, 0.02647,1.2487,0.08191, 0.03085,1.27622,0.0786, 0.03143,1.28117,0.07577, 0.02007,1.27859,0.08134, 0.02007,1.27859,0.08134, 0.03143,1.28117,0.07577, 0.02062,1.28425,0.07855, 0.02834,1.25692,0.08309, 0.02943,1.26329,0.08302, 0.01638,1.25964,0.08754, 0.01638,1.25964,0.08754, 0.02943,1.26329,0.08302, 0.0179,1.26613,0.08729, 0.04611,1.34741,0.07345, 0.03228,1.34693,0.07827, 0.04568,1.34193,0.07366, 0.04568,1.34193,0.07366, 0.03228,1.34693,0.07827, 0.03255,1.34161,0.07752, 0.0086,1.28722,0.08112, 0.00896,1.28062,0.0836, 0.02062,1.28425,0.07855, 0.02062,1.28425,0.07855, 0.00896,1.28062,0.0836, 0.02007,1.27859,0.08134, 0.06877,1.37605,0.04344, 0.0588,1.38544,0.05528, 0.06907,1.36504,0.05375, 0.06907,1.36504,0.05375, 0.0588,1.38544,0.05528, 0.0591,1.37122,0.06388, 0.04651,1.38985,0.06161, 0.03157,1.39284,0.06592, 0.04652,1.37396,0.06917, 0.04652,1.37396,0.06917, 0.03157,1.39284,0.06592, 0.03149,1.37552,0.0749, 0.01352,1.37449,0.0805, 0.03149,1.37552,0.0749, 0.01383,1.39434,0.07041, 0.01383,1.39434,0.07041, 0.03149,1.37552,0.0749, 0.03157,1.39284,0.06592, 0.00942,1.27385,0.08785, 0.00896,1.28062,0.0836, 0,1.27583,0.08966, 0,1.27583,0.08966, 0.00896,1.28062,0.0836, 0,1.28235,0.08499, 0.00896,1.28062,0.0836, 0.00942,1.27385,0.08785, 0.02007,1.27859,0.08134, 0.02007,1.27859,0.08134, 0.00942,1.27385,0.08785, 0.01921,1.27166,0.0853, 0.03085,1.27622,0.0786, 0.02007,1.27859,0.08134, 0.03032,1.26928,0.08152, 0.03032,1.26928,0.08152, 0.02007,1.27859,0.08134, 0.01921,1.27166,0.0853, 0.04158,1.27434,0.07525, 0.03085,1.27622,0.0786, 0.04061,1.26738,0.07744, 0.04061,1.26738,0.07744, 0.03085,1.27622,0.0786, 0.03032,1.26928,0.08152, 0.05919,1.26579,0.06679, 0.06294,1.26572,0.06097, 0.06019,1.27317,0.06641, 0.06019,1.27317,0.06641, 0.06294,1.26572,0.06097, 0.06462,1.27315,0.06051, 0.05196,1.27963,0.0702, 0.04206,1.2795,0.07332, 0.05151,1.27351,0.07187, 0.05151,1.27351,0.07187, 0.04206,1.2795,0.07332, 0.04158,1.27434,0.07525, 0.05151,1.27351,0.07187, 0.04158,1.27434,0.07525, 0.05076,1.26639,0.07326, 0.05076,1.26639,0.07326, 0.04158,1.27434,0.07525, 0.04061,1.26738,0.07744, 0.0723,1.28971,0.038, 0.07385,1.29993,0.03892, 0.07096,1.29082,0.0514, 0.07096,1.29082,0.0514, 0.07385,1.29993,0.03892, 0.07238,1.30016,0.05146, 0.0735,1.28922,0.02501, 0.07524,1.29924,0.02406, 0.0723,1.28971,0.038, 0.0723,1.28971,0.038, 0.07524,1.29924,0.02406, 0.07385,1.29993,0.03892, 0.04222,1.28399,0.07212, 0.04321,1.30286,0.07431, 0.03165,1.28557,0.07493, 0.03165,1.28557,0.07493, 0.04321,1.30286,0.07431, 0.03212,1.3029,0.07701, 0.02172,1.30279,0.07802, 0.02113,1.28909,0.07723, 0.03212,1.3029,0.07701, 0.03212,1.3029,0.07701, 0.02113,1.28909,0.07723, 0.03165,1.28557,0.07493, 0.05192,1.28491,0.06885, 0.04222,1.28399,0.07212, 0.05196,1.27963,0.0702, 0.05196,1.27963,0.0702, 0.04222,1.28399,0.07212, 0.04206,1.2795,0.07332, 0.03165,1.28557,0.07493, 0.03143,1.28117,0.07577, 0.04222,1.28399,0.07212, 0.04222,1.28399,0.07212, 0.03143,1.28117,0.07577, 0.04206,1.2795,0.07332, 0.00832,1.29269,0.08068, 0.0086,1.28722,0.08112, 0.02113,1.28909,0.07723, 0.02113,1.28909,0.07723, 0.0086,1.28722,0.08112, 0.02062,1.28425,0.07855, 0.00641,1.21884,0.06702, 0.01268,1.2208,0.0666, 0.00625,1.22817,0.07456, 0.00625,1.22817,0.07456, 0.01268,1.2208,0.0666, 0.0123,1.22821,0.07384, 0.0735,1.28922,0.02501, 0.07406,1.28893,0.01498, 0.07524,1.29924,0.02406, 0.07524,1.29924,0.02406, 0.07406,1.28893,0.01498, 0.07573,1.29881,0.01441, 0.06318,1.25883,0.02643, 0.05957,1.25153,0.02703, 0.0609,1.25604,0.01715, 0.0609,1.25604,0.01715, 0.05957,1.25153,0.02703, 0.05723,1.2522,0.01787, 0.04519,1.2403,0.02048, 0.04799,1.23945,0.02951, 0.03809,1.23448,0.02291, 0.03809,1.23448,0.02291, 0.04799,1.23945,0.02951, 0.04066,1.2338,0.03086, 0.04379,1.24654,0.07316, 0.0357,1.24758,0.07746, 0.04016,1.2401,0.07158, 0.04016,1.2401,0.07158, 0.0357,1.24758,0.07746, 0.0329,1.24107,0.07576, 0.04685,1.25365,0.07409, 0.03817,1.25507,0.07805, 0.04379,1.24654,0.07316, 0.04379,1.24654,0.07316, 0.03817,1.25507,0.07805, 0.0357,1.24758,0.07746, 0.03952,1.26106,0.0782, 0.04882,1.25987,0.07409, 0.04061,1.26738,0.07744, 0.04061,1.26738,0.07744, 0.04882,1.25987,0.07409, 0.05076,1.26639,0.07326, 0.0362,1.23491,0.06981, 0.02972,1.23563,0.07368, 0.02894,1.22811,0.0672, 0.02894,1.22811,0.0672, 0.02972,1.23563,0.07368, 0.02368,1.22846,0.07047, 0.06646,1.26648,0.02626, 0.06571,1.26606,0.03842, 0.06318,1.25883,0.02643, 0.06318,1.25883,0.02643, 0.06571,1.26606,0.03842, 0.06331,1.25887,0.03872, 0.05919,1.26579,0.06679, 0.05076,1.26639,0.07326, 0.05705,1.25905,0.06705, 0.05705,1.25905,0.06705, 0.05076,1.26639,0.07326, 0.04882,1.25987,0.07409, 0.02943,1.26329,0.08302, 0.02834,1.25692,0.08309, 0.03952,1.26106,0.0782, 0.03952,1.26106,0.0782, 0.02834,1.25692,0.08309, 0.03817,1.25507,0.07805, 0.03032,1.26928,0.08152, 0.01921,1.27166,0.0853, 0.02943,1.26329,0.08302, 0.02943,1.26329,0.08302, 0.01921,1.27166,0.0853, 0.0179,1.26613,0.08729, 0.03817,1.25507,0.07805, 0.04685,1.25365,0.07409, 0.03952,1.26106,0.0782, 0.03952,1.26106,0.0782, 0.04685,1.25365,0.07409, 0.04882,1.25987,0.07409, 0.0536,1.24468,0.02831, 0.05402,1.24445,0.04027, 0.04799,1.23945,0.02951, 0.04799,1.23945,0.02951, 0.05402,1.24445,0.04027, 0.04878,1.23893,0.04124, 0.05363,1.24466,0.05153, 0.05295,1.24491,0.06126, 0.04843,1.23908,0.05175, 0.04843,1.23908,0.05175, 0.05295,1.24491,0.06126, 0.04773,1.23921,0.06125, 0.05024,1.24555,0.06635, 0.04379,1.24654,0.07316, 0.04519,1.23945,0.06554, 0.04519,1.23945,0.06554, 0.04379,1.24654,0.07316, 0.04016,1.2401,0.07158, 0.01315,1.23656,0.08006, 0.02085,1.23626,0.07781, 0.01386,1.2431,0.08354, 0.01386,1.2431,0.08354, 0.02085,1.23626,0.07781, 0.02432,1.24212,0.08008, 0.02085,1.23626,0.07781, 0.02972,1.23563,0.07368, 0.02432,1.24212,0.08008, 0.02432,1.24212,0.08008, 0.02972,1.23563,0.07368, 0.0329,1.24107,0.07576, 0.02972,1.23563,0.07368, 0.0362,1.23491,0.06981, 0.0329,1.24107,0.07576, 0.0329,1.24107,0.07576, 0.0362,1.23491,0.06981, 0.04016,1.2401,0.07158, 0.05705,1.25905,0.06705, 0.06076,1.25889,0.06133, 0.05919,1.26579,0.06679, 0.05919,1.26579,0.06679, 0.06076,1.25889,0.06133, 0.06294,1.26572,0.06097, 0.05434,1.25252,0.06685, 0.05795,1.25184,0.06138, 0.05705,1.25905,0.06705, 0.05705,1.25905,0.06705, 0.05795,1.25184,0.06138, 0.06076,1.25889,0.06133, 0.01459,1.25007,0.08622, 0.01638,1.25964,0.08754, 0.0076,1.25064,0.088, 0.0076,1.25064,0.088, 0.01638,1.25964,0.08754, 0.00879,1.26171,0.09069, 0,1.21802,0.06771, 0,1.21473,0.06443, 0.00641,1.21884,0.06702, 0.00641,1.21884,0.06702, 0,1.21473,0.06443, 0.0061,1.21616,0.06352, 0,1.21473,0.06443, 0,1.21446,0.05669, 0.0061,1.21616,0.06352, 0.0061,1.21616,0.06352, 0,1.21446,0.05669, 0.00648,1.21591,0.05586, 0.00648,1.21591,0.05586, 0.00723,1.21695,0.04555, 0.01261,1.21771,0.05502, 0.01261,1.21771,0.05502, 0.00723,1.21695,0.04555, 0.01466,1.21907,0.0448, 0.0123,1.22821,0.07384, 0.01315,1.23656,0.08006, 0.00625,1.22817,0.07456, 0.00625,1.22817,0.07456, 0.01315,1.23656,0.08006, 0.00675,1.23669,0.08119, 0.01315,1.23656,0.08006, 0.01386,1.2431,0.08354, 0.00675,1.23669,0.08119, 0.00675,1.23669,0.08119, 0.01386,1.2431,0.08354, 0.00689,1.24354,0.08499, 0,1.22807,0.07536, 0,1.21802,0.06771, 0.00625,1.22817,0.07456, 0.00625,1.22817,0.07456, 0,1.21802,0.06771, 0.00641,1.21884,0.06702, 0.01478,1.22193,0.02696, 0.01477,1.22046,0.03429, -9.54E-09,1.21815,0.02846, -9.54E-09,1.21815,0.02846, 0.01477,1.22046,0.03429, 0,1.21761,0.03547, 0.01386,1.2431,0.08354, 0.01459,1.25007,0.08622, 0.00689,1.24354,0.08499, 0.00689,1.24354,0.08499, 0.01459,1.25007,0.08622, 0.0076,1.25064,0.088, 0.00832,1.29269,0.08068, 0.00805,1.30202,0.08029, 0,1.29425,0.08259, 0,1.29425,0.08259, 0.00805,1.30202,0.08029, 0,1.30203,0.08279, 0.00879,1.26171,0.09069, 0.00949,1.26841,0.09069, 0,1.26362,0.09341, 0,1.26362,0.09341, 0.00949,1.26841,0.09069, 0,1.27174,0.09502, 0.00625,1.22817,0.07456, 0.00675,1.23669,0.08119, 0,1.22807,0.07536, 0,1.22807,0.07536, 0.00675,1.23669,0.08119, 0,1.23682,0.08214, 0.00675,1.23669,0.08119, 0.00689,1.24354,0.08499, 0,1.23682,0.08214, 0,1.23682,0.08214, 0.00689,1.24354,0.08499, 0,1.24385,0.08592, 0.00949,1.26841,0.09069, 0.00942,1.27385,0.08785, 0,1.27174,0.09502, 0,1.27174,0.09502, 0.00942,1.27385,0.08785, 0,1.27583,0.08966, 0,1.32051,0.08428, 0.00931,1.32109,0.08153, 0,1.33386,0.08582, 0,1.33386,0.08582, 0.00931,1.32109,0.08153, 0.0113,1.33435,0.08343, 0.01383,1.39434,0.07041, 0,1.39425,0.07381, 0.01352,1.37449,0.0805, 0.01352,1.37449,0.0805, 0,1.39425,0.07381, 0,1.37428,0.08327, 0.01352,1.37449,0.0805, 0,1.37428,0.08327, 0.01254,1.35949,0.0839, 0.01254,1.35949,0.0839, 0,1.37428,0.08327, 0,1.3588,0.08654, 0.0119,1.34577,0.08461, 0,1.34487,0.08687, 0.0113,1.33435,0.08343, 0.0113,1.33435,0.08343, 0,1.34487,0.08687, 0,1.33386,0.08582, 0.0086,1.28722,0.08112, 0.00832,1.29269,0.08068, 0,1.2891,0.08302, 0,1.2891,0.08302, 0.00832,1.29269,0.08068, 0,1.29425,0.08259, 0.01254,1.35949,0.0839, 0,1.3588,0.08654, 0.0119,1.34577,0.08461, 0.0119,1.34577,0.08461, 0,1.3588,0.08654, 0,1.34487,0.08687, 0.00689,1.24354,0.08499, 0.0076,1.25064,0.088, 0,1.24385,0.08592, 0,1.24385,0.08592, 0.0076,1.25064,0.088, 0,1.25112,0.08923, 0,1.30796,0.08302, 0.00789,1.31027,0.08043, 0,1.32051,0.08428, 0,1.32051,0.08428, 0.00789,1.31027,0.08043, 0.00931,1.32109,0.08153, 0.0119,1.34577,0.08461, 0.01861,1.34091,0.08232, 0.03188,1.35226,0.07853, 0.03188,1.35226,0.07853, 0.01861,1.34091,0.08232, 0.03228,1.34693,0.07827, 0.01638,1.25964,0.08754, 0.0179,1.26613,0.08729, 0.00879,1.26171,0.09069, 0.00879,1.26171,0.09069, 0.0179,1.26613,0.08729, 0.00949,1.26841,0.09069, 0.0553,1.32054,0.06849, 0.05697,1.33119,0.0684, 0.04407,1.32169,0.07304, 0.04407,1.32169,0.07304, 0.05697,1.33119,0.0684, 0.04535,1.3333,0.0733, 0.03143,1.28117,0.07577, 0.03165,1.28557,0.07493, 0.02062,1.28425,0.07855, 0.02062,1.28425,0.07855, 0.03165,1.28557,0.07493, 0.02113,1.28909,0.07723, 0.07847,1.32401,0.02407, 0.07697,1.31061,0.02391, 0.07878,1.32355,0.01812, 0.07878,1.32355,0.01812, 0.07697,1.31061,0.02391, 0.0777,1.31122,0.01351, 0.05876,1.35078,0.06779, 0.05924,1.35889,0.06756, 0.04625,1.35276,0.07318, 0.04625,1.35276,0.07318, 0.05924,1.35889,0.06756, 0.04587,1.36008,0.07223, 0.03139,1.3603,0.07762, 0.03188,1.35226,0.07853, 0.04587,1.36008,0.07223, 0.04587,1.36008,0.07223, 0.03188,1.35226,0.07853, 0.04625,1.35276,0.07318, 0.0119,1.34577,0.08461, 0.03188,1.35226,0.07853, 0.01254,1.35949,0.0839, 0.01254,1.35949,0.0839, 0.03188,1.35226,0.07853, 0.03139,1.3603,0.07762, 0.06822,1.34604,0.06187, 0.06715,1.34033,0.06291, 0.07509,1.33874,0.05462, 0.07509,1.33874,0.05462, 0.06715,1.34033,0.06291, 0.07308,1.334,0.0574, 0.05849,1.34513,0.06759, 0.05876,1.35078,0.06779, 0.04611,1.34741,0.07345, 0.04611,1.34741,0.07345, 0.05876,1.35078,0.06779, 0.04625,1.35276,0.07318, 0.03228,1.34693,0.07827, 0.04611,1.34741,0.07345, 0.03188,1.35226,0.07853, 0.03188,1.35226,0.07853, 0.04611,1.34741,0.07345, 0.04625,1.35276,0.07318, 0.03247,1.32076,0.0765, 0.04407,1.32169,0.07304, 0.0331,1.33154,0.07653, 0.0331,1.33154,0.07653, 0.04407,1.32169,0.07304, 0.04535,1.3333,0.0733, 0.06715,1.34033,0.06291, 0.06566,1.33482,0.06396, 0.07308,1.334,0.0574, 0.07308,1.334,0.0574, 0.06566,1.33482,0.06396, 0.07028,1.32903,0.06039, 0.06566,1.33482,0.06396, 0.06281,1.32678,0.0652, 0.07028,1.32903,0.06039, 0.07028,1.32903,0.06039, 0.06281,1.32678,0.0652, 0.06632,1.32308,0.0629, 0.05697,1.33119,0.0684, 0.05815,1.33938,0.06792, 0.04535,1.3333,0.0733, 0.04535,1.3333,0.0733, 0.05815,1.33938,0.06792, 0.04568,1.34193,0.07366, 0.06572,1.2798,0.06003, 0.06858,1.27965,0.0514, 0.06782,1.29159,0.05893, 0.06782,1.29159,0.05893, 0.06858,1.27965,0.0514, 0.07096,1.29082,0.0514, 0.06294,1.26572,0.06097, 0.06464,1.26573,0.05144, 0.06462,1.27315,0.06051, 0.06462,1.27315,0.06051, 0.06464,1.26573,0.05144, 0.0667,1.27327,0.05123, 0.06076,1.25889,0.06133, 0.06246,1.25878,0.0519, 0.06294,1.26572,0.06097, 0.06294,1.26572,0.06097, 0.06246,1.25878,0.0519, 0.06464,1.26573,0.05144, 0.05795,1.25184,0.06138, 0.0591,1.25166,0.05157, 0.06076,1.25889,0.06133, 0.06076,1.25889,0.06133, 0.0591,1.25166,0.05157, 0.06246,1.25878,0.0519, 0.04843,1.23908,0.05175, 0.04773,1.23921,0.06125, 0.04179,1.234,0.05217, 0.04179,1.234,0.05217, 0.04773,1.23921,0.06125, 0.0414,1.23409,0.06121, 0.03282,1.22791,0.0613, 0.0333,1.22787,0.05316, 0.0414,1.23409,0.06121, 0.0414,1.23409,0.06121, 0.0333,1.22787,0.05316, 0.04179,1.234,0.05217, 0.05795,1.25184,0.06138, 0.05434,1.25252,0.06685, 0.05295,1.24491,0.06126, 0.05295,1.24491,0.06126, 0.05434,1.25252,0.06685, 0.05024,1.24555,0.06635, 0.04519,1.23945,0.06554, 0.04773,1.23921,0.06125, 0.05024,1.24555,0.06635, 0.05024,1.24555,0.06635, 0.04773,1.23921,0.06125, 0.05295,1.24491,0.06126, 0.03093,1.22799,0.06463, 0.03282,1.22791,0.0613, 0.03978,1.23434,0.06523, 0.03978,1.23434,0.06523, 0.03282,1.22791,0.0613, 0.0414,1.23409,0.06121, 0.03978,1.23434,0.06523, 0.0414,1.23409,0.06121, 0.04519,1.23945,0.06554, 0.04519,1.23945,0.06554, 0.0414,1.23409,0.06121, 0.04773,1.23921,0.06125, 0.05196,1.27963,0.0702, 0.05984,1.28019,0.06589, 0.05192,1.28491,0.06885, 0.05192,1.28491,0.06885, 0.05984,1.28019,0.06589, 0.0579,1.28663,0.06556, 0.05151,1.27351,0.07187, 0.06019,1.27317,0.06641, 0.05196,1.27963,0.0702, 0.05196,1.27963,0.0702, 0.06019,1.27317,0.06641, 0.05984,1.28019,0.06589, 0.05076,1.26639,0.07326, 0.05919,1.26579,0.06679, 0.05151,1.27351,0.07187, 0.05151,1.27351,0.07187, 0.05919,1.26579,0.06679, 0.06019,1.27317,0.06641, 0.06464,1.26573,0.05144, 0.06571,1.26606,0.03842, 0.0667,1.27327,0.05123, 0.0667,1.27327,0.05123, 0.06571,1.26606,0.03842, 0.07023,1.27958,0.03767, 0.06858,1.27965,0.0514, 0.06572,1.2798,0.06003, 0.0667,1.27327,0.05123, 0.0667,1.27327,0.05123, 0.06572,1.2798,0.06003, 0.06462,1.27315,0.06051, 0.06242,1.29301,0.06351, 0.06782,1.29159,0.05893, 0.06398,1.3,0.06301, 0.06398,1.3,0.06301, 0.06782,1.29159,0.05893, 0.06962,1.3,0.05828, 0.06398,1.3,0.06301, 0.06962,1.3,0.05828, 0.06391,1.30679,0.06338, 0.06391,1.30679,0.06338, 0.06962,1.3,0.05828, 0.06977,1.30839,0.05889, 0.06391,1.30679,0.06338, 0.06977,1.30839,0.05889, 0.06239,1.31339,0.06486, 0.06239,1.31339,0.06486, 0.06977,1.30839,0.05889, 0.06885,1.31663,0.06067, 0.05924,1.35889,0.06756, 0.05876,1.35078,0.06779, 0.07054,1.35545,0.05999, 0.07054,1.35545,0.05999, 0.05876,1.35078,0.06779, 0.06822,1.34604,0.06187, 0.06715,1.34033,0.06291, 0.06822,1.34604,0.06187, 0.05849,1.34513,0.06759, 0.05849,1.34513,0.06759, 0.06822,1.34604,0.06187, 0.05876,1.35078,0.06779, 0.06566,1.33482,0.06396, 0.06715,1.34033,0.06291, 0.05815,1.33938,0.06792, 0.05815,1.33938,0.06792, 0.06715,1.34033,0.06291, 0.05849,1.34513,0.06759, 0.06281,1.32678,0.0652, 0.06566,1.33482,0.06396, 0.05697,1.33119,0.0684, 0.05697,1.33119,0.0684, 0.06566,1.33482,0.06396, 0.05815,1.33938,0.06792, 0.03212,1.3029,0.07701, 0.04321,1.30286,0.07431, 0.03247,1.32076,0.0765, 0.03247,1.32076,0.0765, 0.04321,1.30286,0.07431, 0.04407,1.32169,0.07304, 0.02172,1.30279,0.07802, 0.03212,1.3029,0.07701, 0.02173,1.31709,0.07831, 0.02173,1.31709,0.07831, 0.03212,1.3029,0.07701, 0.03247,1.32076,0.0765, 0.01492,1.3025,0.0785, 0.02172,1.30279,0.07802, 0.01438,1.31283,0.07895, 0.01438,1.31283,0.07895, 0.02172,1.30279,0.07802, 0.02173,1.31709,0.07831, 0.00805,1.30202,0.08029, 0.01492,1.3025,0.0785, 0.00789,1.31027,0.08043, 0.00789,1.31027,0.08043, 0.01492,1.3025,0.0785, 0.01438,1.31283,0.07895, 0,1.30203,0.08279, 0.00805,1.30202,0.08029, 0,1.30796,0.08302, 0,1.30796,0.08302, 0.00805,1.30202,0.08029, 0.00789,1.31027,0.08043, 0.05322,1.30294,0.07019, 0.04321,1.30286,0.07431, 0.05192,1.28491,0.06885, 0.05192,1.28491,0.06885, 0.04321,1.30286,0.07431, 0.04222,1.28399,0.07212, 0.01438,1.31283,0.07895, 0.02173,1.31709,0.07831, 0.00931,1.32109,0.08153, 0.00931,1.32109,0.08153, 0.02173,1.31709,0.07831, 0.02158,1.32687,0.07898, 0.0331,1.33154,0.07653, 0.04535,1.3333,0.0733, 0.03255,1.34161,0.07752, 0.03255,1.34161,0.07752, 0.04535,1.3333,0.0733, 0.04568,1.34193,0.07366, 0.0731,1.30975,0.0524, 0.06977,1.30839,0.05889, 0.07238,1.30016,0.05146, 0.07238,1.30016,0.05146, 0.06977,1.30839,0.05889, 0.06962,1.3,0.05828, 0.06782,1.29159,0.05893, 0.07096,1.29082,0.0514, 0.06962,1.3,0.05828, 0.06962,1.3,0.05828, 0.07096,1.29082,0.0514, 0.07238,1.30016,0.05146, 0.04611,1.34741,0.07345, 0.04568,1.34193,0.07366, 0.05849,1.34513,0.06759, 0.05849,1.34513,0.06759, 0.04568,1.34193,0.07366, 0.05815,1.33938,0.06792, 0.04652,1.37396,0.06917, 0.04587,1.36008,0.07223, 0.0591,1.37122,0.06388, 0.0591,1.37122,0.06388, 0.04587,1.36008,0.07223, 0.05924,1.35889,0.06756, 0.04651,1.38985,0.06161, 0.04652,1.37396,0.06917, 0.0588,1.38544,0.05528, 0.0588,1.38544,0.05528, 0.04652,1.37396,0.06917, 0.0591,1.37122,0.06388, -9.54E-09,1.21815,0.02846, -4.77E-09,1.21742,0.02325, 0.01478,1.22193,0.02696, 0.01478,1.22193,0.02696, -4.77E-09,1.21742,0.02325, 0.01468,1.22309,0.01994, 0.02721,1.23366,-0.00837, 0.02003,1.23105,-0.02186, 0.03316,1.23991,-0.01178, 0.03316,1.23991,-0.01178, 0.02003,1.23105,-0.02186, 0.0228,1.23744,-0.02778, 0,1.23344,-0.03937, 0.0228,1.23744,-0.02778, 0,1.22734,-0.03069, 0,1.22734,-0.03069, 0.0228,1.23744,-0.02778, 0.02003,1.23105,-0.02186, 0.07549,1.35591,0.04042, 0.07662,1.34467,0.04784, 0.0794,1.3395,0.02451, 0.0794,1.3395,0.02451, 0.07662,1.34467,0.04784, 0.07767,1.32552,0.03517, 0.06907,1.36504,0.05375, 0.07054,1.35545,0.05999, 0.07549,1.35591,0.04042, 0.07549,1.35591,0.04042, 0.07054,1.35545,0.05999, 0.07662,1.34467,0.04784, 0.07594,1.31054,0.03424, 0.07767,1.32552,0.03517, 0.07447,1.31052,0.04458, 0.07447,1.31052,0.04458, 0.07767,1.32552,0.03517, 0.07591,1.32547,0.04546, 0.07767,1.32552,0.03517, 0.07594,1.31054,0.03424, 0.07847,1.32401,0.02407, 0.07847,1.32401,0.02407, 0.07594,1.31054,0.03424, 0.07697,1.31061,0.02391, 0.07697,1.31061,0.02391, 0.07594,1.31054,0.03424, 0.07524,1.29924,0.02406, 0.07524,1.29924,0.02406, 0.07594,1.31054,0.03424, 0.07385,1.29993,0.03892, 0.06331,1.25887,0.03872, 0.06246,1.25878,0.0519, 0.0595,1.25156,0.0393, 0.0595,1.25156,0.0393, 0.06246,1.25878,0.0519, 0.0591,1.25166,0.05157, 0.0595,1.25156,0.0393, 0.0591,1.25166,0.05157, 0.05402,1.24445,0.04027, 0.05402,1.24445,0.04027, 0.0591,1.25166,0.05157, 0.05363,1.24466,0.05153, 0.04843,1.23908,0.05175, 0.04878,1.23893,0.04124, 0.05363,1.24466,0.05153, 0.05363,1.24466,0.05153, 0.04878,1.23893,0.04124, 0.05402,1.24445,0.04027, 0.04878,1.23893,0.04124, 0.04843,1.23908,0.05175, 0.04194,1.23381,0.04234, 0.04194,1.23381,0.04234, 0.04843,1.23908,0.05175, 0.04179,1.234,0.05217, 0.0333,1.22787,0.05316, 0.03257,1.22766,0.04363, 0.04179,1.234,0.05217, 0.04179,1.234,0.05217, 0.03257,1.22766,0.04363, 0.04194,1.23381,0.04234, 0.03257,1.22766,0.04363, 0.0333,1.22787,0.05316, 0.02345,1.22239,0.04425, 0.02345,1.22239,0.04425, 0.0333,1.22787,0.05316, 0.02252,1.2218,0.05414, 0,1.21446,0.05669, 0,1.21552,0.04637, 0.00648,1.21591,0.05586, 0.00648,1.21591,0.05586, 0,1.21552,0.04637, 0.00723,1.21695,0.04555, 0.0536,1.24468,0.02831, 0.05134,1.24564,0.01876, 0.05957,1.25153,0.02703, 0.05957,1.25153,0.02703, 0.05134,1.24564,0.01876, 0.05723,1.2522,0.01787, 0.02885,1.22882,0.02475, 0.03154,1.22797,0.03229, 0.01478,1.22193,0.02696, 0.01478,1.22193,0.02696, 0.03154,1.22797,0.03229, 0.01477,1.22046,0.03429, 0.03809,1.23448,0.02291, 0.02885,1.22882,0.02475, 0.03478,1.23507,0.01392, 0.03478,1.23507,0.01392, 0.02885,1.22882,0.02475, 0.02579,1.22936,0.01621, 0.03809,1.23448,0.02291, 0.03478,1.23507,0.01392, 0.04519,1.2403,0.02048, 0.04519,1.2403,0.02048, 0.03478,1.23507,0.01392, 0.04196,1.24137,0.01174, 0.05134,1.24564,0.01876, 0.04519,1.2403,0.02048, 0.04692,1.24657,0.00995, 0.04692,1.24657,0.00995, 0.04519,1.2403,0.02048, 0.04196,1.24137,0.01174, 0.03862,1.24182,-0.00035, 0.03204,1.23539,0.0016, 0.03316,1.23991,-0.01178, 0.03316,1.23991,-0.01178, 0.03204,1.23539,0.0016, 0.02721,1.23366,-0.00837, 0.02579,1.22936,0.01621, 0.02885,1.22882,0.02475, 0.01468,1.22309,0.01994, 0.01468,1.22309,0.01994, 0.02885,1.22882,0.02475, 0.01478,1.22193,0.02696, 0.06724,1.26686,0.01577, 0.06646,1.26648,0.02626, 0.06332,1.25867,0.01678, 0.06332,1.25867,0.01678, 0.06646,1.26648,0.02626, 0.06318,1.25883,0.02643, 0.07177,1.28009,0.01507, 0.07095,1.27964,0.02588, 0.06724,1.26686,0.01577, 0.06724,1.26686,0.01577, 0.07095,1.27964,0.02588, 0.06646,1.26648,0.02626, 0.07406,1.28893,0.01498, 0.0735,1.28922,0.02501, 0.07177,1.28009,0.01507, 0.07177,1.28009,0.01507, 0.0735,1.28922,0.02501, 0.07095,1.27964,0.02588, 0.0777,1.31122,0.01351, 0.07697,1.31061,0.02391, 0.07573,1.29881,0.01441, 0.07573,1.29881,0.01441, 0.07697,1.31061,0.02391, 0.07524,1.29924,0.02406, -0.04652,1.37396,0.06917, -0.04587,1.36008,0.07223, -0.03149,1.37552,0.0749, -0.03149,1.37552,0.0749, -0.04587,1.36008,0.07223, -0.03139,1.3603,0.07762, -0.07023,1.27958,0.03767, -0.06858,1.27965,0.0514, -0.0723,1.28971,0.038, -0.0723,1.28971,0.038, -0.06858,1.27965,0.0514, -0.07096,1.29082,0.0514, -0.01638,1.25964,0.08754, -0.02834,1.25692,0.08309, -0.01459,1.25007,0.08622, -0.01459,1.25007,0.08622, -0.02834,1.25692,0.08309, -0.02647,1.2487,0.08191, -0.0061,1.21616,0.06352, -0.00641,1.21884,0.06702, -0.01248,1.21797,0.06233, -0.01248,1.21797,0.06233, -0.00641,1.21884,0.06702, -0.01271,1.22073,0.0666, -0.0061,1.21616,0.06352, -0.01248,1.21797,0.06233, -0.00648,1.21591,0.05586, -0.00648,1.21591,0.05586, -0.01248,1.21797,0.06233, -0.01261,1.21771,0.05502, -0.0591,1.25166,0.05157, -0.05363,1.24466,0.05153, -0.05795,1.25184,0.06138, -0.05795,1.25184,0.06138, -0.05363,1.24466,0.05153, -0.05295,1.24491,0.06126, -0.0333,1.22787,0.05316, -0.02252,1.2218,0.05414, -0.03282,1.22791,0.0613, -0.03282,1.22791,0.0613, -0.02252,1.2218,0.05414, -0.02235,1.22209,0.06108, -0.01248,1.21797,0.06233, -0.02235,1.22209,0.06108, -0.01261,1.21771,0.05502, -0.01261,1.21771,0.05502, -0.02235,1.22209,0.06108, -0.02252,1.2218,0.05414, -0.03978,1.23434,0.06523, -0.03093,1.22799,0.06463, -0.0362,1.23491,0.06981, -0.0362,1.23491,0.06981, -0.03093,1.22799,0.06463, -0.02894,1.22811,0.0672, -0.04379,1.24654,0.07316, -0.04685,1.25365,0.07409, -0.05024,1.24555,0.06635, -0.05024,1.24555,0.06635, -0.04685,1.25365,0.07409, -0.05434,1.25252,0.06685, -0.07023,1.27958,0.03767, -0.0723,1.28971,0.038, -0.07095,1.27964,0.02588, -0.07095,1.27964,0.02588, -0.0723,1.28971,0.038, -0.0735,1.28922,0.02501, -0.04799,1.23945,0.02951, -0.0536,1.24468,0.02831, -0.04519,1.2403,0.02048, -0.04519,1.2403,0.02048, -0.0536,1.24468,0.02831, -0.05134,1.24564,0.01876, -0.06318,1.25883,0.02643, -0.05957,1.25153,0.02703, -0.06331,1.25887,0.03872, -0.06331,1.25887,0.03872, -0.05957,1.25153,0.02703, -0.0595,1.25156,0.0393, -0.05957,1.25153,0.02703, -0.0536,1.24468,0.02831, -0.0595,1.25156,0.0393, -0.0595,1.25156,0.0393, -0.0536,1.24468,0.02831, -0.05402,1.24445,0.04027, -0.04692,1.24657,0.00995, -0.05134,1.24564,0.01876, -0.05342,1.25298,0.00928, -0.05342,1.25298,0.00928, -0.05134,1.24564,0.01876, -0.05723,1.2522,0.01787, -0.04799,1.23945,0.02951, -0.04066,1.2338,0.03086, -0.04878,1.23893,0.04124, -0.04878,1.23893,0.04124, -0.04066,1.2338,0.03086, -0.04194,1.23381,0.04234, -0.06571,1.26606,0.03842, -0.07023,1.27958,0.03767, -0.06646,1.26648,0.02626, -0.06646,1.26648,0.02626, -0.07023,1.27958,0.03767, -0.07095,1.27964,0.02588, -0.02345,1.22239,0.04425, -0.01466,1.21907,0.0448, -0.02252,1.2218,0.05414, -0.02252,1.2218,0.05414, -0.01466,1.21907,0.0448, -0.01261,1.21771,0.05502, -0.03085,1.27622,0.0786, -0.03143,1.28117,0.07577, -0.04158,1.27434,0.07525, -0.04158,1.27434,0.07525, -0.03143,1.28117,0.07577, -0.04206,1.2795,0.07332, -0.06571,1.26606,0.03842, -0.06331,1.25887,0.03872, -0.06464,1.26573,0.05144, -0.06464,1.26573,0.05144, -0.06331,1.25887,0.03872, -0.06246,1.25878,0.0519, -0.04685,1.25365,0.07409, -0.04882,1.25987,0.07409, -0.05434,1.25252,0.06685, -0.05434,1.25252,0.06685, -0.04882,1.25987,0.07409, -0.05705,1.25905,0.06705, 0,1.2891,0.08302, -0.0086,1.28722,0.08112, 0,1.28235,0.08499, 0,1.28235,0.08499, -0.0086,1.28722,0.08112, -0.00896,1.28062,0.0836, -0.02943,1.26329,0.08302, -0.03032,1.26928,0.08152, -0.03952,1.26106,0.0782, -0.03952,1.26106,0.0782, -0.03032,1.26928,0.08152, -0.04061,1.26738,0.07744, -0.00949,1.26841,0.09069, -0.00942,1.27385,0.08785, -0.0179,1.26613,0.08729, -0.0179,1.26613,0.08729, -0.00942,1.27385,0.08785, -0.01921,1.27166,0.0853, -0.03149,1.37552,0.0749, -0.03139,1.3603,0.07762, -0.01352,1.37449,0.0805, -0.01352,1.37449,0.0805, -0.03139,1.3603,0.07762, -0.01254,1.35949,0.0839, -0.02173,1.31709,0.07831, -0.02158,1.32687,0.07898, -0.03247,1.32076,0.0765, -0.03247,1.32076,0.0765, -0.02158,1.32687,0.07898, -0.0331,1.33154,0.07653, -0.06019,1.27317,0.06641, -0.05984,1.28019,0.06589, -0.06462,1.27315,0.06051, -0.06462,1.27315,0.06051, -0.05984,1.28019,0.06589, -0.06572,1.2798,0.06003, -0.0362,1.23491,0.06981, -0.04016,1.2401,0.07158, -0.03978,1.23434,0.06523, -0.03978,1.23434,0.06523, -0.04016,1.2401,0.07158, -0.04519,1.23945,0.06554, -0.02432,1.24212,0.08008, -0.01386,1.2431,0.08354, -0.02647,1.2487,0.08191, -0.02647,1.2487,0.08191, -0.01386,1.2431,0.08354, -0.01459,1.25007,0.08622, -0.04066,1.2338,0.03086, -0.03154,1.22797,0.03229, -0.04194,1.23381,0.04234, -0.04194,1.23381,0.04234, -0.03154,1.22797,0.03229, -0.03257,1.22766,0.04363, -0.02885,1.22882,0.02475, -0.03154,1.22797,0.03229, -0.03809,1.23448,0.02291, -0.03809,1.23448,0.02291, -0.03154,1.22797,0.03229, -0.04066,1.2338,0.03086, -0.02432,1.24212,0.08008, -0.02647,1.2487,0.08191, -0.0329,1.24107,0.07576, -0.0329,1.24107,0.07576, -0.02647,1.2487,0.08191, -0.0357,1.24758,0.07746, -0.02647,1.2487,0.08191, -0.02834,1.25692,0.08309, -0.0357,1.24758,0.07746, -0.0357,1.24758,0.07746, -0.02834,1.25692,0.08309, -0.03817,1.25507,0.07805, -0.03085,1.27622,0.0786, -0.02007,1.27859,0.08134, -0.03143,1.28117,0.07577, -0.03143,1.28117,0.07577, -0.02007,1.27859,0.08134, -0.02062,1.28425,0.07855, -0.0179,1.26613,0.08729, -0.02943,1.26329,0.08302, -0.01638,1.25964,0.08754, -0.01638,1.25964,0.08754, -0.02943,1.26329,0.08302, -0.02834,1.25692,0.08309, -0.04611,1.34741,0.07345, -0.04568,1.34193,0.07366, -0.03228,1.34693,0.07827, -0.03228,1.34693,0.07827, -0.04568,1.34193,0.07366, -0.03255,1.34161,0.07752, -0.02007,1.27859,0.08134, -0.00896,1.28062,0.0836, -0.02062,1.28425,0.07855, -0.02062,1.28425,0.07855, -0.00896,1.28062,0.0836, -0.0086,1.28722,0.08112, -0.06877,1.37605,0.04344, -0.06907,1.36504,0.05375, -0.0588,1.38544,0.05528, -0.0588,1.38544,0.05528, -0.06907,1.36504,0.05375, -0.0591,1.37122,0.06388, -0.04606,1.38991,0.06157, -0.04652,1.37396,0.06917, -0.03157,1.39284,0.06592, -0.03157,1.39284,0.06592, -0.04652,1.37396,0.06917, -0.03149,1.37552,0.0749, -0.03157,1.39284,0.06592, -0.03149,1.37552,0.0749, -0.01383,1.39434,0.07041, -0.01383,1.39434,0.07041, -0.03149,1.37552,0.0749, -0.01352,1.37449,0.0805, 0,1.28235,0.08499, -0.00896,1.28062,0.0836, 0,1.27583,0.08966, 0,1.27583,0.08966, -0.00896,1.28062,0.0836, -0.00942,1.27385,0.08785, -0.01921,1.27166,0.0853, -0.00942,1.27385,0.08785, -0.02007,1.27859,0.08134, -0.02007,1.27859,0.08134, -0.00942,1.27385,0.08785, -0.00896,1.28062,0.0836, -0.01921,1.27166,0.0853, -0.02007,1.27859,0.08134, -0.03032,1.26928,0.08152, -0.03032,1.26928,0.08152, -0.02007,1.27859,0.08134, -0.03085,1.27622,0.0786, -0.03032,1.26928,0.08152, -0.03085,1.27622,0.0786, -0.04061,1.26738,0.07744, -0.04061,1.26738,0.07744, -0.03085,1.27622,0.0786, -0.04158,1.27434,0.07525, -0.05919,1.26579,0.06679, -0.06019,1.27317,0.06641, -0.06294,1.26572,0.06097, -0.06294,1.26572,0.06097, -0.06019,1.27317,0.06641, -0.06462,1.27315,0.06051, -0.04158,1.27434,0.07525, -0.04206,1.2795,0.07332, -0.05151,1.27351,0.07187, -0.05151,1.27351,0.07187, -0.04206,1.2795,0.07332, -0.05196,1.27963,0.0702, -0.04061,1.26738,0.07744, -0.04158,1.27434,0.07525, -0.05076,1.26639,0.07326, -0.05076,1.26639,0.07326, -0.04158,1.27434,0.07525, -0.05151,1.27351,0.07187, -0.07238,1.30016,0.05146, -0.07385,1.29993,0.03892, -0.07096,1.29082,0.0514, -0.07096,1.29082,0.0514, -0.07385,1.29993,0.03892, -0.0723,1.28971,0.038, -0.0735,1.28922,0.02501, -0.0723,1.28971,0.038, -0.07524,1.29924,0.02406, -0.07524,1.29924,0.02406, -0.0723,1.28971,0.038, -0.07385,1.29993,0.03892, -0.03212,1.3029,0.07701, -0.04321,1.30286,0.07431, -0.03165,1.28557,0.07493, -0.03165,1.28557,0.07493, -0.04321,1.30286,0.07431, -0.04222,1.28399,0.07212, -0.03165,1.28557,0.07493, -0.02113,1.28909,0.07723, -0.03212,1.3029,0.07701, -0.03212,1.3029,0.07701, -0.02113,1.28909,0.07723, -0.02172,1.30279,0.07802, -0.04206,1.2795,0.07332, -0.04222,1.28399,0.07212, -0.05196,1.27963,0.0702, -0.05196,1.27963,0.0702, -0.04222,1.28399,0.07212, -0.05192,1.28491,0.06885, -0.04206,1.2795,0.07332, -0.03143,1.28117,0.07577, -0.04222,1.28399,0.07212, -0.04222,1.28399,0.07212, -0.03143,1.28117,0.07577, -0.03165,1.28557,0.07493, -0.02062,1.28425,0.07855, -0.0086,1.28722,0.08112, -0.02113,1.28909,0.07723, -0.02113,1.28909,0.07723, -0.0086,1.28722,0.08112, -0.00832,1.29269,0.08068, -0.0123,1.22821,0.07384, -0.01271,1.22073,0.0666, -0.00625,1.22817,0.07456, -0.00625,1.22817,0.07456, -0.01271,1.22073,0.0666, -0.00641,1.21884,0.06702, -0.07573,1.29881,0.01441, -0.07406,1.28893,0.01498, -0.07524,1.29924,0.02406, -0.07524,1.29924,0.02406, -0.07406,1.28893,0.01498, -0.0735,1.28922,0.02501, -0.05723,1.2522,0.01787, -0.05957,1.25153,0.02703, -0.0609,1.25604,0.01715, -0.0609,1.25604,0.01715, -0.05957,1.25153,0.02703, -0.06318,1.25883,0.02643, -0.04519,1.2403,0.02048, -0.03809,1.23448,0.02291, -0.04799,1.23945,0.02951, -0.04799,1.23945,0.02951, -0.03809,1.23448,0.02291, -0.04066,1.2338,0.03086, -0.0329,1.24107,0.07576, -0.0357,1.24758,0.07746, -0.04016,1.2401,0.07158, -0.04016,1.2401,0.07158, -0.0357,1.24758,0.07746, -0.04379,1.24654,0.07316, -0.0357,1.24758,0.07746, -0.03817,1.25507,0.07805, -0.04379,1.24654,0.07316, -0.04379,1.24654,0.07316, -0.03817,1.25507,0.07805, -0.04685,1.25365,0.07409, -0.03952,1.26106,0.0782, -0.04061,1.26738,0.07744, -0.04882,1.25987,0.07409, -0.04882,1.25987,0.07409, -0.04061,1.26738,0.07744, -0.05076,1.26639,0.07326, -0.02367,1.22848,0.07047, -0.02972,1.23563,0.07368, -0.02894,1.22811,0.0672, -0.02894,1.22811,0.0672, -0.02972,1.23563,0.07368, -0.0362,1.23491,0.06981, -0.06646,1.26648,0.02626, -0.06318,1.25883,0.02643, -0.06571,1.26606,0.03842, -0.06571,1.26606,0.03842, -0.06318,1.25883,0.02643, -0.06331,1.25887,0.03872, -0.05919,1.26579,0.06679, -0.05705,1.25905,0.06705, -0.05076,1.26639,0.07326, -0.05076,1.26639,0.07326, -0.05705,1.25905,0.06705, -0.04882,1.25987,0.07409, -0.03817,1.25507,0.07805, -0.02834,1.25692,0.08309, -0.03952,1.26106,0.0782, -0.03952,1.26106,0.0782, -0.02834,1.25692,0.08309, -0.02943,1.26329,0.08302, -0.0179,1.26613,0.08729, -0.01921,1.27166,0.0853, -0.02943,1.26329,0.08302, -0.02943,1.26329,0.08302, -0.01921,1.27166,0.0853, -0.03032,1.26928,0.08152, -0.04882,1.25987,0.07409, -0.04685,1.25365,0.07409, -0.03952,1.26106,0.0782, -0.03952,1.26106,0.0782, -0.04685,1.25365,0.07409, -0.03817,1.25507,0.07805, -0.0536,1.24468,0.02831, -0.04799,1.23945,0.02951, -0.05402,1.24445,0.04027, -0.05402,1.24445,0.04027, -0.04799,1.23945,0.02951, -0.04878,1.23893,0.04124, -0.04773,1.23921,0.06125, -0.05295,1.24491,0.06126, -0.04843,1.23908,0.05175, -0.04843,1.23908,0.05175, -0.05295,1.24491,0.06126, -0.05363,1.24466,0.05153, -0.04016,1.2401,0.07158, -0.04379,1.24654,0.07316, -0.04519,1.23945,0.06554, -0.04519,1.23945,0.06554, -0.04379,1.24654,0.07316, -0.05024,1.24555,0.06635, -0.02432,1.24212,0.08008, -0.02085,1.23626,0.07781, -0.01386,1.2431,0.08354, -0.01386,1.2431,0.08354, -0.02085,1.23626,0.07781, -0.01315,1.23656,0.08006, -0.0329,1.24107,0.07576, -0.02972,1.23563,0.07368, -0.02432,1.24212,0.08008, -0.02432,1.24212,0.08008, -0.02972,1.23563,0.07368, -0.02085,1.23626,0.07781, -0.04016,1.2401,0.07158, -0.0362,1.23491,0.06981, -0.0329,1.24107,0.07576, -0.0329,1.24107,0.07576, -0.0362,1.23491,0.06981, -0.02972,1.23563,0.07368, -0.06294,1.26572,0.06097, -0.06076,1.25889,0.06133, -0.05919,1.26579,0.06679, -0.05919,1.26579,0.06679, -0.06076,1.25889,0.06133, -0.05705,1.25905,0.06705, -0.06076,1.25889,0.06133, -0.05795,1.25184,0.06138, -0.05705,1.25905,0.06705, -0.05705,1.25905,0.06705, -0.05795,1.25184,0.06138, -0.05434,1.25252,0.06685, -0.00879,1.26171,0.09069, -0.01638,1.25964,0.08754, -0.0076,1.25064,0.088, -0.0076,1.25064,0.088, -0.01638,1.25964,0.08754, -0.01459,1.25007,0.08622, 0,1.21802,0.06771, -0.00641,1.21884,0.06702, 0,1.21473,0.06443, 0,1.21473,0.06443, -0.00641,1.21884,0.06702, -0.0061,1.21616,0.06352, -0.00648,1.21591,0.05586, 0,1.21446,0.05669, -0.0061,1.21616,0.06352, -0.0061,1.21616,0.06352, 0,1.21446,0.05669, 0,1.21473,0.06443, -0.01466,1.21907,0.0448, -0.00723,1.21695,0.04555, -0.01261,1.21771,0.05502, -0.01261,1.21771,0.05502, -0.00723,1.21695,0.04555, -0.00648,1.21591,0.05586, -0.00675,1.23669,0.08119, -0.01315,1.23656,0.08006, -0.00625,1.22817,0.07456, -0.00625,1.22817,0.07456, -0.01315,1.23656,0.08006, -0.0123,1.22821,0.07384, -0.00689,1.24354,0.08499, -0.01386,1.2431,0.08354, -0.00675,1.23669,0.08119, -0.00675,1.23669,0.08119, -0.01386,1.2431,0.08354, -0.01315,1.23656,0.08006, -0.00641,1.21884,0.06702, 0,1.21802,0.06771, -0.00625,1.22817,0.07456, -0.00625,1.22817,0.07456, 0,1.21802,0.06771, 0,1.22807,0.07536, 0,1.21761,0.03547, -0.01477,1.22046,0.03429, -9.54E-09,1.21815,0.02846, -9.54E-09,1.21815,0.02846, -0.01477,1.22046,0.03429, -0.01478,1.22193,0.02696, -0.0076,1.25064,0.088, -0.01459,1.25007,0.08622, -0.00689,1.24354,0.08499, -0.00689,1.24354,0.08499, -0.01459,1.25007,0.08622, -0.01386,1.2431,0.08354, 0,1.30203,0.08279, -0.00805,1.30202,0.08029, 0,1.29425,0.08259, 0,1.29425,0.08259, -0.00805,1.30202,0.08029, -0.00832,1.29269,0.08068, 0,1.27174,0.09502, -0.00949,1.26841,0.09069, 0,1.26362,0.09341, 0,1.26362,0.09341, -0.00949,1.26841,0.09069, -0.00879,1.26171,0.09069, 0,1.23682,0.08214, -0.00675,1.23669,0.08119, 0,1.22807,0.07536, 0,1.22807,0.07536, -0.00675,1.23669,0.08119, -0.00625,1.22817,0.07456, 0,1.24385,0.08592, -0.00689,1.24354,0.08499, 0,1.23682,0.08214, 0,1.23682,0.08214, -0.00689,1.24354,0.08499, -0.00675,1.23669,0.08119, 0,1.27583,0.08966, -0.00942,1.27385,0.08785, 0,1.27174,0.09502, 0,1.27174,0.09502, -0.00942,1.27385,0.08785, -0.00949,1.26841,0.09069, 0,1.32051,0.08428, 0,1.33386,0.08582, -0.00931,1.32109,0.08153, -0.00931,1.32109,0.08153, 0,1.33386,0.08582, -0.0113,1.33435,0.08343, 0,1.37428,0.08327, 0,1.39425,0.07381, -0.01352,1.37449,0.0805, -0.01352,1.37449,0.0805, 0,1.39425,0.07381, -0.01383,1.39434,0.07041, 0,1.3588,0.08654, 0,1.37428,0.08327, -0.01254,1.35949,0.0839, -0.01254,1.35949,0.0839, 0,1.37428,0.08327, -0.01352,1.37449,0.0805, 0,1.33386,0.08582, 0,1.34487,0.08687, -0.0113,1.33435,0.08343, -0.0113,1.33435,0.08343, 0,1.34487,0.08687, -0.0119,1.34577,0.08461, 0,1.29425,0.08259, -0.00832,1.29269,0.08068, 0,1.2891,0.08302, 0,1.2891,0.08302, -0.00832,1.29269,0.08068, -0.0086,1.28722,0.08112, 0,1.34487,0.08687, 0,1.3588,0.08654, -0.0119,1.34577,0.08461, -0.0119,1.34577,0.08461, 0,1.3588,0.08654, -0.01254,1.35949,0.0839, 0,1.25112,0.08923, -0.0076,1.25064,0.088, 0,1.24385,0.08592, 0,1.24385,0.08592, -0.0076,1.25064,0.088, -0.00689,1.24354,0.08499, 0,1.30796,0.08302, 0,1.32051,0.08428, -0.00789,1.31027,0.08043, -0.00789,1.31027,0.08043, 0,1.32051,0.08428, -0.00931,1.32109,0.08153, -0.03228,1.34693,0.07827, -0.01861,1.34091,0.08232, -0.03188,1.35226,0.07853, -0.03188,1.35226,0.07853, -0.01861,1.34091,0.08232, -0.0119,1.34577,0.08461, -0.01638,1.25964,0.08754, -0.00879,1.26171,0.09069, -0.0179,1.26613,0.08729, -0.0179,1.26613,0.08729, -0.00879,1.26171,0.09069, -0.00949,1.26841,0.09069, -0.04535,1.3333,0.0733, -0.05697,1.33119,0.0684, -0.04407,1.32169,0.07304, -0.04407,1.32169,0.07304, -0.05697,1.33119,0.0684, -0.0553,1.32054,0.06849, -0.02113,1.28909,0.07723, -0.03165,1.28557,0.07493, -0.02062,1.28425,0.07855, -0.02062,1.28425,0.07855, -0.03165,1.28557,0.07493, -0.03143,1.28117,0.07577, -0.07847,1.32401,0.02407, -0.07878,1.32355,0.01812, -0.07697,1.31061,0.02391, -0.07697,1.31061,0.02391, -0.07878,1.32355,0.01812, -0.0777,1.31122,0.01351, -0.05876,1.35078,0.06779, -0.04625,1.35276,0.07318, -0.05924,1.35889,0.06756, -0.05924,1.35889,0.06756, -0.04625,1.35276,0.07318, -0.04587,1.36008,0.07223, -0.04625,1.35276,0.07318, -0.03188,1.35226,0.07853, -0.04587,1.36008,0.07223, -0.04587,1.36008,0.07223, -0.03188,1.35226,0.07853, -0.03139,1.3603,0.07762, -0.03139,1.3603,0.07762, -0.03188,1.35226,0.07853, -0.01254,1.35949,0.0839, -0.01254,1.35949,0.0839, -0.03188,1.35226,0.07853, -0.0119,1.34577,0.08461, -0.07308,1.334,0.0574, -0.06715,1.34033,0.06291, -0.07509,1.33874,0.05462, -0.07509,1.33874,0.05462, -0.06715,1.34033,0.06291, -0.06822,1.34604,0.06187, -0.05849,1.34513,0.06759, -0.04611,1.34741,0.07345, -0.05876,1.35078,0.06779, -0.05876,1.35078,0.06779, -0.04611,1.34741,0.07345, -0.04625,1.35276,0.07318, -0.03228,1.34693,0.07827, -0.03188,1.35226,0.07853, -0.04611,1.34741,0.07345, -0.04611,1.34741,0.07345, -0.03188,1.35226,0.07853, -0.04625,1.35276,0.07318, -0.04535,1.3333,0.0733, -0.04407,1.32169,0.07304, -0.0331,1.33154,0.07653, -0.0331,1.33154,0.07653, -0.04407,1.32169,0.07304, -0.03247,1.32076,0.0765, -0.07028,1.32903,0.06039, -0.06566,1.33482,0.06396, -0.07308,1.334,0.0574, -0.07308,1.334,0.0574, -0.06566,1.33482,0.06396, -0.06715,1.34033,0.06291, -0.06632,1.32308,0.0629, -0.06281,1.32678,0.0652, -0.07028,1.32903,0.06039, -0.07028,1.32903,0.06039, -0.06281,1.32678,0.0652, -0.06566,1.33482,0.06396, -0.05697,1.33119,0.0684, -0.04535,1.3333,0.0733, -0.05815,1.33938,0.06792, -0.05815,1.33938,0.06792, -0.04535,1.3333,0.0733, -0.04568,1.34193,0.07366, -0.07096,1.29082,0.0514, -0.06858,1.27965,0.0514, -0.06782,1.29159,0.05893, -0.06782,1.29159,0.05893, -0.06858,1.27965,0.0514, -0.06572,1.2798,0.06003, -0.0667,1.27327,0.05123, -0.06464,1.26573,0.05144, -0.06462,1.27315,0.06051, -0.06462,1.27315,0.06051, -0.06464,1.26573,0.05144, -0.06294,1.26572,0.06097, -0.06464,1.26573,0.05144, -0.06246,1.25878,0.0519, -0.06294,1.26572,0.06097, -0.06294,1.26572,0.06097, -0.06246,1.25878,0.0519, -0.06076,1.25889,0.06133, -0.06246,1.25878,0.0519, -0.0591,1.25166,0.05157, -0.06076,1.25889,0.06133, -0.06076,1.25889,0.06133, -0.0591,1.25166,0.05157, -0.05795,1.25184,0.06138, -0.0414,1.23409,0.06121, -0.04773,1.23921,0.06125, -0.04179,1.234,0.05217, -0.04179,1.234,0.05217, -0.04773,1.23921,0.06125, -0.04843,1.23908,0.05175, -0.04179,1.234,0.05217, -0.0333,1.22787,0.05316, -0.0414,1.23409,0.06121, -0.0414,1.23409,0.06121, -0.0333,1.22787,0.05316, -0.03282,1.22791,0.0613, -0.05024,1.24555,0.06635, -0.05434,1.25252,0.06685, -0.05295,1.24491,0.06126, -0.05295,1.24491,0.06126, -0.05434,1.25252,0.06685, -0.05795,1.25184,0.06138, -0.05295,1.24491,0.06126, -0.04773,1.23921,0.06125, -0.05024,1.24555,0.06635, -0.05024,1.24555,0.06635, -0.04773,1.23921,0.06125, -0.04519,1.23945,0.06554, -0.0414,1.23409,0.06121, -0.03282,1.22791,0.0613, -0.03978,1.23434,0.06523, -0.03978,1.23434,0.06523, -0.03282,1.22791,0.0613, -0.03093,1.22799,0.06463, -0.04773,1.23921,0.06125, -0.0414,1.23409,0.06121, -0.04519,1.23945,0.06554, -0.04519,1.23945,0.06554, -0.0414,1.23409,0.06121, -0.03978,1.23434,0.06523, -0.0579,1.28663,0.06556, -0.05984,1.28019,0.06589, -0.05192,1.28491,0.06885, -0.05192,1.28491,0.06885, -0.05984,1.28019,0.06589, -0.05196,1.27963,0.0702, -0.05984,1.28019,0.06589, -0.06019,1.27317,0.06641, -0.05196,1.27963,0.0702, -0.05196,1.27963,0.0702, -0.06019,1.27317,0.06641, -0.05151,1.27351,0.07187, -0.05076,1.26639,0.07326, -0.05151,1.27351,0.07187, -0.05919,1.26579,0.06679, -0.05919,1.26579,0.06679, -0.05151,1.27351,0.07187, -0.06019,1.27317,0.06641, -0.07023,1.27958,0.03767, -0.06571,1.26606,0.03842, -0.0667,1.27327,0.05123, -0.0667,1.27327,0.05123, -0.06571,1.26606,0.03842, -0.06464,1.26573,0.05144, -0.06462,1.27315,0.06051, -0.06572,1.2798,0.06003, -0.0667,1.27327,0.05123, -0.0667,1.27327,0.05123, -0.06572,1.2798,0.06003, -0.06858,1.27965,0.0514, -0.06962,1.3,0.05828, -0.06782,1.29159,0.05893, -0.06398,1.3,0.06301, -0.06398,1.3,0.06301, -0.06782,1.29159,0.05893, -0.06242,1.29301,0.06351, -0.06977,1.30839,0.05889, -0.06962,1.3,0.05828, -0.06391,1.30679,0.06338, -0.06391,1.30679,0.06338, -0.06962,1.3,0.05828, -0.06398,1.3,0.06301, -0.06885,1.31663,0.06067, -0.06977,1.30839,0.05889, -0.06239,1.31339,0.06486, -0.06239,1.31339,0.06486, -0.06977,1.30839,0.05889, -0.06391,1.30679,0.06338, -0.06822,1.34604,0.06187, -0.05876,1.35078,0.06779, -0.07054,1.35545,0.05999, -0.07054,1.35545,0.05999, -0.05876,1.35078,0.06779, -0.05924,1.35889,0.06756, -0.05876,1.35078,0.06779, -0.06822,1.34604,0.06187, -0.05849,1.34513,0.06759, -0.05849,1.34513,0.06759, -0.06822,1.34604,0.06187, -0.06715,1.34033,0.06291, -0.05849,1.34513,0.06759, -0.06715,1.34033,0.06291, -0.05815,1.33938,0.06792, -0.05815,1.33938,0.06792, -0.06715,1.34033,0.06291, -0.06566,1.33482,0.06396, -0.05815,1.33938,0.06792, -0.06566,1.33482,0.06396, -0.05697,1.33119,0.0684, -0.05697,1.33119,0.0684, -0.06566,1.33482,0.06396, -0.06281,1.32678,0.0652, -0.04407,1.32169,0.07304, -0.04321,1.30286,0.07431, -0.03247,1.32076,0.0765, -0.03247,1.32076,0.0765, -0.04321,1.30286,0.07431, -0.03212,1.3029,0.07701, -0.03247,1.32076,0.0765, -0.03212,1.3029,0.07701, -0.02173,1.31709,0.07831, -0.02173,1.31709,0.07831, -0.03212,1.3029,0.07701, -0.02172,1.30279,0.07802, -0.02173,1.31709,0.07831, -0.02172,1.30279,0.07802, -0.01438,1.31283,0.07895, -0.01438,1.31283,0.07895, -0.02172,1.30279,0.07802, -0.01492,1.3025,0.0785, -0.01438,1.31283,0.07895, -0.01492,1.3025,0.0785, -0.00789,1.31027,0.08043, -0.00789,1.31027,0.08043, -0.01492,1.3025,0.0785, -0.00805,1.30202,0.08029, -0.00789,1.31027,0.08043, -0.00805,1.30202,0.08029, 0,1.30796,0.08302, 0,1.30796,0.08302, -0.00805,1.30202,0.08029, 0,1.30203,0.08279, -0.04222,1.28399,0.07212, -0.04321,1.30286,0.07431, -0.05192,1.28491,0.06885, -0.05192,1.28491,0.06885, -0.04321,1.30286,0.07431, -0.05322,1.30294,0.07019, -0.01438,1.31283,0.07895, -0.00931,1.32109,0.08153, -0.02173,1.31709,0.07831, -0.02173,1.31709,0.07831, -0.00931,1.32109,0.08153, -0.02158,1.32687,0.07898, -0.04568,1.34193,0.07366, -0.04535,1.3333,0.0733, -0.03255,1.34161,0.07752, -0.03255,1.34161,0.07752, -0.04535,1.3333,0.0733, -0.0331,1.33154,0.07653, -0.06962,1.3,0.05828, -0.06977,1.30839,0.05889, -0.07238,1.30016,0.05146, -0.07238,1.30016,0.05146, -0.06977,1.30839,0.05889, -0.0731,1.30975,0.0524, -0.07238,1.30016,0.05146, -0.07096,1.29082,0.0514, -0.06962,1.3,0.05828, -0.06962,1.3,0.05828, -0.07096,1.29082,0.0514, -0.06782,1.29159,0.05893, -0.05815,1.33938,0.06792, -0.04568,1.34193,0.07366, -0.05849,1.34513,0.06759, -0.05849,1.34513,0.06759, -0.04568,1.34193,0.07366, -0.04611,1.34741,0.07345, -0.04652,1.37396,0.06917, -0.0591,1.37122,0.06388, -0.04587,1.36008,0.07223, -0.04587,1.36008,0.07223, -0.0591,1.37122,0.06388, -0.05924,1.35889,0.06756, -0.0591,1.37122,0.06388, -0.04652,1.37396,0.06917, -0.0588,1.38544,0.05528, -0.0588,1.38544,0.05528, -0.04652,1.37396,0.06917, -0.04606,1.38991,0.06157, -9.54E-09,1.21815,0.02846, -0.01478,1.22193,0.02696, -4.77E-09,1.21742,0.02325, -4.77E-09,1.21742,0.02325, -0.01478,1.22193,0.02696, -0.01468,1.22309,0.01994, -0.02721,1.23366,-0.00837, -0.03316,1.23991,-0.01178, -0.02003,1.23105,-0.02186, -0.02003,1.23105,-0.02186, -0.03316,1.23991,-0.01178, -0.0228,1.23744,-0.02778, -0.02003,1.23105,-0.02186, -0.0228,1.23744,-0.02778, 0,1.22734,-0.03069, 0,1.22734,-0.03069, -0.0228,1.23744,-0.02778, 0,1.23344,-0.03937, -0.07549,1.35591,0.04042, -0.0794,1.3395,0.02451, -0.07662,1.34467,0.04784, -0.07662,1.34467,0.04784, -0.0794,1.3395,0.02451, -0.07767,1.32552,0.03517, -0.07662,1.34467,0.04784, -0.07054,1.35545,0.05999, -0.07549,1.35591,0.04042, -0.07549,1.35591,0.04042, -0.07054,1.35545,0.05999, -0.06907,1.36504,0.05375, -0.07594,1.31054,0.03424, -0.07447,1.31052,0.04458, -0.07767,1.32552,0.03517, -0.07767,1.32552,0.03517, -0.07447,1.31052,0.04458, -0.07591,1.32547,0.04546, -0.07767,1.32552,0.03517, -0.07847,1.32401,0.02407, -0.07594,1.31054,0.03424, -0.07594,1.31054,0.03424, -0.07847,1.32401,0.02407, -0.07697,1.31061,0.02391, -0.07385,1.29993,0.03892, -0.07594,1.31054,0.03424, -0.07524,1.29924,0.02406, -0.07524,1.29924,0.02406, -0.07594,1.31054,0.03424, -0.07697,1.31061,0.02391, -0.0591,1.25166,0.05157, -0.06246,1.25878,0.0519, -0.0595,1.25156,0.0393, -0.0595,1.25156,0.0393, -0.06246,1.25878,0.0519, -0.06331,1.25887,0.03872, -0.05363,1.24466,0.05153, -0.0591,1.25166,0.05157, -0.05402,1.24445,0.04027, -0.05402,1.24445,0.04027, -0.0591,1.25166,0.05157, -0.0595,1.25156,0.0393, -0.04843,1.23908,0.05175, -0.05363,1.24466,0.05153, -0.04878,1.23893,0.04124, -0.04878,1.23893,0.04124, -0.05363,1.24466,0.05153, -0.05402,1.24445,0.04027, -0.04179,1.234,0.05217, -0.04843,1.23908,0.05175, -0.04194,1.23381,0.04234, -0.04194,1.23381,0.04234, -0.04843,1.23908,0.05175, -0.04878,1.23893,0.04124, -0.0333,1.22787,0.05316, -0.04179,1.234,0.05217, -0.03257,1.22766,0.04363, -0.03257,1.22766,0.04363, -0.04179,1.234,0.05217, -0.04194,1.23381,0.04234, -0.02252,1.2218,0.05414, -0.0333,1.22787,0.05316, -0.02345,1.22239,0.04425, -0.02345,1.22239,0.04425, -0.0333,1.22787,0.05316, -0.03257,1.22766,0.04363, 0,1.21446,0.05669, -0.00648,1.21591,0.05586, 0,1.21552,0.04637, 0,1.21552,0.04637, -0.00648,1.21591,0.05586, -0.00723,1.21695,0.04555, -0.0536,1.24468,0.02831, -0.05957,1.25153,0.02703, -0.05134,1.24564,0.01876, -0.05134,1.24564,0.01876, -0.05957,1.25153,0.02703, -0.05723,1.2522,0.01787, -0.01477,1.22046,0.03429, -0.03154,1.22797,0.03229, -0.01478,1.22193,0.02696, -0.01478,1.22193,0.02696, -0.03154,1.22797,0.03229, -0.02885,1.22882,0.02475, -0.02579,1.22936,0.01621, -0.02885,1.22882,0.02475, -0.03478,1.23507,0.01392, -0.03478,1.23507,0.01392, -0.02885,1.22882,0.02475, -0.03809,1.23448,0.02291, -0.04196,1.24137,0.01174, -0.03478,1.23507,0.01392, -0.04519,1.2403,0.02048, -0.04519,1.2403,0.02048, -0.03478,1.23507,0.01392, -0.03809,1.23448,0.02291, -0.04196,1.24137,0.01174, -0.04519,1.2403,0.02048, -0.04692,1.24657,0.00995, -0.04692,1.24657,0.00995, -0.04519,1.2403,0.02048, -0.05134,1.24564,0.01876, -0.02721,1.23366,-0.00837, -0.03204,1.23539,0.0016, -0.03316,1.23991,-0.01178, -0.03316,1.23991,-0.01178, -0.03204,1.23539,0.0016, -0.03862,1.24182,-0.00035, -0.01478,1.22193,0.02696, -0.02885,1.22882,0.02475, -0.01468,1.22309,0.01994, -0.01468,1.22309,0.01994, -0.02885,1.22882,0.02475, -0.02579,1.22936,0.01621, -0.06318,1.25883,0.02643, -0.06646,1.26648,0.02626, -0.06332,1.25867,0.01678, -0.06332,1.25867,0.01678, -0.06646,1.26648,0.02626, -0.06724,1.26686,0.01577, -0.06646,1.26648,0.02626, -0.07095,1.27964,0.02588, -0.06724,1.26686,0.01577, -0.06724,1.26686,0.01577, -0.07095,1.27964,0.02588, -0.07177,1.28009,0.01507, -0.07095,1.27964,0.02588, -0.0735,1.28922,0.02501, -0.07177,1.28009,0.01507, -0.07177,1.28009,0.01507, -0.0735,1.28922,0.02501, -0.07406,1.28893,0.01498, -0.07524,1.29924,0.02406, -0.07697,1.31061,0.02391, -0.07573,1.29881,0.01441, -0.07573,1.29881,0.01441, -0.07697,1.31061,0.02391, -0.0777,1.31122,0.01351, 0.0591,1.37122,0.06388, 0.05924,1.35889,0.06756, 0.07054,1.35545,0.05999, 0.02503,1.23017,0.00403, 0.02579,1.22936,0.01621, 0.01468,1.22309,0.01994, 0.0465,1.25056,-0.00266, 0.04692,1.24657,0.00995, 0.03862,1.24182,-0.00035, 0.04692,1.24657,0.00995, 0.0465,1.25056,-0.00266, 0.05342,1.25298,0.00928, 0.03257,1.22766,0.04363, 0.02345,1.22239,0.04425, 0.03154,1.22797,0.03229, 0.01268,1.2208,0.0666, 0.02368,1.22846,0.07047, 0.0123,1.22821,0.07384, 0.02368,1.22846,0.07047, 0.02201,1.22309,0.06484, 0.02894,1.22811,0.0672, 0.02894,1.22811,0.0672, 0.02201,1.22309,0.06484, 0.03093,1.22799,0.06463, 0.0465,1.25056,-0.00266, 0.06285,1.26415,-0.00309, 0.05342,1.25298,0.00928, 0.07238,1.30016,0.05146, 0.07447,1.31052,0.04458, 0.0731,1.30975,0.0524, 0.06792,1.26025,0.00094, 0.0767,1.26597,-0.00501, 0.07484,1.2602,0.00476, 0.07484,1.2602,0.00476, 0.0767,1.26597,-0.00501, 0.08302,1.26481,-0.00194, 0.08186,1.2745,-0.00958, 0.08692,1.28517,-0.01328, 0.09014,1.27388,-0.0067, 0.09014,1.27388,-0.0067, 0.08692,1.28517,-0.01328, 0.09604,1.28501,-0.00966, 0.06332,1.25867,0.01678, 0.06045,1.25965,0.00845, 0.07484,1.2602,0.00476, 0.07484,1.2602,0.00476, 0.06045,1.25965,0.00845, 0.06792,1.26025,0.00094, 0.09742,1.31077,-0.00592, 0.09808,1.298,-0.00908, 0.09008,1.31005,-0.01032, 0.09008,1.31005,-0.01032, 0.09808,1.298,-0.00908, 0.09021,1.29688,-0.01302, 0.08611,1.31463,-0.00524, 0.07816,1.31599,0.00132, 0.08818,1.31783,0.00459, 0.08611,1.31463,-0.00524, 0.08818,1.31783,0.00459, 0.09493,1.31596,-0.00147, 0.02235,1.22209,0.06108, 0.02201,1.22309,0.06484, 0.0124,1.21815,0.06233, 0.0124,1.21815,0.06233, 0.02201,1.22309,0.06484, 0.01268,1.2208,0.0666, 0.0767,1.26597,-0.00501, 0.08186,1.2745,-0.00958, 0.08302,1.26481,-0.00194, 0.08302,1.26481,-0.00194, 0.08186,1.2745,-0.00958, 0.09014,1.27388,-0.0067, 0.02113,1.28909,0.07723, 0.01492,1.3025,0.0785, 0.00832,1.29269,0.08068, 0.00832,1.29269,0.08068, 0.01492,1.3025,0.0785, 0.00805,1.30202,0.08029, 0.06239,1.31339,0.06486, 0.05322,1.30294,0.07019, 0.06391,1.30679,0.06338, 0.02172,1.30279,0.07802, 0.01492,1.3025,0.0785, 0.02113,1.28909,0.07723, 0.0579,1.28663,0.06556, 0.05322,1.30294,0.07019, 0.05192,1.28491,0.06885, 0.07198,1.32098,0.05679, 0.06885,1.31663,0.06067, 0.0731,1.30975,0.0524, 0.0731,1.30975,0.0524, 0.06885,1.31663,0.06067, 0.06977,1.30839,0.05889, 0.09808,1.298,-0.00908, 0.09604,1.28501,-0.00966, 0.09021,1.29688,-0.01302, 0.09021,1.29688,-0.01302, 0.09604,1.28501,-0.00966, 0.08692,1.28517,-0.01328, 0.08611,1.31463,-0.00524, 0.09493,1.31596,-0.00147, 0.09008,1.31005,-0.01032, 0.09008,1.31005,-0.01032, 0.09493,1.31596,-0.00147, 0.09742,1.31077,-0.00592, 0.05342,1.25298,0.00928, 0.06045,1.25965,0.00845, 0.0609,1.25604,0.01715, 0.0609,1.25604,0.01715, 0.06045,1.25965,0.00845, 0.06332,1.25867,0.01678, 0.02972,1.23563,0.07368, 0.02085,1.23626,0.07781, 0.02368,1.22846,0.07047, 0.02368,1.22846,0.07047, 0.02085,1.23626,0.07781, 0.0123,1.22821,0.07384, 0.00879,1.26171,0.09069, 0,1.25884,0.09174, 0.0076,1.25064,0.088, 0.0076,1.25064,0.088, 0,1.25884,0.09174, 0,1.25112,0.08923, 0,1.21761,0.03547, 0.00723,1.21695,0.04555, 0,1.21552,0.04637, 0.07023,1.27958,0.03767, 0.06858,1.27965,0.0514, 0.0667,1.27327,0.05123, 0.01315,1.23656,0.08006, 0.0123,1.22821,0.07384, 0.02085,1.23626,0.07781, 0.05723,1.2522,0.01787, 0.05342,1.25298,0.00928, 0.0609,1.25604,0.01715, 0.06045,1.25965,0.00845, 0.06285,1.26415,-0.00309, 0.07262,1.27969,-0.00539, 0.0777,1.31122,0.01351, 0.07573,1.29881,0.01441, 0.08438,1.28612,0.00471, 0.09008,1.31005,-0.01032, 0.07882,1.29978,-0.00559, 0.08611,1.31463,-0.00524, 0.08438,1.28612,0.00471, 0.09014,1.27388,-0.0067, 0.09604,1.28501,-0.00966, 0.06724,1.26686,0.01577, 0.06332,1.25867,0.01678, 0.07484,1.2602,0.00476, 0.08438,1.28612,0.00471, 0.09808,1.298,-0.00908, 0.09742,1.31077,-0.00592, 0.07484,1.2602,0.00476, 0.08302,1.26481,-0.00194, 0.08438,1.28612,0.00471, 0.08438,1.28612,0.00471, 0.09493,1.31596,-0.00147, 0.08818,1.31783,0.00459, 0.07262,1.27969,-0.00539, 0.06792,1.26025,0.00094, 0.06045,1.25965,0.00845, 0.08692,1.28517,-0.01328, 0.08186,1.2745,-0.00958, 0.07262,1.27969,-0.00539, 0.0767,1.26597,-0.00501, 0.06792,1.26025,0.00094, 0.07262,1.27969,-0.00539, 0.08692,1.28517,-0.01328, 0.07262,1.27969,-0.00539, 0.09021,1.29688,-0.01302, 0.08438,1.28612,0.00471, 0.08818,1.31783,0.00459, 0.0777,1.31122,0.01351, 0.08818,1.31783,0.00459, 0.07816,1.31599,0.00132, 0.0777,1.31122,0.01351, 0.07262,1.27969,-0.00539, 0.07882,1.29978,-0.00559, 0.09008,1.31005,-0.01032, 0.08186,1.2745,-0.00958, 0.0767,1.26597,-0.00501, 0.07262,1.27969,-0.00539, 0.08438,1.28612,0.00471, 0.08302,1.26481,-0.00194, 0.09014,1.27388,-0.0067, 0.08438,1.28612,0.00471, 0.07573,1.29881,0.01441, 0.07406,1.28893,0.01498, 0.08438,1.28612,0.00471, 0.06724,1.26686,0.01577, 0.07484,1.2602,0.00476, 0.08438,1.28612,0.00471, 0.07406,1.28893,0.01498, 0.07177,1.28009,0.01507, 0.08438,1.28612,0.00471, 0.09604,1.28501,-0.00966, 0.09808,1.298,-0.00908, 0.07262,1.27969,-0.00539, 0.09008,1.31005,-0.01032, 0.09021,1.29688,-0.01302, 0.08438,1.28612,0.00471, 0.09742,1.31077,-0.00592, 0.09493,1.31596,-0.00147, 0.07882,1.29978,-0.00559, 0.07816,1.31599,0.00132, 0.08611,1.31463,-0.00524, 0.08438,1.28612,0.00471, 0.07177,1.28009,0.01507, 0.06724,1.26686,0.01577, 0,1.26362,0.09341, 0,1.25884,0.09174, 0.00879,1.26171,0.09069, 0.00931,1.32109,0.08153, 0.00789,1.31027,0.08043, 0.01438,1.31283,0.07895, 0.07198,1.32098,0.05679, 0.07426,1.32357,0.05277, 0.07308,1.334,0.0574, 0.06885,1.31663,0.06067, 0.07198,1.32098,0.05679, 0.06632,1.32308,0.0629, 0.06632,1.32308,0.0629, 0.07198,1.32098,0.05679, 0.07028,1.32903,0.06039, 0.07509,1.33874,0.05462, 0.07662,1.34467,0.04784, 0.07054,1.35545,0.05999, 0.0215,1.33679,0.08078, 0.0113,1.33435,0.08343, 0.00931,1.32109,0.08153, 0.03228,1.34693,0.07827, 0.01861,1.34091,0.08232, 0.03255,1.34161,0.07752, 0.0215,1.33679,0.08078, 0.01861,1.34091,0.08232, 0.0113,1.33435,0.08343, 0.03255,1.34161,0.07752, 0.02158,1.32687,0.07898, 0.0331,1.33154,0.07653, 0.07198,1.32098,0.05679, 0.07308,1.334,0.0574, 0.07028,1.32903,0.06039, 0.07426,1.32357,0.05277, 0.07447,1.31052,0.04458, 0.07591,1.32547,0.04546, 0.07308,1.334,0.0574, 0.07426,1.32357,0.05277, 0.07509,1.33874,0.05462, 0.03282,1.22791,0.0613, 0.03093,1.22799,0.06463, 0.02235,1.22209,0.06108, 0.02235,1.22209,0.06108, 0.03093,1.22799,0.06463, 0.02201,1.22309,0.06484, 0.0731,1.30975,0.0524, 0.07426,1.32357,0.05277, 0.07198,1.32098,0.05679, 0.0579,1.28663,0.06556, 0.05984,1.28019,0.06589, 0.06362,1.28358,0.06286, 0.0579,1.28663,0.06556, 0.06362,1.28358,0.06286, 0.06242,1.29301,0.06351, 0.06242,1.29301,0.06351, 0.06362,1.28358,0.06286, 0.06782,1.29159,0.05893, 0.06362,1.28358,0.06286, 0.06572,1.2798,0.06003, 0.06782,1.29159,0.05893, 0.05322,1.30294,0.07019, 0.06242,1.29301,0.06351, 0.06398,1.3,0.06301, 0.05322,1.30294,0.07019, 0.06398,1.3,0.06301, 0.06391,1.30679,0.06338, 0.05322,1.30294,0.07019, 0.0579,1.28663,0.06556, 0.06242,1.29301,0.06351, 0.0553,1.32054,0.06849, 0.06632,1.32308,0.0629, 0.06281,1.32678,0.0652, 0.06239,1.31339,0.06486, 0.0553,1.32054,0.06849, 0.05322,1.30294,0.07019, 0.05697,1.33119,0.0684, 0.0553,1.32054,0.06849, 0.06281,1.32678,0.0652, 0.04321,1.30286,0.07431, 0.05322,1.30294,0.07019, 0.04407,1.32169,0.07304, 0.04407,1.32169,0.07304, 0.05322,1.30294,0.07019, 0.0553,1.32054,0.06849, 0.01861,1.34091,0.08232, 0.0119,1.34577,0.08461, 0.0113,1.33435,0.08343, 0.0215,1.33679,0.08078, 0.03255,1.34161,0.07752, 0.01861,1.34091,0.08232, 0.00931,1.32109,0.08153, 0.02158,1.32687,0.07898, 0.0215,1.33679,0.08078, 0.03255,1.34161,0.07752, 0.0215,1.33679,0.08078, 0.02158,1.32687,0.07898, 0.07447,1.31052,0.04458, 0.07426,1.32357,0.05277, 0.0731,1.30975,0.0524, 0.07385,1.29993,0.03892, 0.07447,1.31052,0.04458, 0.07238,1.30016,0.05146, 0.06239,1.31339,0.06486, 0.06885,1.31663,0.06067, 0.06632,1.32308,0.0629, 0.06239,1.31339,0.06486, 0.06632,1.32308,0.0629, 0.0553,1.32054,0.06849, 0.03204,1.23539,0.0016, 0.03862,1.24182,-0.00035, 0.04196,1.24137,0.01174, 0.07591,1.32547,0.04546, 0.07509,1.33874,0.05462, 0.07426,1.32357,0.05277, 0.07591,1.32547,0.04546, 0.07662,1.34467,0.04784, 0.07509,1.33874,0.05462, 0.07662,1.34467,0.04784, 0.07591,1.32547,0.04546, 0.07767,1.32552,0.03517, 0.07385,1.29993,0.03892, 0.07594,1.31054,0.03424, 0.07447,1.31052,0.04458, 0.07767,1.32552,0.03517, 0.07847,1.32401,0.02407, 0.0794,1.3395,0.02451, 0.07549,1.35591,0.04042, 0.06877,1.37605,0.04344, 0.06907,1.36504,0.05375, 0.07549,1.35591,0.04042, 0.07521,1.36243,0.03473, 0.06877,1.37605,0.04344, 0.01477,1.22046,0.03429, 0.02345,1.22239,0.04425, 0.01466,1.21907,0.0448, 0.01477,1.22046,0.03429, 0.01466,1.21907,0.0448, 0.00723,1.21695,0.04555, 0.02503,1.23017,0.00403, 0.03204,1.23539,0.0016, 0.03478,1.23507,0.01392, 0.02721,1.23366,-0.00837, 0.03204,1.23539,0.0016, 0.02503,1.23017,0.00403, 0.03316,1.23991,-0.01178, 0.0465,1.25056,-0.00266, 0.03862,1.24182,-0.00035, 0.01477,1.22046,0.03429, 0.00723,1.21695,0.04555, 0,1.21761,0.03547, 0.03154,1.22797,0.03229, 0.02345,1.22239,0.04425, 0.01477,1.22046,0.03429, 0.02503,1.23017,0.00403, 0.03478,1.23507,0.01392, 0.02579,1.22936,0.01621, 0.03204,1.23539,0.0016, 0.04196,1.24137,0.01174, 0.03478,1.23507,0.01392, 0.03862,1.24182,-0.00035, 0.04692,1.24657,0.00995, 0.04196,1.24137,0.01174, 0.05342,1.25298,0.00928, 0.06285,1.26415,-0.00309, 0.06045,1.25965,0.00845, 0.0465,1.25056,-0.00266, 0.03316,1.23991,-0.01178, 0.0434,1.24935,-0.0162, 0.0434,1.24935,-0.0162, 0.06285,1.26415,-0.00309, 0.0465,1.25056,-0.00266, 0.03316,1.23991,-0.01178, 0.0228,1.23744,-0.02778, 0.0434,1.24935,-0.0162, 0.06362,1.28358,0.06286, 0.05984,1.28019,0.06589, 0.06572,1.2798,0.06003, 0.07509,1.33874,0.05462, 0.07054,1.35545,0.05999, 0.06822,1.34604,0.06187, 0.0591,1.37122,0.06388, 0.07054,1.35545,0.05999, 0.06907,1.36504,0.05375, 0.0609,1.25604,0.01715, 0.06332,1.25867,0.01678, 0.06318,1.25883,0.02643, 0.07878,1.32355,0.01812, 0.0794,1.3395,0.02451, 0.07847,1.32401,0.02407, 0.0794,1.3395,0.02451, 0.07521,1.36243,0.03473, 0.07549,1.35591,0.04042, 0.01268,1.2208,0.0666, 0.02201,1.22309,0.06484, 0.02368,1.22846,0.07047, -0.0591,1.37122,0.06388, -0.07054,1.35545,0.05999, -0.05924,1.35889,0.06756, -0.02503,1.23017,0.00403, -0.01468,1.22309,0.01994, -0.02579,1.22936,0.01621, -0.0465,1.25056,-0.00266, -0.03862,1.24182,-0.00035, -0.04692,1.24657,0.00995, -0.04692,1.24657,0.00995, -0.05342,1.25298,0.00928, -0.0465,1.25056,-0.00266, -0.03257,1.22766,0.04363, -0.03154,1.22797,0.03229, -0.02345,1.22239,0.04425, -0.01271,1.22073,0.0666, -0.0123,1.22821,0.07384, -0.02367,1.22848,0.07047, -0.02367,1.22848,0.07047, -0.02894,1.22811,0.0672, -0.02201,1.22309,0.06484, -0.02894,1.22811,0.0672, -0.03093,1.22799,0.06463, -0.02201,1.22309,0.06484, -0.0465,1.25056,-0.00266, -0.05342,1.25298,0.00928, -0.06285,1.26415,-0.00309, -0.07238,1.30016,0.05146, -0.0731,1.30975,0.0524, -0.07447,1.31052,0.04458, -0.06792,1.26025,0.00094, -0.07484,1.2602,0.00476, -0.0767,1.26597,-0.00501, -0.07484,1.2602,0.00476, -0.08302,1.26481,-0.00194, -0.0767,1.26597,-0.00501, -0.08186,1.2745,-0.00958, -0.09014,1.27388,-0.0067, -0.08692,1.28517,-0.01328, -0.09014,1.27388,-0.0067, -0.09604,1.28501,-0.00966, -0.08692,1.28517,-0.01328, -0.06332,1.25867,0.01678, -0.07484,1.2602,0.00476, -0.06045,1.25965,0.00845, -0.07484,1.2602,0.00476, -0.06792,1.26025,0.00094, -0.06045,1.25965,0.00845, -0.09742,1.31077,-0.00592, -0.09008,1.31005,-0.01032, -0.09808,1.298,-0.00908, -0.09008,1.31005,-0.01032, -0.09021,1.29688,-0.01302, -0.09808,1.298,-0.00908, -0.08611,1.31463,-0.00524, -0.08818,1.31783,0.00459, -0.07816,1.31599,0.00132, -0.08611,1.31463,-0.00524, -0.09493,1.31596,-0.00147, -0.08818,1.31783,0.00459, -0.02235,1.22209,0.06108, -0.01248,1.21797,0.06233, -0.02201,1.22309,0.06484, -0.01248,1.21797,0.06233, -0.01271,1.22073,0.0666, -0.02201,1.22309,0.06484, -0.0767,1.26597,-0.00501, -0.08302,1.26481,-0.00194, -0.08186,1.2745,-0.00958, -0.08302,1.26481,-0.00194, -0.09014,1.27388,-0.0067, -0.08186,1.2745,-0.00958, -0.02113,1.28909,0.07723, -0.00832,1.29269,0.08068, -0.01492,1.3025,0.0785, -0.00832,1.29269,0.08068, -0.00805,1.30202,0.08029, -0.01492,1.3025,0.0785, -0.06239,1.31339,0.06486, -0.06391,1.30679,0.06338, -0.05322,1.30294,0.07019, -0.02172,1.30279,0.07802, -0.02113,1.28909,0.07723, -0.01492,1.3025,0.0785, -0.0579,1.28663,0.06556, -0.05192,1.28491,0.06885, -0.05322,1.30294,0.07019, -0.07198,1.32098,0.05679, -0.0731,1.30975,0.0524, -0.06885,1.31663,0.06067, -0.0731,1.30975,0.0524, -0.06977,1.30839,0.05889, -0.06885,1.31663,0.06067, -0.09808,1.298,-0.00908, -0.09021,1.29688,-0.01302, -0.09604,1.28501,-0.00966, -0.09021,1.29688,-0.01302, -0.08692,1.28517,-0.01328, -0.09604,1.28501,-0.00966, -0.08611,1.31463,-0.00524, -0.09008,1.31005,-0.01032, -0.09493,1.31596,-0.00147, -0.09008,1.31005,-0.01032, -0.09742,1.31077,-0.00592, -0.09493,1.31596,-0.00147, -0.05342,1.25298,0.00928, -0.0609,1.25604,0.01715, -0.06045,1.25965,0.00845, -0.0609,1.25604,0.01715, -0.06332,1.25867,0.01678, -0.06045,1.25965,0.00845, -0.02972,1.23563,0.07368, -0.02367,1.22848,0.07047, -0.02085,1.23626,0.07781, -0.02367,1.22848,0.07047, -0.0123,1.22821,0.07384, -0.02085,1.23626,0.07781, -0.00879,1.26171,0.09069, -0.0076,1.25064,0.088, 0,1.25884,0.09174, -0.0076,1.25064,0.088, 0,1.25112,0.08923, 0,1.25884,0.09174, 0,1.21761,0.03547, 0,1.21552,0.04637, -0.00723,1.21695,0.04555, -0.07023,1.27958,0.03767, -0.0667,1.27327,0.05123, -0.06858,1.27965,0.0514, -0.01315,1.23656,0.08006, -0.02085,1.23626,0.07781, -0.0123,1.22821,0.07384, -0.05723,1.2522,0.01787, -0.0609,1.25604,0.01715, -0.05342,1.25298,0.00928, -0.06045,1.25965,0.00845, -0.07262,1.27969,-0.00539, -0.06285,1.26415,-0.00309, -0.0777,1.31122,0.01351, -0.08438,1.28612,0.00471, -0.07573,1.29881,0.01441, -0.09008,1.31005,-0.01032, -0.08611,1.31463,-0.00524, -0.07882,1.29978,-0.00559, -0.08438,1.28612,0.00471, -0.09604,1.28501,-0.00966, -0.09014,1.27388,-0.0067, -0.06724,1.26686,0.01577, -0.07484,1.2602,0.00476, -0.06332,1.25867,0.01678, -0.08438,1.28612,0.00471, -0.09742,1.31077,-0.00592, -0.09808,1.298,-0.00908, -0.07484,1.2602,0.00476, -0.08438,1.28612,0.00471, -0.08302,1.26481,-0.00194, -0.08438,1.28612,0.00471, -0.08818,1.31783,0.00459, -0.09493,1.31596,-0.00147, -0.07262,1.27969,-0.00539, -0.06045,1.25965,0.00845, -0.06792,1.26025,0.00094, -0.08692,1.28517,-0.01328, -0.07262,1.27969,-0.00539, -0.08186,1.2745,-0.00958, -0.0767,1.26597,-0.00501, -0.07262,1.27969,-0.00539, -0.06792,1.26025,0.00094, -0.08692,1.28517,-0.01328, -0.09021,1.29688,-0.01302, -0.07262,1.27969,-0.00539, -0.08438,1.28612,0.00471, -0.0777,1.31122,0.01351, -0.08818,1.31783,0.00459, -0.08818,1.31783,0.00459, -0.0777,1.31122,0.01351, -0.07816,1.31599,0.00132, -0.07262,1.27969,-0.00539, -0.09008,1.31005,-0.01032, -0.07882,1.29978,-0.00559, -0.08186,1.2745,-0.00958, -0.07262,1.27969,-0.00539, -0.0767,1.26597,-0.00501, -0.08438,1.28612,0.00471, -0.09014,1.27388,-0.0067, -0.08302,1.26481,-0.00194, -0.08438,1.28612,0.00471, -0.07406,1.28893,0.01498, -0.07573,1.29881,0.01441, -0.08438,1.28612,0.00471, -0.07484,1.2602,0.00476, -0.06724,1.26686,0.01577, -0.08438,1.28612,0.00471, -0.07177,1.28009,0.01507, -0.07406,1.28893,0.01498, -0.08438,1.28612,0.00471, -0.09808,1.298,-0.00908, -0.09604,1.28501,-0.00966, -0.07262,1.27969,-0.00539, -0.09021,1.29688,-0.01302, -0.09008,1.31005,-0.01032, -0.08438,1.28612,0.00471, -0.09493,1.31596,-0.00147, -0.09742,1.31077,-0.00592, -0.07882,1.29978,-0.00559, -0.08611,1.31463,-0.00524, -0.07816,1.31599,0.00132, -0.08438,1.28612,0.00471, -0.06724,1.26686,0.01577, -0.07177,1.28009,0.01507, 0,1.26362,0.09341, -0.00879,1.26171,0.09069, 0,1.25884,0.09174, -0.00931,1.32109,0.08153, -0.01438,1.31283,0.07895, -0.00789,1.31027,0.08043, -0.07198,1.32098,0.05679, -0.07308,1.334,0.0574, -0.07426,1.32357,0.05277, -0.06885,1.31663,0.06067, -0.06632,1.32308,0.0629, -0.07198,1.32098,0.05679, -0.06632,1.32308,0.0629, -0.07028,1.32903,0.06039, -0.07198,1.32098,0.05679, -0.07509,1.33874,0.05462, -0.07054,1.35545,0.05999, -0.07662,1.34467,0.04784, -0.0215,1.33679,0.08078, -0.00931,1.32109,0.08153, -0.0113,1.33435,0.08343, -0.03228,1.34693,0.07827, -0.03255,1.34161,0.07752, -0.01861,1.34091,0.08232, -0.0215,1.33679,0.08078, -0.0113,1.33435,0.08343, -0.01861,1.34091,0.08232, -0.03255,1.34161,0.07752, -0.0331,1.33154,0.07653, -0.02158,1.32687,0.07898, -0.07198,1.32098,0.05679, -0.07028,1.32903,0.06039, -0.07308,1.334,0.0574, -0.07426,1.32357,0.05277, -0.07591,1.32547,0.04546, -0.07447,1.31052,0.04458, -0.07308,1.334,0.0574, -0.07509,1.33874,0.05462, -0.07426,1.32357,0.05277, -0.03282,1.22791,0.0613, -0.02235,1.22209,0.06108, -0.03093,1.22799,0.06463, -0.02235,1.22209,0.06108, -0.02201,1.22309,0.06484, -0.03093,1.22799,0.06463, -0.0731,1.30975,0.0524, -0.07198,1.32098,0.05679, -0.07426,1.32357,0.05277, -0.0579,1.28663,0.06556, -0.06362,1.28358,0.06286, -0.05984,1.28019,0.06589, -0.0579,1.28663,0.06556, -0.06242,1.29301,0.06351, -0.06362,1.28358,0.06286, -0.06242,1.29301,0.06351, -0.06782,1.29159,0.05893, -0.06362,1.28358,0.06286, -0.06362,1.28358,0.06286, -0.06782,1.29159,0.05893, -0.06572,1.2798,0.06003, -0.05322,1.30294,0.07019, -0.06398,1.3,0.06301, -0.06242,1.29301,0.06351, -0.05322,1.30294,0.07019, -0.06391,1.30679,0.06338, -0.06398,1.3,0.06301, -0.05322,1.30294,0.07019, -0.06242,1.29301,0.06351, -0.0579,1.28663,0.06556, -0.0553,1.32054,0.06849, -0.06281,1.32678,0.0652, -0.06632,1.32308,0.0629, -0.06239,1.31339,0.06486, -0.05322,1.30294,0.07019, -0.0553,1.32054,0.06849, -0.05697,1.33119,0.0684, -0.06281,1.32678,0.0652, -0.0553,1.32054,0.06849, -0.04321,1.30286,0.07431, -0.04407,1.32169,0.07304, -0.05322,1.30294,0.07019, -0.04407,1.32169,0.07304, -0.0553,1.32054,0.06849, -0.05322,1.30294,0.07019, -0.01861,1.34091,0.08232, -0.0113,1.33435,0.08343, -0.0119,1.34577,0.08461, -0.0215,1.33679,0.08078, -0.01861,1.34091,0.08232, -0.03255,1.34161,0.07752, -0.00931,1.32109,0.08153, -0.0215,1.33679,0.08078, -0.02158,1.32687,0.07898, -0.03255,1.34161,0.07752, -0.02158,1.32687,0.07898, -0.0215,1.33679,0.08078, -0.07447,1.31052,0.04458, -0.0731,1.30975,0.0524, -0.07426,1.32357,0.05277, -0.07385,1.29993,0.03892, -0.07238,1.30016,0.05146, -0.07447,1.31052,0.04458, -0.06239,1.31339,0.06486, -0.06632,1.32308,0.0629, -0.06885,1.31663,0.06067, -0.06239,1.31339,0.06486, -0.0553,1.32054,0.06849, -0.06632,1.32308,0.0629, -0.03204,1.23539,0.0016, -0.04196,1.24137,0.01174, -0.03862,1.24182,-0.00035, -0.07591,1.32547,0.04546, -0.07426,1.32357,0.05277, -0.07509,1.33874,0.05462, -0.07591,1.32547,0.04546, -0.07509,1.33874,0.05462, -0.07662,1.34467,0.04784, -0.07662,1.34467,0.04784, -0.07767,1.32552,0.03517, -0.07591,1.32547,0.04546, -0.07385,1.29993,0.03892, -0.07447,1.31052,0.04458, -0.07594,1.31054,0.03424, -0.07767,1.32552,0.03517, -0.0794,1.3395,0.02451, -0.07847,1.32401,0.02407, -0.07549,1.35591,0.04042, -0.06907,1.36504,0.05375, -0.06877,1.37605,0.04344, -0.07549,1.35591,0.04042, -0.06877,1.37605,0.04344, -0.07521,1.36243,0.03473, -0.01477,1.22046,0.03429, -0.01466,1.21907,0.0448, -0.02345,1.22239,0.04425, -0.01477,1.22046,0.03429, -0.00723,1.21695,0.04555, -0.01466,1.21907,0.0448, -0.02503,1.23017,0.00403, -0.03478,1.23507,0.01392, -0.03204,1.23539,0.0016, -0.02721,1.23366,-0.00837, -0.02503,1.23017,0.00403, -0.03204,1.23539,0.0016, -0.03316,1.23991,-0.01178, -0.03862,1.24182,-0.00035, -0.0465,1.25056,-0.00266, -0.01477,1.22046,0.03429, 0,1.21761,0.03547, -0.00723,1.21695,0.04555, -0.03154,1.22797,0.03229, -0.01477,1.22046,0.03429, -0.02345,1.22239,0.04425, -0.02503,1.23017,0.00403, -0.02579,1.22936,0.01621, -0.03478,1.23507,0.01392, -0.03204,1.23539,0.0016, -0.03478,1.23507,0.01392, -0.04196,1.24137,0.01174, -0.03862,1.24182,-0.00035, -0.04196,1.24137,0.01174, -0.04692,1.24657,0.00995, -0.05342,1.25298,0.00928, -0.06045,1.25965,0.00845, -0.06285,1.26415,-0.00309, -0.0465,1.25056,-0.00266, -0.0434,1.24935,-0.0162, -0.03316,1.23991,-0.01178, -0.0434,1.24935,-0.0162, -0.0465,1.25056,-0.00266, -0.06285,1.26415,-0.00309, -0.03316,1.23991,-0.01178, -0.0434,1.24935,-0.0162, -0.0228,1.23744,-0.02778, -0.06362,1.28358,0.06286, -0.06572,1.2798,0.06003, -0.05984,1.28019,0.06589, -0.07509,1.33874,0.05462, -0.06822,1.34604,0.06187, -0.07054,1.35545,0.05999, -0.0591,1.37122,0.06388, -0.06907,1.36504,0.05375, -0.07054,1.35545,0.05999, -0.0609,1.25604,0.01715, -0.06318,1.25883,0.02643, -0.06332,1.25867,0.01678, -0.07878,1.32355,0.01812, -0.07847,1.32401,0.02407, -0.0794,1.3395,0.02451, -0.0794,1.3395,0.02451, -0.07549,1.35591,0.04042, -0.07521,1.36243,0.03473, -0.01271,1.22073,0.0666, -0.02367,1.22848,0.07047, -0.02201,1.22309,0.06484, }; GLuint VBO, VAO; glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO); // !!! Bind the Vertex Array Object first, then bind and set vertex buffer(s) and attribute pointer(s). glBindVertexArray(VAO); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); <API key>(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), (GLvoid*)0); <API key>(0); //<API key>(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), (GLvoid*)(3 * sizeof(GLfloat))); //<API key>(1); glBindVertexArray(0); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); GLuint texture; glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, <API key>, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, <API key>, GL_LINEAR); while (!<API key>(window)) { // Calculate deltatime of current frame GLfloat currentFrame = glfwGetTime(); deltaTime = currentFrame - lastFrame; lastFrame = currentFrame; glfwPollEvents(); do_movement(); glClearColor(0.2f, 0.3f, 0.3f, 1.0f); // glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glBindTexture(GL_TEXTURE_2D, texture); ourShader.Use(); glBindVertexArray(VAO); //glm::mat4 model; glm::mat4 view; glm::mat4 projection; view = camera.GetViewMatrix(); projection = glm::perspective(camera.Zoom, (GLfloat)mWidth / (GLfloat)mHeight, 0.1f, 1000.0f); // Get their uniform location GLint modelLoc = <API key>(ourShader.Program, "model"); GLint viewLoc = <API key>(ourShader.Program, "view"); GLint projLoc = <API key>(ourShader.Program, "projection"); // Pass them to the shaders glm::mat4 model; model = glm::translate(model, glm::vec3(0.0f, -13.0f, 0.0f)); //model = glm::rotate(model, (GLfloat)glfwGetTime() * 1.0f, glm::vec3(0.5f, 1.0f, 0.0f)); model = glm::scale(model, glm::vec3(10.0f, 10.0f, 10.0f)); glUniformMatrix4fv(modelLoc, 1, GL_FALSE, glm::value_ptr(model)); glDrawArrays(GL_TRIANGLES, 0, 9108); glBindVertexArray(0); glUniformMatrix4fv(viewLoc, 1, GL_FALSE, glm::value_ptr(view)); // Note: currently we set the projection matrix each frame, but since the projection matrix rarely changes it's often best practice to set it outside the main loop only once. glUniformMatrix4fv(projLoc, 1, GL_FALSE, glm::value_ptr(projection)); glfwSwapBuffers(window); } <API key>(1, &VAO); glDeleteBuffers(1, &VBO); glfwTerminate(); return 0; } void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) { if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) <API key>(window, GL_TRUE); if (key >= 0 && key < 1024) { if (action == GLFW_PRESS) keys[key] = true; else if (action == GLFW_RELEASE) keys[key] = false; } } void do_movement() { GLfloat cameraSpeed = 5.0f * deltaTime; if (keys[GLFW_KEY_W] || keys[GLFW_KEY_UP]) camera.ProcessKeyboard(FORWARD, deltaTime); if (keys[GLFW_KEY_S] || keys[GLFW_KEY_DOWN]) camera.ProcessKeyboard(BACKWARD, deltaTime); if (keys[GLFW_KEY_A] || keys[GLFW_KEY_LEFT]) camera.ProcessKeyboard(LEFT, deltaTime); if (keys[GLFW_KEY_D] || keys[GLFW_KEY_RIGHT]) camera.ProcessKeyboard(RIGHT, deltaTime); } void mouse_callback(GLFWwindow* window, double xpos, double ypos) { if (firstMouse) { lastX = xpos; lastY = ypos; firstMouse = false; } GLfloat xoffset = xpos - lastX; GLfloat yoffset = lastY - ypos; lastX = xpos; lastY = ypos; camera.<API key>(xoffset, yoffset); } void scroll_callback(GLFWwindow* window, double xoffset, double yoffset) { camera.ProcessMouseScroll(yoffset); }
require File.expand_path('../boot', __FILE__) require 'rails' # Pick the frameworks you want: require 'active_model/railtie' require 'active_job/railtie' require 'active_record/railtie' require 'action_controller/railtie' require 'action_mailer/railtie' require 'action_view/railtie' require 'sprockets/railtie' # require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module LazyCat class Application < Rails::Application # Use the responders controller from the responders gem config.app_generators.scaffold_controller :<API key>
{{<govuk_template}} {{$head}} {{>includes/elements_head}} {{>includes/elements_scripts}} {{/head}} {{$propositionHeader}} {{>includes/<API key>}} {{/propositionHeader}} {{$headerClass}}with-proposition{{/headerClass}} {{$content}} <header class="page-header"> </header> <main id="page-container" role="main"> <div class="phase-banner"> <p><strong class="phase-tag">ALPHA</strong><span>This is a new service – your <a href="#">feedback</a> will help us to improve it.</span> </p> </div> <form action="medical-form" method="get" class="form inline"> <div class="grid-row" id="q1"> <div class="column-full"> <h4 class="heading-large">Does your cancer affect your ability to drive?</h4> </div> </div> <div class="grid-row" id="q1"> <div class="column-two-thirds"> <div class="form-group" id="question"> <legend> <span class="error-message" style="display: none;"> Please select a valid option </span> </legend> <label class="block-label" for="q1-a1" id="q1-a1-label"> <input id="q1-a1" type="radio" name="q1-answer" value="Y" onclick="">Yes </label> <label class="block-label" for="q1-a2" id="q1-a2-label"> <input id="q1-a2" type="radio" name="q1-answer" value="N" onclick="">No </label> </div> </div> </div> <div class="form-group"> <input id="continue" name="continue" type="button" class="button" value="Continue" onclick="validate()"> </div> </form> <form action=""> <a class="back-to-previous" href="javascript:history.go(-1);"> <i class="fa fa-angle-left"></i> Back <span class="visuallyhidden"> to the previous question</span> </a> </form> <script> function validate() { var value = $('input[name=q1-answer]:checked').val(); if (value == 'Y') { localStorage.G = true; window.location.href = 'V-CONDITION'; } else if (value == 'N') { window.location.href = 'V-CONDITION'; } else { $('#question').addClass('error'); $('.error-message').show(); } } </script> </main> {{/content}} {{$bodyEnd}} {{/bodyEnd}} {{/govuk_template}}
using System.ComponentModel.DataAnnotations; namespace ContosoUniversity.Web.ViewModels { public class TokenViewModel { [Required] [EmailAddress] public string Email { get; set; } [Required] [DataType(DataType.Password)] public string Password { get; set; } } }
<?php session_start(); include_once "base.php"; $rowsPerPage=10; $offset=2; $sql = "SELECT area_code,area_desc,active FROM `area` ORDER BY area_code "; $query = mysql_query($sql); if(!$query) die('MySQL Error: '.mysql_error()); ?> <div class='form'> <button onclick="open_menu('area_form');"><span><a>+ Add New</a></span></button><br /><br /> <div class='browse tbody'> <table width="100%" cellspacing="0" cellpadding="0"> <thead> <tr><td width="150px">Code</td><td width="300px">Description</td><td></td></tr> <thead> <tbody> <?php while($line=mysql_fetch_array($query)){ ?> <tr><td><?php echo $line[0] ?></td><td><?php echo $line[1] ?></td><td><button onclick="open_menu('area_form',{action:'view',code:'<?php echo $line[0]; ?>'});">View</button>&nbsp;<button onclick="open_menu('area_form',{action:'edit',code:'<?php echo $line[0]; ?>'});">Edit</button></td></tr> <?php }?> </tbody> </table> <br /> <br /> <div>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Class Shop_currency_model</title> <link rel="stylesheet" href="resources/bootstrap.min.css?<SHA1-like>"> <link rel="stylesheet" href="resources/style.css?<SHA1-like>"> </head> <body> <div id="navigation" class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a href="index.html" class="brand">Overview</a> <div class="nav-collapse"> <ul class="nav"> <li> <a href="namespace-None.html" title="Summary of None"><span>Namespace</span></a> </li> <li class="active"> <span>Class</span> </li> </ul> </div> </div> </div> </div> <div id="left"> <div id="menu"> <form id="search" class="form-search"> <input type="hidden" name="cx" value=""> <input type="hidden" name="ie" value="UTF-8"> <input type="text" name="q" class="search-query" placeholder="Search"> </form> <div id="groups"> <h3>Namespaces</h3> <ul> <li> <a href="namespace-Nails.html"> Nails<span></span> </a> <ul> <li> <a href="namespace-Nails.Admin.html"> Admin<span></span> </a> <ul> <li> <a href="namespace-Nails.Admin.Admin.html"> Admin </a> </li> <li> <a href="namespace-Nails.Admin.Auth.html"> Auth </a> </li> <li> <a href="namespace-Nails.Admin.Blog.html"> Blog </a> </li> <li> <a href="namespace-Nails.Admin.Cdn.html"> Cdn </a> </li> <li> <a href="namespace-Nails.Admin.Cms.html"> Cms </a> </li> <li> <a href="namespace-Nails.Admin.Email.html"> Email </a> </li> <li> <a href="namespace-Nails.Admin.Shop.html"> Shop </a> </li> <li> <a href="namespace-Nails.Admin.Testimonial.html"> Testimonial </a> </li> </ul></li></ul></li> <li class="active"> <a href="namespace-None.html"> None </a> </li> </ul> </div> <div id="elements"> <h3>Classes</h3> <ul> <li><a href="class-Admin.html">Admin</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Admin_help_model</a></li> <li><a href="class-Admin_model.html">Admin_model</a></li> <li><a href="<API key>.html">Admin_sitelog_model</a></li> <li><a href="<API key>.html">AdminController</a></li> <li><a href="class-AdminRouter.html">AdminRouter</a></li> <li><a href="class-Api.html">Api</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">App_setting_model</a></li> <li><a href="class-Asset.html">Asset</a></li> <li><a href="class-Auth.html">Auth</a></li> <li><a href="class-Auth_model.html">Auth_model</a></li> <li><a href="class-Aws_local_CDN.html">Aws_local_CDN</a></li> <li><a href="class-Barcode.html">Barcode</a></li> <li><a href="<API key>.html">Barcode_generator</a></li> <li><a href="class-Basket.html">Basket</a></li> <li><a href="class-Blank_avatar.html">Blank_avatar</a></li> <li><a href="class-Blog.html">Blog</a></li> <li><a href="<API key>.html">Blog_category_model</a></li> <li><a href="class-Blog_model.html">Blog_model</a></li> <li><a href="<API key>.html">Blog_post_model</a></li> <li><a href="<API key>.html">Blog_skin_model</a></li> <li><a href="<API key>.html">Blog_tag_model</a></li> <li><a href="<API key>.html">Blog_widget_model</a></li> <li><a href="class-Cdn.html">Cdn</a></li> <li><a href="class-Cdnapi.html">Cdnapi</a></li> <li><a href="class-Checkout.html">Checkout</a></li> <li><a href="class-CI.html" class="invalid">CI</a></li> <li><a href="class-CI_Model.html">CI_Model</a></li> <li><a href="class-Cms.html">Cms</a></li> <li><a href="<API key>.html">Cms_block_model</a></li> <li><a href="<API key>.html">Cms_menu_model</a></li> <li><a href="<API key>.html">Cms_page_model</a></li> <li><a href="<API key>.html">Cms_slider_model</a></li> <li><a href="class-Comment.html">Comment</a></li> <li><a href="<API key>.html">CORE_NAILS_App</a></li> <li><a href="<API key>.html">CORE_NAILS_Calendar</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">CORE_NAILS_Deploy</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">CORE_NAILS_Hooks</a></li> <li><a href="<API key>.html">CORE_NAILS_Install</a></li> <li><a href="<API key>.html">CORE_NAILS_Lang</a></li> <li><a href="<API key>.html">CORE_NAILS_Loader</a></li> <li><a href="<API key>.html">CORE_NAILS_Log</a></li> <li><a href="<API key>.html">CORE_NAILS_Migrate</a></li> <li><a href="<API key>.html">CORE_NAILS_Model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">CORE_NAILS_Profiler</a></li> <li><a href="<API key>.html">CORE_NAILS_Router</a></li> <li><a href="<API key>.html">CORE_NAILS_Session</a></li> <li><a href="<API key>.html">CORE_NAILS_URI</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-Country_model.html">Country_model</a></li> <li><a href="class-Curl.html">Curl</a></li> <li><a href="<API key>.html">Datetime_model</a></li> <li><a href="class-Deploy.html">Deploy</a></li> <li><a href="class-Emailer.html">Emailer</a></li> <li><a href="class-Enquire.html">Enquire</a></li> <li><a href="class-Event.html">Event</a></li> <li><a href="class-Faux_session.html">Faux_session</a></li> <li><a href="class-Feed.html">Feed</a></li> <li><a href="<API key>.html">Forgotten_Password</a></li> <li><a href="class-Geo_ip.html">Geo_ip</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-Home.html">Home</a></li> <li><a href="<API key>.html">Language_model</a></li> <li><a href="class-Local_CDN.html">Local_CDN</a></li> <li><a href="class-Logger.html">Logger</a></li> <li><a href="class-Login.html">Login</a></li> <li><a href="class-Logout.html">Logout</a></li> <li><a href="class-Maintenance.html">Maintenance</a></li> <li><a href="class-Manager.html">Manager</a></li> <li><a href="class-Mfa_device.html">Mfa_device</a></li> <li><a href="class-Mfa_question.html">Mfa_question</a></li> <li><a href="class-Modules.html">Modules</a></li> <li><a href="class-Mustache.html">Mustache</a></li> <li><a href="class-MX_Config.html">MX_Config</a></li> <li><a href="class-MX_Controller.html">MX_Controller</a></li> <li><a href="class-MX_Lang.html">MX_Lang</a></li> <li><a href="class-MX_Loader.html">MX_Loader</a></li> <li><a href="class-MX_Router.html">MX_Router</a></li> <li><a href="class-NAILS_Admin.html">NAILS_Admin</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Admin_Model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Api.html">NAILS_Api</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Auth.html">NAILS_Auth</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Auth_model</a></li> <li><a href="class-NAILS_Barcode.html">NAILS_Barcode</a></li> <li><a href="class-NAILS_Basket.html">NAILS_Basket</a></li> <li><a href="<API key>.html">NAILS_Blank_avatar</a></li> <li><a href="class-NAILS_Blog.html" class="invalid">NAILS_Blog</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Blog_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Cdnapi.html">NAILS_Cdnapi</a></li> <li><a href="<API key>.html">NAILS_Checkout</a></li> <li><a href="class-NAILS_Cms.html" class="invalid">NAILS_Cms</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Nails_CMS_Template</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_CMS_Widget</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Controller</a></li> <li><a href="<API key>.html">NAILS_Country_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Deploy.html">NAILS_Deploy</a></li> <li><a href="class-NAILS_Email.html">NAILS_Email</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Enquire.html">NAILS_Enquire</a></li> <li><a href="<API key>.html">NAILS_Exceptions</a></li> <li><a href="class-NAILS_Feed.html">NAILS_Feed</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Geo_ip_driver</a></li> <li><a href="class-NAILS_Hooks.html">NAILS_Hooks</a></li> <li><a href="class-NAILS_Lang.html">NAILS_Lang</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Loader.html">NAILS_Loader</a></li> <li><a href="class-NAILS_Log.html">NAILS_Log</a></li> <li><a href="class-NAILS_Login.html">NAILS_Login</a></li> <li><a href="class-NAILS_Logout.html">NAILS_Logout</a></li> <li><a href="class-NAILS_Logs.html">NAILS_Logs</a></li> <li><a href="<API key>.html">NAILS_Maintenance</a></li> <li><a href="class-NAILS_Manager.html">NAILS_Manager</a></li> <li><a href="<API key>.html">NAILS_Mfa_device</a></li> <li><a href="<API key>.html">NAILS_Mfa_question</a></li> <li><a href="class-NAILS_Model.html">NAILS_Model</a></li> <li><a href="class-NAILS_Notify.html">NAILS_Notify</a></li> <li><a href="class-NAILS_Orders.html">NAILS_Orders</a></li> <li><a href="<API key>.html">NAILS_Override</a></li> <li><a href="<API key>.html">NAILS_Pagination</a></li> <li><a href="<API key>.html">NAILS_Placeholder</a></li> <li><a href="<API key>.html">NAILS_Register</a></li> <li><a href="class-NAILS_Render.html">NAILS_Render</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Router.html">NAILS_Router</a></li> <li><a href="<API key>.html">NAILS_Routes_model</a></li> <li><a href="class-NAILS_Scale.html">NAILS_Scale</a></li> <li><a href="class-NAILS_Serve.html">NAILS_Serve</a></li> <li><a href="class-NAILS_Shop.html" class="invalid">NAILS_Shop</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_Shop_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Sitemap.html">NAILS_Sitemap</a></li> <li><a href="<API key>.html">NAILS_Sitemap_model</a></li> <li><a href="class-NAILS_System.html">NAILS_System</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Thumb.html">NAILS_Thumb</a></li> <li><a href="class-NAILS_Tracker.html">NAILS_Tracker</a></li> <li><a href="<API key>.html">NAILS_Unsubscribe</a></li> <li><a href="class-NAILS_URI.html">NAILS_URI</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">NAILS_User_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-NAILS_Verify.html">NAILS_Verify</a></li> <li><a href="<API key>.html">NAILS_View_Online</a></li> <li><a href="class-NAILS_Zip.html">NAILS_Zip</a></li> <li><a href="class-Notify.html">Notify</a></li> <li><a href="class-Orders.html">Orders</a></li> <li><a href="class-Override.html">Override</a></li> <li><a href="class-Pdf.html">Pdf</a></li> <li><a href="class-Placeholder.html">Placeholder</a></li> <li><a href="class-Register.html">Register</a></li> <li><a href="class-Render.html">Render</a></li> <li><a href="<API key>.html">Reset_Password</a></li> <li><a href="class-Routes_model.html">Routes_model</a></li> <li><a href="class-Scale.html">Scale</a></li> <li><a href="class-Serve.html">Serve</a></li> <li><a href="class-Shop.html" class="invalid">Shop</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Shop_basket_model</a></li> <li><a href="<API key>.html">Shop_brand_model</a></li> <li><a href="<API key>.html">Shop_category_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li class="active"><a href="<API key>.html">Shop_currency_model</a></li> <li><a href="<API key>.html">Shop_feed_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="class-Shop_model.html">Shop_model</a></li> <li><a href="<API key>.html">Shop_order_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Shop_product_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Shop_range_model</a></li> <li><a href="<API key>.html">Shop_sale_model</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">Shop_tag_model</a></li> <li><a href="<API key>.html">Shop_tax_rate_model</a></li> <li><a href="<API key>.html">Shop_voucher_model</a></li> <li><a href="class-Sitemap.html">Sitemap</a></li> <li><a href="class-Sitemap_model.html">Sitemap_model</a></li> <li><a href="class-Social_signon.html">Social_signon</a></li> <li><a href="class-System.html">System</a></li> <li><a href="<API key>.html">System_startup</a></li> <li><a href="<API key>.html">Testimonial_model</a></li> <li><a href="class-Thumb.html">Thumb</a></li> <li><a href="class-Tracker.html">Tracker</a></li> <li><a href="class-Unsubscribe.html">Unsubscribe</a></li> <li><a href="<API key>.html">User_group_model</a></li> <li><a href="class-User_model.html">User_model</a></li> <li><a href="<API key>.html">User_password_model</a></li> <li><a href="class-Verify.html">Verify</a></li> <li><a href="class-View_online.html">View_online</a></li> <li><a href="class-Zip.html">Zip</a></li> </ul> <h3>Interfaces</h3> <ul> <li><a href="class-Cdn_driver.html">Cdn_driver</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> </ul> <h3>Traits</h3> <ul> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> </ul> <h3>Functions</h3> <ul> <li><a href="<API key>.html">_db_flush_caches</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="function-_genderise.html">_genderise</a></li> <li><a href="function-_LOG.html">_LOG</a></li> <li><a href="<API key>.html">_LOG_DUMMY_MODE</a></li> <li><a href="function-_LOG_FILE.html">_LOG_FILE</a></li> <li><a href="<API key>.html">_LOG_MUTE_OUTPUT</a></li> <li><a href="<API key>.html">_NAILS_ERROR</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">_NAILS_GET_DRIVERS</a></li> <li><a href="<API key>.html">_NAILS_GET_MODULES</a></li> <li><a href="<API key>.html">_NAILS_GET_SKINS</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">active_user</a></li> <li><a href="<API key>.html">addTrailingSlash</a></li> <li><a href="<API key>.html">app_notification</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">app_setting</a></li> <li><a href="<API key>.html">array_search_multi</a></li> <li><a href="<API key>.html">array_sort_multi</a></li> <li><a href="<API key>.html">array_unique_multi</a></li> <li><a href="<API key>.html">blog_latest_posts</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">blog_posts_with_tag</a></li> <li><a href="<API key>.html">calculate_age</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="function-cdn_avatar.html">cdn_avatar</a></li> <li><a href="<API key>.html">cdn_blank_avatar</a></li> <li><a href="<API key>.html">cdn_expiring_url</a></li> <li><a href="<API key>.html">cdn_placeholder</a></li> <li><a href="function-cdn_scale.html">cdn_scale</a></li> <li><a href="function-cdn_serve.html">cdn_serve</a></li> <li><a href="<API key>.html">cdn_serve_zipped</a></li> <li><a href="function-cdn_thumb.html">cdn_thumb</a></li> <li><a href="<API key>.html">cdnManageUrl</a></li> <li><a href="function-clean.html">clean</a></li> <li><a href="function-cmsBlock.html">cmsBlock</a></li> <li><a href="function-cmsMenu.html">cmsMenu</a></li> <li><a href="function-cmsSlider.html">cmsSlider</a></li> <li><a href="<API key>.html">create_event</a></li> <li><a href="function-datepicker.html">datepicker</a></li> <li><a href="<API key>.html">dropdown_days</a></li> <li><a href="<API key>.html">dropdown_hours</a></li> <li><a href="<API key>.html">dropdown_minutes</a></li> <li><a href="<API key>.html">dropdown_months</a></li> <li><a href="<API key>.html">dropdown_years</a></li> <li><a href="function-dump.html">dump</a></li> <li><a href="function-dumpanddie.html">dumpanddie</a></li> <li><a href="function-form_email.html">form_email</a></li> <li><a href="function-form_field.html">form_field</a></li> <li><a href="<API key>.html">form_field_boolean</a></li> <li><a href="<API key>.html">form_field_checkbox</a></li> <li><a href="<API key>.html">form_field_date</a></li> <li><a href="<API key>.html">form_field_datetime</a></li> <li><a href="<API key>.html">form_field_dropdown</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">form_field_email</a></li> <li><a href="<API key>.html">form_field_mm</a></li> <li><a href="<API key>.html">form_field_mm_image</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">form_field_password</a></li> <li><a href="<API key>.html">form_field_radio</a></li> <li><a href="<API key>.html">form_field_submit</a></li> <li><a href="<API key>.html">form_field_text</a></li> <li><a href="<API key>.html">form_field_textarea</a></li> <li><a href="<API key>.html">form_field_wysiwyg</a></li> <li><a href="function-form_open.html">form_open</a></li> <li><a href="<API key>.html">format_bytes</a></li> <li><a href="function-genderise.html">genderise</a></li> <li><a href="function-get_basket.html">get_basket</a></li> <li><a href="<API key>.html">get_basket_count</a></li> <li><a href="<API key>.html">get_basket_total</a></li> <li><a href="<API key>.html">get_ext_from_mime</a></li> <li><a href="<API key>.html">get_mime_from_ext</a></li> <li><a href="<API key>.html">get_mime_from_file</a></li> <li><a href="<API key>.html">get_userobject</a></li> <li><a href="<API key>.html">getControllerData</a></li> <li><a href="<API key>.html">getDomainFromUrl</a></li> <li><a href="<API key>.html">getRelativePath</a></li> <li><a href="function-gravatar.html">gravatar</a></li> <li><a href="function-here.html">here</a></li> <li><a href="function-img.html">img</a></li> <li><a href="<API key>.html">in_array_multi</a></li> <li><a href="function-is_clean.html">is_clean</a></li> <li><a href="<API key>.html">isIpInRange</a></li> <li><a href="<API key>.html">isModuleEnabled</a></li> <li><a href="<API key>.html">isPageSecure</a></li> <li><a href="<API key>.html">keyValueSection</a></li> <li><a href="function-lang.html">lang</a></li> <li><a href="function-last_query.html">last_query</a></li> <li><a href="function-lastquery.html">lastquery</a></li> <li><a href="function-link_tag.html">link_tag</a></li> <li><a href="<API key>.html">list_first_last</a></li> <li><a href="function-map.html">map</a></li> <li><a href="function-niceTime.html">niceTime</a></li> <li><a href="<API key>.html">possessionise</a></li> <li><a href="<API key>.html">readFileChunked</a></li> <li><a href="function-redirect.html">redirect</a></li> <li><a href="<API key>.html">return_bytes</a></li> <li><a href="<API key>.html">secure_site_url</a></li> <li><a href="<API key>.html">sendDeveloperMail</a></li> <li><a href="<API key>.html">set_app_setting</a></li> <li><a href="<API key>.html">setControllerData</a></li> <li><a href="function-show_401.html">show_401</a></li> <li><a href="<API key>.html">showFatalError</a></li> <li><a href="function-site_url.html">site_url</a></li> <li><a href="<API key>.html">special_chars</a></li> <li><a href="<API key>.html">str_lreplace</a></li> <li><a href="<API key>.html">stringToBoolean</a></li> <li><a href="function-tel.html">tel</a></li> <li><a href="function-title_case.html">title_case</a></li> <li><a href="<API key>.html">toNailsDate</a></li> <li><a href="<API key>.html">toNailsDatetime</a></li> <li><a href="function-toUserDate.html">toUserDate</a></li> <li><a href="<API key>.html">toUserDatetime</a></li> <li><a href="<API key>.html">unauthorised</a></li> <li><a href="<API key>.html"><API key></a></li> <li><a href="<API key>.html">userHasPermission</a></li> <li><a href="<API key>.html">valid_email</a></li> </ul> </div> </div> </div> <div id="splitter"></div> <div id="right"> <div id="rightInner"> <div id="content" class="class"> <h1>Class Shop_currency_model</h1> <div class="description"> <p>OVERLOADING NAILS' MODELS</p> <p>Note the name of this class; done like this to allow apps to extend this class. Read full explanation at the bottom of this file.</p> </div> <dl class="tree well"> <dd style="padding-left:0px"> <a href="class-CI_Model.html"><span>CI_Model</span></a> </dd> <dd style="padding-left:30px"> <img src="resources/inherit.png" alt="Extended by"> <a href="<API key>.html"><span>CORE_NAILS_Model</span></a> uses <a href="<API key>.html"><span><API key></span></a>, <a href="<API key>.html"><span><API key></span></a>, <a href="<API key>.html"><span><API key></span></a> </dd> <dd style="padding-left:60px"> <img src="resources/inherit.png" alt="Extended by"> <a href="class-NAILS_Model.html"><span>NAILS_Model</span></a> </dd> <dd style="padding-left:90px"> <img src="resources/inherit.png" alt="Extended by"> <a href="<API key>.html"><span><API key></span></a> </dd> <dd style="padding-left:120px"> <img src="resources/inherit.png" alt="Extended by"> <b><span>Shop_currency_model</span></b> </dd> </dl> <div class="alert alert-info"> <b>Located at</b> <a href="<API key>.html#730-732" title="Go to source code">module-shop/shop/models/shop_currency_model.php</a> <br> </div> <h2>Methods summary</h2> <h3>Methods inherited from <a href="<API key>.html#methods"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html <code><a href="<API key>.html#_convert">convert()</a></code>, <code><a href="<API key>.html#<API key>"><API key>()</a></code>, <code><a href="<API key>.html#_format">format()</a></code>, <code><a href="<API key>.html#_format_base">format_base()</a></code>, <code><a href="<API key>.html#_format_user">format_user()</a></code>, <code><a href="<API key>.html#_get_all">get_all()</a></code>, <code><a href="<API key>.html#_get_all_flat">get_all_flat()</a></code>, <code><a href="<API key>.html#_get_all_supported">get_all_supported()</a></code>, <code><a href="<API key>.html#<API key>"><API key>()</a></code>, <code><a href="<API key>.html#_get_by_code">get_by_code()</a></code>, <code><a href="<API key>.html#_get_exchange_rate">get_exchange_rate()</a></code>, <code><a href="<API key>.html#_sync">sync()</a></code> </p> <h3>Methods inherited from <a href="<API key>.html#methods">CORE_NAILS_Model</a></h3> <p class="elementList"> <code><a href="<API key>.html <code><a href="<API key>.html#__format_object">_format_object()</a></code>, <code><a href="<API key>.html#__generate_slug">_generate_slug()</a></code>, <code><a href="<API key>.html#_count_all">count_all()</a></code>, <code><a href="<API key>.html#_create">create()</a></code>, <code><a href="<API key>.html#_delete">delete()</a></code>, <code><a href="<API key>.html#_destroy">destroy()</a></code>, <code><a href="<API key>.html#_get_by_id">get_by_id()</a></code>, <code><a href="<API key>.html#_get_by_id_or_slug">get_by_id_or_slug()</a></code>, <code><a href="<API key>.html#_get_by_ids">get_by_ids()</a></code>, <code><a href="<API key>.html#_get_by_slug">get_by_slug()</a></code>, <code><a href="<API key>.html#_get_by_slugs">get_by_slugs()</a></code>, <code><a href="<API key>.html#_get_property_table">get_property_table()</a></code>, <code><a href="<API key>.html#<API key>"><API key>()</a></code>, <code><a href="<API key>.html#_restore">restore()</a></code>, <code><a href="<API key>.html#_setUserObject">setUserObject()</a></code>, <code><a href="<API key>.html#_update">update()</a></code> </p> <h3>Methods used from <a href="<API key>.html#methods"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#__set_error">_set_error()</a></code>, <code><a href="<API key>.html#_clear_errors">clear_errors()</a></code>, <code><a href="<API key>.html#_clear_last_error">clear_last_error()</a></code>, <code><a href="<API key>.html#_get_errors">get_errors()</a></code>, <code><a href="<API key>.html#_last_error">last_error()</a></code> </p> <h3>Methods used from <a href="<API key>.html#methods"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#__cache_prefix">_cache_prefix()</a></code>, <code><a href="<API key>.html#__get_cache">_get_cache()</a></code>, <code><a href="<API key>.html#__set_cache">_set_cache()</a></code>, <code><a href="<API key>.html#__unset_cache">_unset_cache()</a></code> </p> <h3>Methods used from <a href="<API key>.html#methods"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#__getcount_common">_getcount_common()</a></code>, <code><a href="<API key>.html#<API key>"><API key>()</a></code> </p> <h3>Magic methods summary</h3> <h2>Properties summary</h2> <h3>Properties inherited from <a href="<API key>.html#properties"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#$_oer_url"><var>$_oer_url</var></a></code>, <code><a href="<API key>.html#$_rates"><var>$_rates</var></a></code> </p> <h3>Properties inherited from <a href="<API key>.html#properties">CORE_NAILS_Model</a></h3> <p class="elementList"> <code><a href="<API key>.html#$_deleted_flag"><var>$_deleted_flag</var></a></code>, <code><a href="<API key>.html#$_destructive_delete"><var>$_destructive_delete</var></a></code>, <code><a href="<API key>.html#$_per_page"><var>$_per_page</var></a></code>, <code><a href="<API key>.html#$_table"><var>$_table</var></a></code>, <code><a href="<API key>.html#$<API key>"><var>$<API key></var></a></code>, <code><a href="<API key>.html#$_table_id_column"><var>$_table_id_column</var></a></code>, <code><a href="<API key>.html#$_table_label_column"><var>$_table_label_column</var></a></code>, <code><a href="<API key>.html#$_table_prefix"><var>$_table_prefix</var></a></code>, <code><a href="<API key>.html#$_table_slug_column"><var>$_table_slug_column</var></a></code>, <code><a href="<API key>.html#$data"><var>$data</var></a></code>, <code><a href="<API key>.html#$user"><var>$user</var></a></code>, <code><a href="<API key>.html#$user_model"><var>$user_model</var></a></code> </p> <h3>Properties used from <a href="<API key>.html#properties"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#$_errors"><var>$_errors</var></a></code> </p> <h3>Properties used from <a href="<API key>.html#properties"><API key></a></h3> <p class="elementList"> <code><a href="<API key>.html#$_cache_keys"><var>$_cache_keys</var></a></code>, <code><a href="<API key>.html#$_cache_method"><var>$_cache_method</var></a></code>, <code><a href="<API key>.html#$_cache_values"><var>$_cache_values</var></a></code> </p> </div> </div> <div id="footer"> API documentation generated by <a href="http://apigen.org">ApiGen</a> </div> </div> <script src="resources/combined.js"></script> <script src="elementlist.js"></script> </body> </html>
require "spec_helper" describe Time do describe ".<API key>" do subject { time.<API key> } context "after 5am" do let(:time) { Time.parse("2011-11-07 15:15:33") } let(:<API key>) { Time.parse("2011-11-07 5:00:00") } it { should be_within(1.second).of(<API key>) } end context "before 5am" do let(:time) { Time.parse("2011-11-07 3:15:33") } let(:<API key>) { Time.parse("2011-11-06 5:00:00") } it { should be_within(1.second).of(<API key>) } end end describe ".end_of_timehop_day" do subject { time.end_of_timehop_day } context "after 5am" do let(:time) { Time.parse("2011-11-07 15:15:33") } let(:end_of_timehop_day) { Time.parse("2011-11-08 4:59:59") } it { should be_within(1.second).of(end_of_timehop_day) } end context "before 5am" do let(:time) { Time.parse("2011-11-07 3:15:33") } let(:end_of_timehop_day) { Time.parse("2011-11-07 4:59:59") } it { should be_within(1.second).of(end_of_timehop_day) } end end end
#PDF Finish PDF finishing touches tool to add metadata and table of contents. Generated PDF files, from various programs, may not have complete metadata and may not have the desired content in the navigation table of contents available in online readers. ##Usage There are two usage modes, show and update. Show mode Show mode displays the metadata, table of contents, and fonts used for a PDF document. The command is, java -jar pdf-finish -s -i example.pdf Update mode Update mode uses a configuration file to generate a new PDF file. An example command is, java -jar pdf-finish -i input.pdf -o output.pdf -c config.json The input PDF will not be changed. The output PDF will contain the changes based on the configuration options. If a file with the same name already exists, it will be overwritten. The configuration file is a JSON file, containing the following fields that are used to add/update the metadata. - title: document title, and table of contents header on most viewers - author: document author - subject: document subject, useful for search - keywords: comma separated list of keywords, useful for search The next section of the configuration file is the "toc" section, which contains an array of font objects. These are used to find the elements to place in the table of contents. This is independent of any table of contents that may exist within the PDF document. Each font object contains, - font: font name - size: font size (floating point accepted) - level: TOC hierarchy level to assign the element to The font names and sizes can be determined by using the show mode, which shows all font name/size combinations used in the PDF document. Example Configuration File The following is an example, showing the metadata updates and a three level table of contents. { "title":"Mousetrap Building", "author":"Jane Doe", "subject":"Building a better mousetrap", "keywords":"mousetrap, mouse, cheese", "toc":[ { "font":"Optima-Bold", "size":24.0, "level":1 }, { "font":"Optima-Bold", "size":16.0, "level":2 }, { "font":"Optima-Bold", "size":14.0, "level":3 } ] } MIT
<?php use Guzzle\Plugin\Mock\MockPlugin; use OpenTok\Archive; use OpenTok\Util\Client; class ArchiveTest extends <API key> { // Fixtures protected $archiveData; protected $API_KEY; protected $API_SECRET; protected $archive; protected $client; protected static $mockBasePath; public static function setUpBeforeClass() { self::$mockBasePath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'mock' . DIRECTORY_SEPARATOR; } public function setUp() { // Set up fixtures $this->archiveData = array( 'createdAt' => 1394394801000, 'duration' => 0, 'id' => '<API key>', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '<API key>-', 'size' => 0, 'status' => 'started', 'url' => null, 'hasVideo' => false, 'hasAudio' => true, 'outputMode' => 'composed' ); $this->API_KEY = defined('API_KEY') ? API_KEY : '12345678'; $this->API_SECRET = defined('API_SECRET') ? API_<API key>; $this->client = new Client(); $this->archive = new Archive($this->archiveData, array( 'apiKey' => $this->API_KEY, 'apiSecret' => $this->API_SECRET, 'client' => $this->client )); } public function testInitializes() { // Arrange // Act // Assert $this->assertInstanceOf('OpenTok\Archive', $this->archive); } public function testReadsProperties() { $this->assertEquals($this->archiveData['createdAt'], $this->archive->createdAt); $this->assertEquals($this->archiveData['duration'], $this->archive->duration); $this->assertEquals($this->archiveData['id'], $this->archive->id); $this->assertEquals($this->archiveData['name'], $this->archive->name); $this->assertEquals($this->archiveData['partnerId'], $this->archive->partnerId); $this->assertEquals($this->archiveData['reason'], $this->archive->reason); $this->assertEquals($this->archiveData['sessionId'], $this->archive->sessionId); $this->assertEquals($this->archiveData['size'], $this->archive->size); $this->assertEquals($this->archiveData['status'], $this->archive->status); $this->assertEquals($this->archiveData['url'], $this->archive->url); $this->assertEquals($this->archiveData['hasVideo'], $this->archive->hasVideo); $this->assertEquals($this->archiveData['hasAudio'], $this->archive->hasAudio); $this->assertEquals($this->archiveData['outputMode'], $this->archive->outputMode); } public function testStopsArchive() { // Arrange $mock = new MockPlugin(); $response = MockPlugin::getMockFile( self::$mockBasePath . 'v2/partner/APIKEY/archive/ARCHIVEID/stop' ); $mock->addResponse($response); $this->client->addSubscriber($mock); // Act $this->archive->stop(); // Assert $requests = $mock->getReceivedRequests(); $this->assertCount(1, $requests); $request = $requests[0]; $this->assertEquals('POST', strtoupper($request->getMethod())); $this->assertEquals('/v2/partner/'.$this->API_KEY.'/archive/'.$this->archiveData['id'].'/stop', $request->getPath()); $this->assertEquals('api.opentok.com', $request->getHost()); $this->assertEquals('https', $request->getScheme()); $contentType = $request->getHeader('Content-Type'); $this->assertNotEmpty($contentType); $this->assertEquals('application/json', $contentType); $authString = $request->getHeader('X-TB-PARTNER-AUTH'); $this->assertNotEmpty($authString); $this->assertEquals($this->API_KEY.':'.$this->API_SECRET, $authString); // TODO: test the dynamically built User Agent string $userAgent = $request->getHeader('User-Agent'); $this->assertNotEmpty($userAgent); $this-><API key>('OpenTok-PHP-SDK/2.3.2', $userAgent->__toString()); // TODO: test the properties of the actual archive object $this->assertEquals('stopped', $this->archive->status); } public function testDeletesArchive() { // Arrange $mock = new MockPlugin(); $response = MockPlugin::getMockFile( self::$mockBasePath . 'v2/partner/APIKEY/archive/ARCHIVEID/delete' ); $mock->addResponse($response); $this->client->addSubscriber($mock); // Act // TODO: should this test be run on an archive object whose fixture has status 'available' // instead of 'started'? $success = $this->archive->delete(); // Assert $requests = $mock->getReceivedRequests(); $this->assertCount(1, $requests); $request = $requests[0]; $this->assertEquals('DELETE', strtoupper($request->getMethod())); $this->assertEquals('/v2/partner/'.$this->API_KEY.'/archive/'.$this->archiveData['id'], $request->getPath()); $this->assertEquals('api.opentok.com', $request->getHost()); $this->assertEquals('https', $request->getScheme()); $contentType = $request->getHeader('Content-Type'); $this->assertNotEmpty($contentType); $this->assertEquals('application/json', $contentType); $authString = $request->getHeader('X-TB-PARTNER-AUTH'); $this->assertNotEmpty($authString); $this->assertEquals($this->API_KEY.':'.$this->API_SECRET, $authString); // TODO: test the dynamically built User Agent string $userAgent = $request->getHeader('User-Agent'); $this->assertNotEmpty($userAgent); $this-><API key>('OpenTok-PHP-SDK/2.3.2', $userAgent->__toString()); $this->assertTrue($success); // TODO: assert that all properties of the archive object were cleared } public function <API key>() { // Set up fixtures $archiveData = array( 'createdAt' => 1394394801000, 'duration' => 0, 'id' => '<API key>', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '<API key>-', 'size' => 0, 'status' => 'started', 'url' => null, 'notarealproperty' => 'not a real value' ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_<API key>; $client = new Client(); $archive = new Archive($archiveData, array( 'apiKey' => $this->API_KEY, 'apiSecret' => $this->API_SECRET, 'client' => $this->client )); $this->assertInstanceOf('OpenTok\Archive', $archive); } /** * @expectedException <API key> */ public function <API key>() { // Set up fixtures $badArchiveData = array( 'createdAt' => 'imnotanumber', 'duration' => 0, 'id' => '<API key>', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '<API key>-', 'size' => 0, 'status' => 'started', 'url' => null ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_<API key>; $client = new Client(); $archive = new Archive($badArchiveData, array( 'apiKey' => $this->API_KEY, 'apiSecret' => $this->API_SECRET, 'client' => $this->client )); } public function <API key>() { // Set up fixtures $archiveData = array( 'createdAt' => 1394394801000, 'duration' => 0, 'id' => '<API key>', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '<API key>-', 'size' => 0, 'status' => 'paused', 'url' => null, ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_<API key>; $client = new Client(); $archive = new Archive($archiveData, array( 'apiKey' => $this->API_KEY, 'apiSecret' => $this->API_SECRET, 'client' => $this->client )); $this->assertInstanceOf('OpenTok\Archive', $archive); $this->assertEquals($archiveData['status'], $archive->status); } public function <API key>() { // Arrange // Act $archiveJson = $this->archive->toJson(); // Assert $this->assertInternalType('string', $archiveJson); $this->assertNotNull(json_encode($archiveJson)); } public function <API key>() { // Arrange // Act $archiveArray = $this->archive->toArray(); // Assert $this->assertInternalType('array', $archiveArray); $this->assertEquals($this->archiveData, $archiveArray); } // TODO: test deleted archive can not be stopped or deleted again } /* vim: set ts=4 sw=4 tw=100 sts=4 et :*/
package ca.uwo.eng.sel.cepsim.placement import java.util.{List => JavaList, Set => JavaSet} import ca.uwo.eng.sel.cepsim.query._ import scala.collection.JavaConversions._ import scala.collection.mutable /** Companion Placement object */ object Placement { def apply(vertices: JavaSet[Vertex], vmId: Int): Placement = new Placement(asScalaSet(vertices).toSet, vmId) def withQueries(queries: JavaSet[Query], vmId: Int, iterationList:JavaList[Vertex]): Placement = Placement.withQueries(asScalaSet(queries).toSet, vmId, <API key>(iterationList)) def withQueries(queries: JavaSet[Query], vmId: Int): Placement = Placement.withQueries(asScalaSet(queries).toSet, vmId) def withQueries(queries: Set[Query], vmId: Int, iterationOrder: Iterable[Vertex] = List.empty): Placement = new Placement(queries.flatMap(_.vertices), vmId, iterationOrder) def apply(q: Query, vmId: Int): Placement = new Placement(q.vertices, vmId) def apply(vertices: Set[Vertex], vmId: Int, iterationOrder: Iterable[Vertex] = List.empty): Placement = new Placement(vertices, vmId, iterationOrder) } /** * * Represents a placement of query vertices into a virtual machine. * @param vertices Set of vertices from this placement. * @param vmId Id of the Virtual machine to which the vertices are assigned. * @param itOrder Order on which vertices should be traversed. If not specified, vertices * are traversed according to a topological sorting of the query graphs. */ class Placement(val vertices: Set[Vertex], val vmId: Int, itOrder: Iterable[Vertex] = List.empty) extends Iterable[Vertex] { /** Map of queries to all vertices in this placement */ var queryVerticesMap: Map[Query, Set[Vertex]] = Map.empty withDefaultValue Set.empty vertices foreach {(v) => v.queries foreach {(q) => queryVerticesMap = queryVerticesMap updated (q, queryVerticesMap(q) + v) } } val <API key> = vertices.map((v) => { (v, v.successors.filter((succ) => vertices.contains(succ))) }).toMap val <API key> = vertices.map((v) => { (v, v.successors.filter((succ) => !vertices.contains(succ))) }).toMap /** * Get all queries that have at least one vertex in this placement. * @return queries that have at least one vertex in this placement. */ val queries: Set[Query] = queryVerticesMap.keySet /** * Get all event producers in this placement. * @return all event producers in this placement. */ val producers: Set[EventProducer] = vertices collect { case ep: EventProducer => ep } /** * Get all event consumers in this placement. * @return all event consumers in this placement. */ val consumers: Set[EventConsumer] = vertices collect { case ec: EventConsumer => ec } /** * Get the execution duration of this placement (in seconds). It is calculated * as the maximum duration of all queries that belong to this placement. * @return Execution duration of this placement */ val duration: Long = queries.foldLeft(0L){(max, query) => (query.duration.max(max)) } /** * Add a new vertex to the placement. * @param v Vertex to be added. * @return New placement with the vertex added. */ def addVertex(v: Vertex): Placement = new Placement(vertices + v, vmId) /** * Return successors of a vertex that are in this placement. * @param v Vertex from which the successors are returned. * @return successors of a vertex in this placement. */ def <API key>(v: Vertex): Set[InputVertex] = <API key>(v) /** * Return successors of a vertex that are not in this placement. * @param v Vertex from which the successors are returned. * @return successors of a vertex not in this placement. */ def <API key>(v: Vertex): Set[InputVertex] = <API key>(v) /** * Get the query with the informed id. * @param id Id of the query. * @return Optional of a query with the informed id. */ def query(id: String): Option[Query] = queries.find(_.id == id) /** * Get all vertices in this placement from a specific query. * @param q query to which the vertices belong. * @return all vertices in this placement from a specific query. */ def vertices(q: Query): Set[Vertex] = queryVerticesMap(q) /** * Find all vertices from the placement that are producers, or do not have predecessors * that are in this same placement. * @return All start vertices. */ def findStartVertices(): Set[Vertex] = { vertices.filter{(v) => val predecessors = v.predecessors.asInstanceOf[Set[Vertex]] predecessors.isEmpty || predecessors.intersect(vertices).isEmpty } } private def buildOrder: Iterable[Vertex] = { var index = 0 var iterationOrder = Vector.empty[Vertex] if (!vertices.isEmpty) { var toProcess: Vector[Vertex] = Vector(findStartVertices().toSeq.sorted(Vertex.VertexIdOrdering):_*) var neighbours: mutable.Set[Vertex] = mutable.LinkedHashSet[Vertex]() while (index < toProcess.length) { val v = toProcess(index) iterationOrder = iterationOrder :+ v // processing neighbours (vertices that are still not in the list, but belong to this placement) v.successors.foreach { (successor) => if ((!toProcess.contains(successor)) && (vertices.contains(successor))) neighbours.add(successor) } val toBeMoved = neighbours.filter((neighbour) => neighbour.predecessors.forall(toProcess.contains(_))) neighbours = neighbours -- toBeMoved toProcess = toProcess ++ toBeMoved index += 1 } } iterationOrder } val iterationOrder = if (!itOrder.isEmpty) itOrder else buildOrder /** * An iterator for this placement that traverse the vertices from the producers to consumers * in breadth-first manner. * @return Iterator that traverses all vertices from this placement. */ override def iterator: Iterator[Vertex] = { class VertexIterator extends Iterator[Vertex] { val it = iterationOrder.iterator def hasNext(): Boolean = it.hasNext def next(): Vertex = it.next } new VertexIterator } }
var express = require('express'); var bodyParser = require('body-parser'); var path = require('path'); var url = require('url'); var log4js = require('log4js'); var stashBoxConfig = require('./lib/config'); var pkg = require('./package.json'); var proxy = require('express-http-proxy'); var fileDriver = require('./drivers/file-driver'); var envDriver = require('./drivers/env-driver'); var mantaDriver = require('./drivers/manta-driver'); var s3compatibleDriver = require('./drivers/s3compatible-driver'); var pgkcloudDriver = require('./drivers/pkgcloud-driver'); // Process command line params var commander = require('commander'); commander.version(pkg.version); commander.option('-p, --port <n>', 'The port on which the StashBox server will listen', parseInt); commander.option('-c, --config <value>', 'Use the specified configuration file'); commander.parse(process.argv); var overrides = {}; if (commander.port) { overrides.PORT = commander.port; } var config = stashBoxConfig.getConfig(commander.config, overrides); log4js.configure(config.get('LOG4JS_CONFIG')); var logger = log4js.getLogger("app"); logger.info("StashBox server v%s loading - %s", pkg.version, config.configDetails); var app = express(); app.use(bodyParser.raw( { type: function(type) { // This is required (setting */* doesn't work when sending client doesn't specify c/t) return true; }, verify: function(req, res, buf, encoding) { // This is a way to get a shot at the raw body (some people store it in req.rawBody for later use) } })); function handleError(req, res) { logger.error("%s error in request for: %s, details: %s", req.method, req.url, JSON.stringify(err)); res.sendStatus(500); } function handleUnsupported(driver, req, res) { if (driver) { logger.error("Unsupported method, '%s' driver doesn't support method: %s", driver.provider, req.method); } else { logger.error("Unsupported method:", req.method); } res.sendStatus(403); // Method Not Allowed } function getDriverMiddleware(driver) { return function(req, res) { logger.info("Processing %s of %s using '%s' driver", req.method, req.originalUrl, driver.provider); if (req.method === "GET") // All drivers support GET { driver.getObject(req.url, function(err, contents) { if (err) { handleError(req, res); } else if (contents === null) { // null response from driver means not found... res.status(404).send('Not found'); } else { res.send(contents); } }); } else if (req.method === "HEAD") { if (driver.doesObjectExist) { driver.doesObjectExist(req.url, function(err, exists) { if (err) { handleError(req, res); } else { res.sendStatus(exists ? 200 : 404); } }); } else { handleUnsupported(driver, req, res); } } else if (req.method === "PUT") { if (driver.putObject) { driver.putObject(req.url, req.body, function(err) { if (err) { handleError(req, res); } else { res.sendStatus(200); } }); } else { handleUnsupported(driver, req, res); } } else if (req.method === "DELETE") { if (driver.deleteObject) { driver.deleteObject(req.url, function(err) { if (err) { handleError(req, res); } else { res.sendStatus(200); } }); } else { handleUnsupported(driver, req, res); } } else { handleUnsupported(null, req, res); } } } function addMountPoint(mount) { logger.debug("Mount point: %s, mount: %s", mount.mount, JSON.stringify(mount)); if (mount.provider === "proxy") { logger.info("Adding proxy mount for:", mount.mount); app.use(mount.mount, proxy(mount.host, { forwardPath: function(req, res) { var path = url.parse(req.url).path; logger.info("Processing proxy request for:", path); return mount.basePath + path; } })); } else { var driver; if (mount.provider === "file") { logger.info("Adding file mount for:", mount.mount); driver = new fileDriver(mount); } else if (mount.provider === "env") { logger.info("Adding env mount for:", mount.mount); driver = new envDriver(mount); } else if (mount.provider === "manta") { logger.info("Adding manta mount for:", mount.mount); driver = new mantaDriver(mount); } else if (mount.provider === "s3compatible") { logger.info("Adding S3 Compatible mount for:", mount.mount); driver = new s3compatibleDriver(mount); } else { logger.info("Adding pkgcloud mount for:", mount.mount); driver = new pgkcloudDriver(mount); } app.use(mount.mount, getDriverMiddleware(driver)); } } // We are going to apply the mounts in the order they are defined - the first qualifying mount point will be // applied, so more specific mount points should be defined before less specific ones. // The default behavior is a file mount point on "/" pointing to "stash". var mounts = config.get('mounts'); for (var i = 0; i < mounts.length; i++) { if (mounts[i]) { addMountPoint(mounts[i]); } } // This is our catch-all to handle requests that didn't match any mount point. We do this so we can control // the 404 response (and maybe log if desired). app.all('*', function(req, res) { res.status(404).send('Not found'); }); app.listen(config.get('PORT'), function () { logger.info('StashBox listening on port:', this.address().port); }); process.on('SIGTERM', function () { logger.info('SIGTERM - preparing to exit.'); process.exit(); }); process.on('SIGINT', function () { logger.info('SIGINT - preparing to exit.'); process.exit(); }); process.on('exit', function (code) { logger.info('Process exiting with code:', code); });
require 'active_support/core_ext/array/conversions' require 'delegate' module ServiceObject # Provides a customized +Array+ to contain errors that happen in service layer. # Also provides a utility APIs to handle errors well in controllers. # (All array methods are available by delegation, too.) # errs = ServiceObject::Errors.new # errs.add 'Something is wrong.' # errs.add 'Another is wrong.' # errs.messages # => ['Something is wrong.','Another is wrong.'] # errs.full_messages # => ['Something is wrong.','Another is wrong.'] # errs.to_xml # => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Something is wrong.</error>\n # <error>Another is wrong.</error>\n</errors>\n" # errs.empty? # => false # errs.clear # errs.empty? # => true class Errors < Delegator # @return [Array<String>] Messages of the current errors attr_reader :messages def initialize @messages = [] end # @private def __getobj__ # :nodoc: @messages end # Returns all the current error messages # @return [Array<String>] Messages of the current errors def full_messages messages end # Adds a new error message to the current error messages # @param message [String] New error message to add def add(message) @messages << message end # Generates XML format errors # errs = ServiceObject::Errors.new # errs.add 'Something is wrong.' # errs.add 'Another is wrong.' # errs.to_xml # <?xml version=\"1.0\" encoding=\"UTF-8\"?> # <errors> # <error>Something is wrong.</error> # <error>Another is wrong.</error> # </errors> # @return [String] XML format string def to_xml(options={}) super({ root: "errors", skip_types: true }.merge!(options)) end # Generates duplication of the message # @return [Array<String>] def as_json messages.dup end end end
#!/usr/bin/python # -*- coding: utf-8 -*- # @author victor li nianchaoli@msn.cn # @date 2015/10/07 import baseHandler class MainHandler(baseHandler.RequestHandler): def get(self): self.redirect('/posts/last')
// NSDate+WT.h // lchSDK #import <Foundation/Foundation.h> @interface NSDate (WT) - (BOOL)isThisYear; - (BOOL)isYesterday; - (BOOL)isToday; @property (nonatomic, copy, readonly) NSString *timeStamp; //@property (nonatomic, assign, readonly) long timeStamp; @property (nonatomic, strong, readonly) NSDateComponents *components; /** * * * @param unit * @param fromDate * @param toDate * * @return */ + (NSDateComponents *)dateComponents:(NSCalendarUnit)unit fromDate:(NSDate *)fromDate toDate:(NSDate *)toDate; /** *@Description:NSDate *@Params: * year: * month: * day: * hour: * minute: * second: *@Return: */ + (NSDate *)dateWithYear:(NSUInteger)year Month:(NSUInteger)month Day:(NSUInteger)day Hour:(NSUInteger)hour Minute:(NSUInteger)minute Second:(NSUInteger)second; /** *@Description:dateFormatter *@Params:nil *Return:NSDataFormatter */ + (NSDateFormatter *)<API key>; + (NSDateFormatter *)<API key>; + (NSDateFormatter *)<API key>; + (NSDateFormatter *)<API key>; + (NSDateFormatter *)<API key>; - (NSDateComponents *)componentsOfDay; /** *@Description:NSDate *@Params:nil *@Return:NSDate **/ - (NSUInteger)year; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)month; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)day; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)hour; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)minute; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)second; /** *@Description:NSDate *@Params:nil *@Return:NSDate */ - (NSUInteger)weekday; /** *@Description: *@Params:nil *@Return: */ - (NSUInteger)weekOfDayInYear; /** *@Description: *@Params:nil *@Return: */ - (NSDate *)workBeginTime; /** *@Description: *@Params:nil *@Return: */ - (NSDate *)workEndTime; /** *@Description: *@Params:nil *@Return: **/ - (NSDate *)oneHourLater; /** *@Description: *@Params:nil *@Return: */ - (NSDate *)sameTimeOfDate; - (BOOL)sameDayWithDate:(NSDate *)otherDate; - (BOOL)sameWeekWithDate:(NSDate *)otherDate; - (BOOL)sameMonthWithDate:(NSDate *)otherDate; - (NSString *)whatTimeAgo; /** 1 X X */ - (NSString *)whatTimeBefore; - (NSString *)whatDayTheWeek; /** YYYY-MM-dd HH:mm:ss */ - (NSString *)WT_YYYYMMddHHmmss; /** YYYY.MM.dd */ - (NSString *)WT_YYYYMMdd; /** YYYY-MM-dd */ - (NSString *)WT_YYYYMMdd__; /** HH:mm */ - (NSString *)WT_HHmm; - (NSString *)MMddHHmm; - (NSString *)<API key>; - (NSString *)MMddHHmmInChinese; @end
package me.dayler.ai.ami.conn; import javax.net.SocketFactory; import javax.net.ssl.SSLSocketFactory; import java.io.*; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Socket; import java.util.<API key>; import java.util.Scanner; import java.util.regex.Pattern; /** * Default implementation of the <API key> interface using java.io. * * @author srt, asalazar * @version $Id: <API key>.java 1377 2009-10-17 03:24:49Z srt $ */ public class <API key> implements <API key> { static final Pattern CRNL_PATTERN = Pattern.compile("\r\n"); static final Pattern NL_PATTERN = Pattern.compile("\n"); private Socket socket; private Scanner scanner; private BufferedWriter writer; /** * Creates a new instance for use with the Manager API that uses CRNL ("\r\n") as line delimiter. * * @param host the foreign host to connect to. * @param port the foreign port to connect to. * @param ssl <code>true</code> to use SSL, <code>false</code> otherwise. * @param timeout 0 incidcates default * @param readTimeout see {@link Socket#setSoTimeout(int)} * @throws IOException if the connection cannot be established. */ public <API key>(String host, int port, boolean ssl, int timeout, int readTimeout) throws IOException { Socket socket; if (ssl) { socket = SSLSocketFactory.getDefault().createSocket(); } else { socket = SocketFactory.getDefault().createSocket(); } socket.setSoTimeout(readTimeout); socket.connect(new InetSocketAddress(host, port), timeout); initialize(socket, CRNL_PATTERN); } /** * Creates a new instance for use with FastAGI that uses NL ("\n") as line delimiter. * * @param socket the underlying socket. * @throws IOException if the connection cannot be initialized. */ <API key>(Socket socket) throws IOException { initialize(socket, NL_PATTERN); } private void initialize(Socket socket, Pattern pattern) throws IOException { this.socket = socket; InputStream inputStream = socket.getInputStream(); OutputStream outputStream = socket.getOutputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); this.scanner = new Scanner(reader); this.scanner.useDelimiter(pattern); this.writer = new BufferedWriter(new OutputStreamWriter(outputStream)); } public String readLine() throws IOException { String line; try { line = scanner.next(); } catch (<API key> e) { if (scanner.ioException() != null) { throw scanner.ioException(); } else { // throw new IOException("No more lines available", e); // JDK6 throw new IOException("No more lines available: " + e.getMessage()); } } catch (<API key> e) { if (scanner.ioException() != null) { throw scanner.ioException(); } else { // throw new IOException("No more lines available", e); // JDK6 throw new IOException("No more lines available: " + e.getMessage()); } } return line; } public void write(String s) throws IOException { writer.write(s); } public void flush() throws IOException { writer.flush(); } public void close() throws IOException { socket.close(); scanner.close(); } public boolean isConnected() { return socket.isConnected(); } public InetAddress getLocalAddress() { return socket.getLocalAddress(); } public int getLocalPort() { return socket.getLocalPort(); } public InetAddress getRemoteAddress() { return socket.getInetAddress(); } public int getRemotePort() { return socket.getPort(); } }
<!DOCTYPE html> <html lang="en-us" ng-app="myApp"> <head> <meta charset="utf-8"> <title>Scope and Interpolation</title> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- load bootstrap and fontawesome via CDN --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src="app.js"></script> </head> <body> <header> <nav class="navbar navbar-default"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="/">AngularJS</a> </div> <ul class="nav navbar-nav navbar-right"> <li><a href="/"><i class="fa fa-home"></i> Home</a></li> </ul> </div> </nav> </header> <div class="container"> <div ng-controller="mainController"> <h1>AngularJS</h1> <h3>Hello {{ name }}</h3> </div> <div> <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.6/js/bootstrap.min.js" ></script> </body> </html>
// test/main.js var Parser = require('../src/markdown-parser'); var parser = new Parser(); var parserOptions = new Parser(); var assert = require("assert"); describe('tests', function() { describe('parsing', function() { it('bold', function(done) { parser.parse("**b** __b__", function(err, result) { assert.equal(result.bolds.length, 2); done(); }); }); it('code', function(done) { parser.parse("```js \n var a; \n ```", function(err, result) { assert.equal(result.codes.length, 1); done(); }); }); it('headings', function(done) { parser.parse("#header1 \n#header2", function(err, result) { assert.equal(result.headings.length, 2); done(); }); }); it('italics', function(done) { parser.parse("*iiiii*\nother\n\n *iiiii*", function(err, result) { assert.equal(result.italics.length, 2); done(); }); }); it('list', function(done) { parser.parse("- item1 \n- item2 \nother\n*item1\nitem2", function(err, result) { assert.equal(result.lists[0].length, 2); done(); }); }); it('headings', function(done) { parser.parse("#header1 \n#header2", function(err, result) { assert.equal(result.headings.length, 2); done(); }); }); it('images full no options', function(done) { parser.parse("[google](http: assert.equal(result.references.length, 1); done(); }); }); it('images full', function(done) { parserOptions.parse("[google](http: assert.equal(result.references.length, 1); done(); }); }); it('images relative', function(done) { parserOptions.options = {html_url: "https://github.com/darul75/markdown-parser"}; parserOptions.parse("[zoubida](./images/zoubida.png)", function(err, result) { assert.equal(result.references.length, 1); assert.equal(result.references[0].href, parserOptions.options.html_url+'/blob/master/images/zoubida.png'); parserOptions.options.html_url = "https://github.com/CMBJS/NodeBots"; var res = parserOptions.parse("![Alt text](poster.jpg)", function(err, result) { assert.equal(result.references.length, 1); assert.equal(result.references[0].href, parserOptions.options.html_url+'/blob/master/poster.jpg'); done(); }); }); }); it('images relative not needed', function(done) { parserOptions.options = {html_url: "https://github.com/darul75/markdown-parser"}; parserOptions.parse("[zoubida](http: assert.equal(result.references.length, 1); assert.equal(result.references[0].href, 'http: done(); }); }); }); });
import React from "react"; import { connect } from "react-redux"; import { withRouter, Route } from "react-router"; import { Link } from "react-router-dom"; import { Entry } from "../../pages/entry"; class BlogCard extends React.Component { render() { return ( <div> <h2>{this.props.title}</h2> <p>{this.props.content}</p> <Link to={`/blog/${this.props.slug}`}>Read more..</Link> </div> ); } } export default withRouter(BlogCard);
.page-content .navbar-fixed-bottom,.page-content .navbar-fixed-top{position:relative}.page-content .card-block{padding-left:0;padding-right:0}.page-content .card-block .card-link+.card-link{margin-left:0}.scrollspy-example{position:relative;height:200px;padding:0 20px;overflow:auto;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.08);box-shadow:0 2px 4px rgba(0,0,0,.08)}.example-fixed{height:400px;line-height:400px;text-align:center}.example-grid .example-col{margin-bottom:10px;word-break:break-all}
module.exports = { stores: process.env.STORES ? process.env.STORES.split(',') : [ 'elasticsearch', 'postgresql', 'leveldb' ], postgresql: { host: process.env.POSTGRESQL_HOST || 'localhost', port: process.env.POSTGRESQL_PORT || '5432', username: process.env.POSTGRESQL_USER || 'postgres', password: process.env.POSTGRESQL_PASSWORD || 'postgres' }, elasticsearch: { hosts: [ process.env.ELASTICSEARCH_HOST || 'http://localhost:9200' ] }, level: { path: process.env.LEVEL_PATH || '/tmp/level' }, queue: { client: process.env.QUEUE_CLIENT || 'kue', kue: { port: process.env.QUEUE_KUE_PORT ? Number(process.env.QUEUE_KUE_PORT) : 3000 }, rabbitmq: { connectionString: process.env.<API key> } }, project: { client: process.env.PROJECT_CLIENT || 'file', file: { path: process.env.PROJECT_FILE_PATH || '/tmp/dstore' } }, api: { port: (process.env.API_PORT ? Number(process.env.API_PORT) : (process.env.PORT ? process.env.PORT : 2020)) } };
import React from 'react'; import { createStore } from 'redux'; import { <API key> } from 'history'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import rootReducer from '../../src/reducers'; import Routes from '../../src/Routes'; import App from '../../src/containers/App'; const configureStore = initialState => createStore( rootReducer, initialState, ); describe('Container | App', () => { it('renders Routes component', () => { const wrapper = shallow(<App history={<API key>()} store={configureStore()}/>); expect(wrapper.find(Routes)).to.have.lengthOf(1); }); });
#include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<string.h> int main(){ int pid1,pid2,pid3,pid4; int p1[2],p2[2]; char bufr[30],rev[30]; int countL=0,countU=0,i=-1,j=0,countV=0,len; pipe(p1); pipe(p2); if(pid1=fork()==0){ if(pid2=fork()==0){ read(p2[0],bufr,sizeof(bufr)); len=strlen(bufr); for(i=len-1,j=0;j<len;i rev[j]=bufr[i]; rev[j]='\0'; printf("Proccess D---- Reverse = %s \n",rev); exit(1); } else{ read(p1[0],bufr,sizeof(bufr)); write(p2[1],bufr,sizeof(bufr)); if(pid3=fork()==0){ printf("Poccess C--- ID of B = %d and ID of C = %d \n",getppid(),getpid()); exit(1); } else{ while(bufr[++i]!='\0') if(bufr[i]>='A' && bufr[i]<='Z') countU++; i=-1; while(bufr[++i]!='\0') if(bufr[i]>='a' && bufr[i]<='z') countL++; printf("Poccess B--- No of UpperCase letters = %d \n",countU); printf("Poccess B--- No of LowerCase letters = %d \n",countL); waitpid(pid2,NULL,0); waitpid(pid3,NULL,0); } } exit(1); } else{ printf("Poccess A--- Enter a sentence "); gets(bufr); write(p1[1],bufr,sizeof(bufr)); while(bufr[++i]!='\0') if(bufr[i]=='a' || bufr[i]=='e' || bufr[i]=='i' || bufr[i]=='o' || bufr[i]=='u' || bufr[i]=='A' || bufr[i]=='E' || bufr[i]=='I' || bufr[i]=='O' || bufr[i]=='U' ) countV++; printf("Poccess A--- No of Vowels = %d \n",countV); waitpid(pid1,NULL,0); } close(p1[0]); close(p1[1]); return 0; }
import appActions from './application' import todosActions from './todos' import filterActions from './filter' import commentsActions from './comments' import userActions from './user' export { appActions, todosActions, filterActions, commentsActions, userActions } export * from './application' export * from './todos' export * from './filter' export * from './comments' export * from './user'
<link <API key>="true" href="http://zebra.easybird.cn//assets/application-<SHA256-like>.css" media="all" rel="stylesheet"> <script <API key>="true" src="http://zebra.easybird.cn//assets/assets/application-<SHA256-like>.js"></script> <meta content="authenticity_token" name="csrf-param"> <meta content="mk1Ai+<API key>/ZVbwHjvZcB9/S3C2YJYVAByaoQx/mJo/dt5aN81+OB+hS/CIJKw==" name="csrf-token"> <div class="row-fluid"> <div class="col-sm-12 well" style="margin-bottom: 0px; border-bottom-width: 0px;"> <form class="form-horizontal"> <div class="col-sm-3"> <div class="form-group"> <label class="col-sm-5 control-label"></label> <div class="col-sm-7"> <select class="form-control"> <option>1</option> <option>2</option> </select> </div> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label class="col-sm-5 control-label"></label> <div class="col-sm-7"> <input type="text" class="form-control"> </div> </div> </div> <div class="col-sm-2"> <div class="col-sm-1 col-sm-offset-1" style="margin-right: 0;"> <button type="submit" class="btn btn-info"></button> </div> <div class="col-sm-1 col-sm-offset-3"> <button type="submit" class="btn btn-warning"></button> </div> </div> </form> </div> <div class="col-sm-12" style="padding-left: 0px; padding-right: 0px;"> <table class="table table-bordered table-hover" style="border-top-width: 0px;"> <thead> <tr> <th> <th></th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td>1</td> <td>1</td> <td>11111111</td> <td>1</td> <td>pt111111</td> </tr> <tr> <td>2</td> <td>2</td> <td>22222222</td> <td>2</td> <td>pt222222</td> </tr> </tbody> </table> </div> </div>
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // 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. #endregion using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace HyperGraph { public abstract class NodeConnector : IElement { public NodeConnector(NodeItem item, bool enabled) { Item = item; Enabled = enabled; } // The Node that owns this NodeConnector public Node Node { get { return Item.Node; } } // The NodeItem that owns this NodeConnector public NodeItem Item { get; private set; } // Set to true if this NodeConnector can be connected to public bool Enabled { get; internal set; } // Iterates through all the connectors connected to this connector public IEnumerable<NodeConnection> Connectors { get { if (!Enabled) yield break; var parentNode = Node; if (parentNode == null) yield break; foreach (var connection in parentNode.Connections) { if (connection.From == this) yield return connection; if (connection.To == this) yield return connection; } } } // Returns true if connector has any connection attached to it public bool HasConnection { get { if (!Enabled) return false; var parentNode = Node; if (parentNode == null) return false; foreach (var connection in parentNode.Connections) { if (connection.From == this) return true; if (connection.To == this) return true; } return false; } } internal PointF Center { get { return new PointF((bounds.Left + bounds.Right) / 2.0f, (bounds.Top + bounds.Bottom) / 2.0f); } } internal RectangleF bounds; internal RenderState state; public abstract ElementType ElementType { get; } } public sealed class NodeInputConnector : NodeConnector { public NodeInputConnector(NodeItem item, bool enabled) : base(item, enabled) { } public override ElementType ElementType { get { return ElementType.InputConnector; } } } public sealed class NodeOutputConnector : NodeConnector { public NodeOutputConnector(NodeItem item, bool enabled) : base(item, enabled) { } public override ElementType ElementType { get { return ElementType.OutputConnector; } } } }
# <API key> start ```npm run start```
import * as R_drop from '../ramda/dist/src/drop'; declare const number: number; declare const string: string; declare const boolean_array: boolean[]; // @dts-jest:pass R_drop(number, string); // @dts-jest:pass R_drop(number, boolean_array);
function <API key>() { return !! (history && history.replaceState && history.pushState); } $(document).ready(function() { //_gaq.push(['_trackEvent', '<API key>', 'Load']); if(<API key>()) { var formSelector = ".current form"; initializeHistory(); var getCurrentPosition = function () { var slugArray = document.URL.split('/'); return slugArray.splice(3, slugArray.length).join('/'); }; // events // get new questions on submit $(formSelector).live('submit', function(event) { $('input[type=submit]', this).attr('disabled', 'disabled'); var form = $(this); var postData = form.serializeArray(); reloadQuestions(form.attr('action'), postData); event.preventDefault(); return false; }); // Track when a user clicks on 'Start again' link $('.start-right').live('click', function() { window._gaq && window._gaq.push(['_trackEvent', 'MS_smart_answer', getCurrentPosition(), 'Start again']); reloadQuestions($(this).attr('href')); return false; }); // Track when a user clicks on a 'Change Answer' link $('.link-right a').live('click', function() { var href = $(this).attr('href'); window._gaq && window._gaq.push(['_trackEvent', 'MS_smart_answer', href, 'Change Answer']); reloadQuestions(href); return false; }); // manage next/back by tracking popstate event window.onpopstate = function (event) { if(event.state !== null) { updateContent(event.state['html_fragment']); } else { return false; } }; } $('#current-error').focus(); // helper functions function toJsonUrl(url) { var parts = url.split('?'); var json_url = parts[0].replace(/\/$/, "") + ".json"; if (parts[1]) { json_url += "?"; json_url += parts[1]; } return window.location.protocol + "//" + window.location.host + json_url; } function fromJsonUrl(url) { return url.replace(/\.json$/, ""); } function redirectToNonAjax(url) { window.location = url; } // replace all the questions currently in the page with whatever is returned for given url function reloadQuestions(url, params) { var url = toJsonUrl(url); addLoading('<p class="next-step">Loading next step&hellip;</p>'); $.ajax(url, { type: 'GET', dataType:'json', data: params, timeout: 10000, error: function(jqXHR, textStatus, errorStr) { var paramStr = $.param(params); redirectToNonAjax(url.replace('.json', '?' + paramStr).replace('??', '?')); }, success: function(data, textStatus, jqXHR) { addToHistory(data); updateContent(data['html_fragment']); } }); } // manage the URL function addToHistory(data) { history.pushState(data, data['title'], data['url']); window._gaq && window._gaq.push(['_trackPageview', data['url']]); } // add an indicator of loading function addLoading(fragment){ $('#content .step.current') .addClass('loading') .find('form .next-question') .append(fragment); $.event.trigger('smartanswerAnswer'); }; // update the content (i.e. plonk in the html fragment) function updateContent(fragment){ $('.smart_answer #js-replaceable').html(fragment); $.event.trigger('smartanswerAnswer'); if ($(".outcome").length !== 0) { $.event.trigger('smartanswerOutcome'); } } function initializeHistory(data) { if (! <API key>() && window.location.pathname.match(/\/.*\ addToHistory({url: window.location.pathname}); } data = { html_fragment: $('.smart_answer #js-replaceable').html(), title: "Question", url: window.location.toString() }; history.replaceState(data, data['title'], data['url']); } var contentPosition = { latestQuestionTop : 0, <API key>: function($latestQuestion) { var top_of_view = $(window).scrollTop(); this.latestQuestionTop = $latestQuestion.offset().top; return (this.latestQuestionTop < top_of_view); }, correctOffscreen: function() { $latestQuestion = $('.smart_answer .done-questions li.done:last-child'); if (!$latestQuestion.length) { $latestQuestion = $('body'); } if(this.<API key>($latestQuestion)) { $(window).scrollTop(this.latestQuestionTop); } }, init: function() { var self = this; $(document).bind('smartanswerAnswer', function() { self.correctOffscreen(); $('.meta-wrapper').show(); }); // Show feedback form in outcomes $(document).bind('smartanswerOutcome', function() { $('.<API key> form #url').val(window.location.href); $('.meta-wrapper').show(); }); } }; contentPosition.init(); });
.crystal-tooltip { position: absolute; z-index: 1030; display: block; padding: 5px; font-size: 13px; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .crystal-tooltip.shown { opacity: .8; } .crystal-tooltip.bottom { margin-bottom: -3px; padding-top: 9px; } .crystal-tooltip.top { margin-top: -3px; padding-bottom: 9px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .crystal-tooltip.top .tooltip-arrow { border-top-color: #34495e; border-width: 9px 9px 0; bottom: 0; margin-left: -9px; left: 50%; } .crystal-tooltip.bottom .tooltip-arrow { border-bottom-color: #34495e; border-width: 0 9px 9px; bottom: 0; margin-left: -9px; left: 50%; top: 0; } .tooltip-inner { background-color: #34495e; line-height: 18px; padding: 12px 12px; text-align: center; width: 183px; border-radius: 6px; max-width: 200px; color: #ffffff; }
<?php namespace Symfony\Tests\Component\Security\User; use Symfony\Component\Security\User\AccountChecker; class AccountCheckerTest extends \<API key> { public function testCheckPre<API key>() { $checker = new AccountChecker(); $this->assertNull($checker->checkPreAuth($this->getMock('Symfony\Component\Security\User\AccountInterface'))); } public function <API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('<API key>')->will($this->returnValue(true)); $this->assertNull($checker->checkPreAuth($account)); } /** * @expectedException Symfony\Component\Security\Exception\<API key> */ public function testCheckPre<API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('<API key>')->will($this->returnValue(false)); $checker->checkPreAuth($account); } public function testCheckPost<API key>() { $checker = new AccountChecker(); $this->assertNull($checker->checkPostAuth($this->getMock('Symfony\Component\Security\User\AccountInterface'))); } public function <API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('isAccountNonLocked')->will($this->returnValue(true)); $account->expects($this->once())->method('isEnabled')->will($this->returnValue(true)); $account->expects($this->once())->method('isAccountNonExpired')->will($this->returnValue(true)); $this->assertNull($checker->checkPostAuth($account)); } /** * @expectedException Symfony\Component\Security\Exception\LockedException */ public function <API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('isAccountNonLocked')->will($this->returnValue(false)); $checker->checkPostAuth($account); } /** * @expectedException Symfony\Component\Security\Exception\DisabledException */ public function <API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('isAccountNonLocked')->will($this->returnValue(true)); $account->expects($this->once())->method('isEnabled')->will($this->returnValue(false)); $checker->checkPostAuth($account); } /** * @expectedException Symfony\Component\Security\Exception\<API key> */ public function <API key>() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\<API key>'); $account->expects($this->once())->method('isAccountNonLocked')->will($this->returnValue(true)); $account->expects($this->once())->method('isEnabled')->will($this->returnValue(true)); $account->expects($this->once())->method('isAccountNonExpired')->will($this->returnValue(false)); $checker->checkPostAuth($account); } }
Ext.define('CustomIcons.view.Main', { extend: 'Ext.tab.Panel', xtype: 'main', requires: [ 'Ext.TitleBar', 'Ext.Video' ], config: { tabBarPosition: 'bottom', items: [ { title: 'Welcome', iconCls: 'headphones', styleHtmlContent: true, scrollable: true, items: { docked: 'top', xtype: 'titlebar', title: 'Welcome to Sencha Touch 2' }, html: [ "You've just generated a new Sencha Touch 2 project. What you're looking at right now is the ", "contents of <a target='_blank' href=\"app/view/Main.js\">app/view/Main.js</a> - edit that file ", "and refresh to change what's rendered here." ].join("") }, { title: 'Get Started', iconCls: 'facebook2', items: [ { docked: 'top', xtype: 'titlebar', title: 'Getting Started' }, { xtype: 'video', url: 'http://av.vimeo.com/64284/137/87347327.mp4?<API key>, posterUrl: 'http://b.vimeocdn.com/ts/261/062/261062119_640.jpg' } ] } ] } });
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../../../_lib/setUTCDay/index.js'); var _index2 = <API key>(_index); var _index3 = require('../../../_lib/setUTCISODay/index.js'); var _index4 = <API key>(_index3); var _index5 = require('../../../_lib/setUTCISOWeek/index.js'); var _index6 = <API key>(_index5); var _index7 = require('../../../_lib/setUTCISOWeekYear/index.js'); var _index8 = <API key>(_index7); var _index9 = require('../../../_lib/startOfUTCISOWeek/index.js'); var _index10 = <API key>(_index9); var _index11 = require('../../../_lib/<API key>/index.js'); var _index12 = <API key>(_index11); function <API key>(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var <API key> = 60000; function setTimeOfDay(hours, timeOfDay) { var isAM = timeOfDay === 0; if (isAM) { if (hours === 12) { return 0; } } else { if (hours !== 12) { return 12 + hours; } } return hours; } var units = { twoDigitYear: { priority: 10, set: function set(dateValues, value) { var century = Math.floor(dateValues.date.getUTCFullYear() / 100); var year = century * 100 + value; dateValues.date.setUTCFullYear(year, 0, 1); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, year: { priority: 10, set: function set(dateValues, value) { dateValues.date.setUTCFullYear(value, 0, 1); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, isoYear: { priority: 10, set: function set(dateValues, value, options) { dateValues.date = (0, _index12.default)((0, _index8.default)(dateValues.date, value, options), options); return dateValues; } }, quarter: { priority: 20, set: function set(dateValues, value) { dateValues.date.setUTCMonth((value - 1) * 3, 1); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, month: { priority: 30, set: function set(dateValues, value) { dateValues.date.setUTCMonth(value, 1); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, isoWeek: { priority: 40, set: function set(dateValues, value, options) { dateValues.date = (0, _index10.default)((0, _index6.default)(dateValues.date, value, options), options); return dateValues; } }, dayOfWeek: { priority: 50, set: function set(dateValues, value, options) { dateValues.date = (0, _index2.default)(dateValues.date, value, options); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, dayOfISOWeek: { priority: 50, set: function set(dateValues, value, options) { dateValues.date = (0, _index4.default)(dateValues.date, value, options); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, dayOfMonth: { priority: 50, set: function set(dateValues, value) { dateValues.date.setUTCDate(value); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, dayOfYear: { priority: 50, set: function set(dateValues, value) { dateValues.date.setUTCMonth(0, value); dateValues.date.setUTCHours(0, 0, 0, 0); return dateValues; } }, timeOfDay: { priority: 60, set: function set(dateValues, value, options) { dateValues.timeOfDay = value; return dateValues; } }, hours: { priority: 70, set: function set(dateValues, value, options) { dateValues.date.setUTCHours(value, 0, 0, 0); return dateValues; } }, timeOfDayHours: { priority: 70, set: function set(dateValues, value, options) { var timeOfDay = dateValues.timeOfDay; if (timeOfDay != null) { value = setTimeOfDay(value, timeOfDay); } dateValues.date.setUTCHours(value, 0, 0, 0); return dateValues; } }, minutes: { priority: 80, set: function set(dateValues, value) { dateValues.date.setUTCMinutes(value, 0, 0); return dateValues; } }, seconds: { priority: 90, set: function set(dateValues, value) { dateValues.date.setUTCSeconds(value, 0); return dateValues; } }, milliseconds: { priority: 100, set: function set(dateValues, value) { dateValues.date.setUTCMilliseconds(value); return dateValues; } }, timezone: { priority: 110, set: function set(dateValues, value) { dateValues.date = new Date(dateValues.date.getTime() - value * <API key>); return dateValues; } }, timestamp: { priority: 120, set: function set(dateValues, value) { dateValues.date = new Date(value); return dateValues; } } }; exports.default = units; module.exports = exports['default'];
<script src='<?php echo base_url()?>assets/js/tinymce/tinymce.min.js'></script> <script> tinymce.init({ selector: '#myartikel' }); </script> <form action="<?php echo base_url('admin/Cartikel_g/proses_add_artikel') ?>" method="post" enctype="multipart/form-data"> <div class="col-md-8 whitebox"> <h3 class="container">Tambah Artikel</h3> <hr/> <input type="hidden" name="id_user" value=""> <div class="form-group bts-ats"> <label class="col-sm-2 control-label">Judul</label> <div class="col-sm-10"> <input type="text" name="judul_artikel" class="form-control" placeholder="judul"> </div> <div class="sambungfloat"></div> </div> <div class="col-md-12"> <textarea id="myartikel" name="isi_artikel" rows="15"></textarea> </div> <button type="submit" name="submit" value="submit" class="btn kanan bts-ats btn-primary">Publish</button> </div> <div class="col-md-4 whitebox"> <div class=" form-group artikelkat"> <div class="form-group bts-ats"> <label class="col-sm-3 control-label">Kategori</label> <div class="col-sm-8"> <select name="id_kategori" class="form-control"> <?php foreach ($getkategori as $kat): ?> <option value="<?php echo $kat->id_kategori; ?>"><?php echo $kat->judul_kategori; ?></option> <?php endforeach ?> </select> </div> <div class="sambungfloat"></div> </div> <div class="form-group bts-ats"> <label class="col-sm-3 control-label">Tanggal</label> <div class="col-sm-8"> <input type="date" name="tgl_artikel" class="form-control" value="<?php echo date('Y-m-d'); ?>"> </div> <div class="sambungfloat"></div> </div> <div class="form-group bts-ats"> <label class="col-sm-3 control-label">Gambar</label> <div class="col-sm-8"> <form> <img id="preview" class="imgbox" src="<?php echo base_url('assets/img/artikel/default.jpg') ?>" alt="preview gambar">
#ifndef BITCOIN_SPAN_H #define BITCOIN_SPAN_H #include <algorithm> #include <cassert> #include <cstddef> #include <cstdint> #include <type_traits> #ifdef DEBUG #define <API key> #define ASSERT_IF_DEBUG(x) assert((x)) #else #define <API key> constexpr #define ASSERT_IF_DEBUG(x) #endif #if defined(__clang__) #if __has_attribute(lifetimebound) #define <API key> [[clang::lifetimebound]] #else #define <API key> #endif #else #define <API key> #endif /** * A Span is an object that can refer to a contiguous sequence of objects. * * It implements a subset of C++20's std::span. * * Things to be aware of when writing code that deals with Spans: * * - Similar to references themselves, Spans are subject to reference lifetime * issues. The user is responsible for making sure the objects pointed to by * a Span live as long as the Span is used. For example: * * std::vector<int> vec{1,2,3,4}; * Span<int> sp(vec); * vec.push_back(5); * printf("%i\n", sp.front()); // UB! * * may exhibit undefined behavior, as increasing the size of a vector may * invalidate references. * * - One particular pitfall is that Spans can be constructed from temporaries, * but this is unsafe when the Span is stored in a variable, outliving the * temporary. For example, this will compile, but exhibits undefined behavior: * * Span<const int> sp(std::vector<int>{1, 2, 3}); * printf("%i\n", sp.front()); // UB! * * The lifetime of the vector ends when the statement it is created in ends. * Thus the Span is left with a dangling reference, and using it is undefined. * * - Due to Span's automatic creation from range-like objects (arrays, and data * types that expose a data() and size() member function), functions that * accept a Span as input parameter can be called with any compatible * range-like object. For example, this works: * * void Foo(Span<const int> arg); * * Foo(std::vector<int>{1, 2, 3}); // Works * * This is very useful in cases where a function truly does not care about the * container, and only about having exactly a range of elements. However it * may also be surprising to see automatic conversions in this case. * * When a function accepts a Span with a mutable element type, it will not * accept temporaries; only variables or other references. For example: * * void FooMut(Span<int> arg); * * FooMut(std::vector<int>{1, 2, 3}); // Does not compile * std::vector<int> baz{1, 2, 3}; * FooMut(baz); // Works * * This is similar to how functions that take (non-const) lvalue references * as input cannot accept temporaries. This does not work either: * * void FooVec(std::vector<int>& arg); * FooVec(std::vector<int>{1, 2, 3}); // Does not compile * * The idea is that if a function accepts a mutable reference, a meaningful * result will be present in that variable after the call. Passing a temporary * is useless in that context. */ template <typename C> class Span { C *m_data; std::size_t m_size; template <class T> struct is_Span_int : public std::false_type {}; template <class T> struct is_Span_int<Span<T>> : public std::true_type {}; template <class T> struct is_Span : public is_Span_int<typename std::remove_cv<T>::type> {}; public: constexpr Span() noexcept : m_data(nullptr), m_size(0) {} /** * Construct a span from a begin pointer and a size. * * This implements a subset of the iterator-based std::span constructor in * C++20, which is hard to implement without std::address_of. */ template <typename T, typename std::enable_if< std::is_convertible<T (*)[], C (*)[]>::value, int>::type = 0> constexpr Span(T *begin, std::size_t size) noexcept : m_data(begin), m_size(size) {} /** * Construct a span from a begin and end pointer. * * This implements a subset of the iterator-based std::span constructor in * C++20, which is hard to implement without std::address_of. */ template <typename T, typename std::enable_if< std::is_convertible<T (*)[], C (*)[]>::value, int>::type = 0> <API key> Span(T *begin, T *end) noexcept : m_data(begin), m_size(end - begin) { ASSERT_IF_DEBUG(end >= begin); } /** * Implicit conversion of spans between compatible types. * * Specifically, if a pointer to an array of type O can be implicitly * converted to a pointer to an array of type C, then permit implicit * conversion of Span<O> to Span<C>. This matches the behavior of the * corresponding C++20 std::span constructor. * * For example this means that a Span<T> can be converted into a Span<const * T>. */ template <typename O, typename std::enable_if< std::is_convertible<O (*)[], C (*)[]>::value, int>::type = 0> constexpr Span(const Span<O> &other) noexcept : m_data(other.m_data), m_size(other.m_size) {} /** Default copy constructor. */ constexpr Span(const Span &) noexcept = default; /** Default assignment operator. */ Span &operator=(const Span &other) noexcept = default; /** Construct a Span from an array. This matches the corresponding C++20 * std::span constructor. */ template <int N> constexpr Span(C (&a)[N]) noexcept : m_data(a), m_size(N) {} /** * Construct a Span for objects with .data() and .size() (std::string, * std::array, std::vector, ...). * * This implements a subset of the functionality provided by the C++20 * std::span range-based constructor. * * To prevent surprises, only Spans for constant value types are supported * when passing in temporaries. Note that this restriction does not exist * when converting arrays or other Spans (see above). */ template <typename V> constexpr Span( V &other <API key>, typename std::enable_if< !is_Span<V>::value && std::is_convertible< typename std::remove_pointer< decltype(std::declval<V &>().data())>::type (*)[], C (*)[]>::value && std::is_convertible<decltype(std::declval<V &>().size()), std::size_t>::value, std::nullptr_t>::type = nullptr) : m_data(other.data()), m_size(other.size()) {} template <typename V> constexpr Span( const V &other <API key>, typename std::enable_if< !is_Span<V>::value && std::is_convertible< typename std::remove_pointer< decltype(std::declval<const V &>().data())>::type (*)[], C (*)[]>::value && std::is_convertible<decltype(std::declval<const V &>().size()), std::size_t>::value, std::nullptr_t>::type = nullptr) : m_data(other.data()), m_size(other.size()) {} constexpr C *data() const noexcept { return m_data; } constexpr C *begin() const noexcept { return m_data; } constexpr C *end() const noexcept { return m_data + m_size; } <API key> C &front() const noexcept { ASSERT_IF_DEBUG(size() > 0); return m_data[0]; } <API key> C &back() const noexcept { ASSERT_IF_DEBUG(size() > 0); return m_data[m_size - 1]; } constexpr std::size_t size() const noexcept { return m_size; } constexpr bool empty() const noexcept { return size() == 0; } <API key> C &operator[](std::size_t pos) const noexcept { ASSERT_IF_DEBUG(size() > pos); return m_data[pos]; } <API key> Span<C> subspan(std::size_t offset) const noexcept { ASSERT_IF_DEBUG(size() >= offset); return Span<C>(m_data + offset, m_size - offset); } <API key> Span<C> subspan(std::size_t offset, std::size_t count) const noexcept { ASSERT_IF_DEBUG(size() >= offset + count); return Span<C>(m_data + offset, count); } <API key> Span<C> first(std::size_t count) const noexcept { ASSERT_IF_DEBUG(size() >= count); return Span<C>(m_data, count); } <API key> Span<C> last(std::size_t count) const noexcept { ASSERT_IF_DEBUG(size() >= count); return Span<C>(m_data + m_size - count, count); } friend constexpr bool operator==(const Span &a, const Span &b) noexcept { return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin()); } friend constexpr bool operator!=(const Span &a, const Span &b) noexcept { return !(a == b); } friend constexpr bool operator<(const Span &a, const Span &b) noexcept { return std::<API key>(a.begin(), a.end(), b.begin(), b.end()); } friend constexpr bool operator<=(const Span &a, const Span &b) noexcept { return !(b < a); } friend constexpr bool operator>(const Span &a, const Span &b) noexcept { return (b < a); } friend constexpr bool operator>=(const Span &a, const Span &b) noexcept { return !(a < b); } template <typename O> friend class Span; }; // MakeSpan helps constructing a Span of the right type automatically. /** MakeSpan for arrays: */ template <typename A, int N> Span<A> constexpr MakeSpan(A (&a)[N]) { return Span<A>(a, N); } /** MakeSpan for temporaries / rvalue references, only supporting const output. */ template <typename V> constexpr auto MakeSpan(V &&v <API key>) -> typename std::enable_if< !std::is_lvalue_reference<V>::value, Span<const typename std::remove_pointer<decltype(v.data())>::type>>::type { return std::forward<V>(v); } /** MakeSpan for (lvalue) references, supporting mutable output. */ template <typename V> constexpr auto MakeSpan(V &v <API key>) -> Span<typename std::remove_pointer<decltype(v.data())>::type> { return v; } /** Pop the last element off a span, and return a reference to that element. */ template <typename T> T &SpanPopBack(Span<T> &span) { size_t size = span.size(); ASSERT_IF_DEBUG(size > 0); T &back = span[size - 1]; span = Span<T>(span.data(), size - 1); return back; } // Helper functions to safely cast to uint8_t pointers. inline uint8_t *UCharCast(char *c) { return (uint8_t *)c; } inline uint8_t *UCharCast(uint8_t *c) { return c; } inline const uint8_t *UCharCast(const char *c) { return (uint8_t *)c; } inline const uint8_t *UCharCast(const uint8_t *c) { return c; } // Helper function to safely convert a Span to a Span<[const] uint8_t>. template <typename T> constexpr auto UCharSpanCast(Span<T> s) -> Span<typename std::remove_pointer<decltype(UCharCast(s.data()))>::type> { return {UCharCast(s.data()), s.size()}; } /** Like MakeSpan, but for (const) uint8_t member types only. Only works * for (un)signed char containers. */ template <typename V> constexpr auto MakeUCharSpan(V &&v) -> decltype(UCharSpanCast(MakeSpan(std::forward<V>(v)))) { return UCharSpanCast(MakeSpan(std::forward<V>(v))); } #endif // BITCOIN_SPAN_H
# <API key>: true module ArrayUtil def self.insert_before(array, new_element, element) idx = array.index(element) || -1 array.insert(idx, new_element) end def self.insert_after(array, new_element, element) idx = array.index(element) || -2 array.insert(idx + 1, new_element) end end
// get params function getParams() { var params = { initial_amount: parseInt($('#initial_amount').val(), 10) || 0, <API key>: parseFloat($('#<API key>').val()) / 100 || 0, monthly_amount: parseFloat($('#monthly_amount').val()), num_months: parseInt($('#num_months').val(), 10) }; params.method = $('#by_monthly_amount').is(':checked') ? 'by_monthly_amount' : 'by_num_months'; return params; } function updateUI() { var params = getParams(); var data = computeLoanData(params); updatePaymentTable(data); console.log(data); } function computeLoanData(params) { var total_paid = 0, num_months = 0, remainder = Math.floor(params.initial_amount * 100), <API key> = params.<API key> / 12, monthly_amount, months = []; if (params.method == 'by_num_months') { var pow = Math.pow(1 + <API key>, params.num_months); monthly_amount = remainder * <API key> * pow / (pow - 1); } else { monthly_amount = params.monthly_amount * 100; } monthly_amount = Math.ceil(monthly_amount); // compute by amount first while (remainder > 0) { var interest = Math.floor(remainder * <API key>); remainder += interest; var to_pay = remainder > monthly_amount ? monthly_amount : remainder; total_paid += to_pay; remainder -= to_pay; months.push({ interest: interest / 100, repayment: to_pay / 100, remainder: remainder / 100 }); } $('#monthly_amount').val((monthly_amount / 100).toFixed(2)); $('#num_months').val(months.length); return { total_paid: total_paid / 100, interest_paid: (total_paid - params.initial_amount * 100) / 100, months: months }; } function updatePaymentTable(data) { $('#total_repayment').text(data.total_paid.toFixed(2)); $('#<API key>').text(data.interest_paid.toFixed(2)); var rows = $('#monthly_breakdown').empty(); for (var idx=0; idx < data.months.length; idx++) { var month_num = idx+1; var is_new_year = (idx % 12) === 0; var tr = $('<tr />') .append($('<td />').text(month_num)) .append($('<td />').text(data.months[idx].interest.toFixed(2))) .append($('<td />').text(data.months[idx].repayment.toFixed(2))) .append($('<td />').text(data.months[idx].remainder.toFixed(2))) .addClass(is_new_year ? 'jan' : '') .appendTo(rows); } } // initiatilize listeners $('#initial_amount').on('change', updateUI); $('#<API key>').on('change', updateUI); $('#monthly_amount').on('change', updateUI); $('#num_months').on('change', updateUI); $('#by_monthly_amount').on('change', updateUI); $('#by_num_months').on('change', updateUI);
using Lidgren.Network; namespace Gem.Network.Handlers { public class DummyHandler : IMessageHandler { public void Handle(NetConnection sender, object args) { } } }
define([ "dojo/_base/declare", "dojo/_base/fx", "dojo/_base/lang", "dojo/dom-style", "dojo/mouse", "dojo/on", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dojo/text!./templates/TGPrdItem.html", "dijit/_OnDijitClickMixin", "dijit/<API key>", "dijit/form/Button" ], function(declare, baseFx, lang, domStyle, mouse, on, _WidgetBase, _TemplatedMixin, template,_OnDijitClickMixin,<API key>,Button){ return declare([_WidgetBase, _OnDijitClickMixin,_TemplatedMixin,<API key>], { // Some default values for our author // These typically map to whatever you're passing to the constructor rtzzhmc: "No Name", // Using require.toUrl, we can get a path to our AuthorWidget's space // and we want to have a default avatar, just in case rimg: require.toUrl("./images/defaultAvatar.png"), // code5:"", // code7: "", // code8:"", // code3:"", // rprid:"", // Our template - important! templateString: template, // A class to be applied to the root node in our template baseClass: "TGPrdWidget", // A reference to our background animation mouseAnim: null, // Colors for our background animation baseBackgroundColor: "#fff", // <API key>: "#def", postCreate: function(){ // Get a DOM node reference for the root of our widget var domNode = this.domNode; // Run any parent postCreate processes - can be done at any point this.inherited(arguments); // Set our DOM node's background color to white - // smoothes out the mouseenter/leave event animations domStyle.set(domNode, "backgroundColor", this.baseBackgroundColor); }, _setRimgAttr: function(imagePath) { // We only want to set it if it's a non-empty string if (imagePath != "") { // Save it on our widget instance - note that // we're using _set, to support anyone using // our widget's Watch functionality, to watch values change // this._set("avatar", imagePath); // Using our avatarNode attach point, set its src value this.imgNode.src = HTTP+imagePath; } } }); });
<?php require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/Util/Filter.php'; require_once 'PHPUnit/Util/Timer.php'; PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); abstract class <API key> extends <API key> { /** * @var integer */ protected $maxRunningTime = 0; /** * @return mixed * @throws RuntimeException */ protected function runTest() { PHPUnit_Util_Timer::start(); $testResult = parent::runTest(); $time = PHPUnit_Util_Timer::stop(); if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) { $this->fail( sprintf( 'expected running time: <= %s but was: %s', $this->maxRunningTime, $time ) ); } return $testResult; } /** * @param integer $maxRunningTime * @throws <API key> * @since Method available since Release 2.3.0 */ public function setMaxRunningTime($maxRunningTime) { if (is_integer($maxRunningTime) && $maxRunningTime >= 0) { $this->maxRunningTime = $maxRunningTime; } else { throw <API key>::factory(1, 'positive integer'); } } /** * @return integer * @since Method available since Release 2.3.0 */ public function getMaxRunningTime() { return $this->maxRunningTime; } } ?>
const { ipcRenderer, remote } = require('electron'); const mainProcess = remote.require('./main'); const currentWindow = remote.getCurrentWindow(); const $name = $('.name-input'); const $servings = $('.servings-input'); const $time = $('.time-input'); const $ingredients = $('.ingredients-input'); const $directions = $('.directions-input'); const $notes = $('.notes-input'); const $saveButton = $('.save-recipe-button'); const $seeAllButton = $('.see-all-button'); const $homeButton = $('.home-button'); const $addRecipeButton = $('.add-button'); let pageNav = (page) => { currentWindow.loadURL(`file://${__dirname}/${page}`); }; $saveButton.on('click', () => { let name = $name.val(); let servings = $servings.val(); let time = $time.val(); let ingredients = $ingredients.val(); let directions = $directions.val(); let notes = $notes.val(); let recipe = { name, servings, time, ingredients, directions, notes}; mainProcess.saveRecipe(recipe); pageNav('full-recipe.html'); }); $seeAllButton.on('click', () => { mainProcess.getRecipes(); pageNav('all-recipes.html'); }); $homeButton.on('click', () => { pageNav('index.html'); }); $addRecipeButton.on('click', () => { pageNav('add-recipe.html'); });
require 'spec_helper' module Sexpr::Matcher describe Rule, "eat" do let(:rule){ Rule.new :hello, self } def eat(seen) @seen = seen end it 'delegates to the defn' do rule.eat([:foo]) @seen.should eq([:foo]) end end end
/* * Store drawing on server */ function saveDrawing() { var drawing = $('#imagePaint').wPaint('image'); var imageid = $('#imageTarget').data('imageid'); var creatormail = $('input[name=creatorMail]').val(); //Add spinning wheel var spin = $(document.createElement('div')); spin.addClass('spin'); $('#dialog-content').html(spin); $.ajax({ type: 'POST', url: 'savedrawing', dataType: 'json', data: {drawing: drawing, imageid: imageid, creatormail: creatormail}, success: function (resp) { if (resp.kind == 'success') popup("<p>Die Zeichnung wurde erfolgreich gespeichert.</p><p>Sie wird jedoch zuerst überprüft bevor sie in der Galerie zu sehen ist.</p>"); if (resp.kind == 'error') popup("<p>Die Zeichnung konnte leider nicht gespeichert werden.</p><p>Der Fehler wird untersucht.</p>"); }, fail: function() { popup("<p>Die Zeichnung konnte leider nicht gespeichert werden.</p><p>Der Fehler wird untersucht.</p>"); } }); } function saveDrawingLocal() { var imageid = $('img#imageTarget').data('imageid'); var drawingid = $('img#drawingTarget').data('drawingid'); window.location.href = 'getfile?drawingid=' + drawingid + '&imageid=' + imageid; } /* * Popup message */ function popup(message) { // get the screen height and width var maskHeight = $(document).height(); var maskWidth = $(window).width(); // calculate the values for center alignment var dialogTop = (maskHeight/2) - ($('#dialog-box').height()/2); var dialogLeft = (maskWidth/2) - ($('#dialog-box').width()/2); // assign values to the overlay and dialog box $('#dialog-overlay').css({height:maskHeight, width:maskWidth}).show(); $('#dialog-box').css({top:dialogTop, left:dialogLeft}).show(); // display the message $('#dialog-content').html(message); } $(document).ready(function() { var emailriddlerarray=[104,111,115,116,109,97,115,116,101,114,64,109,97,99,104,100,105,101,115,116,114,97,115,115,101,98,117,110,116,46,99,111,109] var encryptedemail_id65='' //variable to contain encrypted email for (var i=0; i<emailriddlerarray.length; i++) encryptedemail_id65+=String.fromCharCode(emailriddlerarray[i]) $('#mailMaster').attr('href', 'mailto:' + encryptedemail_id65 ); var emailriddlerarray=[105,110,102,111,64,109,97,99,104,100,105,101,115,116,114,97,115,115,101,98,117,110,116,46,99,111,109] var encryptedemail_id23='' //variable to contain encrypted email for (var i=0; i<emailriddlerarray.length; i++) encryptedemail_id23+=String.fromCharCode(emailriddlerarray[i]) $('#mailInfo').attr('href', 'mailto:' + encryptedemail_id23 ); /* * Change image */ $(".imageSmallContainer").click(function(evt){ var imageid = $(this).data('imageid'); var drawingid = $(this).data('drawingid'); var ids = {imageid : imageid, drawingid : drawingid}; $.get('changeimage', ids) .done(function(data){ var imageContainer = $('#imageContainer'); //Hide all images in container imageContainer.children('.imageRegular').hide(); //Add spinning wheel var spin = $(document.createElement('div')); spin.addClass('spin'); imageContainer.prepend(spin); //Remove hidden old image $('#imageTarget').remove(); //Create new hidden image var imageNew = $(document.createElement('img')); imageNew.attr('id', 'imageTarget'); imageNew.addClass('imageRegular'); imageNew.attr('data-imageid', imageid); imageNew.data('imageid', imageid); imageNew.attr('src', data.imagefile); imageNew.css('display', 'none'); //Prepend new Image to container imageContainer.prepend(imageNew); //For Admin and Gallery also change Drawing if (typeof drawingid != 'undefined') { var drawing = $('#drawingTarget'); drawing.attr('src', data.drawingfile); drawing.attr('data-drawingid', drawingid); drawing.data('drawingid', drawingid); drawing.attr('drawingid', drawingid); } // If newImage src is loaded, remove spin and fade all imgs // Fires too early in FF imageContainer.imagesLoaded(function() { spin.remove(); imageContainer.children('.imageRegular').fadeIn(); }); }); }); /* * Change the class of moderated images */ $('.<API key> input').change(function(evt){ var container = $(this).parent(); var initial = container.data('initialstate'); var checked = $(this).prop('checked'); container.removeClass('notApproved'); container.removeClass('approved'); container.removeClass('changed'); if (checked && initial == 'approved') container.addClass('approved'); else if ((checked && initial == 'notApproved') || (!checked && initial == 'approved')) container.addClass('changed'); else if (!checked && initial == 'notApproved') container.addClass('notApproved') }); $('#dialog-box .close, #dialog-overlay').click(function () { $('#dialog-overlay, #dialog-box').hide(); return false; }); $('#drawingDialogBtn').click(function(evt){ popup("<p>Aus den besten eingeschickten Zeichnungen werden Freecards gedruckt.</p> \ <p>Mit dem Klick auf den Speicherbutton erklärst du dich dafür bereit, dass dein Bild vielleicht veröffentlicht wird.</p> \ <p>Wenn du deine Email-Adresse angibst können wir dich informieren falls wir deine Zeichnung ausgewählt haben.</p> \ <input type='text' name='creatorMail' placeholder='Email Adresse'> \ <a id='drawingSaveBtn' href='javascript:saveDrawing();' class='btn'>Speichern</a>"); }); });
'use strict' //Globals will be the stage which is the parrent of all graphics, canvas object for resizing and the renderer which is pixi.js framebuffer. var stage = new PIXI.Container(); var canvas = document.getElementById("game");; var renderer = PIXI.autoDetectRenderer(1024, 570, {view:document.getElementById("game")}); var graphics = new PIXI.Graphics(); // Create or grab the application var app = app || {}; function init(){ resize(); renderer = PIXI.autoDetectRenderer(1024, 570, {view:document.getElementById("game")} ); renderer.backgroundColor = 0x50503E; //level(); canvas.focus(); app.Game.init(renderer, window, canvas, stage); } function resize(){ var gameWidth = window.innerWidth; var gameHeight = window.innerHeight; var scaleToFitX = gameWidth / 1000; var scaleToFitY = gameHeight / 500; var optimalRatio = Math.min(scaleToFitX, scaleToFitY); var currentScreenRatio = gameWidth / gameHeight; if(currentScreenRatio >= 1.77 && currentScreenRatio <= 1.79) { canvas.style.width = gameWidth + "px"; canvas.style.height = gameHeight + "px"; }else{ canvas.style.width = 1000 * optimalRatio + "px"; canvas.style.height = 500 * optimalRatio + "px"; } } //do not REMOVE /* //takes two arrays // the w_array is an array of column width values [w1, w2, w3, ...], y_array is //3d array setup as such [[row 1], [row 2], [row3]] and the rows are arrays // that contain pairs of y,l values where y is the fixed corner of the //rectangle and L is the height of the rectangle. function level(){ // drawRect( xstart, ystart, x size side, y size side) app.levelData = { w_array: [102 * 2, 102 * 2, 102 * 2, 102 * 2, 102 * 2], y_array: [ [ [0 * 2, 90 * 2], [0 * 2, 90 * 2], [0 * 2, 90 * 2], [0 * 2, 90 * 2], [0 * 2, 90 * 2], ], [ [90 * 2, 90 * 2], [90 * 2, 90 * 2], [90 * 2, 90 * 2], [90 * 2, 90 * 2], [90 * 2, 90 * 2], ], [ [180 * 2, 90 * 2], [180 * 2, 90 * 2], [180 * 2, 90 * 2], [180 * 2, 90 * 2], [180 * 2, 90 * 2], ], [ [270 * 2, 90 * 2], [270 * 2, 90 * 2], [270 * 2, 90 * 2], [270 * 2, 90 * 2], [270 * 2, 90 * 2], ] ], p_array: [ [50,50,50,50], [50,450,50,50], [920,50,50,50], [920,450,50,50], ] }; // set a fill and a line style again and draw a rectangle graphics.lineStyle(2, 0x995702, 1); graphics.beginFill(0x71FF33, 1); var x = 0; //reset the x x = 0; //post fence post for(var h = 0, hlen = app.levelData.y_array.length; h < hlen; h++){ for( var i = 0, len = app.levelData.w_array.length; i < len; i++){ //setup the y value graphics.drawRect(x, app.levelData.y_array[h][i][0], app.levelData.w_array[i], app.levelData.y_array[h][i][1]); x += app.levelData.w_array[i]; } //reset the x x = 0; } graphics.lineStyle(2, 0x3472D8, 1); graphics.beginFill(0x3472D8, 1); for(var i = 0, len = app.levelData.p_array.length; i < len; i++){ graphics.drawRect(app.levelData.p_array[i][0], app.levelData.p_array[i][1], app.levelData.p_array[i][2], app.levelData.p_array[i][3]); } stage.addChild(graphics); } // Reads in a JSON object with data function readJSONFile( filePath ){ $.getJSON( filePath, function(){} ) .done( function( data ){ console.log( "SUCCESS: File read from " + filePath ); app.levelData = data; } ) .fail( function( ){ console.log( "FAILED: File at " + filePath ); } ); } */ window.addEventListener('resize', resize, false); window.addEventListener('orientationchange', resize, false);
import React, {Component} from 'react'; import {connect} from 'react-redux'; class MapFull extends Component { constructor() { super(); this.state = { htmlContent: null }; } componentDidMount() { this.getMapHtml(); } componentDidUpdate(prevProps, prevState) { if (!this.props.map || this.props.map.filehash !== prevProps.map.filehash) { this.getMapHtml(); } } getMapHtml() { const path = this.props.settings.html_url + this.props.map.filehash; fetch(path).then(response => { return response.text(); }).then(response => { this.setState({ htmlContent: response }); }); } getMarkup() { return {__html: this.state.htmlContent} } render() { return ( <div className="MapFull layoutbox"> <h3>{this.props.map.titlecache}</h3> <div id="overDiv" style={{position: 'fixed', visibility: 'hide', zIndex: 1}}></div> <div> {this.state.htmlContent ? <div> <div <API key>={this.getMarkup()}></div> </div> : null} </div> </div> ) } } function mapStateToProps(state) { return {settings: state.settings} } export default connect(mapStateToProps)(MapFull);
// Karma configuration file, see link for more information module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('<API key>'), require('<API key>'), require('@angular-devkit/build-angular/plugins/karma') ], client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false, restartOnFileChange: true }); };
description: An example using the Auth0 Quickstart for a SPA implementation with Auth0 Universal Login. classes: video-page # Authenticate: SPA Example See an example using the Auth0 Quickstart for a single-page application (SPA) implementation and learn how Auth0's Universal Login feature does most of the authentication work for you. Understand how security and user experience work with the authentication process to determine how to plan your application integration to Auth0. See how Single-Sign On (SSO) works between applications when you use Universal Login. <div class="video-wrapper" data-video="ayvvah2ov1"></div> ## Video transcript <details> <summary>Introduction</summary> In part 1, we described a few of the ways that you can provide services to your users through your applications using user authentication. You can authenticate users via their social media accounts or with their usernames and passwords. You can add an additional level of certainty about their identities with Multi-factor Authentication (MFA). In this video, we will look at how the Quickstart single page application or SPA implementation uses Universal Login&mdash;which is the preferred method for authentication workflow in Auth0. </details> <details> <summary>Quickstart: SPA with Backend</summary> You can find the quickstarts at https://auth0.com/docs/quickstarts. It is a good idea to login to a specific tenant. Here I am using the **product-training** tenant. This will make the user experience better later on. Next, we need to select the type of application we want to use. We can start with single page application. Then select the vanilla javascript quickstart. Here we are offered two options; the first is a detailed step-by-step guide to implementing authentication in an existing javascript application, and the second is to download a fully functional sample application. Let’s download the sample application. Because we are authenticated, the quickstart download gives us an option to select an existing application from our tenant. The downloaded sample application will be configured to use this applications credentials for authentication. We are also instructed to add our localhost development url to the **Callback URL** and **Allowed Web Origins** lists. Finally, assuming that `node.js` is installed we can install our dependences and start the application. Now we can test the authentication by clicking the **Login** button. </details> <details> <summary>Universal Login</summary> Now that we have an application connected, let’s take a look at Universal Login. You can choose from Classic or New to create your own login pages that will authenticate your users. Later in another video, we will show you how to provide more extensive branding for these pages and more. The buttons that appear on the login page depend on a number of factors including the connections that have been enabled and the current state of a session the user may already have. These settings are dynamic and adjustable in real-time&mdash;no coding changes are required&mdash;since the functionality is driven by the web pages served by the Auth0 Authentication Server. If you have **Enable seamless SSO** enabled or if you have a new tenant, where this option is enabled by default and can’t be turned off, Auth0 will show the login UI only if the user doesn’t have a session. There may or may not be other prompts as well like MFA or consent, but if no user interaction is required then the application will get the results immediately. Therefore, in most cases, applications don’t really check if the user is logged in into the identity provider: they just request an authentication. Universal Login works by effectively delegating the authentication of a user; the user is redirected to the Authorization Service, your Auth0 tenant, and that service authenticates the user and then redirects them back to your application. In most cases, when your application needs to authenticate the user, it will request authentication from the OIDC provider, Auth0, via an `/authorize` request. As you can see from the quickstart, the best approach to implementing this is to use one of the language-specific Auth0 SDKs or some third-party middleware applicable to your technology stack. How to actually do this depends on the SDK and application type used. Once authenticated, and when using an OIDC authentication workflow, Auth0 will redirect the user back to your callback URL with an ID token or a code to fetch the ID token. For OIDC, Auth0 returns profile information in the ID token in a structured claim format as defined by the OIDC specification. This means that custom claims added to ID Tokens must conform to a namespaced format to avoid possible collisions with standard OIDC claims. For example, if you choose the namespace `https: By choosing Universal Login, you don't have to do any integration work to handle the various flavors of authentication. You can start off using a simple username and password, and with a simple toggle switch, you can add new features such as social login and multi-factor authentication. </details> <details> <summary>Integrate a second application</summary> Next, we’ll see how easy it is to integrate Auth0 in your second application. If you run another quickstart, for example, to integrate a web application, you don’t have to do anything else. Running the second quickstart against the same tenant will configure SSO between your applications automatically. Let’s download another quickstart and see this in action. This time around, I will select the Regular Web App application type and `asp.net core` sample. `Asp.net core` is a typical enterprise server side rendered web application framework. The steps are the same as before: Select the application, set local developement urls, download and run the sample. After authenticating the user and redirecting them to an identity provider, you can check for active SSO sessions. </details> ## Up next <ul class="up-next"> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>3:18</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/05_01-<API key>>Authorize: ID Tokens and Access Control</a> <p>What an ID Token is and how you can add custom claims to make access control decisions for your users. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>6:02</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/05_02-<API key>>Authorize: Get and Validate ID Tokens</a> <p>How to get and validate ID Tokens before storing and using them. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>8:59</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/06-user-profiles">User Profiles</a> <p>What user profiles are, what they contain, and how you can use them to manage users. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>4:00</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Brand: How It Works</a> <p>Why your branding is important for your users and how it works with Auth0. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>2:20</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Brand: Sign Up and Login Pages</a> <p>How to use Universal Login to customize your sign up and login pages. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>5:42</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Brand: Emails and Error Pages</a> <p>How to use email templates and customize error pages. </p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>8:12</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/10-logout">Logout</a> <p>How to configure different kinds of user logout behavior using callback URLs. </p> </li> </ul> ## Previous videos <ul class="up-next"> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>8:33</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Architect: Your Tenant</a> <p>What an Auth0 tenant is and how to configure it in the Auth0 Dashboard.</p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>2:14</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Provision: User Stores</a> <p>How user profiles are provisioned within an Auth0 tenant.</p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>10:00</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/<API key>">Provision: Import Users</a> <p>How to move existing users to an Auth0 user store using automatic migration, bulk migration, or both.</p> </li> <li> <span class="video-time"><i class="icon icon-budicon-494"></i>5:57</span> <i class="video-icon icon icon-budicon-676"></i> <a href="/videos/get-started/04_01-<API key>>Authenticate: How It Works</a> <p>How user authentication works and various ways to accomplish it with Auth0.</p> </li> </ul>
<div class="container"> <div class="row"> <sd-toolbar></sd-toolbar> </div> <div class="row"> <sd-navbar></sd-navbar> </div> <div class="row"> <router-outlet></router-outlet> </div> </div>
from ab_tool.tests.common import (SessionTestCase, TEST_COURSE_ID, <API key>, <API key>, <API key>, APIReturn, LIST_MODULES) from django.core.urlresolvers import reverse from ab_tool.models import (Experiment, <API key>) from ab_tool.exceptions import (<API key>, <API key>, UNAUTHORIZED_ACCESS, <API key>) import json from mock import patch class TestExperimentPages(SessionTestCase): """ Tests related to Experiment and Experiment pages and methods """ def <API key>(self): """ Tests edit_experiment template renders for url 'create_experiment' """ response = self.client.get(reverse("<API key>")) self.assertOkay(response) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def <API key>(self): """ Tests edit_experiment template does not render for url 'create_experiment' when unauthorized """ self.set_roles([]) response = self.client.get(reverse("<API key>"), follow=True) self.<API key>(response, "ab_tool/create_experiment.html") self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def <API key>(self): """ Tests edit_experiment template renders when authenticated """ experiment = self.<API key>() response = self.client.get(reverse("<API key>", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def <API key>(self): """ Tests edit_experiment template renders when experiment has started """ experiment = self.<API key>() experiment.tracks_finalized = True experiment.save() response = self.client.get(reverse("<API key>", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def <API key>(self): """ Tests edit_experiment template renders properly with track weights """ experiment = self.<API key>() experiment.assignment_method = Experiment.<API key> track1 = self.create_test_track(name="track1", experiment=experiment) track2 = self.create_test_track(name="track2", experiment=experiment) self.<API key>(experiment=experiment, track=track1) self.<API key>(experiment=experiment, track=track2) response = self.client.get(reverse("<API key>", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def <API key>(self): """ Tests edit_experiment template doesn't render when unauthorized """ self.set_roles([]) experiment = self.<API key>(course_id=<API key>) response = self.client.get(reverse("<API key>", args=(experiment.id,)), follow=True) self.<API key>(response, "ab_tool/edit_experiment.html") self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def <API key>(self): """Tests edit_experiment when experiment does not exist""" e_id = <API key> response = self.client.get(reverse("<API key>", args=(e_id,))) self.<API key>(response, "ab_tool/edit_experiment.html") self.assertEquals(response.status_code, 404) def <API key>(self): """ Tests edit_experiment when attempting to access a experiment from a different course """ experiment = self.<API key>(course_id=<API key>) response = self.client.get(reverse("<API key>", args=(experiment.id,))) self.assertError(response, UNAUTHORIZED_ACCESS) def <API key>(self): """ Tests edit_experiment to confirm that the last updated timestamp changes """ experiment = self.<API key>() experiment.name += " (updated)" response = self.client.post(reverse("<API key>", args=(experiment.id,)), content_type="application/json", data=experiment.to_json()) self.assertEquals(response.content, "success") updated_experiment = Experiment.objects.get(id=experiment.id) self.assertLess(experiment.updated_on, updated_experiment.updated_on, response) def <API key>(self): """ Tests that create_experiment creates a Experiment object verified by DB count when uniformRandom is true""" Experiment.<API key>(TEST_COURSE_ID) num_experiments = Experiment.objects.count() experiment = { "name": "experiment", "notes": "hi", "uniformRandom": True, "csvUpload": False, "tracks": [{"id": None, "weighting": None, "name": "A"}] } response = self.client.post( reverse("<API key>"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def <API key>(self): """ Tests that create_experiment creates a Experiment object verified by DB count when csvUpload is True and no track weights are specified""" Experiment.<API key>(TEST_COURSE_ID) num_experiments = Experiment.objects.count() experiment = { "name": "experiment", "notes": "hi", "uniformRandom": False, "csvUpload": True, "tracks": [{"id": None, "name": "A"}] } response = self.client.post( reverse("<API key>"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def <API key>(self): """ Tests that create_experiment creates a Experiment object verified by DB count when uniformRandom is false and the tracks have weightings """ Experiment.<API key>(TEST_COURSE_ID) num_experiments = Experiment.objects.count() experiment = { "name": "experiment", "notes": "hi", "uniformRandom": False, "csvUpload": False, "tracks": [{"id": None, "weighting": 100, "name": "A"}] } response = self.client.post( reverse("<API key>"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def <API key>(self): """Tests that create_experiment creates a Experiment object verified by DB count""" self.set_roles([]) Experiment.<API key>(TEST_COURSE_ID) num_experiments = Experiment.objects.count() experiment = {"name": "experiment", "notes": "hi"} response = self.client.post( reverse("<API key>"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments, Experiment.objects.count()) self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def <API key>(self): """ Tests that <API key> does not change DB count but does change Experiment attribute""" experiment = self.<API key>(name="old_name") experiment_id = experiment.id num_experiments = Experiment.objects.count() experiment = { "name": "new_name", "notes": "hi", "uniformRandom": True, "csvUpload": False, "tracks": [{"id": None, "weighting": None, "name": "A"}] } response = self.client.post( reverse("<API key>", args=(experiment_id,)), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertOkay(response) self.assertEquals(num_experiments, Experiment.objects.count()) experiment = Experiment.objects.get(id=experiment_id) self.assertEquals(experiment.name, "new_name") def <API key>(self): """ Tests that <API key> changes an Experiment's assignment method from uniform (default) to weighted""" experiment = self.<API key>(name="old_name") experiment_id = experiment.id num_experiments = Experiment.objects.count() no_track_weights = experiment.track_probabilites.count() experiment = { "name": "new_name", "notes": "hi", "uniformRandom": False, "csvUpload": False, "tracks": [{"id": None, "weighting": 20, "name": "A"}, {"id": None, "weighting": 80, "name": "B"}] } response = self.client.post( reverse("<API key>", args=(experiment_id,)), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertOkay(response) self.assertEquals(num_experiments, Experiment.objects.count()) experiment = Experiment.objects.get(id=experiment_id) self.assertEquals(experiment.assignment_method, Experiment.<API key>) self.assertEquals(experiment.track_probabilites.count(), no_track_weights + 2) def <API key>(self): """ Tests that <API key> changes an Experiment's assignment method from weighted uniform """ experiment = self.<API key>( name="old_name", assignment_method=Experiment.<API key>) experiment_id = experiment.id num_experiments = Experiment.objects.count() no_tracks = experiment.tracks.count() experiment = { "name": "new_name", "notes": "hi", "uniformRandom": True, "csvUpload": False, "tracks": [{"id": None, "weighting": None, "name": "A"}, {"id": None, "weighting": None, "name": "B"}, {"id": None, "weighting": None, "name": "C"}] } response = self.client.post( reverse("<API key>", args=(experiment_id,)), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertOkay(response) self.assertEquals(num_experiments, Experiment.objects.count()) experiment = Experiment.objects.get(id=experiment_id) self.assertEquals(experiment.assignment_method, Experiment.UNIFORM_RANDOM) self.assertEquals(experiment.tracks.count(), no_tracks + 3) def <API key>(self): """ Tests <API key> when unauthorized""" self.set_roles([]) experiment = self.<API key>(name="old_name") experiment_id = experiment.id experiment = {"name": "new_name", "notes": ""} response = self.client.post( reverse("<API key>", args=(experiment_id,)), content_type="application/json", data=json.dumps(experiment), follow=True ) self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def <API key>(self): """ Tests that <API key> method raises error for non-existent Experiment """ experiment_id = <API key> experiment = {"name": "new_name", "notes": ""} response = self.client.post( reverse("<API key>", args=(experiment_id,)), content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(response.status_code, 404) def <API key>(self): """ Tests that <API key> method raises error for existent Experiment but for wrong course""" experiment = self.<API key>(name="old_name", course_id=<API key>) data = {"name": "new_name", "notes": ""} response = self.client.post( reverse("<API key>", args=(experiment.id,)), content_type="application/json", data=json.dumps(data) ) self.assertError(response, UNAUTHORIZED_ACCESS) def <API key>(self): """ Tests that <API key> changes an Experiment's name and notes and track names only if the experiment has already been started """ experiment = self.<API key>(name="old_name", notes="old_notes", tracks_finalized=True) experiment_id = experiment.id num_experiments = Experiment.objects.count() old_track = self.create_test_track(experiment=experiment, name="old_name_track") experiment_json = { "name": "new_name", "notes": "new_notes", "tracks": [{"id": old_track.id, "name": "new_track_name"}], } response = self.client.post( reverse("<API key>", args=(experiment_id,)), follow=True, content_type="application/json", data=json.dumps(experiment_json) ) self.assertOkay(response) self.assertEquals(num_experiments, Experiment.objects.count()) experiment = Experiment.objects.get(id=experiment_id) self.assertEquals(experiment.name, "new_name") self.assertEquals(experiment.notes, "new_notes") self.assertEquals(experiment.tracks.all()[0].name, "new_track_name") def <API key>(self): """ Tests that <API key> doesn't change tracks for an experiment that has already been started """ experiment = self.<API key>(name="old_name", tracks_finalized=True, assignment_method=Experiment.<API key>) experiment_id = experiment.id num_experiments = Experiment.objects.count() no_tracks = experiment.tracks.count() experiment = { "name": "new_name", "notes": "hi", "uniformRandom": True, "csvUpload": False, "tracks": [{"id": None, "weighting": None, "name": "A"}, {"id": None, "weighting": None, "name": "B"}, {"id": None, "weighting": None, "name": "C"}] } response = self.client.post( reverse("<API key>", args=(experiment_id,)), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertOkay(response) self.assertEquals(num_experiments, Experiment.objects.count()) experiment = Experiment.objects.get(id=experiment_id) self.assertEquals(experiment.assignment_method, Experiment.<API key>) self.assertEquals(experiment.tracks.count(), no_tracks) def <API key>(self): """ Tests that <API key> does change track objects for an experiment that has not yet been started """ experiment = self.<API key>(name="old_name", tracks_finalized=False, assignment_method=Experiment.<API key>) track1 = self.create_test_track(experiment=experiment, name="A") track2 = self.create_test_track(experiment=experiment, name="B") self.<API key>(experiment=experiment, track=track1) self.<API key>(experiment=experiment, track=track2) track_count = experiment.tracks.count() experiment_json = { "name": "new_name", "notes": "hi", "uniformRandom": False, "csvUpload": False, "tracks": [{"id": track1.id, "weighting": 30, "name": "C"}, {"id": track2.id, "weighting": 70, "name": "D"}] } response = self.client.post( reverse("<API key>", args=(experiment.id,)), follow=True, content_type="application/json", data=json.dumps(experiment_json) ) self.assertOkay(response) experiment = Experiment.objects.get(id=experiment.id) self.assertEquals(experiment.assignment_method, Experiment.<API key>) self.assertEquals(experiment.tracks.count(), track_count) track1 = experiment.tracks.get(id=track1.id) track2 = experiment.tracks.get(id=track2.id) self.assertEquals(track1.name, "C") #Checks name has changed self.assertEquals(track2.name, "D") self.assertEquals(track1.weight.weighting, 30) #Checks weighting has changed self.assertEquals(track2.weight.weighting, 70) def <API key>(self): """ Tests that delete_experiment method properly deletes a experiment when authorized""" <API key> = Experiment.objects.count() experiment = self.<API key>() self.assertEqual(<API key> + 1, Experiment.objects.count()) response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = Experiment.objects.count() self.assertOkay(response) self.assertEqual(<API key>, <API key>) def <API key>(self): """ Tests that delete experiment doesn't work when experiments are finalized """ experiment = self.<API key>() experiment.update(tracks_finalized=True) <API key> = Experiment.objects.count() response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = Experiment.objects.count() self.assertError(response, <API key>) self.assertEqual(<API key>, <API key>) @patch(LIST_MODULES, return_value=APIReturn([{"id": 0}])) def <API key>(self, _mock1): """ Tests that delete experiment doesn't work when there is an associated intervention point is installed """ experiment = self.<API key>() <API key> = Experiment.objects.count() ret_val = [True] with patch("ab_tool.canvas.CanvasModules.<API key>", return_value=ret_val): response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = Experiment.objects.count() self.assertError(response, <API key>) self.assertEqual(<API key>, <API key>) def <API key>(self): """ Tests that delete_experiment method raises error when unauthorized """ self.set_roles([]) experiment = self.<API key>() <API key> = Experiment.objects.count() response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = Experiment.objects.count() self.assertTemplateUsed(response, "ab_tool/not_authorized.html") self.assertEqual(<API key>, <API key>) def <API key>(self): """ Tests that delete_experiment method raises successfully redirects despite non-existent Experiment. This is by design, as the Http404 is caught since multiple users may be editing the A/B dashboard on in the same course """ self.<API key>() t_id = <API key> <API key> = Experiment.objects.count() response = self.client.post(reverse("<API key>", args=(t_id,)), follow=True) <API key> = Experiment.objects.count() self.assertEqual(<API key>, <API key>) self.assertOkay(response) def <API key>(self): """ Tests that delete_experiment method raises error for existent Experiment but for wrong course """ experiment = self.<API key>(course_id=<API key>) <API key> = Experiment.objects.count() response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = Experiment.objects.count() self.assertEqual(<API key>, <API key>) self.assertError(response, UNAUTHORIZED_ACCESS) def <API key>(self): """ Tests that <API key> of a experiment are deleted when the experiment is """ experiment = self.<API key>() track1 = self.create_test_track(name="track1", experiment=experiment) track2 = self.create_test_track(name="track2", experiment=experiment) intervention_point = self.<API key>() <API key>.objects.create(intervention_point=intervention_point, track=track1, url="example.com") <API key>.objects.create(intervention_point=intervention_point, track=track2, url="example.com") <API key> = <API key>.objects.count() response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) <API key> = <API key>.objects.count() self.assertOkay(response) self.assertEqual(<API key> - 2, <API key>) def <API key>(self): """ Tests that the finalize tracks page sets the appropriate course """ experiment = Experiment.<API key>(TEST_COURSE_ID) self.assertFalse(experiment.tracks_finalized) self.create_test_track() response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) self.assertOkay(response) experiment = Experiment.<API key>(TEST_COURSE_ID) self.assertTrue(experiment.tracks_finalized) def <API key>(self): """ Tests that finalize fails if there are missing urls """ experiment = Experiment.<API key>(TEST_COURSE_ID) self.assertFalse(experiment.tracks_finalized) track1 = self.create_test_track(name="track1", experiment=experiment) self.create_test_track(name="track2", experiment=experiment) intervention_point = self.<API key>() <API key>.objects.create(intervention_point=intervention_point, track=track1, url="example.com") response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) self.assertOkay(response) experiment = Experiment.<API key>(TEST_COURSE_ID) self.assertFalse(experiment.tracks_finalized) def <API key>(self): """ Tests that finalize fails if there are no tracks for an experiment """ experiment = Experiment.<API key>(TEST_COURSE_ID) response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) self.assertError(response, <API key>) def <API key>(self): """ Tests that finalize fails if there are no track weights for an weighted probability experiment """ experiment = self.<API key>(assignment_method=Experiment.<API key>) self.create_test_track(name="track1", experiment=experiment) response = self.client.post(reverse("<API key>", args=(experiment.id,)), follow=True) self.assertOkay(response) self.assertFalse(experiment.tracks_finalized) def <API key>(self): """ Tests that copy_experiment creates a new experiment """ experiment = self.<API key>() num_experiments = Experiment.objects.count() url = reverse("<API key>", args=(experiment.id,)) response = self.client.post(url, follow=True) self.assertOkay(response) self.assertEqual(Experiment.objects.count(), num_experiments + 1) def <API key>(self): """ Tests that copy_experiment fails when unauthorized """ self.set_roles([]) experiment = self.<API key>() url = reverse("<API key>", args=(experiment.id,)) response = self.client.post(url, follow=True) self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def <API key>(self): """ Tests that copy_experiment fails with bad experiment_id """ url = reverse("<API key>", args=(12345,)) response = self.client.post(url, follow=True) self.assertEquals(response.status_code, 404) def <API key>(self): """ Tests that copy_experiment fails if experiment is different coruse """ experiment = self.<API key>(course_id=<API key>) url = reverse("<API key>", args=(experiment.id,)) response = self.client.post(url, follow=True) self.assertError(response, UNAUTHORIZED_ACCESS) def test_delete_track(self): """ Tests that delete_track method properly deletes a track of an experiment when authorized""" experiment = self.<API key>() track = self.create_test_track(experiment=experiment) self.assertEqual(experiment.tracks.count(), 1) response = self.client.post(reverse("<API key>", args=(track.id,)), follow=True) self.assertEqual(experiment.tracks.count(), 0) self.assertOkay(response) def <API key>(self): """ Tests that delete_track method succeeds, by design, when deleting a nonexistent track""" experiment = self.<API key>() self.assertEqual(experiment.tracks.count(), 0) response = self.client.post(reverse("<API key>", args=(<API key>,)), follow=True) self.assertEqual(experiment.tracks.count(), 0) self.assertOkay(response)
#-*- coding: utf-8 -*- from flask import current_app, flash, url_for, request from flask_admin import expose, BaseView from logpot.admin.base import AuthenticateView, flash_errors from logpot.admin.forms import SettingForm from logpot.utils import ImageUtil, getDirectoryPath, loadSiteConfig, saveSiteConfig import os from PIL import Image class SettingView(AuthenticateView, BaseView): def saveProfileImage(self, filestorage): buffer = filestorage.stream buffer.seek(0) image = Image.open(buffer) image = ImageUtil.crop_image(image, 64) current_app.logger.info(image) dirpath = getDirectoryPath(current_app, '_settings') filepath = os.path.join(dirpath, "profile.png") image.save(filepath, optimize=True) @expose('/', methods=('GET','POST')) def index(self): form = SettingForm() if form.validate_on_submit(): if form.profile_img.data: file = form.profile_img.data self.saveProfileImage(file) data = {} data['site_title'] = form.title.data data['site_subtitle'] = form.subtitle.data data['site_author'] = form.author.data data['site_author_profile'] = form.author_profile.data data['enable_link_github'] = form.enable_link_github.data data['enable_profile_img'] = form.enable_profile_img.data data["ogp_app_id"] = form.ogp_app_id.data data["ga_tracking_id"] = form.ga_tracking_id.data data["enable_twittercard"] = form.enable_twittercard.data data["twitter_username"] = form.twitter_username.data data['display_poweredby'] = form.display_poweredby.data if saveSiteConfig(current_app, data): flash('Successfully saved.') else: flash_errors('Oops. Save error.') else: flash_errors(form) data = loadSiteConfig(current_app) form.title.data = data['site_title'] form.subtitle.data = data['site_subtitle'] form.author.data = data['site_author'] form.author_profile.data = data['site_author_profile'] form.enable_link_github.data = data['enable_link_github'] form.enable_profile_img.data = data['enable_profile_img'] form.ogp_app_id.data = data["ogp_app_id"] form.ga_tracking_id.data = data["ga_tracking_id"] form.enable_twittercard.data = data["enable_twittercard"] form.twitter_username.data = data["twitter_username"] form.display_poweredby.data = data['display_poweredby'] return self.render('admin/setting.html', form=form)
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Queues extends CI_Controller { public function __construct() { parent::__construct(); <API key>('Asia/Kolkata'); $this->is_logged_in(); } public function index() { $data['pageName']='Queues'; $data['pageLink']='queues'; $data['username']=$this->session->userdata('username'); $this->load->view('header',$data); $this->load->view('menu',$data); $this->load->view('breadcrump_view',$data); $this->load->model('Queue_model'); $data['queryresult'] = $this->Queue_model-><API key>(); $data['checkedin']= array(); $data['inservice']= array(); $data['paymentdue']= array(); $data['complete']= array(); $data['appointments'] = array(); foreach ($data['queryresult'] as $row) { if($row['maxstatus']!=NULL) { if($row['maxstatus'] == 100) { array_push($data['checkedin'],$row); } else if($row['maxstatus'] == 200) { array_push($data['inservice'],$row); } else if($row['maxstatus'] == 300) { array_push($data['paymentdue'],$row); } else if($row['maxstatus'] == 400) { array_push($data['complete'],$row); } else { array_push($data['appointments'],$row); } } else { array_push($data['appointments'],$row); } } $this->load->view('queues_view',$data); $this->load->view('footer',$data); } public function updateAppointments() { $appntId = $_POST['appointmentId']; $status = $_POST['status']; $this->load->model('Queue_model'); $data = array( 'appointment_id' => $appntId , 'status' => $status ); $this->Queue_model->updateQueueDetails($data); if($status == 100){ $this->session->set_flashdata('flashSuccess', 'Customer moved to Check-In Q successfully !'); } if($status == 200){ $this->session->set_flashdata('flashSuccess', 'Customer moved to Service Q successfully !'); } if($status == 300){ $this->session->set_flashdata('flashSuccess', 'Customer moved to Payment Q successfully !'); } if($status == 400){ $this->session->set_flashdata('flashSuccess', 'All services done !!!'); } } function is_logged_in(){ $is_logged_in = $this->session->userdata('is_logged_in'); if(!isset($is_logged_in) || $is_logged_in!= true){ redirect ('/login', 'refresh'); } } public function add(){ $this->_validate(); $data = array( 'title' => $this->input->post('customer_name'), 'start' => $this->input->post('start_time'), 'end' => $this->input->post('end_time'), 'allDay' => 'false', ); $insert = $this->appointments->add_appointments($data); $insert2 = $this->queues->add($data); echo json_encode(array("status" => TRUE)); } private function _validate() { $data = array(); $data['error_string'] = array(); $data['inputerror'] = array(); $data['status'] = TRUE; if($this->input->post('customer_name') == '') { $data['inputerror'][] = 'customer_name'; $data['error_string'][] = 'Customer Name is required'; $data['status'] = FALSE; } if($this->input->post('start_time') == '') { $data['inputerror'][] = 'start_time'; $data['error_string'][] = 'Start Time is required'; $data['status'] = FALSE; } if($this->input->post('end_time') == '') { $data['inputerror'][] = 'end_time'; $data['error_string'][] = 'End Time is required'; $data['status'] = FALSE; } if($data['status'] === FALSE) { echo json_encode($data); exit(); } } }
SOURCES=$(shell find notebooks -name *.Rmd) TARGETS=$(SOURCES:%.Rmd=%.pdf) %.html: %.Rmd @echo "$< -> $@" @Rscript -e "rmarkdown::render('$<')" %.pdf: %.Rmd @echo "$< -> $@" @Rscript -e "rmarkdown::render('$<')" default: $(TARGETS) clean: rm -rf $(TARGETS)
header: meta example: Collection.meta The `meta` attribute is a special attribute on a Collection which allows you to store additional information about the Collection instance. For example, you can save pagination data in `meta`. The meta information is part of the information that is stored in the object when you call [Collection.toJSON](http://backbonejs.org/#Collection-toJSON).
use std::ops::{Add, Mul}; use std::iter::Sum; #[derive(Copy, Clone, Serialize, Deserialize)] pub struct Color(pub f64, pub f64, pub f64); pub const RED: Color = Color(1.0, 0.0, 0.0); pub const GREEN: Color = Color(0.0, 1.0, 0.0); pub const BLUE: Color = Color(0.0, 0.0, 1.0); pub const WHITE: Color = Color(1.0, 1.0, 1.0); pub const BLACK: Color = Color(0.0, 0.0, 0.0); impl Add for Color { type Output = Color; fn add(self, other: Color) -> Color { Color(self.0 + other.0, self.1 + other.1, self.2 + other.2) } } impl Mul for Color { type Output = Color; fn mul(self, other: Color) -> Color { Color(self.0 * other.0, self.1 * other.1, self.2 * other.2) } } impl Mul<f64> for Color { type Output = Color; fn mul(self, other: f64) -> Color { Color(self.0 * other, self.1 * other, self.2 * other) } } impl Into<(u8, u8, u8)> for Color { fn into(mut self) -> (u8, u8, u8) { if self.0 > 1.0 { self.0 = 1.0; } if self.1 > 1.0 { self.1 = 1.0; } if self.2 > 1.0 { self.2 = 1.0; } ( (255.0 * self.0) as u8, (255.0 * self.1) as u8, (255.0 * self.2) as u8, ) } } impl Sum for Color { fn sum<I>(iter: I) -> Self where I: Iterator<Item = Self>, { iter.fold(Color(0.0, 0.0, 0.0), |s, c| s + c) } }
<?php namespace Todohelpist\Console\Commands; use Illuminate\Console\Command; use Illuminate\Foundation\Inspiring; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; class Inspire extends Command { /** * The console command name. * * @var string */ protected $name = 'inspire'; /** * The console command description. * * @var string */ protected $description = 'Display an inspiring quote'; /** * Execute the console command. * * @return mixed */ public function handle() { $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL); } }
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.10.21 at 02:36:24 PM CEST package nl.wetten.bwbng.toestand; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlElementRefs; import javax.xml.bind.annotation.XmlMixed; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.<API key>; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "intitule") public class Intitule { @XmlElementRefs({ @XmlElementRef(name = "nadruk", type = Nadruk.class, required = false), @XmlElementRef(name = "omissie", type = Omissie.class, required = false), @XmlElementRef(name = "sup", type = JAXBElement.class, required = false), @XmlElementRef(name = "noot", type = Noot.class, required = false), @XmlElementRef(name = "unl", type = JAXBElement.class, required = false), @XmlElementRef(name = "meta-data", type = MetaData.class, required = false), @XmlElementRef(name = "nootref", type = Nootref.class, required = false), @XmlElementRef(name = "ovl", type = JAXBElement.class, required = false), @XmlElementRef(name = "inf", type = JAXBElement.class, required = false) }) @XmlMixed protected List<Object> content; @XmlAttribute(name = "id") @XmlSchemaType(name = "anySimpleType") protected String id; @XmlAttribute(name = "status") protected String status; @XmlAttribute(name = "terugwerking") @XmlSchemaType(name = "anySimpleType") protected String terugwerking; @XmlAttribute(name = "label-id") @XmlSchemaType(name = "anySimpleType") protected String labelId; @XmlAttribute(name = "stam-id") @XmlSchemaType(name = "anySimpleType") protected String stamId; @XmlAttribute(name = "versie-id") @XmlSchemaType(name = "anySimpleType") protected String versieId; @XmlAttribute(name = "publicatie") @XmlJavaTypeAdapter(<API key>.class) protected String publicatie; /** * Gets the value of the content property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the content property. * * <p> * For example, to add a new item, do as follows: * <pre> * getContent().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Nadruk } * {@link Omissie } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link Noot } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link MetaData } * {@link Nootref } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link String } * * */ public List<Object> getContent() { if (content == null) { content = new ArrayList<Object>(); } return this.content; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link String } * */ public String getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link String } * */ public void setStatus(String value) { this.status = value; } /** * Gets the value of the terugwerking property. * * @return * possible object is * {@link String } * */ public String getTerugwerking() { return terugwerking; } /** * Sets the value of the terugwerking property. * * @param value * allowed object is * {@link String } * */ public void setTerugwerking(String value) { this.terugwerking = value; } /** * Gets the value of the labelId property. * * @return * possible object is * {@link String } * */ public String getLabelId() { return labelId; } /** * Sets the value of the labelId property. * * @param value * allowed object is * {@link String } * */ public void setLabelId(String value) { this.labelId = value; } /** * Gets the value of the stamId property. * * @return * possible object is * {@link String } * */ public String getStamId() { return stamId; } /** * Sets the value of the stamId property. * * @param value * allowed object is * {@link String } * */ public void setStamId(String value) { this.stamId = value; } /** * Gets the value of the versieId property. * * @return * possible object is * {@link String } * */ public String getVersieId() { return versieId; } /** * Sets the value of the versieId property. * * @param value * allowed object is * {@link String } * */ public void setVersieId(String value) { this.versieId = value; } /** * Gets the value of the publicatie property. * * @return * possible object is * {@link String } * */ public String getPublicatie() { return publicatie; } /** * Sets the value of the publicatie property. * * @param value * allowed object is * {@link String } * */ public void setPublicatie(String value) { this.publicatie = value; } }
var f = require('fs'); var _ = require('underscore'); var r = {}; var cr = require('../config.json').resources; var k = require('../config.json').plugins; var b = require('../config.json').APIVARS.PLUGINS; var n = __dirname.replace('/autoform', b.DIR); var w = ['tokens', 'settings']; var s = ['actions', 'login', 'recover', 'register' ]; var p = './views/index/forms'; var c = function (n) { return n.replace('.jade',''); }; var j = function (props) { for (var p in props) { if(props.hasOwnProperty(p)){ if(!props[p].exclude){ r[p] = props[p]; } } } }; var init = function() { for(var i in k){ if(k.hasOwnProperty(i)){ var e = k[i]; var g = '/' + e; var a = require(n + g + b.CONFIG); j(a.resources); } } }; init(); j(r); var generator = function (cb) { var t; var x; var v; var u = _.union(Object.keys(r), Object.keys(cr)); var m = _.difference(u, w); for(var idx in r) { if (r.hasOwnProperty(idx)) { rc[idx] = r[idx]; } } if(f.existsSync(p)){ t = f.readdirSync(p); t = _.map(t, c); t = _.difference(t,s); x = _.intersection(m,t); v = _.difference(m,t); } cb({ models: m, valid: x, missing: v, resources: u, schemas: cr }); }; module.exports = generator;
SET DEFINE OFF; ALTER TABLE AFW_13_PAGE_ITEM ADD ( CONSTRAINT <API key> FOREIGN KEY (REF_MESG_AIDE) REFERENCES AFW_01_MESG (SEQNC) ENABLE VALIDATE) /
#ifndef ARROW_PASS_H #define ARROW_PASS_H #include <memory> #include <string> #include "arrow/generator.hpp" namespace arrow { class Pass { public: explicit Pass(GContext& ctx) : _ctx(ctx) { } Pass(const Pass& other) = delete; Pass(Pass&& other) = delete; Pass& operator=(const Pass& other) = delete; Pass& operator=(Pass&& other) = delete; protected: GContext& _ctx; }; } // namespace arrow #endif // ARROW_PASS_H
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once("Auth.php"); class GameQuestion extends Auth { public function __construct(){ parent::__construct(); $this->load->model("game_md"); $this->load->model("question_md"); } public function index($game_id) { $data = array(); if(!$this->game_md->isOwner($this->mem_id,$game_id)&&$game_id>0){ echo "ไม่พบเกมส์ที่คุณเลือก"; exit; } $data["question_no"] = $this->question_md->checkQuestionNo($game_id); if($post = $this->input->post()){ $d["question"] = $post["question"]; $d["no"] = $data["question_no"]; $d["game_id"] = $game_id; $this->question_md->save($d); if(isset($post["next"])){ }else if(isset($post["finish"])){ } } $data["game_id"] = $game_id; $content["content"] = $this->load->view("gamequestion/index_tpl",$data,true); $this->load->view("layout_tpl",$content); } private function do_upload($game_id ,$filename) { $config['file_name'] = $filename; $config['upload_path'] = "./uploads/$game_id/"; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = 1024; $config['max_width'] = 1024; $config['max_height'] = 768; if (!file_exists($config['upload_path'])) { mkdir($config['upload_path'], 0777); echo "The directory was successfully created."; } $this->load->library('upload', $config); if ( ! $this->upload->do_upload('userfile')) { $error = array('error' => $this->upload->display_errors()); //echo $this->upload->display_errors(); //$this->load->view('upload_form', $error); } else { $data = array('upload_data' => $this->upload->data()); //print_r( $this->upload->data()); //$this->load->view('upload_success', $data); } } }
date: 2015-05-09T16:59:30+02:00 title: "Exporting Your Mockups" menu: "menugoogledrive3" product: "Balsamiq Mockups 3 for Google Drive" weight: 160 tags: - "Exporting" - "PDF" - "PNG" - "Printing" - "Image" include: "exporting" editorversion: 3 aliases: /google-drive/exporting/
/* get_next_line.c :+: :+: :+: */ /* By: gmange <gmange@student.42.fr> +#+ +:+ +#+ */ /* Created: 2013/12/02 16:03:39 by gmange #+# #+# */ #include <unistd.h> #include "libft.h" #include "get_next_line.h" /* ** returns 0 when reading 0 and, leaves line == NULL ** ONLY if there is an empty end of line at the end of file... */ /* ** structures with the same fd are set in a row */ /* ** 3 reasons to come in: ** 1. chck, remaining struct with corresponding fd from previous read ** 2. chck buf after reading ** 3. read last bits. */ /* ** EOF == -1 in C or read == 0 */ /* ** I check I have no new line already in memory ** would I have I fill line and send it already ** else ** I create a new structure to read in it ** I check it and read again until I find a line or finishes reading */ static int del_cur(t_read **root, t_read *cur, int continu) { t_read *tmp; if (cur == *root) *root = GNL_NXT; else { tmp = *root; while (tmp->nxt != cur) tmp = tmp->nxt; tmp->nxt = GNL_NXT; } ft_memdel((void**)&GNL_BUF); ft_memdel((void**)&cur); return (continu); } static int line_from_lst(char **line, t_read **root, int const fd) { t_read *cur; t_read *tmp; size_t i; cur = *root; while (GNL_FD != fd) cur = GNL_NXT; i = 0; while (cur && GNL_FD == fd) { while (GNL_IDX < GNL_SZE && GNL_BUF[GNL_IDX] != CHAR) (*line)[i++] = GNL_BUF[GNL_IDX++]; if (GNL_BUF[GNL_IDX] == CHAR && ++GNL_IDX >= GNL_SZE) return (del_cur(root, cur, 1)); if (GNL_IDX < GNL_SZE) return (1); tmp = GNL_NXT; if (GNL_IDX >= GNL_SZE) del_cur(root, cur, 1); cur = tmp; } return (0); } static int find_endl(char **line, t_read **root, t_read *cur, int continu) { t_read *tmp; size_t len; len = GNL_IDX; while (len < GNL_SZE && (unsigned char)GNL_BUF[len] != (unsigned char)CHAR) len++; if (!continu || (unsigned char)GNL_BUF[len] == (unsigned char)CHAR) { len -= GNL_IDX; tmp = *root; while (tmp->fd != GNL_FD) tmp = tmp->nxt; while (tmp != cur && (len += tmp->sze)) tmp = tmp->nxt; if (!continu && len == 0) return (del_cur(root, cur, continu)); if (!(*line = (char*)ft_memalloc(sizeof(char) * (len + 1)))) return (-1); return (line_from_lst(line, root, GNL_FD)); } return (0); } static t_read *new_read(t_read **root, int const fd) { t_read *cur; if (!(cur = (t_read*)ft_memalloc(sizeof(*cur)))) return (NULL); GNL_FD = fd; if (!(GNL_BUF = (char*)ft_memalloc(sizeof(*GNL_BUF) * GNL_BUF_SZE))) { ft_memdel((void**)&cur); return (NULL); } if ((int)(GNL_SZE = read(GNL_FD, GNL_BUF, GNL_BUF_SZE)) < 0) { ft_memdel((void**)&GNL_BUF); ft_memdel((void**)&cur); return (NULL); } GNL_IDX = 0; GNL_NXT = NULL; if (*root) GNL_NXT = (*root)->nxt; if (*root) (*root)->nxt = cur; else *root = cur; return (cur); } int get_next_line(int const fd, char **line) { size_t ret; static t_read *root = NULL; t_read *cur; if (!line || (*line = NULL)) return (-1); cur = root; while (cur && GNL_FD != fd) cur = GNL_NXT; if (cur && GNL_FD == fd && (ret = find_endl(line, &root, cur, 1))) return (ret); while (cur && GNL_FD == fd && GNL_NXT) cur = GNL_NXT; while (1) { if (root && !(cur = new_read(&cur, fd))) return (-1); if (!root && !(cur = new_read(&root, fd))) return (-1); if (!GNL_SZE) return (find_endl(line, &root, cur, 0)); if ((ret = find_endl(line, &root, cur, 1))) return (ret); } }
using System.Collections.Generic; using System.Data.Common; using System.Linq; namespace Affixx.Core.Database.Generator { internal class <API key> : SchemaReader { private DbConnection _connection; public override Tables ReadSchema(DbConnection connection) { var result = new Tables(); _connection = connection; using (var command = _connection.CreateCommand()) { command.CommandText = TABLE_SQL; using (var reader = command.ExecuteReader()) { while (reader.Read()) { var table = new Table(); table.Name = reader["TABLE_NAME"].ToString(); table.Schema = reader["TABLE_SCHEMA"].ToString(); table.IsView = string.Compare(reader["TABLE_TYPE"].ToString(), "View", true) == 0; table.CleanName = CleanUp(table.Name); table.ClassName = Inflector.MakeSingular(table.CleanName); result.Add(table); } } } //pull the tables in a reader foreach (var table in result) { table.Columns = LoadColumns(table); // Mark the primary key string primaryKey = GetPK(table.Name); var pkColumn = table.Columns.SingleOrDefault(x => x.Name.ToLower().Trim() == primaryKey.ToLower().Trim()); if (pkColumn != null) { pkColumn.IsPK = true; } } return result; } private List<Column> LoadColumns(Table tbl) { using (var command = _connection.CreateCommand()) { command.Connection = _connection; command.CommandText = COLUMN_SQL; var p = command.CreateParameter(); p.ParameterName = "@tableName"; p.Value = tbl.Name; command.Parameters.Add(p); p = command.CreateParameter(); p.ParameterName = "@schemaName"; p.Value = tbl.Schema; command.Parameters.Add(p); var result = new List<Column>(); using (var reader = command.ExecuteReader()) { while (reader.Read()) { var column = new Column(); column.Name = reader["ColumnName"].ToString(); column.PropertyName = CleanUp(column.Name); column.PropertyType = GetPropertyType(reader["DataType"].ToString()); column.IsNullable = reader["IsNullable"].ToString() == "YES"; column.IsAutoIncrement = ((int)reader["IsIdentity"]) == 1; result.Add(column); } } return result; } } string GetPK(string table) { string sql = @" SELECT c.name AS ColumnName FROM sys.indexes AS i INNER JOIN sys.index_columns AS ic ON i.object_id = ic.object_id AND i.index_id = ic.index_id INNER JOIN sys.objects AS o ON i.object_id = o.object_id LEFT OUTER JOIN sys.columns AS c ON ic.object_id = c.object_id AND c.column_id = ic.column_id WHERE (i.type = 1) AND (o.name = @tableName) "; using (var command = _connection.CreateCommand()) { command.CommandText = sql; var p = command.CreateParameter(); p.ParameterName = "@tableName"; p.Value = table; command.Parameters.Add(p); var result = command.ExecuteScalar(); if (result != null) return result.ToString(); } return ""; } string GetPropertyType(string sqlType) { string sysType = "string"; switch (sqlType) { case "bigint": sysType = "long"; break; case "smallint": sysType = "short"; break; case "int": sysType = "int"; break; case "uniqueidentifier": sysType = "Guid"; break; case "smalldatetime": case "datetime": case "date": case "time": sysType = "DateTime"; break; case "float": sysType = "double"; break; case "real": sysType = "float"; break; case "numeric": case "smallmoney": case "decimal": case "money": sysType = "decimal"; break; case "tinyint": sysType = "byte"; break; case "bit": sysType = "bool"; break; case "image": case "binary": case "varbinary": case "timestamp": sysType = "byte[]"; break; case "geography": sysType = "Microsoft.SqlServer.Types.SqlGeography"; break; case "geometry": sysType = "Microsoft.SqlServer.Types.SqlGeometry"; break; } return sysType; } const string TABLE_SQL = @" SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' OR TABLE_TYPE='VIEW' "; const string COLUMN_SQL = @" SELECT TABLE_CATALOG AS [Database], TABLE_SCHEMA AS Owner, TABLE_NAME AS TableName, COLUMN_NAME AS ColumnName, ORDINAL_POSITION AS OrdinalPosition, COLUMN_DEFAULT AS DefaultSetting, IS_NULLABLE AS IsNullable, DATA_TYPE AS DataType, <API key> AS MaxLength, DATETIME_PRECISION AS DatePrecision, COLUMNPROPERTY(object_id('[' + TABLE_SCHEMA + '].[' + TABLE_NAME + ']'), COLUMN_NAME, 'IsIdentity') AS IsIdentity, COLUMNPROPERTY(object_id('[' + TABLE_SCHEMA + '].[' + TABLE_NAME + ']'), COLUMN_NAME, 'IsComputed') as IsComputed FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=@tableName AND TABLE_SCHEMA=@schemaName ORDER BY OrdinalPosition ASC "; } }
<p align="center"><a href="https: Package [response](https: It provides syntactic sugar that lets you easily write responses on the context. [![GoDoc](https:
<div class="row"> <div class="col-xs-4 form-group" <API key>> <label for="petname{{ctrl.index}}">Pet name</label> <input validate ng-model="ctrl.pet.name" type="text" class="form-control" id="petname{{ctrl.index}}" /> <validity-indicator></validity-indicator> </div> <div class="col-xs-4 form-group"> <label for="type{{ctrl.index}}">Type</label> <input ng-model="ctrl.pet.type" type="text" class="form-control" id="type{{ctrl.index}}" /> </div> <div class="col-xs-4 form-group"> <label for="gender{{ctrl.index}}">Gender</label> <div class="input-group"> <select ng-model="ctrl.pet.gender" ng-options="g.code as g.display for g in ctrl.genders" id="gender{{ctrl.index}}" class="form-control"> <option value=""></option> </select> <span class="input-group-btn"> <button class="btn btn-primary" type="button" ng-click="ctrl.addItem()">+</button> <button class="btn btn-danger" type="button" ng-click="ctrl.removeItem()">-</button> </span> </div> </div> <div class="col-xs-12"> <<API key> ng-model="ctrl.pet.vaccinations" var-name="item" add-item="ctrl.addVaccination(index)" remove-item="ctrl.removeVaccination(item)"> <header><h4>Vaccinations</h4></header> <vaccination-editor ng-model="item" index="$index" remove-item="removeItem({item:item})"></vaccination-editor> </<API key>> </div> </div>
<p><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="bc.css"> <script src="run_prettify.js" type="text/javascript"></script> <! <script src="https://<API key>.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script> </head></p> <! - 11556999 [Export to DWF / PrintSetup] - delete print setup: http://forums.autodesk.com/t5/revit-api/<API key>/m-p/6063449 - reload dll for debugging without restart http://stackoverflow.com/questions/33525908/<API key> - draw a curve: http://forums.autodesk.com/t5/revit-api/<API key>/td-p/6063446 - distance from family instance to floor or elevation http://forums.autodesk.com/t5/revit-api/<API key>/m-p/6058148 #dotnet #csharp #fsharp #python #grevit #responsivedesign #typepad #ah8 #augi #dotnet #stingray #rendering #3dweb #3dviewAPI #html5 #threejs #webgl #3d #mobile #vr #ecommerce #Markdown #Fusion360 #Fusion360Hackathon #javascript #RestSharp #restAPI #mongoosejs #mongodb #nodejs #rtceur #xaml #3dweb #a360 #3dwebaccel #webgl @adskForge @AutodeskReCap @Adsk3dsMax #revitAPI #bim #aec #3dwebcoder #adsk #adskdevnetwrk @jimquanci @keanw #au2015 #rtceur #eraofconnection #RMS @researchdigisus @adskForge #3dwebaccel #a360 @github Revit API, Jeremy Tammik, akn_include Index, Debug, Curves, Distance, Deleting PrintSetup #revitAPI #3dwebcoder @AutodeskRevit #bim #aec #adsk #adskdevnetwrk Here is another bunch of issues addressed in the Revit API discussion forum and elsewhere in the past day or two &ndash; The Building Coder blog source text and index &ndash; Reloading add-in DLL for debugging without restart &ndash; Drawing curves from a list of points &ndash; Determining the distance of a family instance to the floor or elevation &ndash; Deleting a PrintSetup or ViewSheetSetting... <h3>Index, Debug, Curves, Distance, Deleting PrintSetup</h3> <p>Here is another bunch of issues addressed in the <a href="http://forums.autodesk.com/t5/revit-api/bd-p/160">Revit API discussion forum</a> and elsewhere in the past day or two:</p> <ul> <li><a href="#2">The Building Coder blog source text and index</a></li> <li><a href="#3">Reloading add-in DLL for debugging without restart</a></li> <li><a href="#4">Drawing curves from a list of points</a></li> <li><a href="#5">Determining the distance of a family instance to the floor or elevation</a></li> <li><a href="#6">Deleting a PrintSetup or ViewSheetSetting</a></li> </ul> <h4><a name="2"></a>The Building Coder Blog Source Text and Index</h4> <p>As you may have noticed, I published <a href="http://thebuildingcoder.typepad.com/blog/2016/02/<API key>.html">The Building Coder entire source text and complete index on GitHub</a> last week.</p> <p>If you look now at the right hand side bar or the navigation bar at the bottom, you will see the two new entries <a href="https://jeremytammik.github.io/tbc/a">index</a> and <a href="https://github.com/jeremytammik/tbc">source</a> that take you straight there.</p> <p><center> <img src="img/index_finger.jpg" alt="Index finger" width="360"> </center></p> <p>I hope you find the complete index and full source text access useful!</p> <h4><a name="3"></a>Reloading Add-in DLL for Debugging Without Restart</h4> <p>We have often dealt here with topics around <a href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.49">edit and continue, debug without restart and 'live development'</a>.</p> <p>This note is just to point out another contribution to that series, a StackOverflow question on <a href="http://stackoverflow.com/questions/33525908/<API key>">Revit API load command &ndash; auto reload</a>, in case you are interested in this too.</p> <h4><a name="4"></a>Drawing Curves from a List of Points</h4> <p>This is a very common need, brought up again by Dirk Neethling in the thread on <a href="http://forums.autodesk.com/t5/revit-api/<API key>/td-p/6063446">drawing a curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</a>:</p> <p><strong>Question:</strong> I'm trying to draw a contiguous curve in an ActiveUIDocument.Document, using a List of <code>XYZ</code> objects. Most examples draw a curve in a FamilyDocument, and I could not adapt it for an ActiveUIDocument.Document. Is it necessary to create a plane for such a curve?</p> <p><strong>Answer:</strong> Yes, it is.</p> <p>You can create a model curve or a detail curve, and both reside on a sketch plane.</p> <p>If you care about efficiency, you might care to reuse the sketch planes as much as possible.</p> <p>Note that some existing samples create a new sketch plane for each individual curve, which is not a nice thing to do.</p> <p>The Building Coder provides a number of samples, e.g.:</p> <ul> <li><a href="http://thebuildingcoder.typepad.com/blog/2010/01/<API key>.html">Model and Detail Curve Colour</a></li> <li><a href="http://thebuildingcoder.typepad.com/blog/2010/05/<API key>.html">Detail Curve Must Indeed lie in Plane</a></li> <li><a href="http://thebuildingcoder.typepad.com/blog/2010/05/model-curve-creator.html">Model Curve Creator</a></li> <li><a href="http://thebuildingcoder.typepad.com/blog/2013/08/<API key>.html">Generating a MidCurve Between Two Curve Elements</a></li> </ul> <p>A <code>Creator</code> model curve helper class is also included in <a href="https://github.com/jeremytammik/<API key>">The Building Coder samples</a>, in the module <a href="https://github.com/jeremytammik/<API key>/blob/master/BuildingCoder/BuildingCoder/Creator.cs">Creator.cs</a>.</p> <p>Furthermore, the <code>CmdDetailCurves</code> sample command shows how to create detail lines, in the module <a href="https://github.com/jeremytammik/<API key>/blob/master/BuildingCoder/BuildingCoder/CmdDetailCurves.cs">CmdDetailCurves.cs</a>.</p> <p>The GitHub repository master branch is always up to date, and previous versions of the Revit API are supported by different <a href="https://github.com/jeremytammik/<API key>/releases">releases</a>.</p> <p>As you should probably know if you are reading this, detail lines can only be created and viewed in a plan view.</p> <p>Also, it is useful to know that the view graphics and visibility settings enable you to control the model line appearance, e.g. colour and line type.</p> <h4><a name="5"></a>Determining the Distance of a Family Instance to the Floor or Elevation</h4> <p>Here is another common need, to determine the <a href="http://forums.autodesk.com/t5/revit-api/<API key>/m-p/6058148">distance from family instance to the floor or elevation below</a>, raised by Kailash Kute:</p> <p><strong>Question:</strong> I want to calculate the elevation (distance) of a selected family instance with respect to the Floor or Level below it.</p> <p>How to get the floor or level which is below the selected family instance?</p> <p>How to get the elevation of the instance with respect to that level?</p> <p>Later:</p> <p>The help text on <a href="http://help.autodesk.com/view/RVT/2016/ENU/?guid=<API key>">finding geometry by ray projection</a> (<a href="http://forums.autodesk.com/t5/revit-api/<API key>/m-p/6057571">Revit 2014 Czech</a>, <a href="http://help.autodesk.com/view/RVT/2014/CSY/?guid=<API key>">Revit 2015 English</a>) provides part of the answer, but is valid only if there is a Floor below the family instance.</p> <p>If I only have a Level below it, the ray passing through does not return any distance (proximity).</p> <p>Now my question gets filtered down to: How to find Intersection with Level?</p> <p><strong>Answer:</strong> If all you need is the distance between the family instance and the level, I see a possibility for a MUCH easier approach:</p> <p>Ask the family instance for its bounding box and determine its bottom Z coordinate <code>Z1</code>.</p> <p>Determine the elevation <code>Z0</code> of the level.</p> <p>The distance you seek is <code>Z1 - Z0</code>.</p> <p><strong>Response:</strong> A little bit of work around with points got from bounding box and done.</p> <p>Wow, really a MUCH easier approach.</p> <h4><a name="6"></a>Deleting a PrintSetup or ViewSheetSetting</h4> <p>Eirik Aasved Holst yesterday brought up and solved the question that regularly comes up on how to <a href="http://forums.autodesk.com/t5/revit-api/<API key>/m-p/6063449">delete PrintSetup and ViewSheetSettings</a>:</p> <p><strong>Question:</strong> <a href="https://en.wikipedia.org/wiki/TL;DR">TL;DR</a>: Is there a way of deleting a specific PrintSetup and ViewSheetSetting programmatically if I know its name?</p> <p>Long version:</p> <p>I'm writing a function that can print a large set of sheets in various paper sizes to separate/combined PDFs.</p> <p>To be able to apply the PrintSetup, it needs to be set in an "in-session" state and saved using <code>SaveAs()</code> (to my knowledge).</p> <p>But after saving an "in-session"-PrintSetup to a new PrintSetup, I cannot find a way of deleting said new PrintSetup.</p> <p>After the PrintManager has printed the sheets, I'm stuck with lots of temporary PrintSetups. The same goes for ViewSheetSettings.</p> <pre class="code"> try { pMgr.PrintSetup.Delete(); pMgr.ViewSheetSetting.Delete(); } catch (Exception ex) { //Shows 'The <in-session> print setup cannot be deleted' TaskDialog.Show("REVIT", ex.Message); } </pre> <p>So the problem is: I'm not able to apply the PrintSetup and ViewSheetSettings unless I'm using them "in-session" and saving them using SaveAs, and I'm not able to delete the PrintSetup and ViewSheetSettings afterwards.</p> <p>Has anyone experienced similar issues, or found a way to solve it?</p> <p><strong>Answer:</strong> This discussion on <a href="http://stackoverflow.com/questions/14946217/<API key>">setting the ViewSheetSetting.InSession.Views property</a> makes one brief mention of deleting a print setting, afaik can tell.</p> <p>This other one on <a href="http://forums.autodesk.com/t5/revit-api/<API key>/td-p/3676618">PrinterManager PrintSetup not applying settings</a> appears to suggest a similar approach.</p> <p><strong>Response:</strong> These links unfortunately do not help much.</p> <p>It would be nice if it was possible to loop through the saved PrintSetup's, or at least get a PrintSetup if you knew it's name, so that you can delete it.</p> <p>In the thread on <a href="http://forums.autodesk.com/t5/revit-api/<API key>/td-p/3676618">PrinterManager PrintSetup not applying settings</a>, the user aricke mentions:</p> <blockquote> <p>Note that once you have done the SaveAs, you can then delete the newly saved PrintSetup.</p> </blockquote> <p>I cannot seem to get that to work; even the following code raises an exception:</p> <pre class="code"> pSetup.SaveAs("tmp"); pSetup.Delete(); </pre> <p><strong>Solution:</strong> I finally managed to create a CleanUp-method that works. If others are interested, here it goes:</p> <pre class="code"> &nbsp; <span class="blue">private</span> <span class="blue">void</span> CleanUp( <span class="teal">Document</span> doc ) &nbsp; { &nbsp; &nbsp; <span class="blue">var</span> pMgr = doc.PrintManager; &nbsp; &nbsp; <span class="blue">using</span>( <span class="blue">var</span> trans = <span class="blue">new</span> <span class="teal">Transaction</span>( doc ) ) &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; trans.Start( <span class="maroon">&quot;CleanUp&quot;</span> ); &nbsp; &nbsp; &nbsp; <API key>( doc, pMgr ); &nbsp; &nbsp; &nbsp; <API key>( doc, pMgr ); &nbsp; &nbsp; &nbsp; trans.Commit(); &nbsp; &nbsp; } &nbsp; } &nbsp; &nbsp; <span class="blue">private</span> <span class="blue">void</span> <API key>( &nbsp; &nbsp; <span class="teal">Document</span> doc, <span class="teal">PrintManager</span> pMgr ) &nbsp; { &nbsp; &nbsp; <span class="blue">var</span> printSetup = pMgr.PrintSetup; &nbsp; &nbsp; <span class="blue">foreach</span>( <span class="blue">var</span> <API key> &nbsp; &nbsp; &nbsp; <span class="blue">in</span> ( <span class="blue">from</span> element &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">in</span> <span class="blue">new</span> <span class="teal"><API key></span>( doc ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .OfClass( <span class="blue">typeof</span>( <span class="teal">PrintSetting</span> ) ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ToElements() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">where</span> element.Name.Contains( _tmpName ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;&amp; element.IsValidObject &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">select</span> element <span class="blue">as</span> <span class="teal">PrintSetting</span> ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ToList() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Distinct( <span class="blue">new</span> EqualElementId() ) ) &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; printSetup.CurrentPrintSetting &nbsp; &nbsp; &nbsp; &nbsp; = pMgr.PrintSetup.InSession; &nbsp; &nbsp; &nbsp; &nbsp; printSetup.CurrentPrintSetting &nbsp; &nbsp; &nbsp; &nbsp; = <API key> <span class="blue">as</span> <span class="teal">PrintSetting</span>; &nbsp; &nbsp; &nbsp; &nbsp; pMgr.PrintSetup.Delete(); &nbsp; &nbsp; } &nbsp; } &nbsp; &nbsp; <span class="blue">private</span> <span class="blue">void</span> <API key>( &nbsp; &nbsp; <span class="teal">Document</span> doc, <span class="teal">PrintManager</span> pMgr ) &nbsp; { &nbsp; &nbsp; <span class="blue">var</span> viewSheetSettings = pMgr.ViewSheetSetting; &nbsp; &nbsp; <span class="blue">foreach</span>( <span class="blue">var</span> <API key> &nbsp; &nbsp; &nbsp; <span class="blue">in</span> ( <span class="blue">from</span> element &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">in</span> <span class="blue">new</span> <span class="teal"><API key></span>( doc ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .OfClass( <span class="blue">typeof</span>( <span class="teal">ViewSheetSet</span> ) ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ToElements() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">where</span> element.Name.Contains( _tmpName ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;&amp; element.IsValidObject &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="blue">select</span> element <span class="blue">as</span> <span class="teal">ViewSheetSet</span> ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ToList() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Distinct( <span class="blue">new</span> EqualElementId() ) ) &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; viewSheetSettings.CurrentViewSheetSet &nbsp; &nbsp; &nbsp; &nbsp; = pMgr.ViewSheetSetting.InSession; &nbsp; &nbsp; &nbsp; &nbsp; viewSheetSettings.CurrentViewSheetSet &nbsp; &nbsp; &nbsp; &nbsp; = <API key> <span class="blue">as</span> <span class="teal">ViewSheetSet</span>; &nbsp; &nbsp; &nbsp; &nbsp; pMgr.ViewSheetSetting.Delete(); &nbsp; &nbsp; } &nbsp; } </pre> <p>Many thanks to Eirik for discovering and sharing this solution!</p>
use SEPSLoader go -- Statement for schema creation DECLARE @sql NVARCHAR(MAX) SET @sql ='CREATE SCHEMA StackExchange AUTHORIZATION [dbo]' IF NOT EXISTS(SELECT name FROM sys.schemas WHERE name = 'StackExchange') begin EXEC sp_executesql @sql; end -- NOTE: StackExchange is replaced by the name of the site IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[Badges]') AND type in (N'U')) DROP TABLE StackExchange.[Badges] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[Comments]') AND type in (N'U')) DROP TABLE StackExchange.[Comments] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[Posts]') AND type in (N'U')) DROP TABLE StackExchange.[Posts] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[PostTags]') AND type in (N'U')) DROP TABLE StackExchange.[PostTags] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[PostTypes]') AND type in (N'U')) DROP TABLE StackExchange.[PostTypes] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[Users]') AND type in (N'U')) DROP TABLE StackExchange.[Users] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[Votes]') AND type in (N'U')) DROP TABLE StackExchange.[Votes] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'StackExchange.[VoteTypes]') AND type in (N'U')) DROP TABLE StackExchange.[VoteTypes] IF EXISTS (SELECT * FROM sys.objects WHERE OBJECT_ID = OBJECT_ID(N'StackExchange.[PostLinks]') AND type IN (N'U')) DROP TABLE StackExchange.[PostLinks] IF EXISTS (SELECT * FROM sys.objects WHERE OBJECT_ID = OBJECT_ID(N'StackExchange.[LinkTypes]') AND type IN (N'U')) DROP TABLE StackExchange.[LinkTypes] SET ansi_nulls ON SET quoted_identifier ON SET ansi_padding ON CREATE TABLE StackExchange.[LinkTypes] ( Id INT NOT NULL, [Type] VARCHAR(40) NOT NULL, CONSTRAINT PK_LinkTypes PRIMARY KEY CLUSTERED (Id ASC) ); CREATE TABLE StackExchange.[VoteTypes] ( [Id] [INT] NOT NULL, [Name] [VARCHAR](40) NOT NULL , CONSTRAINT [PK__VoteType] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] )ON [PRIMARY] SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[PostTypes] ( [Id] [INT] NOT NULL, [Type] [NVARCHAR](10) NOT NULL , CONSTRAINT [PK_PostTypes] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] IF 0 = 1--SPLIT BEGIN SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[PostTags] ( [PostId] [INT] NOT NULL, [Tag] [NVARCHAR](50) NOT NULL , CONSTRAINT [PK_PostTags_1] PRIMARY KEY CLUSTERED ( [PostId] ASC,[Tag] ASC ) ON [PRIMARY] ) ON [PRIMARY] END INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(1, N'<API key>') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(2, N'UpMod') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(3, N'DownMod') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(4, N'Offensive') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(5, N'Favorite') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(6, N'Close') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(7, N'Reopen') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(8, N'BountyStart') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(9, N'BountyClose') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(10,N'Deletion') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(11,N'Undeletion') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(12,N'Spam') INSERT StackExchange.[VoteTypes] ([Id], [Name]) VALUES(13,N'InformModerator') INSERT StackExchange.[PostTypes] ([Id], [Type]) VALUES(1, N'Question') INSERT StackExchange.[PostTypes] ([Id], [Type]) VALUES(2, N'Answer') INSERT StackExchange.[LinkTypes] ([Id], [Type]) VALUES(1, N'Linked') INSERT StackExchange.[LinkTypes] ([Id], [Type]) VALUES(3, N'Duplicate') IF 0 = 1--FULLTEXT BEGIN IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'StackExchange.[Posts]')) ALTER FULLTEXT INDEX ON StackExchange.[Posts] DISABLE IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'StackExchange.[Posts]')) DROP FULLTEXT INDEX ON StackExchange.[Posts] IF EXISTS (SELECT * FROM sysfulltextcatalogs ftc WHERE ftc.name = N'PostFullText') DROP FULLTEXT CATALOG [PostFullText] CREATE FULLTEXT CATALOG [PostFullText]WITH ACCENT_SENSITIVITY = ON AUTHORIZATION dbo END SET ansi_padding OFF SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[Votes] ( [Id] [INT] NOT NULL, [PostId] [INT] NOT NULL, [UserId] [INT] NULL, [BountyAmount] [INT] NULL, [VoteTypeId] [INT] NOT NULL, [CreationDate] [DATETIME] NOT NULL , CONSTRAINT [PK_Votes] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [IX_Votes_Id_PostId] ON StackExchange.[Votes] ( [Id] ASC, [PostId] ASC) ON [PRIMARY] CREATE NONCLUSTERED INDEX [IX_Votes_VoteTypeId] ON StackExchange.[Votes] ( [VoteTypeId] ASC) ON [PRIMARY] END SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[Users] ( [Id] [INT] NOT NULL, [AboutMe] [NVARCHAR](MAX) NULL, [Age] [INT] NULL, [CreationDate] [DATETIME] NOT NULL, [DisplayName] [NVARCHAR](40) NOT NULL, [DownVotes] [INT] NOT NULL, [EmailHash] [NVARCHAR](40) NULL, [LastAccessDate] [DATETIME] NOT NULL, [Location] [NVARCHAR](100) NULL, [Reputation] [INT] NOT NULL, [UpVotes] [INT] NOT NULL, [Views] [INT] NOT NULL, [WebsiteUrl] [NVARCHAR](200) NULL, [AccountId] [INT] NULL , CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [<API key>] ON StackExchange.[Users] ( [DisplayName] ASC) ON [PRIMARY] END SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[Posts] ( [Id] [INT] NOT NULL, [AcceptedAnswerId] [INT] NULL, [AnswerCount] [INT] NULL, [Body] [NTEXT] NOT NULL, [ClosedDate] [DATETIME] NULL, [CommentCount] [INT] NULL, [CommunityOwnedDate] [DATETIME] NULL, [CreationDate] [DATETIME] NOT NULL, [FavoriteCount] [INT] NULL, [LastActivityDate] [DATETIME] NOT NULL, [LastEditDate] [DATETIME] NULL, [<API key>] [NVARCHAR](40) NULL, [LastEditorUserId] [INT] NULL, [OwnerUserId] [INT] NULL, [ParentId] [INT] NULL, [PostTypeId] [INT] NOT NULL, [Score] [INT] NOT NULL, [Tags] [NVARCHAR](150) NULL, [Title] [NVARCHAR](250) NULL, [ViewCount] [INT] NOT NULL , CONSTRAINT [PK_Posts] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] -- INDICES ,CONSTRAINT [<API key>] UNIQUE NONCLUSTERED ([Id] ASC,[AcceptedAnswerId] ASC ) ON [PRIMARY], -- INDICES CONSTRAINT [<API key>] UNIQUE NONCLUSTERED ([Id] ASC,[OwnerUserId] ASC ) ON [PRIMARY], -- INDICES CONSTRAINT [<API key>] UNIQUE NONCLUSTERED ([Id] ASC,[ParentId] ASC ) ON [PRIMARY] )ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [<API key>] ON StackExchange.[Posts] ( [Id] ASC, [PostTypeId] ASC) ON [PRIMARY] CREATE NONCLUSTERED INDEX [IX_Posts_PostType] ON StackExchange.[Posts] ( [PostTypeId] ASC) ON [PRIMARY] END IF 0 = 1--FULLTEXT BEGIN EXEC dbo.Sp_fulltext_table @tabname = N'StackExchange.[Posts]' , @action = N'create' , @keyname = N'PK_Posts' , @ftcat = N'PostFullText' DECLARE @lcid INT SELECT @lcid = lcid FROM MASTER.dbo.syslanguages WHERE alias = N'English' EXEC dbo.Sp_fulltext_column @tabname = N'StackExchange.[Posts]' , @colname = N'Body' , @action = N'add' , @language = @lcid SELECT @lcid = lcid FROM MASTER.dbo.syslanguages WHERE alias = N'English' EXEC dbo.Sp_fulltext_column @tabname = N'StackExchange.[Posts]' , @colname = N'Title' , @action = N'add' , @language = @lcid EXEC dbo.Sp_fulltext_table @tabname = N'StackExchange.[Posts]' , @action = N'<API key>' EXEC dbo.Sp_fulltext_table @tabname = N'StackExchange.[Posts]' , @action = N'<API key>' END SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[Comments] ( [Id] [INT] NOT NULL, [CreationDate] [DATETIME] NOT NULL, [PostId] [INT] NOT NULL, [Score] [INT] NULL, [Text] [NVARCHAR](700) NOT NULL, [UserId] [INT] NULL , CONSTRAINT [PK_Comments] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [<API key>] ON StackExchange.[Comments] ( [Id] ASC, [PostId] ASC) ON [PRIMARY] CREATE NONCLUSTERED INDEX [<API key>] ON StackExchange.[Comments] ( [Id] ASC, [UserId] ASC) ON [PRIMARY] END SET ansi_nulls ON SET quoted_identifier ON CREATE TABLE StackExchange.[Badges] ( [Id] [INT] NOT NULL, [Name] [NVARCHAR](40) NOT NULL, [UserId] [INT] NOT NULL, [Date] [DATETIME] NOT NULL , CONSTRAINT [PK_Badges] PRIMARY KEY CLUSTERED ( [Id] ASC ) ON [PRIMARY] ) ON [PRIMARY] CREATE TABLE StackExchange.[PostLinks] ( Id INT NOT NULL, CreationDate DATETIME NOT NULL, PostId INT NOT NULL, RelatedPostId INT NOT NULL, LinkTypeId TINYINT NOT NULL, CONSTRAINT [PK_PostLinks] PRIMARY KEY CLUSTERED ([Id] ASC) ) IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [IX_Badges_Id_UserId] ON StackExchange.[Badges] ( [Id] ASC, [UserId] ASC) ON [PRIMARY] END
var AWS = require('aws-sdk'); var Policy = require("./s3post").Policy; var helpers = require("./helpers"); var POLICY_FILE = "policy.json"; var schedule = require('node-schedule'); var Worker = function(sqsCommnad, s3Object, simpleData){ var queue = sqsCommnad; var s3 = s3Object; var simpleDataAuth = simpleData; var policyData = helpers.readJSONFile(POLICY_FILE); var policy = new Policy(policyData); var bucket_name = policy.<API key>("bucket"); Worker.prototype.job = function(){ var run = schedule.scheduleJob('*/4 * * * * *', function(){ queue.recv(function(err, data){ if (err) { console.log(err); return; } console.log({Body : data.Body, MD5OfBody : data.MD5OfBody}); params = { Bucket: bucket_name, Key: data.Body } s3.getObject(params, function(err, data) { if (err) { console.log(err, err.stack); } else { var request = require('request'); var mime = require('mime'); var gm = require('gm').subClass({ imageMagick: true }); var src = 'http://s3-us-west-2.amazonaws.com/'+params.Bucket+'/'+params.Key; gm(request(src, params.Key)) .rotate('black', 15) .stream(function(err, stdout, stderr) { var buf = new Buffer(''); stdout.on('data', function(res) { buf = Buffer.concat([buf, res]); }); stdout.on('end', function(data) { var atr = { Bucket: params.Bucket, Key: params.Key, Body: buf, ACL: 'public-read', Metadata: { "username" : "Szymon Glowacki", "ip" : "192.168.1.10" } }; s3.putObject(atr, function(err, res) { console.log("done"); }); }); }); } }); }); }); } } module.exports = Worker;
# TODO When raising an exception pass a lambda function, the function being the module/path/name thing ERROR = {'default': "Unknown engine error ({0})", 400: "Bad request sent to search API ({0})", 401: "Incorrect API Key ({0})", 403: "Correct API but request refused ({0})", 404: "Bad request sent to search API ({0})"} class SearchException(Exception): """ Abstract class representing an ifind search exception. """ def __init__(self, module, message): """ SearchException constructor. Args: module (str): name of module/class that's raising exception message (str): exception message to be displayed Usage: raise SearchException("Test", "this is an error") """ message = "{0} - {1}".format(module, message) Exception.__init__(self, message) class <API key>(SearchException): """ Thrown when an Engine connectivity error occurs. Returns specific response message if status code specified. """ def __init__(self, engine, message, code=None): """ EngineException constructor. Args: engine (str): name of engine that's raising exception message (str): exception message to be displayed (ignored usually here) Kwargs: code (int): response status code of issued request Usage: raise EngineException("Bing", "", code=200) """ self.message = message self.code = code if code: self.message = ERROR.get(code, ERROR['default']).format(self.code) SearchException.__init__(self, engine, self.message) class EngineLoadException(SearchException): """ Thrown when an Engine can't be dynamically loaded. """ pass class <API key>(SearchException): """ Thrown when an Engine's API key hasn't been provided. """ pass class QueryParamException(SearchException): """ Thrown when a query parameters incompatible or missing. """ pass class <API key>(SearchException): """ Thrown when cache connectivity error occurs. """ pass class <API key>(SearchException): """ Thrown when an invalid query is passed to engine's search method. """ pass class RateLimitException(SearchException): """ Thrown when an engine's request rate limit has been exceeded. """ pass
import React, { Component } from 'react' import { Form, Grid, Image, Transition } from 'shengnian-ui-react' const transitions = [ 'scale', 'fade', 'fade up', 'fade down', 'fade left', 'fade right', 'horizontal flip', 'vertical flip', 'drop', 'fly left', 'fly right', 'fly up', 'fly down', 'swing left', 'swing right', 'swing up', 'swing down', 'browse', 'browse right', 'slide down', 'slide up', 'slide right', ] const options = transitions.map(name => ({ key: name, text: name, value: name })) export default class <API key> extends Component { state = { animation: transitions[0], duration: 500, visible: true } handleChange = (e, { name, value }) => this.setState({ [name]: value }) handleVisibility = () => this.setState({ visible: !this.state.visible }) render() { const { animation, duration, visible } = this.state return ( <Grid columns={2}> <Grid.Column as={Form}> <Form.Select label='Choose transition' name='animation' onChange={this.handleChange} options={options} value={animation} /> <Form.Input label={`Duration: ${duration}ms `} min={100} max={2000} name='duration' onChange={this.handleChange} step={100} type='range' value={duration} /> <Form.Button content={visible ? 'Unmount' : 'Mount'} onClick={this.handleVisibility} /> </Grid.Column> <Grid.Column> <Transition.Group animation={animation} duration={duration}> {visible && <Image centered size='small' src='/assets/images/leaves/4.png' />} </Transition.Group> </Grid.Column> </Grid> ) } }
#!/bin/bash QBIN=$(which qdyn5_r8) OK="(\033[0;32m OK \033[0m)" FAILED="(\033[0;31m FAILED \033[0m)" steps=( $(ls -1v *inp | sed 's/.inp for step in ${steps[@]} do echo "Running step ${step}" if ${QBIN} ${step}.inp > ${step}.log then echo -e "$OK" cp ${step}.re ${step}.re.rest else echo -e "$FAILED" echo "Check output (${step}.log) for more info." exit 1 fi done
# <API key> Return the vertical-rhythm setting scope class Return **{ [String](http://www.sass-lang.com/documentation/file.SASS_REFERENCE.html#sass-script-strings) }** The vertical-rhythm scope class from settings.vertical-rhythm.scope-class Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:olivier.bossel@gmail.com) [https:
export class Guest { constructor(public name: String, public quantity: number){ } }
FROM sameersbn/ubuntu:14.04.20150805 MAINTAINER sameer@damagehead.com ENV REDMINE_VERSION=3.1.0 \ REDMINE_USER="redmine" \ REDMINE_HOME="/home/redmine" \ REDMINE_LOG_DIR="/var/log/redmine" \ SETUP_DIR="/var/cache/redmine" \ RAILS_ENV=production ENV REDMINE_INSTALL_DIR="${REDMINE_HOME}/redmine" \ REDMINE_DATA_DIR="${REDMINE_HOME}/data" RUN apt-key adv --keyserver keyserver.ubuntu.com --recv <API key> \ && echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main" >> /etc/apt/sources.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv <API key> \ && echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main" >> /etc/apt/sources.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv <API key> \ && echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list \ && wget --quiet -O - https: && echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list \ && apt-get update \ && apt-get install -y supervisor logrotate nginx mysql-client postgresql-client \ imagemagick subversion git cvs bzr mercurial rsync ruby2.1 locales openssh-client \ gcc g++ make patch pkg-config ruby2.1-dev libc6-dev zlib1g-dev libxml2-dev \ libmysqlclient18 libpq5 libyaml-0-2 libcurl3 libssl1.0.0 \ libxslt1.1 libffi6 zlib1g gsfonts \ && update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \ && gem install --no-document bundler \
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dosen extends MY_Controller { public $data = array( 'breadcrumb' => 'Dosen', 'pesan' => '', 'subtitle' => '', 'main_view' => 'viewDosen', ); public function __construct(){ parent::__construct(); $this->load->model('Dosen_model','dosen',TRUE); $this->load->model('Prodi_model','prodi',TRUE); } public function index(){ $this->data['prodi'] = $this->prodi->get_datatables(); $this->load->view('template',$this->data); } public function ajax_list() { $list = $this->dosen->get_datatables(); $data = array(); $no = $_POST['start']; foreach ($list as $dosen) { $no++; $row = array( "id_dosen" => $dosen['id_dosen'], "nama_dosen" => $dosen['nama_dosen'], "nama_prodi" => $dosen['nama_prodi'] ); $data[] = $row; } $output = array( "draw" => $_POST['draw'], "recordsTotal" => $this->dosen->count_all(), "recordsFiltered" => $this->dosen->count_filtered(), "data" => $data, ); //output to json format echo json_encode($output); } public function ajax_edit($id) { $data = $this->dosen->get_by_id($id); echo json_encode($data); } public function ajax_add() { $this->_validate(); $data = array( 'id_dosen' => $this->input->post('id'), 'nama_dosen' => $this->input->post('nama_dosen'), 'id_prodi' => $this->input->post('id_prodi') ); $insert = $this->dosen->save($data); echo json_encode(array("status" => TRUE)); } public function ajax_update() { $this->_validate(); $data = array( 'id_dosen' => $this->input->post('id'), 'nama_dosen' => $this->input->post('nama_dosen'), 'id_prodi' => $this->input->post('id_prodi') ); $this->dosen->update($data); echo json_encode(array("status" => TRUE)); } public function ajax_delete($id) { $this->dosen->delete_by_id($id); echo json_encode(array("status" => TRUE)); } private function _validate() { $data = array(); $data['error_string'] = array(); $data['inputerror'] = array(); $data['status'] = TRUE; if($this->input->post('nama_dosen') == '') { $data['inputerror'][] = 'nama_dosen'; $data['error_string'][] = 'Nama Dosen Belum Diisi'; $data['status'] = FALSE; } if($this->input->post('id_prodi') == '') { $data['inputerror'][] = 'id_prodi'; $data['error_string'][] = 'Program Studi Belum Dipilih'; $data['status'] = FALSE; } if($data['status'] === FALSE) { echo json_encode($data); exit(); } } } ?>
import {server} from './initializers' module.exports = function startServer(){ server.listen(8080) }
using System; using System.ServiceModel; namespace SoapCore.Tests.Wsdl.Services { [ServiceContract] public interface <API key> { [OperationContract] NulEnum? GetEnum(string text); } public class NullableEnumService : <API key> { public NulEnum? GetEnum(string text) { throw new <API key>(); } } }
var Game = { map: { width: 980, height: 62 * 12 }, tiles: { size: 62, count: [100, 12] }, sprite: { 8: 'LAND_LEFT', 2: 'LAND_MID', 10: 'LAND_RIGHT', 9: 'LAND', 5: 'WATER_TOP', 12: 'WATER', 4: 'STONE_WITH_MONEY', 11: 'STONE', 6: 'CACTUS', 13: 'GRASS', 7: 'START', 1: 'END' } }; Crafty.init(Game.map.width, Game.map.height, document.getElementById('game')); Crafty.background('url(./assets/images/bg.png)'); Crafty.scene('Loading');
# Demo mode Smart meter has a demo mode that is intended to make demonstrating the product and system-level testing easier. Demo mode allows creating situations that would be hard to create otherwise (e.g. connection to cloud is lost between price request and parking event registering). Demo mode is to be used in development only. This document instructs how to configure, enable and use demo mode. ## Enable demo mode To enable demo mode, add line **demoMode;1** to smart meter configuration (config/global.txt). To disable demo mode, change this to **demoMode;0** or remove the line. ## Configure demo mode Demomode has it's own configuration file, that will be installed to **config/demoConfig.txt** in deploy directory after successful build. Edit this file to change demo mode settings. The configuration file consists of following lines: - Empty lines, which are ignored. - Comments starting with '#', which are ignored. - Price specification. - Key-value pairs separated with semicolon. Price specification sets a predefined value for parking price information. Give price information in format **price;price per hour (EUR):time limit (min):resolution (min)**, e.g. **price;1.2:120:1**. If price information is left unspecified, price is fetched from firebase like normally. Every other key-value pair will specify the number of parking event registering request and it's demonstrated value. The key represents the number of parking registering request. The first parking event reqistering request is indexed as '0', and each request after that will increase the index by one. Not all requests need to be defined. If an index is missing from configuration, smart meter will handle requests as in normal mode. The second part (value) is an integer representing the situation to be demonstrated on request specified by the key. The possible values are listed in the table below. Value | Explanation | 0 | Replace the actual payment token in request with a valid test token. Request is then forwarded to the cloud, and handled as normally. 1 | Request to the cloud times out. The request is not actually sent to the cloud, but smart meter will write a timeout error message to BLENode's response fifo. 2 | Payment token is invalid. The request is not actually sent to the cloud, but smart meter will write invalid token error message to BLENode's response fifo. 3 | Other error in the cloud. The request is not actually sent to the cloud, but smart meter will write error message to BLENode's response fifo. 4 | Forced Ok response. The request is not actually sent to the cloud, but smart meter will write OK message to BLENode's response fifo. any other | Unknown command. Smart meter responds with error message about unknown command. Example configuration: # My demo config (config/demoConfig.txt) # Price is not fetched from cloud. price;1.2:120:1 # First request's payment token will be replaced with a valid test token 0;0 # Second request will time out. 1;1 # Third request is not defined, and is therefore handled normally. # Fourh request will have an invalid payment token, even if the actual token was valid. 3;2 # End of configuration. All requests after 4th are handled as normally. ## Using demo mode Other than separate configuration, demo mode needs no user guidance. Use smart meter as normally. Requests defined in configuration will be handled according to specified action, and others are handled normally.
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>uncss.io</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/main.min.css"/> <!--[if lt IE 9]> <script src="js/vendor/html5-3.6-respond-1.1.0.min.js"></script> <![endif] </head> <body> <!--[if lt IE 7]> <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http: <![endif] <div class="jumbotron"> <div class="container"> <h1>U<span class="title-capitalize">n</span>CSS<span class="title-capitalize">.io</span></h1> <h2>Automatically remove unused CSS rules to speed up your site load time</h2> <ol> <li>Enter the URL of your page</li> <li>We will detect all the CSS files that you are loading and we will remove all the unused CSS rules</li> <li>Copy paste that new consolidated CSS file. That's the only rules you will need for that page.</li> <li>See the documentation on <a href="https://github.com/giakki/uncss">GitHub</a></li> </ol> <hr> <div class="row"> <form class="col-lg-8 col-lg-offset-2"> <div class="input-group"> <input type="text" class="form-control" placeholder="Insert your URL here" id="url-input" name="url-input"> <span class="input-group-btn"> <button class="btn btn-default" id="get-css" type="submit">Get CSS!</button> </span> </div> </form> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-6 testimonial"> <div class="col-lg-10"> <p>"The fastest rule is the one that doesn’t exist. There’s a common strategy to combine stylesheet “modules” into one file for production. This makes for one big collection of rules, where some (lots) of them are likely not used by particular part of the site/application. Getting rid of unused rules is one of the best things your can do to optimize CSS performance"</p> <p>Source: <a href="http://perfectionkills.com/<API key>/">@kangax - perfectionkills.com</a></p> </div> <div class="col-lg-2"> <a href="https://twitter.com/kangax"> <img class="img-circle" alt="@kangax" src="img/kangax.png"> </a> </div> </div> <div class="col-lg-6 testimonial"> <div class="col-lg-10"> <p> "make sure that you get all your css as early as possible. Concatenate css files, minify them, remove redundant rules. Anything you can do to accelerate css, fetching of css, will help you get faster user experience"</p> <p>Ilya Grigorik (@igrigorik) is a web performance engineer and developer advocate at Google, where his focus is on making the web fast and driving adoption of performance best practices at Google and beyond.</p> <p><a href="http://parleys.com/play/<API key>/chapter45/about">Source</a></p> </div> <div class="col-lg-2"> <a href="https://twitter.com/igrigorik"> <img class="img-circle" alt="@igrigorik" src="img/igrigorik.png"> </a> </div> </div> </div> <div class="modal fade" id="results-modal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" id="results-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title">Your Results!</h4> </div> <div class="modal-body" id="results-body"> <div id="spinner">Fetching results...</div> </div> <div class="modal-footer hidden" id="modal-footer"> <a href="" class="btn btn-primary" id="view-button">View stylesheet</a> <button type="button" class="btn btn-primary" id="copy-button">Copy to clipboard</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <hr> <footer> <p>&copy; Giacomo Martino, Xavier Damman, 2014</p> </footer> </div> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/scripts.min.js"></script> </body> </html>
#!/usr/bin/python import os import re from lxml import etree as et import pcbmode.config as config from . import messages as msg # pcbmode modules from . import utils from .point import Point def makeExcellon(manufacturer='default'): ns = {'pcbmode':config.cfg['ns']['pcbmode'], 'svg':config.cfg['ns']['svg']} # Open the board's SVG svg_in = utils.openBoardSVG() drills_layer = svg_in.find("//svg:g[@pcbmode:sheet='drills']", namespaces=ns) excellon = Excellon(drills_layer) # Save to file base_dir = os.path.join(config.cfg['base-dir'], config.cfg['locations']['build'], 'production') base_name = "%s_rev_%s" % (config.brd['config']['name'], config.brd['config']['rev']) filename_info = config.cfg['manufacturers'][manufacturer]['filenames']['drills'] add = '_%s.%s' % ('drills', filename_info['plated'].get('ext') or 'txt') filename = os.path.join(base_dir, base_name + add) with open(filename, "wb") as f: for line in excellon.getExcellon(): f.write(line) class Excellon(): def __init__(self, svg): self._svg = svg self._ns = {'pcbmode':config.cfg['ns']['pcbmode'], 'svg':config.cfg['ns']['svg']} # Get all drill paths except for the ones used in the # drill-index drill_paths = self._svg.findall(".//svg:g[@pcbmode:type='component-shapes']//svg:path", namespaces=self._ns) drills_dict = {} for drill_path in drill_paths: diameter = drill_path.get('{'+config.cfg['ns']['pcbmode']+'}diameter') location = self._getLocation(drill_path) if diameter not in drills_dict: drills_dict[diameter] = {} drills_dict[diameter]['locations'] = [] drills_dict[diameter]['locations'].append(location) self._preamble = self._createPreamble() self._content = self._createContent(drills_dict) self._postamble = self._createPostamble() def getExcellon(self): return (self._preamble+ self._content+ self._postamble) def _createContent(self, drills): ex = [] for i, diameter in enumerate(drills): # This is probably not necessary, but I'm not 100% certain # that if the item order of a dict is gurenteed. If not # the result can be quite devastating where drill # diameters are wrong! # Drill index must be greater than 0 drills[diameter]['index'] = i+1 ex.append("T%dC%s\n" % (i+1, diameter)) ex.append('M95\n') # End of a part program header for diameter in drills: ex.append("T%s\n" % drills[diameter]['index']) for coord in drills[diameter]['locations']: ex.append(self._getPoint(coord)) return ex def _createPreamble(self): ex = [] ex.append('M48\n') # Beginning of a part program header ex.append('METRIC,TZ\n') # Metric, trailing zeros ex.append('G90\n') # Absolute mode ex.append('M71\n') # Metric measuring mode return ex def _createPostamble(self): ex = [] ex.append('M30\n') # End of Program, rewind return ex def _getLocation(self, path): """ Returns the location of a path, factoring in all the transforms of its ancestors, and its own transform """ location = Point() # We need to get the transforms of all ancestors that have # one in order to get the location correctly ancestors = path.xpath("ancestor::*[@transform]") for ancestor in ancestors: transform = ancestor.get('transform') transform_data = utils.parseTransform(transform) # Add them up location += transform_data['location'] # Add the transform of the path itself transform = path.get('transform') if transform != None: transform_data = utils.parseTransform(transform) location += transform_data['location'] return location def _getPoint(self, point): """ Converts a Point type into an Excellon coordinate """ return "X%.6fY%.6f\n" % (point.x, -point.y)
'use strict'; import _ from 'lodash'; import bluebird from 'bluebird'; import fs from 'fs'; import requireDir from 'require-dir'; import Logger from '../../logger'; bluebird.promisifyAll(fs); function main() { const imports = _.chain(requireDir('./importers')) .map('default') .map((importer) => importer.run()) .value(); return Promise.all(imports); } Logger.info('base.data.imports.imports: Running...'); main() .then(() => { Logger.info('base.data.imports.imports: Done!'); process.exit(0); }) .catch((error) => { Logger.error('base.data.imports.imports:', error); process.exit(1); });
// <API key>.cs created with MonoDevelop // User: ben at 1:31 P 19/03/2008 // To change standard headers go to Edit->Preferences->Coding->Standard Headers using System; namespace EmergeTk.Model { public class <API key> : Attribute { string name; public string Name { get { return name; } set { name = value; } } public string[] FieldNames { get { return fieldNames; } set { fieldNames = value; } } //field names are used for generating friendly names for vector types, such as enums. string[] fieldNames; public <API key>() { } public <API key>( string name ) { this.name = name; } } }
Ext.define('Category.view.GenericList', { extend: 'Ext.grid.Panel', alias: 'widget.genericlist', store: 'Generic', title: Raptor.getTag('category_header'), iconCls:'', initComponent: function() { this.columns = [{ header:Raptor.getTag('category_name'), dataIndex: 'name', flex: 1 }]; this.dockedItems = [{ dock: 'top', xtype: 'toolbar', items: [{ xtype: 'button', text: Raptor.getTag('add'), privilegeName:'insert', action:'addAction', iconCls:'icon-add' },{ xtype: 'button', text: Raptor.getTag('edit'), disabled:true, privilegeName:'edit/:id', action:'editAction', iconCls:'icon-edit' },{ xtype: 'button', text: Raptor.getTag('delete'), disabled:true, privilegeName:'delete/:id', action:'deleteAction', iconCls:'icon-del' }] }]; this.callParent(); } });