text
stringlengths
3
1.05M
// A websocket client that queries points from Greyhound. var WebSocket = require('ws'); var run = function() { var ws = new WebSocket('ws://localhost:8080/'); // Helper method to send json objects. var send = function(obj) { ws.send(JSON.stringify(obj)); } ws.on('open', function() { send({ command: 'rea...
/** * Provides the ability to drag multiple nodes under a container element using only one Y.DD.Drag instance as a delegate. * @module dd * @submodule dd-delegate */ /** * Provides the ability to drag multiple nodes under a container element using only one Y.DD.Drag instance as a deleg...
import {paddedBinary} from "./core.js"; import {register} from "./coder.js"; export default function integer() { return { encode: function (int) { const binary = Math.abs(int).toString(2); const bits = paddedBinary(binary.length, 6) + (int > 0 ? '1' : '0') + binary; retu...
import os from pycocotools.coco import COCO from app.api.api_interface import ApiInterface class CocoApi(ApiInterface): def __init__(self, available_datasets): self.AVAILABLE_DATASETS = available_datasets self.load_dataset(available_datasets[0]) def load_dataset(self, dataset): ...
/* Copyright 2014 OpenMarket Ltd 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 ...
!function (e, t) { var d = "createElement", n = "getElementsByTagName", c = "setAttribute", a = document.getElementById(e); return a && a.parentNode && a.parentNode.removeChild(a), a = document[d + "NS"] && document.documentElement.namespaceURI, a = a ? document[d + "NS"](a, "script") : document[d]("script"), a[c]("id"...
// COPYRIGHT © 201 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute ...
import contract from 'truffle-contract'; export function testQuery( { web3, querySpecs }, { QueryTest } ) { const type = 'TEST_QUERY'; return function(dispatch) { dispatch({ type: `${type}_PENDING` }); // Double-check web3's status //if (web3 && typeof web3 !== 'undefined') { // Checking if W...
import {esSearchableString} from 'elasticsearch/aggs/ref/typeGroups'; import { optional, script, termsExclude, termsInclude, } from 'elasticsearch/types/params'; import { boolean, integerD, integer, object, objectD, objectOf, string } from 'types'; import { background_filter, field, min_doc_count, script...
// MMM-Wallpaper.js Module.register("MMM-Wallpaper", { // Default module config defaults: { source: "bing", updateInterval: 60 * 60 * 1000, slideInterval: 5 * 60 * 1000, maximumEntries: 10, filter: "grayscale(0.5) brightness(0.5)", orientation: "auto", caption: true, crossfade: true...
import COLUMN_TYPES from './column-types'; import {isObject, unFormatFloat, validateType} from '../helpers/index'; export default class FieldValidator { column; /** * @param {Column} column */ constructor(column) { this.column = column; } validate(value) { switch (this.c...
/** * Implement the Stack with a given interface via array. * * @example * const stack = new Stack(); * * stack.push(1); // adds the element to the stack * stack.peek(); // returns the peek, but doesn't delete it, returns 1 * stack.pop(); // returns the top element from stack and deletes it, returns 1 * stack....
// Copyright (C) 2021 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plaindatetime.prototype.withplaintime description: Missing time units in property bag default to 0 includes: [temporalHelpers.js] features: [Temporal] ---*/ const ins...
(function(d){d['sv']=Object.assign(d['sv']||{},{a:"Kan inte ladda upp fil:",b:"Table toolbar",c:"Image toolbar",d:"Blockcitat",e:"Increase indent",f:"Decrease indent",g:"Välj rubrik",h:"Rubrik",i:"Insert image or file",j:"Fet",k:"image widget",l:"Kursiv",m:"Numrerad lista",n:"Punktlista",o:"Bild i full storlek",p:"Kant...
import React, { Component} from 'react'; import { connect } from 'react-redux' class GLogin extends Component { componentDidMount(){ gapi.signin2.render('g-signin2', { 'scope': 'https://www.googleapis.com/auth/plus.login', 'width': 200, 'height': 50, 'longti...
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-25 13:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teamModule', '0013_auto_20180620_1441'), ] operations = [ migrations.AlterField( model...
import Engine from 'ember-engines/engine'; import loadInitializers from 'ember-load-initializers'; import Resolver from './resolver'; import config from './config/environment'; const { modulePrefix } = config; const Eng = Engine.extend({ modulePrefix, Resolver, dependencies: { services: [ ...
class Die { nbRolls = 0; lastValue = 100; rolls() { let result = 0; for (let i = 0; i < 3; i++) { this.lastValue++; if (this.lastValue > 100) { this.lastValue = 1; } result += this.lastValue; this.nbRolls++; } return result; } } class Player { id; curr...
import numpy as np import random import math from create_imbalance import create_imbalance from scipy.ndimage import rotate, zoom def clipped_zoom(img, zoom_factor, **kwargs): h, w = img.shape[:2] zh = int(np.round(zoom_factor * h)) zw = int(np.round(zoom_factor * w)) zoom_tuple = (zoom_fac...
/** * CityController * * @description :: Server-side logic for managing cities * @help :: See http://links.sailsjs.org/docs/controllers */ module.exports = { findByName: function(req, res) { var params = req.allParams(); if (params && params.name) { City.find({ name: {"contains": pa...
'use strict'; const pkg = require('../package.json'); const year = new Date().getFullYear(); const fs = require('fs'); const { exit } = require('process'); function getBanner() { return `/*! * Bootstrap-Dark-5 v${pkg.version} (${pkg.homepage}) * Copyright ${year != 2021 ? '2021-' : ''}${year} ${pkg.author} * Lic...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.shortcuts import get_object_or_404 from django.views.generic import DetailView, ListView from scuole.cohort.models import CohortYear from scuole.states.models import StateStats from .models import County, CountyCohorts cla...
import pcbnew # KiCAD 6 renames some of the types, ensure compatibility by introducing aliases # when KiCAD 5 is used def getVersion(): try: v = [int(x) for x in pcbnew.GetMajorMinorVersion().split(".")] return tuple(v) except AttributeError: # KiCAD 5 does not have such function, assu...
var chai = require('chai'); chai.use(require('sinon-chai')); global.expect = chai.expect;
_site_information = {} def get_site_information(): if not _site_information: load_site_information() return _site_information def set_site_information(**kwargs): _site_information.update(kwargs) def load_site_information(): from .models import SiteInformation qs = SiteInformation.objec...
import i18n from "./i18n.json"; const genText = (fnText, arg) => { if (!fnText) { return ""; } else if (typeof fnText === "function") { return fnText(arg); } else { return fnText; } }; export const locz = (key) => { const lang = window.navigator.language; let locList = {}; if (/zh/gi.test(lan...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import styled from "styled-components" const ExhibitionPageTracker = props => { const context = props.pageContext const data = useStaticQuery(graphql` query { allMarkdownRemark( filter: { fileAbsolutePath: { regex: "/exhib...
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Rect = void 0; var tslib_1 = require("tslib"); var Box_1 = require("./Box"); var Rect = /** @class */ (function (_super) { tslib_1.__extends(Rect, _super); function Rect(x, y, width, height, allowNegativeDimensions) { i...
import React from "react"; import { StyleSheet, View } from "react-native"; const App = () => { return ( <View style={styles.container}> {/* Nested View*/} <View style={styles.box}> <View style={styles.innerbox}></View> </View> {/* View item in row*/} <View style={styles.ro...
import App from '@/App' import { shallow } from '@vue/test-utils' describe('App.vue', () => { let cmp beforeEach(() => { cmp = shallow(App, { data: { } }) }) it('has the expected html structure', () => { expect(cmp.element).toMatchSnapshot() }) })
const express = require('express') const router = express.Router(); const User = require('../model/user') const Post = require('../model/posts') router.post('/signup', function (req, res) { User.find({ email: req.body.email }).exec() .then(user => { if (user) { return res.sta...
import Block from './Block'; import Text from './Text'; export { Block, Text };
const express = require('express') const subscriberFilters = express.Router({ mergeParams: true }) const { middleware, filterFuncs } = require('./guilds.feeds.filters') function validSubscriber (req, res, next) { const reqSubscriberID = req.params.subscriberID const source = req.source const subscribers = source...
/** * wickedpicker v0.3.0 - A simple jQuery timepicker. * Copyright (c) 2015-2016 Eric Gagnon - http://github.com/wickedRidge/wickedpicker * License: MIT */ // (function ($, window, document) { "use strict"; if (typeof String.prototype.endsWith != 'function') { /* * Checks if this string ...
import { h } from 'vue' export default { name: "ArrowLeft", vendor: "Ph", type: "", tags: ["arrow","left"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-arrow-left","innerHTML":" <rect width='2...
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
/* * Copyright (c) 2012, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ define(['gamesound'], function (GameSound) { var Sounds = {}; var audioF...
import React from 'react' import PropTypes from 'prop-types' import QueryString from 'query-string' import { Link } from 'react-router-dom' import _ from 'lodash' import util from 'utils' import fetchAPI from 'api' import { apis } from 'api/config' import { Button, message } from 'antd' import { CICULATION_ROUTE_LIST, ...
const Koa = require('koa'); const bodyParser = require('koa-bodyparser'); const Sequelize = require('sequelize'); const supertest = require('supertest'); const config = require('../../config'); const authRouter = require('../../app/routes/routes'); // mock loadUser policy/middleware jest.mock('../../app/middleware/loa...
/* global angular */ (function () { 'use strict'; var thisModule = angular.module('appBarChart', ['pipServices']); thisModule.controller('BarChartController', function ($scope) { // $scope.series = [{ // key: 'Completed', // values: [{value: 980, label:...
/*! * filename: ej.menu.min.js * version : 18.1.0.53 * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted und...
angular .module('weather') .controller('GetWeather', GetWeather); function GetWeather ($scope, $http) { $http .get('http://api.wunderground.com/api/5031721c44f8c66f//geolookup/conditions/forecast10day/q/autoip.json') .success(function (data){ $scope.weather = data; }); }
speed=int(input("Insira a velocidade que você atingiu em Km: ")) multa=(speed-80)*7 if speed>80: print("Você foi multado e pagará uma multa de R${:.2f}.".format(multa)) else: print("Você não foi multado.")
const fs = require("fs"); const files = fs.readdir("../globals", (err, files) => { if (err) { throw err; } console.log(files); });
describe('An Array Suite', function () { 'use strict'; const app = require('../public/app.js'); beforeAll(function () { app.init(); }); it('contains spec with an expectation', function () { expect(true).toBe(true); }); it('Can create ArrayAll', function () { expec...
/* Copyright 2019 Travis Ralston 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 ...
$(function() { // responsive iframe // see: http://blog.apps.npr.org/pym.js/ var child = new pym.Child({id: 'councillor-iframe'}); // Use parent URL as fb share URL function addFacebookShare(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.cre...
$(document).ready(function () { $.ajax({ type: "POST", url: "/resources/ajax/dashboard/fetch-sidebar.php", dataType: "json", success: function (data) { console.log(data); if (data.access_account_settings == true || data.access_account_advanced == true) { ...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
import logging from aiogram import Bot, types from aiogram.utils import executor from aiogram.dispatcher import Dispatcher from aiogram.contrib.fsm_storage.memory import MemoryStorage from aiogram.contrib.middlewares.logging import LoggingMiddleware from pathlib import Path from IPython.core.debugger import set_trac...
module.exports = (db) => { const path = require("path"); const env = process.env.NODE_ENV || "dev"; const config = require(path.join(__dirname, '..', 'config', 'config.js'))[env]; const crypto = require('crypto'); const jwt = require('jsonwebtoken'); const rfs = require('rotating-file-stream'); const { v4...
 // debug // http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function () { log.history = log.history || []; // store logs to an array for reference log.history.push(arguments); if (this.console) { console.log(Array.prototype.slice.call(arguments)); } }; // e...
const os = require('os'); const cnfg = require('dotenv').config(); let config = require('./config.json')[process.env.NODE_ENV || 'development']; config.baseUrl = os.hostname() + 'api/v1'; config.jwtSecret = process.env.APP_SECRET; config.Dat module.exports = config;
import React from 'react'; const App = () => ( <div class="canvas"> </div> ); export default App;
import moment from 'moment'; export const dateRange = { toString: function (range, format) { if (!range.from) { return 'Before ' + format(range.to); } else if (!range.to) { return 'After ' + format(range.from); } else { return format(range.from) + ' to ' + format(range.to); } }, ...
import { get } from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { matchPath } from 'react-router-dom'; import { compose, withHandlers } from 'recompose'; // Components import Sidebar from 'components/Sidebar'; // Containers import Form from './containers/Form'; // Ducks import ...
'use strict'; const Promise = require('bluebird'); const parseError = require('error_parser'); const _ = require('lodash'); const messagingFn = require('../services/messaging'); module.exports = function module(context) { const events = context.apis.foundation.getSystemEvents(); const cluster = context.cluste...
const esbuild = require('esbuild') const stylus = require('stylus') const fs = require('fs') const { copy } = require('fs-extra') const startTime = Date.now() const paths = { js: { entry: ['./src/app.js'], out: './public/app.js' }, css: { entry: './src/index.styl', out: './public/styles.css' }, html: { entry: ...
var mongoose = require('mongoose'); var _ = require('lodash'); var Topic = mongoose.model('Topic'); /** * List */ exports.all = function(req, res) { Topic.find({}).exec(function(err, topics) { if(!err) { res.json(topics); }else { console.log('Error in first query'); } }); }; /** * Add ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1527:function(e,t,a){"use strict";a.r(t);var n=a(24),r=a.n(n),l=a(25),o=a.n(l),s=a(26),c=a.n(s),i=a(27),u=a.n(i),f=a(16),d=a.n(f),m=a(0),h=a.n(m),p=a(31),v=function(e){return{type:"FETCH_USER_DETAILS",payload:e}},b=a(4),g=a(704),y=Object(p.b)((function(e){return...
const { Extendable } = require('klasa'); module.exports = class extends Extendable { constructor(...args) { super(...args, { appliesTo: ['Guild'] }); } get extend() { return this.client.queue.get(this.id) || this.client.queue.create(this); } };
const mongoose = require('mongoose') , Schema = mongoose.Schema; mongoose.connect('mongodb://localhost:27017/test'); var db=mongoose.connection; db.on('error',console.error.bind(console,'connection error:')); db.once('open',function() { console.log("db connected"); }); var assert=requi...
import asyncio import os import pygame from . import Sound def load_sprites(obj_list: list, paths: list): """Load the sprites for each of the items in parallel""" # Run functions concurrently for i, obj in enumerate(obj_list): # Add image sprites to each class concurrently asyncio.run(a...
""" https://data-apis.github.io/array-api/latest/API_specification/type_promotion.html """ from collections import defaultdict from typing import List, Tuple, Union import pytest from hypothesis import given, reject from hypothesis import strategies as st from . import _array_module as xp from . import dtype_helpers ...
/*! * jQuery JavaScript Library v2.0.2 -sizzle,-wrap,-css,-event-alias,-effects,-offset,-dimensions * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date:...
function send_command() { var operation = document.getElementsByName('operation') var target = document.getElementsByName('target') var value = document.getElementsByName('value') return operation+' '+target+' '+value }
const tap = require('tap'); const Comments = require('../../../src/redux/comments'); const initialState = Comments.getInitialState(); const reducer = Comments.commentsReducer; let state; tap.tearDown(() => process.nextTick(process.exit)); tap.test('Reducer', t => { t.type(reducer, 'function'); t.type(initial...
(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{207:function(e,a,o){"use strict";o.r(a);var t=o(0),s=Object(t.a)({},function(){var e=this,a=e.$createElement,o=e._self._c||a;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"analise-de-componentes-principais-pca"}},[e...
#!c:\users\admin\docume~1\datasc~1\saq-pr~1\notebo~1\venv\scripts\python.exe # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk' import App from './components/App' import reducers from './reducers' const store = createStore(reducers, applyMiddleware(thunk)) R...
/* ****************************************************************************** * authtype.js * * *************************************************************************/ /** * * @fileoverview [summary of file contents] * * [More detail about th...
// flow-typed signature: 2f7592c077925abe7c128c33baf20336 // flow-typed version: <<STUB>>/electron-updater_v^3.2.3/flow_v0.77.0 /** * This is an autogenerated libdef stub for: * * 'electron-updater' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
/*! * tanguage script compiled code * * Datetime: Tue, 22 May 2018 08:28:52 GMT */ ; // tang.config({}); tang.init().block([ '~/../languages/clike' ], function (pandora, root, imports, undefined) { var module = this.module; var doc = global.document; var location = global.location; var highlight = pandora.high...
var indexSectionsWithContent = { 0: "abcdeghilmnoprstuv~", 1: "achpstv", 2: "abcdeghilmnoprstuv~", 3: "i", 4: "o" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions", 3: "typedefs", 4: "related" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Functions", 3: "Typed...
// Create Employee Class class Employee { constructor (name, id, email) { this.name = name; this.id = id; this.email = email; } getName(){ return this.name; }; getId(){ return this.id; }; getEmail(){ return this.email; }; getRole...
# coding: utf-8 """ Apteco API An API to allow access to Apteco Marketing Suite resources # noqa: E501 The version of the OpenAPI document: v2 Contact: support@apteco.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import apteco_api...
// Test the behavior when two users from the same database are authenticated serially on a single // connection. Expected behavior is that the first user is implicitly logged out by the second // authentication. // // Regression test for SERVER-8144. var conn = MongoRunner.runMongod({auth: "", smallfiles: ""}); ...
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "mat2 czm_transpose(mat2 matrix)\n\ {\n\ return mat2(\n\ matrix[0][0], matrix[1][0],\n\ matrix[0][1], matrix[1][1]);\n\ }\n\ mat3 czm_transpose(mat3 matrix)\n\ {\n\ return mat3(\n\ matrix[0][0], ...
import pytest from utils.eventgen_test_helper import EventgenTestHelper @pytest.fixture def eventgen_test_helper(): """Returns a function to create EventgenTestHelper instance based on config file""" created_instances = [] EventgenTestHelper.make_result_dir() def _create_eventgen_test_helper_instanc...
import os, glob, sys # functionality like getSampleNames include: "../common/misc/misc_snake.py" # Check if the uses specified the proper input and output directories if not 'FASTQDIR' in globals(): print('You have to specify the root directory of the fastq files!') sys.exit(1) if not 'OUTDIR' in globals(): ...
import React from "react"; import { gql, makeVar, useQuery } from "@apollo/client"; import { INTERACTIVE_LIST } from "../List/Controller"; export const INTERACTIVE_ITEM = gql` query( $id: ID! $sortBy: [SortInteractiveCommentsBy!] $first: Int $skip: Int ) { Interactive(where: { id: $id }) { ...
# -*- coding: utf-8 -*- from gluon import current, URL from s3 import IS_ISO639_2_LANGUAGE_CODE from s3layouts import M, MM try: from .layouts import * except ImportError: pass import s3menus as default # ============================================================================= class S3MainMenu(default.S3...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
// ========================================================================= // Copyright © 2017 T-Mobile USA, Inc. // // 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.apa...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js * * Initializes the HTML-CSS OutputJax to use the Gyre-Termes fonts * Copyright (c) 2013-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License...
/** * Copyright 2016 Facebook, Inc. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrat...
/* * Setup */ //1. specify domain and port of your socket.io server var socket = require('socket.io-client')('http://localhost:5040'); //2. create instance johnny-five Arduino board. var five = require("johnny-five"); var board = new five.Board(); board.on("ready", function() { /* * Define your application be...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'ta...
import styled from 'styled-components'; export const ListPageContainer = styled.div` width: 100vw; height: 100vh; color: #ffffff; `;
/* (c) 2012-2018, Ansible by Red Hat * * This file is part of Ansible Galaxy * * Ansible Galaxy is free software: you can redistribute it and/or modify * it under the terms of the Apache License as published by * the Apache Software Foundation, either version 2 of the License, or * (at your option) any later ver...
import glob import os import shutil GXY_ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) def stage_static(f): src = os.path.join(GXY_ROOT, 'config/plugins', f) dest = os.path.join(GXY_ROOT, 'static/plugins', f) dest_parent = os.path.abspath(os.path.join(dest, o...
// Generated by CoffeeScript 1.7.0 (function() { var Adapter, CoffeeScript, W, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.proto...
assert.equal((function(a){}).length, 1); assert.equal((function(a=5){}).length, 0); assert.equal((function(a, b, c=5){}).length, 2);
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import Img from "gatsby-image"; import FlipCard from "../components/flipcard"; import BackgroundImage from 'gatsby-background-image'; ...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
import threading # Za vzporedno izvajanje import logging from minimax import * from logika import * class Racunalnik(): def __init__(self, gui, algoritem): self.gui = gui self.algoritem = algoritem # Algoritem, ki računa potezo self.mislec = None def igraj(self): '''Igraj pote...
# -*- coding: utf-8 -*- #!/usr/bin/env python import sae import sae.kvdb import MySQLdb from bottle import Bottle from bottle import run, redirect, template, request, response, static_file from bottle import debug from pprint import pprint from os import path from datetime import datetime, time import sys reload(...
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...