code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
var GoogleStrategy = require('passport-google-oauth').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, clientSecret: googleOAuthCreds.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('/'); }); }
lorentzlasson/node-angular-starter
auth.js
JavaScript
mit
2,087
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" // username === "nielsen" && password === "W@ts0n16" } ); 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)));; }
codycoggins/angular2-starter-cody
server/node-app-server.js
JavaScript
mit
1,845
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.get_bug_info_uncached(repository, bug_id), expiration=60) def get_bug_info_uncached(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)
reviewboard/reviewboard
reviewboard/hostingsvcs/bugtracker.py
Python
mit
1,633
using System; using System.Linq; namespace TypeScriptDefinitionsGenerator.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[] GetTopLevelNamespaces(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 ReplaceLastOccurrence(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 GetSecondLastIndexOf(this string source, string value) { return source.Substring(0, source.LastIndexOf(value, StringComparison.Ordinal)).LastIndexOf(value, StringComparison.Ordinal) + 1; } } }
slovely/TypeScriptDefinitionsGenerator
src/TypeScriptDefinitionsGenerator.Common/Extensions/StringExtensions.cs
C#
mit
1,661
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.m_sExplicitWhereFormat = "qarnflarglebarg" ; qb.m_asExplicitWhereParams = new String[] { "foo", "bar", "baz" } ; qb.deleteAll() ; assertNull( qb.m_sExplicitWhereFormat ) ; assertNull( qb.m_asExplicitWhereParams ) ; } /** Exercises {@link DeletionBuilder#executeQuery}. */ @Test public void testExecuteQuery() throws Exception // Any uncaught exception is a failure. { ContentResolver rslv = this.getMockContentResolver() ; int nDeleted = QueryBuilder.deleteFrom( rslv, m_mockery.uri ).execute(); assertEquals( MockContentProvider.EXPECTED_DELETE_COUNT, nDeleted ) ; } }
zerobandwidth-net/android
libZeroAndroid/src/androidTest/java/net/zer0bandwidth/android/lib/content/querybuilder/DeletionBuilderTest.java
Java
mit
1,665
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="theme-color" content="#222"> <meta name="generator" content="Hexo 4.2.0"> <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png"> <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png"> <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png"> <link rel="mask-icon" href="/images/logo.svg" color="#222"> <link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext"> <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css"> <script id="hexo-configurations"> var NexT = window.NexT || {}; var CONFIG = { hostname: new URL('https://iaanuzik.com').hostname, root: '/', scheme: 'Mist', version: '7.6.0', exturl: false, sidebar: {"position":"right","width":300,"display":"always","padding":80,"offset":12,"onmobile":false}, copycode: {"enable":true,"show_result":true,"style":"flat"}, back2top: {"enable":true,"sidebar":true,"scrollpercent":true}, bookmark: {"enable":true,"color":"#222","save":"auto"}, fancybox: false, mediumzoom: false, lazyload: false, pangu: false, comments: {"style":"tabs","active":null,"storage":true,"lazyload":true,"nav":null}, algolia: { appID: '', apiKey: '', indexName: '', hits: {"per_page":10}, labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"} }, localsearch: {"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}, path: '', motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}} }; </script> <meta property="og:type" content="website"> <meta property="og:title" content="KAZE"> <meta property="og:url" content="https://iaanuzik.com/archives/2019/04/index.html"> <meta property="og:site_name" content="KAZE"> <meta property="og:locale" content="en_US"> <meta property="article:author" content="神楽坂 川風"> <meta name="twitter:card" content="summary"> <link rel="canonical" href="https://iaanuzik.com/archives/2019/04/"> <script id="page-configurations"> // https://hexo.io/docs/variables.html CONFIG.page = { sidebar: "", isHome: false, isPost: false }; </script> <title>Archive | KAZE</title> <noscript> <style> .use-motion .brand, .use-motion .menu-item, .sidebar-inner, .use-motion .post-block, .use-motion .pagination, .use-motion .comments, .use-motion .post-header, .use-motion .post-body, .use-motion .collection-header { opacity: initial; } .use-motion .site-title, .use-motion .site-subtitle { opacity: initial; top: initial; } .use-motion .logo-line-before i { left: initial; } .use-motion .logo-line-after i { right: initial; } </style> </noscript> </head> <body itemscope itemtype="http://schema.org/WebPage"> <div class="container use-motion"> <div class="headband"></div> <header class="header" itemscope itemtype="http://schema.org/WPHeader"> <div class="header-inner"><div class="site-brand-container"> <div class="site-meta"> <div> <a href="/" class="brand" rel="start"> <span class="logo-line-before"><i></i></span> <span class="site-title">KAZE</span> <span class="logo-line-after"><i></i></span> </a> </div> </div> <div class="site-nav-toggle"> <div class="toggle" aria-label="Toggle navigation bar"> <span class="toggle-line toggle-line-first"></span> <span class="toggle-line toggle-line-middle"></span> <span class="toggle-line toggle-line-last"></span> </div> </div> </div> <nav class="site-nav"> <ul id="menu" class="menu"> <li class="menu-item menu-item-home"> <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>Home</a> </li> <li class="menu-item menu-item-archives"> <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>Archives</a> </li> <li class="menu-item menu-item-categories"> <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>Categories</a> </li> </ul> </nav> </div> </header> <div class="reading-progress-bar"></div> <a role="button" class="book-mark-link book-mark-link-fixed"></a> <main class="main"> <div class="main-inner"> <div class="content-wrap"> <div class="content"> <div class="post-block"> <div class="posts-collapse"> <div class="collection-title"> <span class="collection-header">Um..! 5 posts in total. Keep on posting.</span> </div> <div class="collection-year"> <h1 class="collection-header">2019</h1> </div> <article itemscope itemtype="http://schema.org/Article"> <header class="post-header"> <div class="post-meta"> <time itemprop="dateCreated" datetime="2019-04-21T16:02:02+00:00" content="2019-04-21"> 04-21 </time> </div> <h2 class="post-title"> <a class="post-title-link" href="/2019/04/21/first-fixed-oom/" itemprop="url"> <span itemprop="name">处女OOM</span> </a> </h2> </header> </article> </div> </div> </div> <script> window.addEventListener('tabs:register', () => { let activeClass = CONFIG.comments.activeClass; if (CONFIG.comments.storage) { activeClass = localStorage.getItem('comments_active') || activeClass; } if (activeClass) { let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`); if (activeTab) { activeTab.click(); } } }); if (CONFIG.comments.storage) { window.addEventListener('tabs:click', event => { if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return; let commentClass = event.target.classList[1]; localStorage.setItem('comments_active', commentClass); }); } </script> </div> <div class="toggle sidebar-toggle"> <span class="toggle-line toggle-line-first"></span> <span class="toggle-line toggle-line-middle"></span> <span class="toggle-line toggle-line-last"></span> </div> <aside class="sidebar"> <div class="sidebar-inner"> <ul class="sidebar-nav motion-element"> <li class="sidebar-nav-toc"> Table of Contents </li> <li class="sidebar-nav-overview"> Overview </li> </ul> <!--noindex--> <div class="post-toc-wrap sidebar-panel"> </div> <!--/noindex--> <div class="site-overview-wrap sidebar-panel"> <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person"> <img class="site-author-image" itemprop="image" alt="神楽坂 川風" src="/images/avatar.jpeg"> <p class="site-author-name" itemprop="name">神楽坂 川風</p> <div class="site-description" itemprop="description"></div> </div> <div class="site-state-wrap motion-element"> <nav class="site-state"> <div class="site-state-item site-state-posts"> <a href="/archives/"> <span class="site-state-item-count">5</span> <span class="site-state-item-name">posts</span> </a> </div> <div class="site-state-item site-state-categories"> <a href="/categories/"> <span class="site-state-item-count">5</span> <span class="site-state-item-name">categories</span></a> </div> <div class="site-state-item site-state-tags"> <a href="/tags/"> <span class="site-state-item-count">6</span> <span class="site-state-item-name">tags</span></a> </div> </nav> </div> <div class="links-of-author motion-element"> <span class="links-of-author-item"> <a href="https://github.com/yue-litam" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;yue-litam" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i></a> </span> <span class="links-of-author-item"> <a href="mailto:[email protected]" title="E-Mail → mailto:[email protected]" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i></a> </span> <span class="links-of-author-item"> <a href="https://stackoverflow.com/users/12023030" title="StackOverflow → https:&#x2F;&#x2F;stackoverflow.com&#x2F;users&#x2F;12023030" rel="noopener" target="_blank"><i class="fa fa-fw fa-stack-overflow"></i></a> </span> <span class="links-of-author-item"> <a href="https://twitter.com/ia_anuzik" title="Twitter → https:&#x2F;&#x2F;twitter.com&#x2F;ia_anuzik" rel="noopener" target="_blank"><i class="fa fa-fw fa-twitter"></i></a> </span> <span class="links-of-author-item"> <a href="/atom.xml" title="RSS → &#x2F;atom.xml"><i class="fa fa-fw fa-rss"></i></a> </span> </div> </div> <div class="back-to-top motion-element"> <i class="fa fa-arrow-up"></i> <span>0%</span> </div> </div> </aside> <div id="sidebar-dimmer"></div> </div> </main> <footer class="footer"> <div class="footer-inner"> <div class="beian"><a href="http://www.beian.miit.gov.cn/" rel="noopener" target="_blank">粤ICP-19060337号-1 </a> </div> <div class="copyright"> &copy; 2016 – <span itemprop="copyrightYear">2019</span> <span class="with-love"> <i class="fa fa-user"></i> </span> <span class="author" itemprop="copyrightHolder">神楽坂 川風</span> </div> <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> v4.2.0 </div> <span class="post-meta-divider">|</span> <div class="theme-info">Theme – <a href="https://mist.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> v7.6.0 </div> </div> </footer> </div> <script src="/lib/anime.min.js"></script> <script src="/lib/velocity/velocity.min.js"></script> <script src="/lib/velocity/velocity.ui.min.js"></script> <script src="/js/utils.js"></script> <script src="/js/motion.js"></script> <script src="/js/schemes/muse.js"></script> <script src="/js/next-boot.js"></script> <script src="/js/bookmark.js"></script> </body> </html>
yue-litam/yue-litam.github.io
archives/2019/04/index.html
HTML
mit
10,951
/* * $QNXLicenseC: * Copyright 2009, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute this software except in * compliance with the License. You may obtain a copy of the License * at: http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OF ANY KIND, either express or implied. * * This file may contain contributions from others, either as * contributors under the License or as licensors under other terms. * Please review this entire file for other proprietary rights or license * notices, as well as the QNX Development Suite License Guide at * http://licensing.qnx.com/license-guide/ for other information. * $ */ #ifndef __BEAGLEBONE_H_INCLUDED #define __BEAGLEBONE_H_INCLUDED #define RGMII 1 #define GMII 2 #define RMII 3 #define AM335X_I2C0_CPLD 0x35 #define AM335X_I2C0_BBID 0x50 #define AM335X_I2C0_CAPE0 0x54 #define AM335X_I2C0_MAXCAPES 4 #define AM335X_BDID_HEADER_LEN 4 #define AM335X_BDID_BDNAME_LEN 8 #define AM335X_BDID_VERSION_LEN 4 #define AM335X_BDID_SERIAL_LEN 12 #define AM335X_BDID_CONFIG_LEN 32 #define AM335X_BDID_MAC_LEN 6 #define AM335X_BDID_BDNAME_OFFSET (AM335X_BDID_HEADER_LEN) #define AM335X_BDID_VERSION_OFFSET (AM335X_BDID_BDNAME_OFFSET +AM335X_BDID_BDNAME_LEN) #define AM335X_BDID_SERIAL_OFFSET (AM335X_BDID_VERSION_OFFSET +AM335X_BDID_VERSION_LEN) #define AM335X_BDID_CONFIG_OFFSET (AM335X_BDID_SERIAL_OFFSET +AM335X_BDID_SERIAL_LEN) #define AM335X_BDID_MAC1_OFFSET (AM335X_BDID_CONFIG_OFFSET +AM335X_BDID_CONFIG_LEN) #define AM335X_BDID_MAC2_OFFSET (AM335X_BDID_MAC1_OFFSET +AM335X_BDID_MAC_LEN) #define AM335X_MACS 3 #define BOARDID_I2C_DEVICE "/dev/i2c0" typedef struct board_identity { unsigned int header; char bdname [AM335X_BDID_BDNAME_LEN+1]; char version[AM335X_BDID_VERSION_LEN+1]; char serial [AM335X_BDID_SERIAL_LEN+1]; char config [AM335X_BDID_CONFIG_LEN+1]; uint8_t macaddr[AM335X_MACS][AM335X_BDID_MAC_LEN]; } BDIDENT; enum enum_basebd_type { bb_not_detected = 0, bb_BeagleBone = 1, /* BeagleBone Base Board */ bb_unknown = 99, }; enum enum_cape_type { ct_not_detected = 0, ct_unknown = 99, }; typedef struct beaglebone_id { /* Base board */ enum enum_basebd_type basebd_type; /* Daughter board, they're called cape. */ enum enum_cape_type cape_type[4]; } BEAGLEBONE_ID; #endif
guileschool/BEAGLEBONE-tutorials
BBB-firmware/qnxbsp-nto650-ti-beaglebone-sp1/src/hardware/startup/lib/public/arm/beaglebone.h
C
mit
2,689
/** @Generated Pin Manager Header File @Company: Microchip Technology Inc. @File Name: pin_manager.h @Summary: This is the Pin Manager file generated using MPLAB® Code Configurator @Description: This header file provides implementations for pin APIs for all pins selected in the GUI. Generation Information : Product Revision : MPLAB® Code Configurator - v2.25 Device : PIC18F45K22 Version : 1.01 The generated drivers are tested against the following: Compiler : XC8 v1.34 MPLAB : MPLAB X v2.35 or v3.00 */ /* Copyright (c) 2013 - 2015 released Microchip Technology Inc. All rights reserved. Microchip licenses to you the right to use, modify, copy and distribute Software only when embedded on a Microchip microcontroller or digital signal controller that is integrated into your product or third party product (pursuant to the sublicense terms in the accompanying license agreement). You should refer to the license agreement accompanying this Software for additional information regarding your rights and obligations. SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS. */ #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 Volume_SetDigitalInput() do { TRISA5 = 1; } while(0) #define Volume_SetDigitalOutput() do { TRISA5 = 0; } while(0) #define Volume_SetAnalogMode() do { ANSA5 = 1; } while(0) #define Volume_SetDigitalMode() 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 INDICATOR_SetDigitalInput() do { TRISA3 = 1; } while(0) #define INDICATOR_SetDigitalOutput() do { TRISA3 = 0; } while(0) #define INDICATOR_SetAnalogMode() do { ANSA3 = 1; } while(0) #define INDICATOR_SetDigitalMode() 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 Button8_SetDigitalInput() do { TRISA2 = 1; } while(0) #define Button8_SetDigitalOutput() do { TRISA2 = 0; } while(0) #define Button8_SetAnalogMode() do { ANSA2 = 1; } while(0) #define Button8_SetDigitalMode() 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 Button7_SetDigitalInput() do { TRISA1 = 1; } while(0) #define Button7_SetDigitalOutput() do { TRISA1 = 0; } while(0) #define Button7_SetAnalogMode() do { ANSA1 = 1; } while(0) #define Button7_SetDigitalMode() 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 Button6_SetDigitalInput() do { TRISA0 = 1; } while(0) #define Button6_SetDigitalOutput() do { TRISA0 = 0; } while(0) #define Button6_SetAnalogMode() do { ANSA0 = 1; } while(0) #define Button6_SetDigitalMode() 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 LED1_SetDigitalInput() do { TRISB5 = 1; } while(0) #define LED1_SetDigitalOutput() 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 Button5_SetDigitalInput() do { TRISB4 = 1; } while(0) #define Button5_SetDigitalOutput() do { TRISB4 = 0; } while(0) #define Button5_SetPullup() do { WPUB4 = 1; } while(0) #define Button5_ResetPullup() do { WPUB4 = 0; } while(0) #define Button5_SetAnalogMode() do { ANSB4 = 1; } while(0) #define Button5_SetDigitalMode() 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 LED0_SetDigitalInput() do { TRISB3 = 1; } while(0) #define LED0_SetDigitalOutput() 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 Button4_SetDigitalInput() do { TRISB2 = 1; } while(0) #define Button4_SetDigitalOutput() do { TRISB2 = 0; } while(0) #define Button4_SetPullup() do { WPUB2 = 1; } while(0) #define Button4_ResetPullup() do { WPUB2 = 0; } while(0) #define Button4_SetAnalogMode() do { ANSB2 = 1; } while(0) #define Button4_SetDigitalMode() 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 Button3_SetDigitalInput() do { TRISB1 = 1; } while(0) #define Button3_SetDigitalOutput() do { TRISB1 = 0; } while(0) #define Button3_SetPullup() do { WPUB1 = 1; } while(0) #define Button3_ResetPullup() do { WPUB1 = 0; } while(0) #define Button3_SetAnalogMode() do { ANSB1 = 1; } while(0) #define Button3_SetDigitalMode() 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 Button2_SetDigitalInput() do { TRISB0 = 1; } while(0) #define Button2_SetDigitalOutput() do { TRISB0 = 0; } while(0) #define Button2_SetPullup() do { WPUB0 = 1; } while(0) #define Button2_ResetPullup() do { WPUB0 = 0; } while(0) #define Button2_SetAnalogMode() do { ANSB0 = 1; } while(0) #define Button2_SetDigitalMode() 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 RX1_SetDigitalOutput() 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 TX1_SetDigitalOutput() 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 Talk_SetDigitalInput() do { TRISC5 = 1; } while(0) #define Talk_SetDigitalOutput() 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 SDA1_SetDigitalInput() do { TRISC4 = 1; } while(0) #define SDA1_SetDigitalOutput() 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 SCL1_SetDigitalInput() do { TRISC3 = 1; } while(0) #define SCL1_SetDigitalOutput() 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 Button1_SetDigitalInput() do { TRISD5 = 1; } while(0) #define Button1_SetDigitalOutput() do { TRISD5 = 0; } while(0) #define Button1_SetAnalogMode() do { ANSD5 = 1; } while(0) #define Button1_SetDigitalMode() 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 LED2_SetDigitalInput() do { TRISD1 = 1; } while(0) #define LED2_SetDigitalOutput() 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 LED3_SetDigitalInput() do { TRISE2 = 1; } while(0) #define LED3_SetDigitalOutput() 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 LED4_SetDigitalInput() do { TRISE1 = 1; } while(0) #define LED4_SetDigitalOutput() 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 LED5_SetDigitalInput() do { TRISE0 = 1; } while(0) #define LED5_SetDigitalOutput() 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 PIN_MANAGER_Initialize(); */ void PIN_MANAGER_Initialize (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 */
uazipsev/EV15
DDS.X/mcc_generated_files/pin_manager.h
C
mit
17,150
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 ArgumentNullException("selector"); return new SelectorValueProvider<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 ArgumentNullException("getValue"); return new FunctionValueProvider<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 ArgumentNullException("value"); return new ConstantValueProvider<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 SelectorValueProvider<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 SelectorValueProvider(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 InvalidOperationException("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 FunctionValueProvider<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 FunctionValueProvider(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 ConstantValueProvider<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 ConstantValueProvider(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; } } } }
DimensionDataCBUSydney/Watt
Watt/ValueProvider.cs
C#
mit
5,719
#ifndef COBALT_UTILITY_HPP_INCLUDED #define COBALT_UTILITY_HPP_INCLUDED #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 // COBALT_UTILITY_HPP_INCLUDED
mzhirnov/cobalt
include/cobalt/utility.hpp
C++
mit
530
<?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://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation>⏎ ⏎ این نسخه نرم افزار آزمایشی است⏎ ⏎ نرم افزار تحت لیسانس MIT/X11 منتشر شده است. به فایل coping یا آدرس http://www.opensource.org/licenses/mit-license.php. مراجعه شود⏎ ⏎ این محصول شامل نرم افزاری است که با OpenSSL برای استفاده از OpenSSL Toolkit (http://www.openssl.org/) و نرم افزار نوشته شده توسط اریک یانگ ([email protected] ) و UPnP توسط توماس برنارد طراحی شده است.</translation> </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. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</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. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source> <translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.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. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source> <translation>آدرس برای امضا کردن پیام با (برای مثال Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</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. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source> <translation>آدرس برای امضا کردن پیام با (برای مثال Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</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="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Babylonian address (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source> <translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</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>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.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>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.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; [email protected] </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>
bblonian/Babylonian
src/qt/locale/bitcoin_fa.ts
TypeScript
mit
119,341
import sys from stack import Stack def parse_expression_into_parts(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 = parse_expression_into_parts(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."
tylerprete/evaluate-math
postfix.py
Python
mit
792
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.WriteAttributeString("path", directory); Traverse(directory, writer); writer.WriteEndElement(); } foreach (var file in Directory.GetFiles(dir)) { writer.WriteStartElement("file"); writer.WriteAttributeString("name", Path.GetFileNameWithoutExtension(file)); writer.WriteAttributeString("ext", Path.GetExtension(file)); writer.WriteEndElement(); } } } }
Telerik-Homework-ValentinRangelov/Homework
Databases and SQL/XML-Parsers/TraverseDirectory/Program.cs
C#
mit
1,550
__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}]
Schibsted-Tech-Polska/stp.project_analysis
reports/files/node_modules_mocha_node_modules_debug_example_wildcards_js/report.history.js
JavaScript
mit
205
/**! * * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ /* eslint-disable */ 'use strict'; var path = require('path'); module.exports = function configGrunt(grunt, p) { grunt.registerTask('test', []); };
nickclar/spark-js-sdk
packages/node_modules/@ciscospark/storage-adapter-spec/Gruntfile.js
JavaScript
mit
231
// Preprocessor Directives #define STB_IMAGE_IMPLEMENTATION // 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; // ʱ¼äÔöÁ¿Deltatime 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[]) { // glfw³õʼ»¯ glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // ´ËÐÐÓÃÀ´¸øMac OS Xϵͳ×ö¼æÈÝ 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; } glfwMakeContextCurrent(window); // ͨ¹ýglfw×¢²áʼþ»Øµ÷ glfwSetKeyCallback(window, key_callback); glfwSetCursorPosCallback(window, mouse_callback); glfwSetScrollCallback(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; // ²éѯGPU×î´óÖ§³Ö¶¥µã¸öÊý // GLint nrAttributes; // glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &nrAttributes); // std::cout << GREEN << "Maximum nr of vertex attributes supported: " << nrAttributes << RESET << std::endl; // »ñÈ¡ÊÓ¿Ú int width, height; glfwGetFramebufferSize(window, &width, &height); glViewport(0, 0, width, height); // ÉèÖÃOpenGL¿ÉÑ¡Ïî glEnable(GL_DEPTH_TEST); // ¿ªÆôÉî¶È²âÊÔ glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); // ±àÒë×ÅÉ«Æ÷³ÌÐò 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, }; // ¶¥µãÊý×é¶ÔÏó Vertex Array Object, VAO // ¶¥µã»º³å¶ÔÏó Vertex Buffer Object£¬VBO // Ë÷Òý»º³å¶ÔÏó£ºElement Buffer Object£¬EBO»òIndex Buffer Object£¬IBO 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); // °Ñ¶¥µãÊý×鏴֯µ½»º³åÖй©OpenGLʹÓà glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); // ÉèÖö¥µãpositionÊôÐÔÖ¸Õë glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), (GLvoid*)0); glEnableVertexAttribArray(0); // ÉèÖö¥µãTexCoordÊôÐÔÖ¸Õë //glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), (GLvoid*)(3 * sizeof(GLfloat))); //glEnableVertexAttribArray(1); glBindVertexArray(0); // ʹÓÃÏß¿òģʽ½øÐÐäÖȾ glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); // ¶ÁÈ¡²¢´´½¨Ìùͼ GLuint texture; glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); // Ö®ºó¶Ô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, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // äÖȾ while (!glfwWindowShouldClose(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); // °ó¶¨texture 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 = glGetUniformLocation(ourShader.Program, "model"); GLint viewLoc = glGetUniformLocation(ourShader.Program, "view"); GLint projLoc = glGetUniformLocation(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); } // ÊÍ·ÅVAO,VBO glDeleteVertexArrays(1, &VAO); glDeleteBuffers(1, &VBO); // ÊÍ·ÅGLFW·ÖÅäµÄÄÚ´æ glfwTerminate(); return 0; } void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) { // µ±Óû§°´ÏÂESC¼ü,ÎÒÃÇÉèÖÃwindow´°¿ÚµÄWindowShouldCloseÊôÐÔΪtrue // ¹Ø±ÕÓ¦ÓóÌÐò if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(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; // ×¢ÒâÕâÀïÊÇÏà·´µÄ£¬ÒòΪy×ø±êÊǴӵײ¿Íù¶¥²¿ÒÀ´ÎÔö´óµÄ lastX = xpos; lastY = ypos; camera.ProcessMouseMovement(xoffset, yoffset); } void scroll_callback(GLFWwindow* window, double xoffset, double yoffset) { camera.ProcessMouseScroll(yoffset); }
THISISAGOODNAME/learnopengl-glitter
other/renderDoc reverse engineering/main.cpp
C++
mit
88,752
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 :responders_controller # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # Do not swallow errors in after_commit/after_rollback callbacks. config.active_record.raise_in_transactional_callbacks = true end end
riseshia/lazyCat
config/application.rb
Ruby
mit
1,526
{{<govuk_template}} {{$head}} {{>includes/elements_head}} {{>includes/elements_scripts}} {{/head}} {{$propositionHeader}} {{>includes/propositional_navigation3}} {{/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}}
benjystanton/F2D-Prototype
app/views/eligibility/3/CV-2.html
HTML
mit
2,293
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; } } }
alimon808/contoso-university
ContosoUniversity.Web/ViewModels/TokenViewModel.cs
C#
mit
326
<?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>
StarkLiew/AtOfis
callback/area_browse.php
PHP
mit
1,048
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Class Shop_currency_model</title> <link rel="stylesheet" href="resources/bootstrap.min.css?08b23951ef4599ca9cbf1f902d0e8290c9653ddd"> <link rel="stylesheet" href="resources/style.css?062e9e59e0b8c44fbaaded5b7ffc21f907b78669"> </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="class-Admin_changelog_model.html">Admin_changelog_model</a></li> <li><a href="class-Admin_help_model.html">Admin_help_model</a></li> <li><a href="class-Admin_model.html">Admin_model</a></li> <li><a href="class-Admin_sitelog_model.html">Admin_sitelog_model</a></li> <li><a href="class-AdminController.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="class-App_notification_model.html">App_notification_model</a></li> <li><a href="class-App_setting_model.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="class-Barcode_generator.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="class-Blog_category_model.html">Blog_category_model</a></li> <li><a href="class-Blog_model.html">Blog_model</a></li> <li><a href="class-Blog_post_model.html">Blog_post_model</a></li> <li><a href="class-Blog_skin_model.html">Blog_skin_model</a></li> <li><a href="class-Blog_tag_model.html">Blog_tag_model</a></li> <li><a href="class-Blog_widget_model.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="class-Cms_block_model.html">Cms_block_model</a></li> <li><a href="class-Cms_menu_model.html">Cms_menu_model</a></li> <li><a href="class-Cms_page_model.html">Cms_page_model</a></li> <li><a href="class-Cms_slider_model.html">Cms_slider_model</a></li> <li><a href="class-Comment.html">Comment</a></li> <li><a href="class-CORE_NAILS_App.html">CORE_NAILS_App</a></li> <li><a href="class-CORE_NAILS_Calendar.html">CORE_NAILS_Calendar</a></li> <li><a href="class-CORE_NAILS_Controller.html">CORE_NAILS_Controller</a></li> <li><a href="class-CORE_NAILS_Deploy.html">CORE_NAILS_Deploy</a></li> <li><a href="class-CORE_NAILS_ErrorHandler.html">CORE_NAILS_ErrorHandler</a></li> <li><a href="class-CORE_NAILS_ErrorHandler_Rollbar.html">CORE_NAILS_ErrorHandler_Rollbar</a></li> <li><a href="class-CORE_NAILS_Exceptions.html">CORE_NAILS_Exceptions</a></li> <li><a href="class-CORE_NAILS_Form_validation.html">CORE_NAILS_Form_validation</a></li> <li><a href="class-CORE_NAILS_Hooks.html">CORE_NAILS_Hooks</a></li> <li><a href="class-CORE_NAILS_Install.html">CORE_NAILS_Install</a></li> <li><a href="class-CORE_NAILS_Lang.html">CORE_NAILS_Lang</a></li> <li><a href="class-CORE_NAILS_Loader.html">CORE_NAILS_Loader</a></li> <li><a href="class-CORE_NAILS_Log.html">CORE_NAILS_Log</a></li> <li><a href="class-CORE_NAILS_Migrate.html">CORE_NAILS_Migrate</a></li> <li><a href="class-CORE_NAILS_Model.html">CORE_NAILS_Model</a></li> <li><a href="class-CORE_NAILS_Pagination.html">CORE_NAILS_Pagination</a></li> <li><a href="class-CORE_NAILS_Profiler.html">CORE_NAILS_Profiler</a></li> <li><a href="class-CORE_NAILS_Router.html">CORE_NAILS_Router</a></li> <li><a href="class-CORE_NAILS_Session.html">CORE_NAILS_Session</a></li> <li><a href="class-CORE_NAILS_URI.html">CORE_NAILS_URI</a></li> <li><a href="class-CORE_NAILS_User_agent.html">CORE_NAILS_User_agent</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="class-Datetime_model.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="class-Forgotten_Password.html">Forgotten_Password</a></li> <li><a href="class-Geo_ip.html">Geo_ip</a></li> <li><a href="class-Geo_ip_driver_Nails_ip_services.html">Geo_ip_driver_Nails_ip_services</a></li> <li><a href="class-Home.html">Home</a></li> <li><a href="class-Language_model.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="class-NAILS_Admin_changelog_model.html">NAILS_Admin_changelog_model</a></li> <li><a href="class-NAILS_Admin_Controller.html">NAILS_Admin_Controller</a></li> <li><a href="class-NAILS_Admin_help_model.html">NAILS_Admin_help_model</a></li> <li><a href="class-NAILS_Admin_Model.html">NAILS_Admin_Model</a></li> <li><a href="class-NAILS_Admin_sitelog_model.html">NAILS_Admin_sitelog_model</a></li> <li><a href="class-NAILS_Api.html">NAILS_Api</a></li> <li><a href="class-NAILS_API_Controller.html">NAILS_API_Controller</a></li> <li><a href="class-NAILS_App_notification_model.html">NAILS_App_notification_model</a></li> <li><a href="class-NAILS_App_setting_model.html">NAILS_App_setting_model</a></li> <li><a href="class-NAILS_Auth.html">NAILS_Auth</a></li> <li><a href="class-NAILS_Auth_Controller.html">NAILS_Auth_Controller</a></li> <li><a href="class-NAILS_Auth_Mfa_Controller.html">NAILS_Auth_Mfa_Controller</a></li> <li><a href="class-NAILS_Auth_model.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="class-NAILS_Blank_avatar.html">NAILS_Blank_avatar</a></li> <li><a href="class-NAILS_Blog.html" class="invalid">NAILS_Blog</a></li> <li><a href="class-NAILS_Blog_category_model.html">NAILS_Blog_category_model</a></li> <li><a href="class-NAILS_Blog_Controller.html">NAILS_Blog_Controller</a></li> <li><a href="class-NAILS_Blog_model.html">NAILS_Blog_model</a></li> <li><a href="class-NAILS_Blog_post_model.html">NAILS_Blog_post_model</a></li> <li><a href="class-NAILS_Blog_skin_model.html">NAILS_Blog_skin_model</a></li> <li><a href="class-NAILS_Blog_tag_model.html">NAILS_Blog_tag_model</a></li> <li><a href="class-NAILS_Blog_widget_model.html">NAILS_Blog_widget_model</a></li> <li><a href="class-NAILS_CDN_Controller.html">NAILS_CDN_Controller</a></li> <li><a href="class-NAILS_Cdnapi.html">NAILS_Cdnapi</a></li> <li><a href="class-NAILS_Checkout.html">NAILS_Checkout</a></li> <li><a href="class-NAILS_Cms.html" class="invalid">NAILS_Cms</a></li> <li><a href="class-NAILS_Cms_block_model.html">NAILS_Cms_block_model</a></li> <li><a href="class-NAILS_CMS_Controller.html">NAILS_CMS_Controller</a></li> <li><a href="class-NAILS_Cms_menu_model.html">NAILS_Cms_menu_model</a></li> <li><a href="class-NAILS_Cms_page_model.html">NAILS_Cms_page_model</a></li> <li><a href="class-NAILS_Cms_slider_model.html">NAILS_Cms_slider_model</a></li> <li><a href="class-Nails_CMS_Template.html">Nails_CMS_Template</a></li> <li><a href="class-Nails_CMS_Template_fullwidth.html">Nails_CMS_Template_fullwidth</a></li> <li><a href="class-NAILS_CMS_Template_redirect.html">NAILS_CMS_Template_redirect</a></li> <li><a href="class-Nails_CMS_Template_sidebar_left.html">Nails_CMS_Template_sidebar_left</a></li> <li><a href="class-Nails_CMS_Template_sidebar_right.html">Nails_CMS_Template_sidebar_right</a></li> <li><a href="class-NAILS_CMS_Widget.html">NAILS_CMS_Widget</a></li> <li><a href="class-NAILS_CMS_Widget_html.html">NAILS_CMS_Widget_html</a></li> <li><a href="class-NAILS_CMS_Widget_image.html">NAILS_CMS_Widget_image</a></li> <li><a href="class-NAILS_CMS_Widget_richtext.html">NAILS_CMS_Widget_richtext</a></li> <li><a href="class-NAILS_CMS_Widget_slider.html">NAILS_CMS_Widget_slider</a></li> <li><a href="class-NAILS_CMS_Widget_table.html">NAILS_CMS_Widget_table</a></li> <li><a href="class-NAILS_Controller.html">NAILS_Controller</a></li> <li><a href="class-NAILS_Country_model.html">NAILS_Country_model</a></li> <li><a href="class-NAILS_Cron_Controller.html">NAILS_Cron_Controller</a></li> <li><a href="class-NAILS_Datetime_model.html">NAILS_Datetime_model</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="class-NAILS_Email_Controller.html">NAILS_Email_Controller</a></li> <li><a href="class-NAILS_Enquire.html">NAILS_Enquire</a></li> <li><a href="class-NAILS_Exceptions.html">NAILS_Exceptions</a></li> <li><a href="class-NAILS_Feed.html">NAILS_Feed</a></li> <li><a href="class-NAILS_Forgotten_Password.html">NAILS_Forgotten_Password</a></li> <li><a href="class-NAILS_Geo_ip_driver.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="class-NAILS_Language_model.html">NAILS_Language_model</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="class-NAILS_Maintenance.html">NAILS_Maintenance</a></li> <li><a href="class-NAILS_Manager.html">NAILS_Manager</a></li> <li><a href="class-NAILS_Mfa_device.html">NAILS_Mfa_device</a></li> <li><a href="class-NAILS_Mfa_question.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="class-NAILS_Override.html">NAILS_Override</a></li> <li><a href="class-NAILS_Pagination.html">NAILS_Pagination</a></li> <li><a href="class-NAILS_Placeholder.html">NAILS_Placeholder</a></li> <li><a href="class-NAILS_Register.html">NAILS_Register</a></li> <li><a href="class-NAILS_Render.html">NAILS_Render</a></li> <li><a href="class-NAILS_Reset_Password.html">NAILS_Reset_Password</a></li> <li><a href="class-NAILS_Router.html">NAILS_Router</a></li> <li><a href="class-NAILS_Routes_model.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="class-NAILS_Shop_attribute_model.html">NAILS_Shop_attribute_model</a></li> <li><a href="class-NAILS_Shop_basket_model.html">NAILS_Shop_basket_model</a></li> <li><a href="class-NAILS_Shop_brand_model.html">NAILS_Shop_brand_model</a></li> <li><a href="class-NAILS_Shop_category_model.html">NAILS_Shop_category_model</a></li> <li><a href="class-NAILS_Shop_collection_model.html">NAILS_Shop_collection_model</a></li> <li><a href="class-NAILS_Shop_Controller.html">NAILS_Shop_Controller</a></li> <li><a href="class-NAILS_Shop_currency_model.html">NAILS_Shop_currency_model</a></li> <li><a href="class-NAILS_Shop_feed_model.html">NAILS_Shop_feed_model</a></li> <li><a href="class-NAILS_Shop_inform_product_available_model.html">NAILS_Shop_inform_product_available_model</a></li> <li><a href="class-NAILS_Shop_model.html">NAILS_Shop_model</a></li> <li><a href="class-NAILS_Shop_order_model.html">NAILS_Shop_order_model</a></li> <li><a href="class-NAILS_Shop_order_payment_model.html">NAILS_Shop_order_payment_model</a></li> <li><a href="class-NAILS_Shop_payment_gateway_model.html">NAILS_Shop_payment_gateway_model</a></li> <li><a href="class-NAILS_Shop_product_model.html">NAILS_Shop_product_model</a></li> <li><a href="class-NAILS_Shop_product_type_meta_model.html">NAILS_Shop_product_type_meta_model</a></li> <li><a href="class-NAILS_Shop_product_type_model.html">NAILS_Shop_product_type_model</a></li> <li><a href="class-NAILS_Shop_range_model.html">NAILS_Shop_range_model</a></li> <li><a href="class-NAILS_Shop_sale_model.html">NAILS_Shop_sale_model</a></li> <li><a href="class-NAILS_Shop_shipping_driver_model.html">NAILS_Shop_shipping_driver_model</a></li> <li><a href="class-NAILS_Shop_skin_checkout_model.html">NAILS_Shop_skin_checkout_model</a></li> <li><a href="class-NAILS_Shop_skin_front_model.html">NAILS_Shop_skin_front_model</a></li> <li><a href="class-NAILS_Shop_tag_model.html">NAILS_Shop_tag_model</a></li> <li><a href="class-NAILS_Shop_tax_rate_model.html">NAILS_Shop_tax_rate_model</a></li> <li><a href="class-NAILS_Shop_voucher_model.html">NAILS_Shop_voucher_model</a></li> <li><a href="class-NAILS_Sitemap.html">NAILS_Sitemap</a></li> <li><a href="class-NAILS_Sitemap_model.html">NAILS_Sitemap_model</a></li> <li><a href="class-NAILS_System.html">NAILS_System</a></li> <li><a href="class-NAILS_System_startup.html">NAILS_System_startup</a></li> <li><a href="class-NAILS_Testimonial_model.html">NAILS_Testimonial_model</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="class-NAILS_Unsubscribe.html">NAILS_Unsubscribe</a></li> <li><a href="class-NAILS_URI.html">NAILS_URI</a></li> <li><a href="class-NAILS_User_group_model.html">NAILS_User_group_model</a></li> <li><a href="class-NAILS_User_model.html">NAILS_User_model</a></li> <li><a href="class-NAILS_User_password_model.html">NAILS_User_password_model</a></li> <li><a href="class-NAILS_Verify.html">NAILS_Verify</a></li> <li><a href="class-NAILS_View_Online.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="class-Reset_Password.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="class-Shop_attribute_model.html">Shop_attribute_model</a></li> <li><a href="class-Shop_basket_model.html">Shop_basket_model</a></li> <li><a href="class-Shop_brand_model.html">Shop_brand_model</a></li> <li><a href="class-Shop_category_model.html">Shop_category_model</a></li> <li><a href="class-Shop_collection_model.html">Shop_collection_model</a></li> <li class="active"><a href="class-Shop_currency_model.html">Shop_currency_model</a></li> <li><a href="class-Shop_feed_model.html">Shop_feed_model</a></li> <li><a href="class-Shop_inform_product_available_model.html">Shop_inform_product_available_model</a></li> <li><a href="class-Shop_model.html">Shop_model</a></li> <li><a href="class-Shop_order_model.html">Shop_order_model</a></li> <li><a href="class-Shop_order_payment_model.html">Shop_order_payment_model</a></li> <li><a href="class-Shop_payment_gateway_model.html">Shop_payment_gateway_model</a></li> <li><a href="class-Shop_product_model.html">Shop_product_model</a></li> <li><a href="class-Shop_product_type_meta_model.html">Shop_product_type_meta_model</a></li> <li><a href="class-Shop_product_type_model.html">Shop_product_type_model</a></li> <li><a href="class-Shop_range_model.html">Shop_range_model</a></li> <li><a href="class-Shop_sale_model.html">Shop_sale_model</a></li> <li><a href="class-Shop_shipping_driver_flatrate.html">Shop_shipping_driver_flatrate</a></li> <li><a href="class-Shop_shipping_driver_model.html">Shop_shipping_driver_model</a></li> <li><a href="class-Shop_skin_checkout_model.html">Shop_skin_checkout_model</a></li> <li><a href="class-Shop_skin_front_model.html">Shop_skin_front_model</a></li> <li><a href="class-Shop_tag_model.html">Shop_tag_model</a></li> <li><a href="class-Shop_tax_rate_model.html">Shop_tax_rate_model</a></li> <li><a href="class-Shop_voucher_model.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="class-System_startup.html">System_startup</a></li> <li><a href="class-Testimonial_model.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="class-User_group_model.html">User_group_model</a></li> <li><a href="class-User_model.html">User_model</a></li> <li><a href="class-User_password_model.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="class-CORE_NAILS_ErrorHandler_Interface.html">CORE_NAILS_ErrorHandler_Interface</a></li> <li><a href="class-Shop_shipping_driver.html">Shop_shipping_driver</a></li> </ul> <h3>Traits</h3> <ul> <li><a href="class-NAILS_COMMON_TRAIT_CACHING.html">NAILS_COMMON_TRAIT_CACHING</a></li> <li><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html">NAILS_COMMON_TRAIT_ERROR_HANDLING</a></li> <li><a href="class-NAILS_COMMON_TRAIT_GETCOUNT_COMMON.html">NAILS_COMMON_TRAIT_GETCOUNT_COMMON</a></li> </ul> <h3>Functions</h3> <ul> <li><a href="function-_db_flush_caches.html">_db_flush_caches</a></li> <li><a href="function-_db_reset_active_record.html">_db_reset_active_record</a></li> <li><a href="function-_genderise.html">_genderise</a></li> <li><a href="function-_LOG.html">_LOG</a></li> <li><a href="function-_LOG_DUMMY_MODE.html">_LOG_DUMMY_MODE</a></li> <li><a href="function-_LOG_FILE.html">_LOG_FILE</a></li> <li><a href="function-_LOG_MUTE_OUTPUT.html">_LOG_MUTE_OUTPUT</a></li> <li><a href="function-_NAILS_ERROR.html">_NAILS_ERROR</a></li> <li><a href="function-_NAILS_GET_COMPONENTS.html">_NAILS_GET_COMPONENTS</a></li> <li><a href="function-_NAILS_GET_DRIVERS.html">_NAILS_GET_DRIVERS</a></li> <li><a href="function-_NAILS_GET_MODULES.html">_NAILS_GET_MODULES</a></li> <li><a href="function-_NAILS_GET_SKINS.html">_NAILS_GET_SKINS</a></li> <li><a href="function-_NAILS_MIN_PHP_VERSION.html">_NAILS_MIN_PHP_VERSION</a></li> <li><a href="function-active_user.html">active_user</a></li> <li><a href="function-addTrailingSlash.html">addTrailingSlash</a></li> <li><a href="function-app_notification.html">app_notification</a></li> <li><a href="function-app_notification_notify.html">app_notification_notify</a></li> <li><a href="function-app_setting.html">app_setting</a></li> <li><a href="function-array_search_multi.html">array_search_multi</a></li> <li><a href="function-array_sort_multi.html">array_sort_multi</a></li> <li><a href="function-array_unique_multi.html">array_unique_multi</a></li> <li><a href="function-blog_latest_posts.html">blog_latest_posts</a></li> <li><a href="function-blog_posts_with_association.html">blog_posts_with_association</a></li> <li><a href="function-blog_posts_with_category.html">blog_posts_with_category</a></li> <li><a href="function-blog_posts_with_tag.html">blog_posts_with_tag</a></li> <li><a href="function-calculate_age.html">calculate_age</a></li> <li><a href="function-camelcase_to_underscore.html">camelcase_to_underscore</a></li> <li><a href="function-cdn_avatar.html">cdn_avatar</a></li> <li><a href="function-cdn_blank_avatar.html">cdn_blank_avatar</a></li> <li><a href="function-cdn_expiring_url.html">cdn_expiring_url</a></li> <li><a href="function-cdn_placeholder.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="function-cdn_serve_zipped.html">cdn_serve_zipped</a></li> <li><a href="function-cdn_thumb.html">cdn_thumb</a></li> <li><a href="function-cdnManageUrl.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="function-create_event.html">create_event</a></li> <li><a href="function-datepicker.html">datepicker</a></li> <li><a href="function-dropdown_days.html">dropdown_days</a></li> <li><a href="function-dropdown_hours.html">dropdown_hours</a></li> <li><a href="function-dropdown_minutes.html">dropdown_minutes</a></li> <li><a href="function-dropdown_months.html">dropdown_months</a></li> <li><a href="function-dropdown_years.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="function-form_field_boolean.html">form_field_boolean</a></li> <li><a href="function-form_field_checkbox.html">form_field_checkbox</a></li> <li><a href="function-form_field_date.html">form_field_date</a></li> <li><a href="function-form_field_datetime.html">form_field_datetime</a></li> <li><a href="function-form_field_dropdown.html">form_field_dropdown</a></li> <li><a href="function-form_field_dropdown_multiple.html">form_field_dropdown_multiple</a></li> <li><a href="function-form_field_email.html">form_field_email</a></li> <li><a href="function-form_field_mm.html">form_field_mm</a></li> <li><a href="function-form_field_mm_image.html">form_field_mm_image</a></li> <li><a href="function-form_field_multiimage.html">form_field_multiimage</a></li> <li><a href="function-form_field_password.html">form_field_password</a></li> <li><a href="function-form_field_radio.html">form_field_radio</a></li> <li><a href="function-form_field_submit.html">form_field_submit</a></li> <li><a href="function-form_field_text.html">form_field_text</a></li> <li><a href="function-form_field_textarea.html">form_field_textarea</a></li> <li><a href="function-form_field_wysiwyg.html">form_field_wysiwyg</a></li> <li><a href="function-form_open.html">form_open</a></li> <li><a href="function-format_bytes.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="function-get_basket_count.html">get_basket_count</a></li> <li><a href="function-get_basket_total.html">get_basket_total</a></li> <li><a href="function-get_ext_from_mime.html">get_ext_from_mime</a></li> <li><a href="function-get_mime_from_ext.html">get_mime_from_ext</a></li> <li><a href="function-get_mime_from_file.html">get_mime_from_file</a></li> <li><a href="function-get_userobject.html">get_userobject</a></li> <li><a href="function-getControllerData.html">getControllerData</a></li> <li><a href="function-getDomainFromUrl.html">getDomainFromUrl</a></li> <li><a href="function-getRelativePath.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="function-in_array_multi.html">in_array_multi</a></li> <li><a href="function-is_clean.html">is_clean</a></li> <li><a href="function-isIpInRange.html">isIpInRange</a></li> <li><a href="function-isModuleEnabled.html">isModuleEnabled</a></li> <li><a href="function-isPageSecure.html">isPageSecure</a></li> <li><a href="function-keyValueSection.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="function-list_first_last.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="function-possessionise.html">possessionise</a></li> <li><a href="function-readFileChunked.html">readFileChunked</a></li> <li><a href="function-redirect.html">redirect</a></li> <li><a href="function-return_bytes.html">return_bytes</a></li> <li><a href="function-secure_site_url.html">secure_site_url</a></li> <li><a href="function-sendDeveloperMail.html">sendDeveloperMail</a></li> <li><a href="function-set_app_setting.html">set_app_setting</a></li> <li><a href="function-setControllerData.html">setControllerData</a></li> <li><a href="function-show_401.html">show_401</a></li> <li><a href="function-showFatalError.html">showFatalError</a></li> <li><a href="function-site_url.html">site_url</a></li> <li><a href="function-special_chars.html">special_chars</a></li> <li><a href="function-str_lreplace.html">str_lreplace</a></li> <li><a href="function-stringToBoolean.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="function-toNailsDate.html">toNailsDate</a></li> <li><a href="function-toNailsDatetime.html">toNailsDatetime</a></li> <li><a href="function-toUserDate.html">toUserDate</a></li> <li><a href="function-toUserDatetime.html">toUserDatetime</a></li> <li><a href="function-unauthorised.html">unauthorised</a></li> <li><a href="function-underscore_to_camelcase.html">underscore_to_camelcase</a></li> <li><a href="function-userHasPermission.html">userHasPermission</a></li> <li><a href="function-valid_email.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="class-CORE_NAILS_Model.html"><span>CORE_NAILS_Model</span></a> uses <a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html"><span>NAILS_COMMON_TRAIT_ERROR_HANDLING</span></a>, <a href="class-NAILS_COMMON_TRAIT_CACHING.html"><span>NAILS_COMMON_TRAIT_CACHING</span></a>, <a href="class-NAILS_COMMON_TRAIT_GETCOUNT_COMMON.html"><span>NAILS_COMMON_TRAIT_GETCOUNT_COMMON</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="class-NAILS_Shop_currency_model.html"><span>NAILS_Shop_currency_model</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="source-class-Shop_currency_model.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="class-NAILS_Shop_currency_model.html#methods">NAILS_Shop_currency_model</a></h3> <p class="elementList"> <code><a href="class-NAILS_Shop_currency_model.html#___construct">__construct()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_convert">convert()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_convert_base_to_user">convert_base_to_user()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_format">format()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_format_base">format_base()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_format_user">format_user()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_all">get_all()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_all_flat">get_all_flat()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_all_supported">get_all_supported()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_all_supported_flat">get_all_supported_flat()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_by_code">get_by_code()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_get_exchange_rate">get_exchange_rate()</a></code>, <code><a href="class-NAILS_Shop_currency_model.html#_sync">sync()</a></code> </p> <h3>Methods inherited from <a href="class-CORE_NAILS_Model.html#methods">CORE_NAILS_Model</a></h3> <p class="elementList"> <code><a href="class-CORE_NAILS_Model.html#___destruct">__destruct()</a></code>, <code><a href="class-CORE_NAILS_Model.html#__format_object">_format_object()</a></code>, <code><a href="class-CORE_NAILS_Model.html#__generate_slug">_generate_slug()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_count_all">count_all()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_create">create()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_delete">delete()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_destroy">destroy()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_by_id">get_by_id()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_by_id_or_slug">get_by_id_or_slug()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_by_ids">get_by_ids()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_by_slug">get_by_slug()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_by_slugs">get_by_slugs()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_property_table">get_property_table()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_get_property_table_prefix">get_property_table_prefix()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_restore">restore()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_setUserObject">setUserObject()</a></code>, <code><a href="class-CORE_NAILS_Model.html#_update">update()</a></code> </p> <h3>Methods used from <a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#methods">NAILS_COMMON_TRAIT_ERROR_HANDLING</a></h3> <p class="elementList"> <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#__set_error">_set_error()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#_clear_errors">clear_errors()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#_clear_last_error">clear_last_error()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#_get_errors">get_errors()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#_last_error">last_error()</a></code> </p> <h3>Methods used from <a href="class-NAILS_COMMON_TRAIT_CACHING.html#methods">NAILS_COMMON_TRAIT_CACHING</a></h3> <p class="elementList"> <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#__cache_prefix">_cache_prefix()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#__get_cache">_get_cache()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#__set_cache">_set_cache()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#__unset_cache">_unset_cache()</a></code> </p> <h3>Methods used from <a href="class-NAILS_COMMON_TRAIT_GETCOUNT_COMMON.html#methods">NAILS_COMMON_TRAIT_GETCOUNT_COMMON</a></h3> <p class="elementList"> <code><a href="class-NAILS_COMMON_TRAIT_GETCOUNT_COMMON.html#__getcount_common">_getcount_common()</a></code>, <code><a href="class-NAILS_COMMON_TRAIT_GETCOUNT_COMMON.html#__getcount_common_parse_sort">_getcount_common_parse_sort()</a></code> </p> <h3>Magic methods summary</h3> <h2>Properties summary</h2> <h3>Properties inherited from <a href="class-NAILS_Shop_currency_model.html#properties">NAILS_Shop_currency_model</a></h3> <p class="elementList"> <code><a href="class-NAILS_Shop_currency_model.html#$_oer_url"><var>$_oer_url</var></a></code>, <code><a href="class-NAILS_Shop_currency_model.html#$_rates"><var>$_rates</var></a></code> </p> <h3>Properties inherited from <a href="class-CORE_NAILS_Model.html#properties">CORE_NAILS_Model</a></h3> <p class="elementList"> <code><a href="class-CORE_NAILS_Model.html#$_deleted_flag"><var>$_deleted_flag</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_destructive_delete"><var>$_destructive_delete</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_per_page"><var>$_per_page</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table"><var>$_table</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table_auto_set_timestamps"><var>$_table_auto_set_timestamps</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table_id_column"><var>$_table_id_column</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table_label_column"><var>$_table_label_column</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table_prefix"><var>$_table_prefix</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$_table_slug_column"><var>$_table_slug_column</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$data"><var>$data</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$user"><var>$user</var></a></code>, <code><a href="class-CORE_NAILS_Model.html#$user_model"><var>$user_model</var></a></code> </p> <h3>Properties used from <a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#properties">NAILS_COMMON_TRAIT_ERROR_HANDLING</a></h3> <p class="elementList"> <code><a href="class-NAILS_COMMON_TRAIT_ERROR_HANDLING.html#$_errors"><var>$_errors</var></a></code> </p> <h3>Properties used from <a href="class-NAILS_COMMON_TRAIT_CACHING.html#properties">NAILS_COMMON_TRAIT_CACHING</a></h3> <p class="elementList"> <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#$_cache_keys"><var>$_cache_keys</var></a></code>, <code><a href="class-NAILS_COMMON_TRAIT_CACHING.html#$_cache_method"><var>$_cache_method</var></a></code>, <code><a href="class-NAILS_COMMON_TRAIT_CACHING.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>
nailsapp/site-docs
api/class-Shop_currency_model.html
HTML
mit
39,313
require "spec_helper" describe Time do describe ".beginning_of_timehop_day" do subject { time.beginning_of_timehop_day } context "after 5am" do let(:time) { Time.parse("2011-11-07 15:15:33") } let(:beginning_of_timehop_day) { Time.parse("2011-11-07 5:00:00") } it { should be_within(1.second).of(beginning_of_timehop_day) } end context "before 5am" do let(:time) { Time.parse("2011-11-07 3:15:33") } let(:beginning_of_timehop_day) { Time.parse("2011-11-06 5:00:00") } it { should be_within(1.second).of(beginning_of_timehop_day) } 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
timehop/timehop_time
spec/timehop_time/time_spec.rb
Ruby
mit
1,128
#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 } ] } ##License MIT
joemcintyre/pdf-finish
README.md
Markdown
mit
2,202
<?php use Guzzle\Plugin\Mock\MockPlugin; use OpenTok\Archive; use OpenTok\Util\Client; class ArchiveTest extends PHPUnit_Framework_TestCase { // 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' => '063e72a4-64b4-43c8-9da5-eca071daab89', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '2_MX44NTQ1MTF-flR1ZSBOb3YgMTIgMDk6NDA6NTkgUFNUIDIwMTN-MC43NjU0Nzh-', '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_SECRET : '0123456789abcdef0123456789abcdef0123456789'; $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->assertStringStartsWith('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->assertStringStartsWith('OpenTok-PHP-SDK/2.3.2', $userAgent->__toString()); $this->assertTrue($success); // TODO: assert that all properties of the archive object were cleared } public function testAllowsUnknownProperties() { // Set up fixtures $archiveData = array( 'createdAt' => 1394394801000, 'duration' => 0, 'id' => '063e72a4-64b4-43c8-9da5-eca071daab89', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '2_MX44NTQ1MTF-flR1ZSBOb3YgMTIgMDk6NDA6NTkgUFNUIDIwMTN-MC43NjU0Nzh-', 'size' => 0, 'status' => 'started', 'url' => null, 'notarealproperty' => 'not a real value' ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_SECRET : '0123456789abcdef0123456789abcdef0123456789'; $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 InvalidArgumentException */ public function testRejectsBadArchiveData() { // Set up fixtures $badArchiveData = array( 'createdAt' => 'imnotanumber', 'duration' => 0, 'id' => '063e72a4-64b4-43c8-9da5-eca071daab89', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '2_MX44NTQ1MTF-flR1ZSBOb3YgMTIgMDk6NDA6NTkgUFNUIDIwMTN-MC43NjU0Nzh-', 'size' => 0, 'status' => 'started', 'url' => null ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_SECRET : '0123456789abcdef0123456789abcdef0123456789'; $client = new Client(); $archive = new Archive($badArchiveData, array( 'apiKey' => $this->API_KEY, 'apiSecret' => $this->API_SECRET, 'client' => $this->client )); } public function testAllowsPausedStatus() { // Set up fixtures $archiveData = array( 'createdAt' => 1394394801000, 'duration' => 0, 'id' => '063e72a4-64b4-43c8-9da5-eca071daab89', 'name' => 'showtime', 'partnerId' => 854511, 'reason' => '', 'sessionId' => '2_MX44NTQ1MTF-flR1ZSBOb3YgMTIgMDk6NDA6NTkgUFNUIDIwMTN-MC43NjU0Nzh-', 'size' => 0, 'status' => 'paused', 'url' => null, ); $apiKey = defined('API_KEY') ? API_KEY : '12345678'; $apiSecret = defined('API_SECRET') ? API_SECRET : '0123456789abcdef0123456789abcdef0123456789'; $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 testSerializesToJson() { // Arrange // Act $archiveJson = $this->archive->toJson(); // Assert $this->assertInternalType('string', $archiveJson); $this->assertNotNull(json_encode($archiveJson)); } public function testSerializedToArray() { // 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 :*/
benhammadiali/ISETK
vendor/opentok/opentok/tests/OpenTok/ArchiveTest.php
PHP
mit
9,807
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 { // ----------------------- for java usage 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, iterableAsScalaIterable(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 inPlacementSuccessors = vertices.map((v) => { (v, v.successors.filter((succ) => vertices.contains(succ))) }).toMap val notInPlacementSuccessors = 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 successorsInPlacement(v: Vertex): Set[InputVertex] = inPlacementSuccessors(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 successorsNotInPlacement(v: Vertex): Set[InputVertex] = notInPlacementSuccessors(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 } }
virsox/cepsim
cepsim-core/src/main/scala/ca/uwo/eng/sel/cepsim/placement/Placement.scala
Scala
mit
6,424
"use strict"; const util = require("util"); const colors = require("colors"); const consoleLog = console.log; const consoleWarn = console.warn; const consoleError = console.error; const EError = require("../eerror"); function padd(str, length = process.stdout.columns) { return str + " ".repeat(length - str.length % length); } /** * Terminal output formatter that makes output colorful and organized. */ const Formatter = module.exports = { /** * Adds tabs to the given text. * * @param {string} str * The text to tab. * @param {number} x * Amount of tabs to add. * * @returns {string} * Tabbed text. */ tab(str = "", x = 1) { let tab = " ".repeat(x); let cols = process.stdout.columns - tab.length; let match = str.match(new RegExp(`.{1,${cols}}|\n`, "g")); str = match ? match.join(tab) : str; return tab + str; }, /** * Formats given text into a heading. * * @param {string} str * The heading text. * @param {string} marker * Heading character. * @param {string} color2 * The color of the heading. */ heading(str, marker = "»".blue, color2 = "cyan") { consoleLog(); consoleLog(marker + " " + str.toUpperCase()[color2]); consoleLog(" " + "¨".repeat(process.stdout.columns - 3)[color2]); }, /** * Prints given items in list format. * * @param {Array|Object|string} items * The items to print. * @param {number} inset * The tabbing. * @param {string} color * Color of the item text. */ list(items, inset = 0, color = "green") { const insetTab = " ".repeat(inset) + "• "[color]; if (Array.isArray(items)) { items.forEach((item) => { consoleLog(this.tab(item).replace(/ /, insetTab)); }); } else if (typeof items === "object") { for (let [key, text] of Object.entries(items)) { consoleLog(insetTab + key[color]); if (typeof text !== "string") { this.list(text, (inset || 0) + 1, color); } else { consoleLog(this.tab(text, inset + 2)); } } } else if (typeof items === "string") { consoleLog(insetTab + items); } }, /** * Prints formatted errors. * * @param {Error|string} error * The error to print. */ error(error) { consoleLog(); // Handling extended errors which provided in better format error data. if (error instanceof EError) { consoleLog(); consoleLog("!! ERROR ".red + "& STACK".yellow); consoleLog(" ¨¨¨¨¨¨ ".red + "¨".yellow.repeat(process.stdout.columns - " ¨¨¨¨¨¨ ".length) + "\n"); let messageNum = 0; error.getStackedErrors().forEach((error) => { error.messages.forEach((message, i) => { console.log((i === 0 ? (" #" + (++messageNum)).red : " ") + " " + message) }); error.stacks.forEach((stack) => console.log(" • ".yellow + stack.gray)); console.log(); }); return; } // Handling for default errors. Formatter.heading("ERROR", "!!".red, "red"); if (!(error instanceof Error)) { return consoleError(error); } let firstBreak = error.message.indexOf("\n"); if (firstBreak === -1) { firstBreak = error.message.length; } let errorBody = error.message.substr(firstBreak).replace(/\n(.)/g, "\n • ".red + "$1"); consoleError(error.message.substr(0, firstBreak)); consoleError(errorBody); Formatter.heading("STACK TRACE", ">>".yellow, "yellow"); consoleError(error.stack.substr(error.stack.indexOf(" at ")).replace(/ /g, " • ".yellow)); }, /** * Prints formatted warning. * * @param {string} str * Warning text. */ warn(str) { Formatter.heading("WARNING", "!".yellow, "yellow"); consoleWarn(str); }, /** * Registers listeners for formatting text from recognized tags. */ infect() { console.log = function(str, ...args) { str = str || ""; if (typeof str === "string") { if (args) { str = util.format(str, ...args); } const headingMatch = str.match(/.{2}/); if (str.length > 2 && headingMatch[0] === "--") { Formatter.heading(str.substr(headingMatch.index + 2)); return; } } consoleLog(str); }; console.error = function(str, ...args) { str = str || ""; if (typeof str === "string" && args) { str = util.format(str, ...args); } Formatter.error(str); // Used for exit codes. Errors can specify error codes. if (str instanceof Error && Number.isInteger(str.code)) { return str.code; } // If not an error object then default to 1. return 1; }; console.warn = function(str, ...args) { str = str || ""; if (typeof str === "string" && args) { str = util.format(str, ...args); } Formatter.warn(str); }; }, };
archfz/drup
src/terminal-utils/formatter.js
JavaScript
mit
5,026
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); });
SynchroLabs/StashBox
app.js
JavaScript
mit
7,225
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
untidy-hair/service_object
lib/service_object/errors.rb
Ruby
mit
2,021
#!/usr/bin/python # -*- coding: utf-8 -*- # @author victor li [email protected] # @date 2015/10/07 import baseHandler class MainHandler(baseHandler.RequestHandler): def get(self): self.redirect('/posts/last')
lncwwn/woniu
routers/mainHandler.py
Python
mit
224
// // NSDate+WT.h // lchSDK // // Created by lch on 16/1/12. // Copyright © 2015年 lch. All rights reserved. // #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 *)defaultDateFormatterWithFormatYYYYMMddHHmmss; + (NSDateFormatter *)defaultDateFormatterWithFormatYYYYMMdd; + (NSDateFormatter *)defaultDateFormatterWithFormatMMddHHmm; + (NSDateFormatter *)defaultDateFormatterWithFormatYYYYMMddHHmmInChinese; + (NSDateFormatter *)defaultDateFormatterWithFormatMMddHHmmInChinese; /** *@Description:获取当天的包括“年”,“月”,“日”,“周”,“时”,“分”,“秒”的NSDateComponents *@Params:nil *@Return:当天的包括“年”,“月”,“日”,“周”,“时”,“分”,“秒”的NSDateComponents */ - (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; /** *@Description:判断与某一天是否为同一天 *@Params: * otherDate:某一天 *@Return:YES-同一天;NO-不同一天 */ - (BOOL)sameDayWithDate:(NSDate *)otherDate; /** *@Description:判断与某一天是否为同一周 *@Params: * otherDate:某一天 *@Return:YES-同一周;NO-不同一周 */ - (BOOL)sameWeekWithDate:(NSDate *)otherDate; /** *@Description:判断与某一天是否为同一月 *@Params: * otherDate:某一天 *@Return:YES-同一月;NO-不同一月 */ - (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 *)YYYYMMddHHmmInChinese; - (NSString *)MMddHHmmInChinese; @end
lch872/lchSDK
lchSDK/Category/NS/NSDate+WT.h
C
mit
4,828
/** * */ 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.NoSuchElementException; import java.util.Scanner; import java.util.regex.Pattern; /** * Default implementation of the SocketConnectionFacade interface using java.io. * * @author srt, asalazar * @version $Id: SocketConnectionFacadeImpl.java 1377 2009-10-17 03:24:49Z srt $ */ public class SocketConnectionFacadeImpl implements SocketConnectionFacade { 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 SocketConnectionFacadeImpl(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. */ SocketConnectionFacadeImpl(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 (IllegalStateException 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 (NoSuchElementException 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(); } }
dayler/AsteriskInterface
src/me/dayler/ai/ami/conn/SocketConnectionFacadeImpl.java
Java
mit
4,154
<!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>
JulianNicholls/Understanding-AngularJS
scope-interpolation/index.html
HTML
mit
1,550
// 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://www.google.com)", function(err, result) { assert.equal(result.references.length, 1); done(); }); }); it('images full', function(done) { parserOptions.parse("[google](http://www.google.com)", function(err, result) { 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://www.google.com/images/zoubida.png)", function(err, result) { assert.equal(result.references.length, 1); assert.equal(result.references[0].href, 'http://www.google.com/images/zoubida.png'); done(); }); }); }); });
darul75/markdown-parser
test/main.js
JavaScript
mit
3,107
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);
relhtml/prologue
components/BlogCard/index.js
JavaScript
mit
481
.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}
harinathebc/sample_codeigniter
assets/examples/css/structure/navbars.min.css
CSS
mit
496
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.QUEUE_RABBITMQ_CONNECTIONSTRING } }, 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)) } };
trappsnl/dstore
config.js
JavaScript
mit
1,089
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_20) on Mon Nov 01 20:33:53 CET 2010 --> <TITLE> Uses of Class play.libs.WS (Play! API) </TITLE> <META NAME="date" CONTENT="2010-11-01"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class play.libs.WS (Play! API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../play/libs/WS.html" title="class in play.libs"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?play/libs//class-useWS.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="WS.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Class<br>play.libs.WS</B></H2> </CENTER> No usage of play.libs.WS <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../play/libs/WS.html" title="class in play.libs"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?play/libs//class-useWS.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="WS.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <a href="http://guillaume.bort.fr">Guillaume Bort</a> &amp; <a href="http://www.zenexity.fr">zenexity</a> - Distributed under <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2 licence</a>, without any warrantly </BODY> </HTML>
ericlink/adms-server
playframework-dist/play-1.1/documentation/api/play/libs/class-use/WS.html
HTML
mit
5,793
import React from 'react'; import { createStore } from 'redux'; import { createBrowserHistory } 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={createBrowserHistory()} store={configureStore()}/>); expect(wrapper.find(Routes)).to.have.lengthOf(1); }); });
elemus/react-redux-todo-example
test/containers/App.spec.js
JavaScript
mit
652
#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--,j++) 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; }
CSE-SOE-CUSAT/NOSLab
csb/extras/a-b-c-d-pipe.c
C
mit
1,716
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'
Angarsk8/elixir-cowboy-react-spa
client/src/actions/index.js
JavaScript
mit
407
<link data-turbolinks-track="true" href="http://zebra.easybird.cn//assets/application-9f674e9fd925ff3aca42c05a9a21bdaad56211d8ce90de12ecd1924966593d71.css" media="all" rel="stylesheet"> <script data-turbolinks-track="true" src="http://zebra.easybird.cn//assets/assets/application-ae2722ac77e8668d4e05ad6a5bdd5abd8220833c7bb38200313301a36ec98e35.js"></script> <meta content="authenticity_token" name="csrf-param"> <meta content="mk1Ai+vY08JqtoxuMElcDjZKO5sRDbvm0H/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>产品编号</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>
dreamlx/zebra
app/views/reports/编码管理首页/二维码查询.html
HTML
mit
2,940
package info.yongli.statistic.table; /** * Created by yangyongli on 25/04/2017. */ public class ColumnTransformer { }
yongli82/dsl
src/main/java/info/yongli/statistic/table/ColumnTransformer.java
Java
mit
123
#region License // Copyright (c) 2009 Sander van Rossen // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #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; } } } }
xlgames-inc/XLE
Tools/HyperGraph/NodeConnector.cs
C#
mit
3,299
# ProductAccess_server start ```npm run start```
FlorianEdelmaier/ProductAccess_server
README.md
Markdown
mit
49
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);
ikatyang/types-ramda
tests/drop.ts
TypeScript
mit
243
/* Title: Behavioral Finance and Market Behavior layout: chapter */ ## Chapter Learning Objectives ### Section 1 - Investor Behavior - Identify and describe the biases that can affect investor decision making. - Explain how framing errors can influence investor decision making. - Identify the factors that can influence investor profiles. ### Section 2 - Market Behavior - Define the role of arbitrage in market efficiency. - Describe the limits of arbitrage that may perpetuate market inefficiency. - Identify the economic and cultural factors that can allow market inefficiencies to persist. - Explain the role of feedback as reinforcement of market inefficiencies. ### Section 3 - Extreme Market Behavior - Trace the typical pattern of a financial crisis. - Identify and define the factors that contribute to a financial crisis. ### Section 4 - Behavioral Finance and Investment Strategies - Identify the factors that make successful market timing difficult. - Explain how technical analysis is used as an investment strategy. - Identify the factors that encourage investor fraud in an asset bubble.
lanacademy/lan-learn
content/individual_finance/5.Behavioral_Finance_and_Market_Behavior/index.md
Markdown
mit
1,122
function browserSupportsHtml5HistoryApi() { return !! (history && history.replaceState && history.pushState); } $(document).ready(function() { //_gaq.push(['_trackEvent', 'Citizen-Format-Smartanswer', 'Load']); if(browserSupportsHtml5HistoryApi()) { 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 (! browserSupportsHtml5HistoryApi() && 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, latestQuestionIsOffScreen: 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.latestQuestionIsOffScreen($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() { $('.report-a-problem-container form #url').val(window.location.href); $('.meta-wrapper').show(); }); } }; contentPosition.init(); });
ministryofjustice/smart-answers
app/assets/javascripts/smart-answers.js
JavaScript
mit
4,962
.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; }
ku6ryo/artdope
themes/crystal/css/tooltip.css
CSS
mit
976
<?php /* * This file is part of the Symfony package. * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Tests\Component\Security\User; use Symfony\Component\Security\User\AccountChecker; class AccountCheckerTest extends \PHPUnit_Framework_TestCase { public function testCheckPreAuthNotAdvancedAccountInterface() { $checker = new AccountChecker(); $this->assertNull($checker->checkPreAuth($this->getMock('Symfony\Component\Security\User\AccountInterface'))); } public function testCheckPreAuthPass() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $account->expects($this->once())->method('isCredentialsNonExpired')->will($this->returnValue(true)); $this->assertNull($checker->checkPreAuth($account)); } /** * @expectedException Symfony\Component\Security\Exception\CredentialsExpiredException */ public function testCheckPreAuthCredentialsExpired() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $account->expects($this->once())->method('isCredentialsNonExpired')->will($this->returnValue(false)); $checker->checkPreAuth($account); } public function testCheckPostAuthNotAdvancedAccountInterface() { $checker = new AccountChecker(); $this->assertNull($checker->checkPostAuth($this->getMock('Symfony\Component\Security\User\AccountInterface'))); } public function testCheckPostAuthPass() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $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 testCheckPostAuthAccountLocked() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $account->expects($this->once())->method('isAccountNonLocked')->will($this->returnValue(false)); $checker->checkPostAuth($account); } /** * @expectedException Symfony\Component\Security\Exception\DisabledException */ public function testCheckPostAuthDisabled() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $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\AccountExpiredException */ public function testCheckPostAuthAccountExpired() { $checker = new AccountChecker(); $account = $this->getMock('Symfony\Component\Security\User\AdvancedAccountInterface'); $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); } }
spf13/symfony
tests/Symfony/Tests/Component/Security/User/AccountCheckerTest.php
PHP
mit
3,936
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?token=1330978144_f9b698fea38cd408d52a2393240c896c', posterUrl: 'http://b.vimeocdn.com/ts/261/062/261062119_640.jpg' } ] } ] } });
joshuamorony/CustomIcons
app/view/Main.js
JavaScript
mit
1,564
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../../../_lib/setUTCDay/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('../../../_lib/setUTCISODay/index.js'); var _index4 = _interopRequireDefault(_index3); var _index5 = require('../../../_lib/setUTCISOWeek/index.js'); var _index6 = _interopRequireDefault(_index5); var _index7 = require('../../../_lib/setUTCISOWeekYear/index.js'); var _index8 = _interopRequireDefault(_index7); var _index9 = require('../../../_lib/startOfUTCISOWeek/index.js'); var _index10 = _interopRequireDefault(_index9); var _index11 = require('../../../_lib/startOfUTCISOWeekYear/index.js'); var _index12 = _interopRequireDefault(_index11); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var MILLISECONDS_IN_MINUTE = 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 * MILLISECONDS_IN_MINUTE); return dateValues; } }, timestamp: { priority: 120, set: function set(dateValues, value) { dateValues.date = new Date(value); return dateValues; } } }; exports.default = units; module.exports = exports['default'];
lucionei/chamadotecnico
chamadosTecnicosFinal-app/node_modules/date-fns/parse/_lib/units/index.js
JavaScript
mit
4,996
<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"> <input id="filedata" type="file" name="photo" accept="image/*" /> </form> </div> <div class="sambungfloat"></div> </div> </div> </div> </form> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#preview').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $('#filedata').change(function(){ readURL(this); }); </script>
afifhidayat24/minunew
application/views/admin/add-guru-artikel-v.php
PHP
mit
2,940
// Copyright (c) 2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_SPAN_H #define BITCOIN_SPAN_H #include <algorithm> #include <cassert> #include <cstddef> #include <cstdint> #include <type_traits> #ifdef DEBUG #define CONSTEXPR_IF_NOT_DEBUG #define ASSERT_IF_DEBUG(x) assert((x)) #else #define CONSTEXPR_IF_NOT_DEBUG constexpr #define ASSERT_IF_DEBUG(x) #endif #if defined(__clang__) #if __has_attribute(lifetimebound) #define SPAN_ATTR_LIFETIMEBOUND [[clang::lifetimebound]] #else #define SPAN_ATTR_LIFETIMEBOUND #endif #else #define SPAN_ATTR_LIFETIMEBOUND #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> CONSTEXPR_IF_NOT_DEBUG 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 SPAN_ATTR_LIFETIMEBOUND, 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 SPAN_ATTR_LIFETIMEBOUND, 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; } CONSTEXPR_IF_NOT_DEBUG C &front() const noexcept { ASSERT_IF_DEBUG(size() > 0); return m_data[0]; } CONSTEXPR_IF_NOT_DEBUG 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; } CONSTEXPR_IF_NOT_DEBUG C &operator[](std::size_t pos) const noexcept { ASSERT_IF_DEBUG(size() > pos); return m_data[pos]; } CONSTEXPR_IF_NOT_DEBUG Span<C> subspan(std::size_t offset) const noexcept { ASSERT_IF_DEBUG(size() >= offset); return Span<C>(m_data + offset, m_size - offset); } CONSTEXPR_IF_NOT_DEBUG 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); } CONSTEXPR_IF_NOT_DEBUG Span<C> first(std::size_t count) const noexcept { ASSERT_IF_DEBUG(size() >= count); return Span<C>(m_data, count); } CONSTEXPR_IF_NOT_DEBUG 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::lexicographical_compare(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 SPAN_ATTR_LIFETIMEBOUND) -> 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 SPAN_ATTR_LIFETIMEBOUND) -> 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
Bitcoin-ABC/bitcoin-abc
src/span.h
C
mit
11,773
# frozen_string_literal: 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
tablexi/nucore-open
lib/array_util.rb
Ruby
mit
322
<!DOCTYPE html> <html lang="en-gb" dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>List component - UIkit documentation</title> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> <link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon.png"> <link id="data-uikit-theme" rel="stylesheet" href="css/uikit.docs.min.css"> <link rel="stylesheet" href="css/docs.css"> <link rel="stylesheet" href="../vendor/highlight/highlight.css"> <script src="../vendor/jquery.js"></script> <script src="../dist/js/uikit.min.js"></script> <script src="../vendor/highlight/highlight.js"></script> <script src="js/docs.js"></script> </head> <body class="tm-background"> <nav class="tm-navbar uk-navbar uk-navbar-attached"> <div class="uk-container uk-container-center"> <a class="uk-navbar-brand uk-hidden-small" href="../index.html"><img class="uk-margin uk-margin-remove" src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></a> <ul class="uk-navbar-nav uk-hidden-small"> <li><a href="documentation_get-started.html">Get Started</a></li> <li class="uk-active"><a href="components.html">Components</a></li> <li><a href="addons.html">Add-ons</a></li> <li><a href="customizer.html">Customizer</a></li> <li><a href="../showcase/index.html">Showcase</a></li> </ul> <a href="#tm-offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas></a> <div class="uk-navbar-brand uk-navbar-center uk-visible-small"><img src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></div> </div> </nav> <div class="tm-middle"> <div class="uk-container uk-container-center"> <div class="uk-grid" data-uk-grid-margin> <div class="tm-sidebar uk-width-medium-1-4 uk-hidden-small"> <ul class="tm-nav uk-nav" data-uk-nav> <li class="uk-nav-header">Defaults</li> <li><a href="base.html">Base</a></li> <li><a href="print.html">Print</a></li> <li class="uk-nav-header">Layout</li> <li><a href="grid.html">Grid</a></li> <li><a href="panel.html">Panel</a></li> <li><a href="article.html">Article</a></li> <li><a href="comment.html">Comment</a></li> <li><a href="utility.html">Utility</a></li> <li class="uk-nav-header">Navigations</li> <li><a href="nav.html">Nav</a></li> <li><a href="navbar.html">Navbar</a></li> <li><a href="subnav.html">Subnav</a></li> <li><a href="breadcrumb.html">Breadcrumb</a></li> <li><a href="pagination.html">Pagination</a></li> <li><a href="tab.html">Tab</a></li> <li class="uk-nav-header">Elements</li> <li class="uk-active"><a href="list.html">List</a></li> <li><a href="description-list.html">Description list</a></li> <li><a href="table.html">Table</a></li> <li><a href="form.html">Form</a></li> <li class="uk-nav-header">Common</li> <li><a href="button.html">Button</a></li> <li><a href="icon.html">Icon</a></li> <li><a href="close.html">Close</a></li> <li><a href="badge.html">Badge</a></li> <li><a href="alert.html">Alert</a></li> <li><a href="thumbnail.html">Thumbnail</a></li> <li><a href="overlay.html">Overlay</a></li> <li><a href="progress.html">Progress</a></li> <li><a href="text.html">Text</a></li> <li><a href="animation.html">Animation</a></li> <li class="uk-nav-header">JavaScript</li> <li><a href="dropdown.html">Dropdown</a></li> <li><a href="modal.html">Modal</a></li> <li><a href="offcanvas.html">Off-canvas</a></li> <li><a href="switcher.html">Switcher</a></li> <li><a href="toggle.html">Toggle</a></li> <li><a href="tooltip.html">Tooltip</a></li> <li><a href="scrollspy.html">Scrollspy</a></li> <li><a href="smooth-scroll.html">Smooth scroll</a></li> </ul> </div> <div class="tm-main uk-width-medium-3-4"> <article class="uk-article"> <h1 class="uk-article-title">List</h1> <p class="uk-article-lead">Easily create nicely looking lists, which come in different styles.</p> <h2 id="usage"><a href="#usage" class="uk-link-reset">Usage</a></h2> <p>To apply this component, add the <code>.uk-list</code> class to an unordered or ordered list. The list will now display without any spacing or list-style.</p> <h3 class="tm-article-subtitle">Example</h3> <ul class="uk-list"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul> <h3 class="tm-article-subtitle">Markup</h3> <pre><code>&lt;ul class="uk-list"&gt; &lt;li&gt;...&lt;/li&gt; &lt;li&gt;...&lt;/li&gt; &lt;li&gt;...&lt;/li&gt; &lt;/ul&gt;</code></pre> <hr class="uk-article-divider"> <h2 id="modifiers"><a href="#modifiers" class="uk-link-reset">Modifiers</a></h2> <p>To display the list in a different style, just add a modifier class to the the <code>.uk-list</code> class. The modifiers of the List component are <em>not</em> combinable with each other.</p> <h3>List line</h3> <p>Add the <code>.uk-list-line</code> class to separate list items with lines.</p> <h4 class="tm-article-subtitle">Example</h4> <ul class="uk-list uk-list-line uk-width-medium-1-3"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul> <h3 class="tm-article-subtitle">Markup</h3> <pre><code>&lt;ul class="uk-list uk-list-line"&gt;...&lt;/ul&gt;</code></pre> <hr class="uk-article-divider"> <h3>List striped</h3> <p>Add zebra-striping to a list using the <code>.uk-list-striped</code> class.</p> <h4 class="tm-article-subtitle">Example</h4> <ul class="uk-list uk-list-striped uk-width-medium-1-3"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul> <h3 class="tm-article-subtitle">Markup</h3> <pre><code>&lt;ul class="uk-list uk-list-striped"&gt;...&lt;/ul&gt;</code></pre> <hr class="uk-article-divider"> <h3>List space</h3> <p>Add the <code>.uk-list-space</code> class to increase the spacing between list items.</p> <h4 class="tm-article-subtitle">Example</h4> <ul class="uk-list uk-list-space uk-width-medium-1-3"> <li>This modifier may be useful for for list items with multiple lines of text.</li> <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li> <li>Ut enim ad minim veniam, quis nostrud exercitation ullamco.</li> </ul> <h3 class="tm-article-subtitle">Markup</h3> <pre><code>&lt;ul class="uk-list uk-list-space"&gt;...&lt;/ul&gt;</code></pre> </article> </div> </div> </div> </div> <div class="tm-footer"> <div class="uk-container uk-container-center uk-text-center"> <ul class="uk-subnav uk-subnav-line"> <li><a href="http://github.com/uikit/uikit">GitHub</a></li> <li><a href="http://github.com/uikit/uikit/issues">Issues</a></li> <li><a href="http://github.com/uikit/uikit/blob/master/CHANGELOG.md">Changelog</a></li> <li><a href="https://twitter.com/getuikit">Twitter</a></li> </ul> <div class="uk-panel"> <p>Made by <a href="http://www.yootheme.com">YOOtheme</a> with love and caffeine.<br>Licensed under <a href="http://opensource.org/licenses/MIT">MIT license</a>.</p> <a href="../index.html"><img src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></a> </div> </div> </div> <div id="tm-offcanvas" class="uk-offcanvas"> <div class="uk-offcanvas-bar"> <ul class="uk-nav uk-nav-offcanvas uk-nav-parent-icon" data-uk-nav="{multiple:true}"> <li class="uk-parent"><a href="#">Documentation</a> <ul class="uk-nav-sub"> <li><a href="documentation_get-started.html">Get started</a></li> <li><a href="documentation_how-to-customize.html">How to customize</a></li> <li><a href="documentation_layouts.html">Layout examples</a></li> <li><a href="components.html">Components</a></li> <li><a href="addons.html">Add-ons</a></li> <li><a href="documentation_project-structure.html">Project structure</a></li> <li><a href="documentation_create-a-theme.html">Create a theme</a></li> <li><a href="documentation_create-a-style.html">Create a style</a></li> <li><a href="documentation_customizer-json.html">Customizer.json</a></li> <li><a href="documentation_javascript.html">JavaScript</a></li> </ul> </li> <li class="uk-nav-header">Components</li> <li class="uk-parent"><a href="#"><i class="uk-icon-wrench"></i> Defaults</a> <ul class="uk-nav-sub"> <li><a href="base.html">Base</a></li> <li><a href="print.html">Print</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-th-large"></i> Layout</a> <ul class="uk-nav-sub"> <li><a href="grid.html">Grid</a></li> <li><a href="panel.html">Panel</a></li> <li><a href="article.html">Article</a></li> <li><a href="comment.html">Comment</a></li> <li><a href="utility.html">Utility</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-bars"></i> Navigations</a> <ul class="uk-nav-sub"> <li><a href="nav.html">Nav</a></li> <li><a href="navbar.html">Navbar</a></li> <li><a href="subnav.html">Subnav</a></li> <li><a href="breadcrumb.html">Breadcrumb</a></li> <li><a href="pagination.html">Pagination</a></li> <li><a href="tab.html">Tab</a></li> </ul> </li> <li class="uk-parent uk-active"><a href="#"><i class="uk-icon-check"></i> Elements</a> <ul class="uk-nav-sub"> <li><a href="list.html">List</a></li> <li><a href="description-list.html">Description list</a></li> <li><a href="table.html">Table</a></li> <li><a href="form.html">Form</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-folder-open"></i> Common</a> <ul class="uk-nav-sub"> <li><a href="button.html">Button</a></li> <li><a href="icon.html">Icon</a></li> <li><a href="close.html">Close</a></li> <li><a href="badge.html">Badge</a></li> <li><a href="alert.html">Alert</a></li> <li><a href="thumbnail.html">Thumbnail</a></li> <li><a href="overlay.html">Overlay</a></li> <li><a href="progress.html">Progress</a></li> <li><a href="text.html">Text</a></li> <li><a href="animation.html">Animation</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-magic"></i> JavaScript</a> <ul class="uk-nav-sub"> <li><a href="dropdown.html">Dropdown</a></li> <li><a href="modal.html">Modal</a></li> <li><a href="offcanvas.html">Off-canvas</a></li> <li><a href="switcher.html">Switcher</a></li> <li><a href="toggle.html">Toggle</a></li> <li><a href="tooltip.html">Tooltip</a></li> <li><a href="scrollspy.html">Scrollspy</a></li> <li><a href="smooth-scroll.html">Smooth scroll</a></li> </ul> </li> <li class="uk-nav-header">Add-ons</li> <li class="uk-parent"><a href="#"><i class="uk-icon-th-large"></i> Layout</a> <ul class="uk-nav-sub"> <li><a href="addons_flex.html">Flex</a></li> <li><a href="addons_cover.html">Cover</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-bars"></i> Navigations</a> <ul class="uk-nav-sub"> <li><a href="addons_dotnav.html">Dotnav</a></li> <li><a href="addons_slidenav.html">Slidenav</a></li> <li><a href="addons_pagination.html">Pagination</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-folder-open"></i> Common</a> <ul class="uk-nav-sub"> <li><a href="addons_form-advanced.html">Form advanced</a></li> <li><a href="addons_form-file.html">Form file</a></li> <li><a href="addons_form-password.html">Form password</a></li> <li><a href="addons_form-select.html">Form select</a></li> <li><a href="addons_placeholder.html">Placeholder</a></li> </ul> </li> <li class="uk-parent"><a href="#"><i class="uk-icon-magic"></i> JavaScript</a> <ul class="uk-nav-sub"> <li><a href="addons_autocomplete.html">Autocomplete</a></li> <li><a href="addons_datepicker.html">Datepicker</a></li> <li><a href="addons_htmleditor.html">HTML editor</a></li> <li><a href="addons_notify.html">Notify</a></li> <li><a href="addons_search.html">Search</a></li> <li><a href="addons_nestable.html">Nestable</a></li> <li><a href="addons_sortable.html">Sortable</a></li> <li><a href="addons_sticky.html">Sticky</a></li> <li><a href="addons_timepicker.html">Timepicker</a></li> <li><a href="addons_upload.html">Upload</a></li> </ul> </li> <li class="uk-nav-divider"></li> <li><a href="../showcase/index.html">Showcase</a></li> </ul> </div> </div> </body> </html>
larsito030/elternfreund
docs/list.html
HTML
mit
17,974
// get params function getParams() { var params = { initial_amount: parseInt($('#initial_amount').val(), 10) || 0, interest_rate_per_annum: parseFloat($('#interest_rate_per_annum').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), monthly_interest_rate = params.interest_rate_per_annum / 12, monthly_amount, months = []; if (params.method == 'by_num_months') { var pow = Math.pow(1 + monthly_interest_rate, params.num_months); monthly_amount = remainder * monthly_interest_rate * 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 * monthly_interest_rate); 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)); $('#total_interested_paid').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); $('#interest_rate_per_annum').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);
timotheeg/html_loan_calculator
js/main.js
JavaScript
mit
2,663
using Lidgren.Network; namespace Gem.Network.Handlers { public class DummyHandler : IMessageHandler { public void Handle(NetConnection sender, object args) { } } }
gmich/Gem
Gem.Network/Handlers/DummyHandler.cs
C#
mit
195
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/_WidgetsInTemplateMixin", "dijit/form/Button" ], function(declare, baseFx, lang, domStyle, mouse, on, _WidgetBase, _TemplatedMixin, template,_OnDijitClickMixin,_WidgetsInTemplateMixin,Button){ return declare([_WidgetBase, _OnDijitClickMixin,_TemplatedMixin,_WidgetsInTemplateMixin], { // 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:"", // //产品ID // 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", // mouseBackgroundColor: "#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; } } }); });
MingXingTeam/dojo-mobile-test
contactsList/widgets/TGPrdWidget/TGPrdWidget.js
JavaScript
mit
2,307
<?php /** * PHPUnit * * Copyright (c) 2002-2009, Sebastian Bergmann <[email protected]>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * * Neither the name of Sebastian Bergmann nor the names of his * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * @category Testing * @package PHPUnit * @author Sebastian Bergmann <[email protected]> * @copyright 2002-2009 Sebastian Bergmann <[email protected]> * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version SVN: $Id: PerformanceTestCase.php 4701 2009-03-01 15:29:08Z sb $ * @link http://www.phpunit.de/ * @since File available since Release 2.1.0 */ require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/Util/Filter.php'; require_once 'PHPUnit/Util/Timer.php'; PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); /** * A TestCase that expects a TestCase to be executed * meeting a given time limit. * * @category Testing * @package PHPUnit * @author Sebastian Bergmann <[email protected]> * @copyright 2002-2009 Sebastian Bergmann <[email protected]> * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version Release: 3.4.0RC3 * @link http://www.phpunit.de/ * @since Class available since Release 2.1.0 */ abstract class PHPUnit_Extensions_PerformanceTestCase extends PHPUnit_Framework_TestCase { /** * @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 InvalidArgumentException * @since Method available since Release 2.3.0 */ public function setMaxRunningTime($maxRunningTime) { if (is_integer($maxRunningTime) && $maxRunningTime >= 0) { $this->maxRunningTime = $maxRunningTime; } else { throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'positive integer'); } } /** * @return integer * @since Method available since Release 2.3.0 */ public function getMaxRunningTime() { return $this->maxRunningTime; } } ?>
olle/baseweb
lib/php/PHPUnit/Extensions/PerformanceTestCase.php
PHP
mit
4,120
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'); });
mjvalade/electron-recipes
app/renderer.js
JavaScript
mit
1,232
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
blambeau/sexpr
spec/unit/matcher/rule/test_eat.rb
Ruby
mit
264
/* * 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() { /*********************************************** * Encrypt Email script- Please keep notice intact * Tool URL: http://www.dynamicdrive.com/emailriddler/ * **********************************************/ 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 */ $('.imageSmallContainerOuter 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>"); }); });
lukpueh/Mach-die-strasse-bunt
static/js/main.js
JavaScript
mit
6,075
'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; // Scaling statement belongs to: https://www.davrous.com/2012/04/06/modernizing-your-html5-canvas-games-part-1-hardware-scaling-css3/ 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);
Sanguinary/Poolhopper
bin/init.js
JavaScript
mit
4,385
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 dangerouslySetInnerHTML={this.getMarkup()}></div> </div> : null} </div> </div> ) } } function mapStateToProps(state) { return {settings: state.settings} } export default connect(mapStateToProps)(MapFull);
howardjones/network-weathermap
websrc/cacti-user/src/components/MapFull.js
JavaScript
mit
1,270
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), 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 }); };
positive-js/mosaic
packages/docs/karma.conf.js
JavaScript
mit
866
# AsylumJam2016 Projet VR sur mobile.
RemiFusade2/AsylumJam2016
README.md
Markdown
mit
38
--- 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://foo.com/` and you want to add a custom claim named myclaim, you would name the claim `https://foo.com/myclaim`, instead of `myclaim`. 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-authorize-id-tokens-access-control">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-authorize-get-validate-id-tokens">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/07_01-brand-how-it-works">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/07_02-brand-signup-login-pages">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/08-brand-emails-error-pages">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/01-architecture-your-tenant">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/02-provision-user-stores">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/03-provision-import-users">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-authenticate-how-it-works">Authenticate: How It Works</a> <p>How user authentication works and various ways to accomplish it with Auth0.</p> </li> </ul>
yvonnewilson/docs
articles/videos/get-started/04_02-authenticate-spa-example.md
Markdown
mit
9,894
<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>
EricBou/N3-UX
src/client/app/components/app.component.html
HTML
mit
212
from ab_tool.tests.common import (SessionTestCase, TEST_COURSE_ID, TEST_OTHER_COURSE_ID, NONEXISTENT_TRACK_ID, NONEXISTENT_EXPERIMENT_ID, APIReturn, LIST_MODULES) from django.core.urlresolvers import reverse from ab_tool.models import (Experiment, InterventionPointUrl) from ab_tool.exceptions import (EXPERIMENT_TRACKS_ALREADY_FINALIZED, NO_TRACKS_FOR_EXPERIMENT, UNAUTHORIZED_ACCESS, INTERVENTION_POINTS_ARE_INSTALLED) import json from mock import patch class TestExperimentPages(SessionTestCase): """ Tests related to Experiment and Experiment pages and methods """ def test_create_experiment_view(self): """ Tests edit_experiment template renders for url 'create_experiment' """ response = self.client.get(reverse("ab_testing_tool_create_experiment")) self.assertOkay(response) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def test_create_experiment_view_unauthorized(self): """ Tests edit_experiment template does not render for url 'create_experiment' when unauthorized """ self.set_roles([]) response = self.client.get(reverse("ab_testing_tool_create_experiment"), follow=True) self.assertTemplateNotUsed(response, "ab_tool/create_experiment.html") self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def test_edit_experiment_view(self): """ Tests edit_experiment template renders when authenticated """ experiment = self.create_test_experiment() response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def test_edit_experiment_view_started_experiment(self): """ Tests edit_experiment template renders when experiment has started """ experiment = self.create_test_experiment() experiment.tracks_finalized = True experiment.save() response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def test_edit_experiment_view_with_tracks_weights(self): """ Tests edit_experiment template renders properly with track weights """ experiment = self.create_test_experiment() experiment.assignment_method = Experiment.WEIGHTED_PROBABILITY_RANDOM track1 = self.create_test_track(name="track1", experiment=experiment) track2 = self.create_test_track(name="track2", experiment=experiment) self.create_test_track_weight(experiment=experiment, track=track1) self.create_test_track_weight(experiment=experiment, track=track2) response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(experiment.id,))) self.assertTemplateUsed(response, "ab_tool/edit_experiment.html") def test_edit_experiment_view_unauthorized(self): """ Tests edit_experiment template doesn't render when unauthorized """ self.set_roles([]) experiment = self.create_test_experiment(course_id=TEST_OTHER_COURSE_ID) response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(experiment.id,)), follow=True) self.assertTemplateNotUsed(response, "ab_tool/edit_experiment.html") self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def test_edit_experiment_view_nonexistent(self): """Tests edit_experiment when experiment does not exist""" e_id = NONEXISTENT_EXPERIMENT_ID response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(e_id,))) self.assertTemplateNotUsed(response, "ab_tool/edit_experiment.html") self.assertEquals(response.status_code, 404) def test_edit_experiment_view_wrong_course(self): """ Tests edit_experiment when attempting to access a experiment from a different course """ experiment = self.create_test_experiment(course_id=TEST_OTHER_COURSE_ID) response = self.client.get(reverse("ab_testing_tool_edit_experiment", args=(experiment.id,))) self.assertError(response, UNAUTHORIZED_ACCESS) def test_edit_experiment_view_last_modified_updated(self): """ Tests edit_experiment to confirm that the last updated timestamp changes """ experiment = self.create_test_experiment() experiment.name += " (updated)" response = self.client.post(reverse("ab_testing_tool_submit_edit_experiment", 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 test_submit_create_experiment(self): """ Tests that create_experiment creates a Experiment object verified by DB count when uniformRandom is true""" Experiment.get_placeholder_course_experiment(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("ab_testing_tool_submit_create_experiment"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def test_submit_create_experiment_csv_upload(self): """ Tests that create_experiment creates a Experiment object verified by DB count when csvUpload is True and no track weights are specified""" Experiment.get_placeholder_course_experiment(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("ab_testing_tool_submit_create_experiment"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def test_submit_create_experiment_with_weights_as_assignment_method(self): """ Tests that create_experiment creates a Experiment object verified by DB count when uniformRandom is false and the tracks have weightings """ Experiment.get_placeholder_course_experiment(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("ab_testing_tool_submit_create_experiment"), follow=True, content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(num_experiments + 1, Experiment.objects.count(), response) def test_submit_create_experiment_unauthorized(self): """Tests that create_experiment creates a Experiment object verified by DB count""" self.set_roles([]) Experiment.get_placeholder_course_experiment(TEST_COURSE_ID) num_experiments = Experiment.objects.count() experiment = {"name": "experiment", "notes": "hi"} response = self.client.post( reverse("ab_testing_tool_submit_create_experiment"), 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 test_submit_edit_experiment(self): """ Tests that submit_edit_experiment does not change DB count but does change Experiment attribute""" experiment = self.create_test_experiment(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("ab_testing_tool_submit_edit_experiment", 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 test_submit_edit_experiment_changes_assignment_method_to_weighted(self): """ Tests that submit_edit_experiment changes an Experiment's assignment method from uniform (default) to weighted""" experiment = self.create_test_experiment(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("ab_testing_tool_submit_edit_experiment", 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.WEIGHTED_PROBABILITY_RANDOM) self.assertEquals(experiment.track_probabilites.count(), no_track_weights + 2) def test_submit_edit_experiment_changes_assignment_method_to_uniform(self): """ Tests that submit_edit_experiment changes an Experiment's assignment method from weighted uniform """ experiment = self.create_test_experiment( name="old_name", assignment_method=Experiment.WEIGHTED_PROBABILITY_RANDOM) 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("ab_testing_tool_submit_edit_experiment", 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 test_submit_edit_experiment_unauthorized(self): """ Tests submit_edit_experiment when unauthorized""" self.set_roles([]) experiment = self.create_test_experiment(name="old_name") experiment_id = experiment.id experiment = {"name": "new_name", "notes": ""} response = self.client.post( reverse("ab_testing_tool_submit_edit_experiment", args=(experiment_id,)), content_type="application/json", data=json.dumps(experiment), follow=True ) self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def test_submit_edit_experiment_nonexistent(self): """ Tests that submit_edit_experiment method raises error for non-existent Experiment """ experiment_id = NONEXISTENT_EXPERIMENT_ID experiment = {"name": "new_name", "notes": ""} response = self.client.post( reverse("ab_testing_tool_submit_edit_experiment", args=(experiment_id,)), content_type="application/json", data=json.dumps(experiment) ) self.assertEquals(response.status_code, 404) def test_submit_edit_experiment_wrong_course(self): """ Tests that submit_edit_experiment method raises error for existent Experiment but for wrong course""" experiment = self.create_test_experiment(name="old_name", course_id=TEST_OTHER_COURSE_ID) data = {"name": "new_name", "notes": ""} response = self.client.post( reverse("ab_testing_tool_submit_edit_experiment", args=(experiment.id,)), content_type="application/json", data=json.dumps(data) ) self.assertError(response, UNAUTHORIZED_ACCESS) def test_submit_edit_started_experiment_changes_name_and_notes(self): """ Tests that submit_edit_experiment changes an Experiment's name and notes and track names only if the experiment has already been started """ experiment = self.create_test_experiment(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("ab_testing_tool_submit_edit_experiment", 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 test_submit_edit_started_experiment_does_not_change_tracks(self): """ Tests that submit_edit_experiment doesn't change tracks for an experiment that has already been started """ experiment = self.create_test_experiment(name="old_name", tracks_finalized=True, assignment_method=Experiment.WEIGHTED_PROBABILITY_RANDOM) 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("ab_testing_tool_submit_edit_experiment", 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.WEIGHTED_PROBABILITY_RANDOM) self.assertEquals(experiment.tracks.count(), no_tracks) def test_submit_edit_started_experiment_changes_existing_tracks(self): """ Tests that submit_edit_experiment does change track objects for an experiment that has not yet been started """ experiment = self.create_test_experiment(name="old_name", tracks_finalized=False, assignment_method=Experiment.WEIGHTED_PROBABILITY_RANDOM) track1 = self.create_test_track(experiment=experiment, name="A") track2 = self.create_test_track(experiment=experiment, name="B") self.create_test_track_weight(experiment=experiment, track=track1) self.create_test_track_weight(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("ab_testing_tool_submit_edit_experiment", 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.WEIGHTED_PROBABILITY_RANDOM) 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 test_delete_experiment(self): """ Tests that delete_experiment method properly deletes a experiment when authorized""" first_num_experiments = Experiment.objects.count() experiment = self.create_test_experiment() self.assertEqual(first_num_experiments + 1, Experiment.objects.count()) response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertOkay(response) self.assertEqual(first_num_experiments, second_num_experiments) def test_delete_experiment_already_finalized(self): """ Tests that delete experiment doesn't work when experiments are finalized """ experiment = self.create_test_experiment() experiment.update(tracks_finalized=True) first_num_experiments = Experiment.objects.count() response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertError(response, EXPERIMENT_TRACKS_ALREADY_FINALIZED) self.assertEqual(first_num_experiments, second_num_experiments) @patch(LIST_MODULES, return_value=APIReturn([{"id": 0}])) def test_delete_experiment_has_installed_intervention_point(self, _mock1): """ Tests that delete experiment doesn't work when there is an associated intervention point is installed """ experiment = self.create_test_experiment() first_num_experiments = Experiment.objects.count() ret_val = [True] with patch("ab_tool.canvas.CanvasModules.experiment_has_installed_intervention", return_value=ret_val): response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertError(response, INTERVENTION_POINTS_ARE_INSTALLED) self.assertEqual(first_num_experiments, second_num_experiments) def test_delete_experiment_unauthorized(self): """ Tests that delete_experiment method raises error when unauthorized """ self.set_roles([]) experiment = self.create_test_experiment() first_num_experiments = Experiment.objects.count() response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertTemplateUsed(response, "ab_tool/not_authorized.html") self.assertEqual(first_num_experiments, second_num_experiments) def test_delete_experiment_nonexistent(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.create_test_experiment() t_id = NONEXISTENT_EXPERIMENT_ID first_num_experiments = Experiment.objects.count() response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(t_id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertEqual(first_num_experiments, second_num_experiments) self.assertOkay(response) def test_delete_experiment_wrong_course(self): """ Tests that delete_experiment method raises error for existent Experiment but for wrong course """ experiment = self.create_test_experiment(course_id=TEST_OTHER_COURSE_ID) first_num_experiments = Experiment.objects.count() response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_experiments = Experiment.objects.count() self.assertEqual(first_num_experiments, second_num_experiments) self.assertError(response, UNAUTHORIZED_ACCESS) def test_delete_experiment_deletes_intervention_point_urls(self): """ Tests that intervention_point_urls of a experiment are deleted when the experiment is """ experiment = self.create_test_experiment() track1 = self.create_test_track(name="track1", experiment=experiment) track2 = self.create_test_track(name="track2", experiment=experiment) intervention_point = self.create_test_intervention_point() InterventionPointUrl.objects.create(intervention_point=intervention_point, track=track1, url="example.com") InterventionPointUrl.objects.create(intervention_point=intervention_point, track=track2, url="example.com") first_num_intervention_point_urls = InterventionPointUrl.objects.count() response = self.client.post(reverse("ab_testing_tool_delete_experiment", args=(experiment.id,)), follow=True) second_num_intervention_point_urls = InterventionPointUrl.objects.count() self.assertOkay(response) self.assertEqual(first_num_intervention_point_urls - 2, second_num_intervention_point_urls) def test_finalize_tracks(self): """ Tests that the finalize tracks page sets the appropriate course """ experiment = Experiment.get_placeholder_course_experiment(TEST_COURSE_ID) self.assertFalse(experiment.tracks_finalized) self.create_test_track() response = self.client.post(reverse("ab_testing_tool_finalize_tracks", args=(experiment.id,)), follow=True) self.assertOkay(response) experiment = Experiment.get_placeholder_course_experiment(TEST_COURSE_ID) self.assertTrue(experiment.tracks_finalized) def test_finalize_tracks_missing_urls(self): """ Tests that finalize fails if there are missing urls """ experiment = Experiment.get_placeholder_course_experiment(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.create_test_intervention_point() InterventionPointUrl.objects.create(intervention_point=intervention_point, track=track1, url="example.com") response = self.client.post(reverse("ab_testing_tool_finalize_tracks", args=(experiment.id,)), follow=True) self.assertOkay(response) experiment = Experiment.get_placeholder_course_experiment(TEST_COURSE_ID) self.assertFalse(experiment.tracks_finalized) def test_finalize_tracks_no_tracks(self): """ Tests that finalize fails if there are no tracks for an experiment """ experiment = Experiment.get_placeholder_course_experiment(TEST_COURSE_ID) response = self.client.post(reverse("ab_testing_tool_finalize_tracks", args=(experiment.id,)), follow=True) self.assertError(response, NO_TRACKS_FOR_EXPERIMENT) def test_finalize_tracks_missing_track_weights(self): """ Tests that finalize fails if there are no track weights for an weighted probability experiment """ experiment = self.create_test_experiment(assignment_method=Experiment.WEIGHTED_PROBABILITY_RANDOM) self.create_test_track(name="track1", experiment=experiment) response = self.client.post(reverse("ab_testing_tool_finalize_tracks", args=(experiment.id,)), follow=True) self.assertOkay(response) self.assertFalse(experiment.tracks_finalized) def test_copy_experiment(self): """ Tests that copy_experiment creates a new experiment """ experiment = self.create_test_experiment() num_experiments = Experiment.objects.count() url = reverse("ab_testing_tool_copy_experiment", args=(experiment.id,)) response = self.client.post(url, follow=True) self.assertOkay(response) self.assertEqual(Experiment.objects.count(), num_experiments + 1) def test_copy_experiment_unauthorized(self): """ Tests that copy_experiment fails when unauthorized """ self.set_roles([]) experiment = self.create_test_experiment() url = reverse("ab_testing_tool_copy_experiment", args=(experiment.id,)) response = self.client.post(url, follow=True) self.assertTemplateUsed(response, "ab_tool/not_authorized.html") def test_copy_experiment_inavlid_id(self): """ Tests that copy_experiment fails with bad experiment_id """ url = reverse("ab_testing_tool_copy_experiment", args=(12345,)) response = self.client.post(url, follow=True) self.assertEquals(response.status_code, 404) def test_copy_experiment_wrong_course(self): """ Tests that copy_experiment fails if experiment is different coruse """ experiment = self.create_test_experiment(course_id=TEST_OTHER_COURSE_ID) url = reverse("ab_testing_tool_copy_experiment", 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.create_test_experiment() track = self.create_test_track(experiment=experiment) self.assertEqual(experiment.tracks.count(), 1) response = self.client.post(reverse("ab_testing_tool_delete_track", args=(track.id,)), follow=True) self.assertEqual(experiment.tracks.count(), 0) self.assertOkay(response) def test_delete_nonexistent_track(self): """ Tests that delete_track method succeeds, by design, when deleting a nonexistent track""" experiment = self.create_test_experiment() self.assertEqual(experiment.tracks.count(), 0) response = self.client.post(reverse("ab_testing_tool_delete_track", args=(NONEXISTENT_TRACK_ID,)), follow=True) self.assertEqual(experiment.tracks.count(), 0) self.assertOkay(response)
penzance/ab-testing-tool
ab_tool/tests/test_experiment_pages.py
Python
mit
28,898
#-*- 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)
moremorefor/Logpot
logpot/admin/setting.py
Python
mit
2,802
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Queues extends CI_Controller { public function __construct() { parent::__construct(); date_default_timezone_set('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->getAllCustomerAppointments(); $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(); } } }
dazal/dazlive
application/controllers/Queues_old.php
PHP
mit
3,814
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)
audy/make-rmarkdown
Makefile
Makefile
mit
266
--- 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).
rendrjs/rendrjs.github.io
_collection/meta.md
Markdown
mit
396
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) } }
Vzaa/craycray
src/color.rs
Rust
mit
1,432
<?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); } }
Swader/todohelpist
app/Console/Commands/Inspire.php
PHP
mit
619
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // 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.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;choice maxOccurs="unbounded" minOccurs="0"> * &lt;group ref="{}tekst.minimaal"/> * &lt;element ref="{}nootref"/> * &lt;element ref="{}noot"/> * &lt;/choice> * &lt;element ref="{}meta-data" minOccurs="0"/> * &lt;/sequence> * &lt;attGroup ref="{}attlist.intitule"/> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @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(CollapsedStringAdapter.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; } }
digitalheir/java-wetten-nl-library
src/main/java/nl/wetten/bwbng/toestand/Intitule.java
Java
mit
7,834
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DnDGen.Web.Tests.Integration")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("DnDGen.Web.Tests.Integration")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("722de08a-3185-48fd-b1c7-78eb3a1cde4d")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
DnDGen/DNDGenSite
DnDGen.Web.Tests.Integration/Properties/AssemblyInfo.cs
C#
mit
1,432
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;
obandox/JS-Xmas-Store-App-CodingClubVP
autoform/_wizard.js
JavaScript
mit
1,313
SET DEFINE OFF; ALTER TABLE AFW_13_PAGE_ITEM ADD ( CONSTRAINT AFW_13_PAGE_ITEM_FK2 FOREIGN KEY (REF_MESG_AIDE) REFERENCES AFW_01_MESG (SEQNC) ENABLE VALIDATE) /
lgcarrier/APEXFramework
5.2.3/Database/Constraints/AFW_13_PAGE_ITEM_FK2.sql
SQL
mit
171
// Copyright © 2014-2016 Ryan Leckey, All Rights Reserved. // Distributed under the MIT License // See accompanying file LICENSE #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
arrow-lang/arrow
include/arrow/pass.hpp
C++
mit
572
<?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); } } }
premkamon746/quizgame
application/controllers/GameQuestion.php
PHP
mit
2,321
--- 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/ ---
balsamiq/docs.balsamiq.com
content/google-drive/b3/exporting.md
Markdown
mit
297
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gmange <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2013/12/02 16:03:39 by gmange #+# #+# */ /* Updated: 2016/09/27 10:53:59 by gmange ### ########.fr */ /* */ /* ************************************************************************** */ #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); } }
gmange/RT
src/get_next_line.c
C
mit
4,184
/* =========================================================== * bootstrap-modal.js v2.1 * =========================================================== * Copyright 2012 Jordan Schroter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================== */ !function ($) { "use strict"; // jshint ;_; /* MODAL CLASS DEFINITION * ====================== */ var Modal = function (element, options) { this.init(element, options); }; Modal.prototype = { constructor: Modal, init: function (element, options) { this.options = options; this.$element = $(element) .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)); this.options.remote && this.$element.find('.modal-body').load(this.options.remote); var manager = typeof this.options.manager === 'function' ? this.options.manager.call(this) : this.options.manager; manager = manager.appendModal ? manager : $(manager).modalmanager().data('modalmanager'); manager.appendModal(this); }, toggle: function () { return this[!this.isShown ? 'show' : 'hide'](); }, show: function () { var e = $.Event('show'); if (this.isShown) return; this.$element.triggerHandler(e); if (e.isDefaultPrevented()) return; this.escape(); this.tab(); this.options.loading && this.loading(); }, hide: function (e) { e && e.preventDefault(); e = $.Event('hide'); this.$element.triggerHandler(e); if (!this.isShown || e.isDefaultPrevented()) return (this.isShown = false); this.isShown = false; this.escape(); this.tab(); this.isLoading && this.loading(); $(document).off('focusin.modal'); this.$element .removeClass('in') .removeClass('animated') .removeClass(this.options.attentionAnimation) .removeClass('modal-overflow') .attr('aria-hidden', true); $.support.transition && this.$element.hasClass('fade') ? this.hideWithTransition() : this.hideModal(); }, layout: function () { var prop = this.options.height ? 'height' : 'max-height', value = this.options.height || this.options.maxHeight; if (this.options.width){ this.$element.css('width', this.options.width); var that = this; this.$element.css('margin-left', function () { if (/%/ig.test(that.options.width)){ return -(parseInt(that.options.width) / 2) + '%'; } else { return -($(this).width() / 2) + 'px'; } }); } else { this.$element.css('width', ''); this.$element.css('margin-left', ''); } this.$element.find('.modal-body') .css('overflow', '') .css(prop, ''); var modalOverflow = $(window).height() - 10 < this.$element.height(); if (value){ this.$element.find('.modal-body') .css('overflow', 'auto') .css(prop, value); } if (modalOverflow || this.options.modalOverflow) { this.$element .css('margin-top', 0) .addClass('modal-overflow'); } else { this.$element .css('margin-top', 0 - this.$element.height() / 2) .removeClass('modal-overflow'); } }, tab: function () { var that = this; if (this.isShown && this.options.consumeTab) { this.$element.on('keydown.tabindex.modal', '[data-tabindex]', function (e) { if (e.keyCode && e.keyCode == 9){ var $next = $(this), $rollover = $(this); that.$element.find('[data-tabindex]:enabled:not([readonly])').each(function (e) { if (!e.shiftKey){ $next = $next.data('tabindex') < $(this).data('tabindex') ? $next = $(this) : $rollover = $(this); } else { $next = $next.data('tabindex') > $(this).data('tabindex') ? $next = $(this) : $rollover = $(this); } }); $next[0] !== $(this)[0] ? $next.focus() : $rollover.focus(); e.preventDefault(); } }); } else if (!this.isShown) { this.$element.off('keydown.tabindex.modal'); } }, escape: function () { var that = this; if (this.isShown && this.options.keyboard) { if (!this.$element.attr('tabindex')) this.$element.attr('tabindex', -1); this.$element.on('keyup.dismiss.modal', function (e) { e.which == 27 && that.hide(); }); } else if (!this.isShown) { this.$element.off('keyup.dismiss.modal') } }, hideWithTransition: function () { var that = this , timeout = setTimeout(function () { that.$element.off($.support.transition.end); that.hideModal(); }, 500); this.$element.one($.support.transition.end, function () { clearTimeout(timeout); that.hideModal(); }); }, hideModal: function () { this.$element .hide() .triggerHandler('hidden'); var prop = this.options.height ? 'height' : 'max-height'; var value = this.options.height || this.options.maxHeight; if (value){ this.$element.find('.modal-body') .css('overflow', '') .css(prop, ''); } }, removeLoading: function () { this.$loading.remove(); this.$loading = null; this.isLoading = false; }, loading: function (callback) { callback = callback || function () {}; var animate = this.$element.hasClass('fade') ? 'fade' : ''; if (!this.isLoading) { var doAnimate = $.support.transition && animate; this.$loading = $('<div class="loading-mask ' + animate + '">') .append(this.options.spinner) .appendTo(this.$element); if (doAnimate) this.$loading[0].offsetWidth; // force reflow this.$loading.addClass('in'); this.isLoading = true; doAnimate ? this.$loading.one($.support.transition.end, callback) : callback(); } else if (this.isLoading && this.$loading) { this.$loading.removeClass('in'); var that = this; $.support.transition && this.$element.hasClass('fade')? this.$loading.one($.support.transition.end, function () { that.removeLoading() }) : that.removeLoading(); } else if (callback) { callback(this.isLoading); } }, focus: function () { var $focusElem = this.$element.find(this.options.focusOn); $focusElem = $focusElem.length ? $focusElem : this.$element; $focusElem.focus(); }, attention: function (){ // NOTE: transitionEnd with keyframes causes odd behaviour if (this.options.attentionAnimation){ this.$element .removeClass('animated') .removeClass(this.options.attentionAnimation); var that = this; setTimeout(function () { that.$element .addClass('animated') .addClass(that.options.attentionAnimation); }, 0); } this.focus(); }, destroy: function () { var e = $.Event('destroy'); this.$element.triggerHandler(e); if (e.isDefaultPrevented()) return; this.teardown(); }, teardown: function () { if (!this.$parent.length){ this.$element.remove(); this.$element = null; return; } if (this.$parent !== this.$element.parent()){ this.$element.appendTo(this.$parent); } this.$element.off('.modal'); this.$element.removeData('modal'); this.$element .removeClass('in') .attr('aria-hidden', true); } }; /* MODAL PLUGIN DEFINITION * ======================= */ $.fn.modal = function (option, args) { return this.each(function () { var $this = $(this), data = $this.data('modal'), options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option); if (!data) $this.data('modal', (data = new Modal(this, options))); if (typeof option == 'string') data[option].apply(data, [].concat(args)); else if (options.show) data.show() }) }; $.fn.modal.defaults = { keyboard: true, backdrop: true, loading: false, show: true, width: null, height: null, maxHeight: null, modalOverflow: false, consumeTab: true, focusOn: null, replace: false, resize: false, attentionAnimation: 'shake', manager: 'body', spinner: '<div class="loading-spinner" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div></div>' }; $.fn.modal.Constructor = Modal; /* MODAL DATA-API * ============== */ $(function () { $(document).off('.modal').on('click.modal.data-api', '[data-toggle="modal"]', function (e) { var $this = $(this), href = $this.attr('href'), $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))), //strip for ie7 option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()); e.preventDefault(); $target .modal(option) .one('hide', function () { $this.focus(); }) }); }); }(window.jQuery);
ner0tic/landmarxApp
src/Landmarx/UtilityBundle/Resources/public/js/bootstrap-modal.js
JavaScript
mit
9,265
using System.Collections.Generic; using System.Data.Common; using System.Linq; namespace Affixx.Core.Database.Generator { internal class SqlServerSchemaReader : 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, CHARACTER_MAXIMUM_LENGTH 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 "; } }
Affixx/affixx
Affixx.Core/Database/Generator/SqlServerSchemaReader.cs
C#
mit
4,940
<p align="center"><a href="https://godoc.org/github.com/volatile/response"><img src="http://volatile.whitedevops.com/images/repositories/response/logo.png" alt="response" title="response"></a><br><br></p> Package [response](https://godoc.org/github.com/volatile/response) is a helper for the [core](https://godoc.org/github.com/volatile/core). It provides syntactic sugar that lets you easily write responses on the context. [![GoDoc](https://godoc.org/github.com/volatile/response?status.svg)](https://godoc.org/github.com/volatile/response)
volatile/response
README.md
Markdown
mit
547
<div class="row"> <div class="col-xs-4 form-group" validity-coordinator> <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"> <panel-collection-editor 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> </panel-collection-editor> </div> </div>
nikospara/egkyron
src/examples/angular/app/scripts/main/petEditor.tpl.html
HTML
mit
1,391
<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://google-code-prettify.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/delete-printsetup-and-viewsheetsettings/m-p/6063449 - reload dll for debugging without restart http://stackoverflow.com/questions/33525908/revit-api-load-command-auto-reload - draw a curve: http://forums.autodesk.com/t5/revit-api/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/td-p/6063446 - distance from family instance to floor or elevation http://forums.autodesk.com/t5/revit-api/elevation-of-family-instance-from-floor-or-level-below-it/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/tbc-the-building-coder-source-and-index-on-github.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/revit-api-load-command-auto-reload">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/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/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/model-and-detail-curve-colour.html">Model and Detail Curve Colour</a></li> <li><a href="http://thebuildingcoder.typepad.com/blog/2010/05/detail-curve-must-indeed-lie-in-plane.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/generating-a-midcurve-between-two-curve-elements.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/the_building_coder_samples">The Building Coder samples</a>, in the module <a href="https://github.com/jeremytammik/the_building_coder_samples/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/the_building_coder_samples/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/the_building_coder_samples/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/elevation-of-family-instance-from-floor-or-level-below-it/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=GUID-B3EE488D-2287-49A2-A772-C7164B84A648">finding geometry by ray projection</a> (<a href="http://forums.autodesk.com/t5/revit-api/elevation-of-family-instance-from-floor-or-level-below-it/m-p/6057571">Revit 2014 Czech</a>, <a href="http://help.autodesk.com/view/RVT/2014/CSY/?guid=GUID-B3EE488D-2287-49A2-A772-C7164B84A648">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/delete-printsetup-and-viewsheetsettings/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/setting-viewsheetsetting-insession-views-property">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/printermanager-printsetup-do-not-apply-settings/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/printermanager-printsetup-do-not-apply-settings/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; CleanUpTemporaryViewSheets( doc, pMgr ); &nbsp; &nbsp; &nbsp; CleanUpTemporaryPrintSettings( doc, pMgr ); &nbsp; &nbsp; &nbsp; trans.Commit(); &nbsp; &nbsp; } &nbsp; } &nbsp; &nbsp; <span class="blue">private</span> <span class="blue">void</span> CleanUpTemporaryPrintSettings( &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> printSettingsToDelete &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">FilteredElementCollector</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; = printSettingsToDelete <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> CleanUpTemporaryViewSheets( &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> viewSheetSetToDelete &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">FilteredElementCollector</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; = viewSheetSetToDelete <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>
jeremytammik/tbc
a/1410_delete_print_setup.html
HTML
mit
15,927
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'AcceptedByOriginator') 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 [IX_Users_DisplayName] 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, [LastEditorDisplayName] [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 [IX_Posts_Id_AcceptedAnswerId] UNIQUE NONCLUSTERED ([Id] ASC,[AcceptedAnswerId] ASC ) ON [PRIMARY], -- INDICES CONSTRAINT [IX_Posts_Id_OwnerUserId] UNIQUE NONCLUSTERED ([Id] ASC,[OwnerUserId] ASC ) ON [PRIMARY], -- INDICES CONSTRAINT [IX_Posts_Id_ParentId] UNIQUE NONCLUSTERED ([Id] ASC,[ParentId] ASC ) ON [PRIMARY] )ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] IF 0 = 1-- INDICES BEGIN CREATE NONCLUSTERED INDEX [IX_Posts_Id_PostTypeId] 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'start_change_tracking' EXEC dbo.Sp_fulltext_table @tabname = N'StackExchange.[Posts]' , @action = N'start_background_updateindex' 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 [IX_Comments_Id_PostId] ON StackExchange.[Comments] ( [Id] ASC, [PostId] ASC) ON [PRIMARY] CREATE NONCLUSTERED INDEX [IX_Comments_Id_UserId] 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
mjlmo/SEPSLoader
mssql.sql
SQL
mit
10,242
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.getConditionValueByKey("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;
GlowackiHolak/awsWorker
worker.js
JavaScript
mit
1,975
# 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 EngineConnectionException(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 EngineAPIKeyException(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 CacheConnectionException(SearchException): """ Thrown when cache connectivity error occurs. """ pass class InvalidQueryException(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
leifos/ifind
ifind/search/exceptions.py
Python
mit
2,524
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 TransitionExampleSingleExplorer 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> ) } }
shengnian/shengnian-ui-react
docs/app/Examples/modules/Transition/Explorers/TransitionExampleGroupExplorer.js
JavaScript
mit
1,810
#!/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
mpurg/qtools
docs/tutorials/seminar_2017_03_08/data/2-fep/run_q_local.sh
Shell
mit
396
# s-vertical-rhythm-class 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 [[email protected]](mailto:[email protected]) [https://olivierbossel.com](https://olivierbossel.com)
Coffeekraken/sugar
doc/src/sass/core/functions/_s-vertical-rhythm-class.md
Markdown
mit
397
export class Guest { constructor(public name: String, public quantity: number){ } }
vnaranjo/wedding-seating-chart
client/controllers/guest/guest.ts
TypeScript
mit
95
FROM sameersbn/ubuntu:14.04.20150805 MAINTAINER [email protected] 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 E1DD270288B4E6030699E45FA1715D88E1DF1F24 \ && echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main" >> /etc/apt/sources.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \ && echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu trusty main" >> /etc/apt/sources.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \ && echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list \ && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && 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 \ && rm -rf /var/lib/apt/lists/* COPY assets/setup/ ${SETUP_DIR}/ RUN bash ${SETUP_DIR}/install.sh COPY assets/config/ ${SETUP_DIR}/config/ COPY entrypoint.sh /sbin/entrypoint.sh RUN chmod 755 /sbin/entrypoint.sh COPY plugins/ ${SETUP_DIR}/plugins/ COPY themes/ ${SETUP_DIR}/themes/ EXPOSE 80/tcp 443/tcp VOLUME ["${REDMINE_DATA_DIR}", "${REDMINE_LOG_DIR}"] WORKDIR ${REDMINE_INSTALL_DIR} ENTRYPOINT ["/sbin/entrypoint.sh"] CMD ["app:start"]
rewiko/docker-redmine
Dockerfile
Dockerfile
mit
2,089
<?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(); } } } ?>
dhena201/tadev
application/controllers/Dosen.php
PHP
mit
3,127
import {server} from './initializers' module.exports = function startServer(){ server.listen(8080) }
klirix/ThunderCloudServer
src/app.ts
TypeScript
mit
105
## Estrutura de diretórios para projetos AngularJS * app/ -> arquivos da aplicação + css/ -> arquivos css + js/ -> componentes javascript da aplicação + controllers/ -> diretório para os controllers + directives/ -> diretório para os directives + filters/ -> diretório para os filters + services/ -> diretório para os services + scripts/ -> diretório para os scrips js + app.js -> principal script da aplicação + lib/ -> bibliotecas javascript + views/ -> diretório para as views + index.html -> principal arquivo html * public/ -> diretório para arquivos estáticos + css/ -> arquivos css + fonts/ -> arquivos de fontes + images/ -> arquivos de imagens + js/ -> arquivos js
IgorSantos17/BigBangProject
AngularJS/AngularJS.md
Markdown
mit
967
# totem-enquete-ru Versão Arduino para dar sua opinião sobre o cardápio do Restaurante Universitário da UFRN
m4nolo/totem-enquete-ru
README.md
Markdown
mit
113