text stringlengths 3 1.05M |
|---|
from __future__ import absolute_import
from environs import Env
DAYS_TO_SECONDS = lambda x: x * 60 * 24
env = Env()
# This consts.py file is for LOCAL development on a single-user workstation ONLY
# Server consts
PORT = env.int("PORT", 8080)
URL_PREFIX = URL_PREFIX = env.str("URL_PREFIX", "")
DISABLE_EXTERNAL_API ... |
import md5 from "md5";
const createGravatar = (email) => {
const baseUrl = "https://gravatar.com/avatar/";
const formattedEmail =
email
.split(" ")
.join("")
.toLowerCase();
const hash = md5(formattedEmail, { encoding: "binary" });
return `${baseUrl}${hash}`;... |
// #import Foundation
// #import APIKit
"use strict";
JSClass("${PROJECT_NAME_FILE_SAFE}", APIResponder, {
get: async function(){
return {
message: "Hello, world!"
};
}
}); |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import toNumber from 'lodash.tonumber';
import { mapToCssMod... |
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
maxWidth: {
'8xl': '1920px'
},
colors: {
primary: 'var(--primary)',
'primary-2': 'var(--primary-2)',
secondary: 'var(--secondary)',... |
import React from 'react';
import { Text } from '../../components';
const Timer = React.memo(({ work, rest }) => (
<React.Fragment>
<Text tag="h1" weight="bold" size="180px">
{rest || work}
</Text>
<Text tag="h2" size="30px">
{work ? 'WORK!' : 'Rest'}
</Text>
</React.Fr... |
import React from 'react'
// import Link from 'gatsby-link'
import logo from '../assets/logo-white.png'
const IndexPage = () => (
<div className="content">
<div className="construction">
<img src={logo} />
</div>
</div>
)
export default IndexPage
|
var playerList = {};
var room = HBInit({ roomName: "Duplicated Connections", noPlayer: true, public: true, maxPlayers: 8 });
room.onPlayerJoin = function (player) {
if (playerList[player.name] == undefined) {
playerList[player.name] = { name: player.name, auth: player.auth, conn: player.conn, isInTheRoom:... |
import React, { Component } from 'react';
import Quantity from '../quantity';
import GreenPriceTag from '../greenPriceTag';
import * as actions from '../../actions';
import { connect } from 'react-redux';
class ShopProduct extends Component {
handleAddToCart = () => {
if (document.getElementById('shop-c... |
module.exports = {
console2: function(element) {
if (element === null) throw new TypeError("console2 wants something to log!");
let varType = element,
value = '';
if (typeof(element) == 'undefined') {
varType = 'undefined';
} else if (Array.isArray(element... |
define(
({
previousMessage: "Προηγούμενες επιλογές",
nextMessage: "Περισσότερες επιλογές"
})
);
|
import React from 'react'
import { Link } from 'gatsby'
export default function Navbar() {
return (
<nav>
<h2>...</h2>
<div className="links">
<Link to="/">Home</Link>
<Link to="/about">About</Link>
<Link to="/post">Post</Link>
</div>
</nav>
)
}
|
/*
更新历史
12-16: 初版,直接从完成的代码块中提取
12-17: 初步封装
12-18: 封装完成,加入注释,增加安全性(12-19:失效,不要乱用)
12-19: 测试完成,修正大量 bug。做到了与原 BangumiCore() API 兼容。
*/
function BangumiCommMedium()
{
var DOJO_SRC = "http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js";
// @param url: 请求的 URL。注意,不包含GET请求后接的内容(如“?key=value”)。
// @param ... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function VscTriangleRight (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16","fill":"currentColor"},"child":[{"tag":"path","attr":{"d":"M5.56 14L5 13.587V2.393L5.54 2 11 7.627v.827L5.56 14z"}}]})(props);
};
|
/*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */
function OpenWindow(n,t,i,r){var u=(screen.width-t)/2,f=(screen.height-i)/2,e;winprops="resizable=0, height="+i+",width="+t+",top="+f+",left="+u+"w";r&&(winprops+="... |
'use strict';
angular.module('testApp')
.directive('usernavTemplate', function(){
return {
retrict: 'E',
controller:'UsernavCtrl',
templateUrl: 'components/directives/user-nav/user-nav.html'
};
}); |
# coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... |
import React, { Component } from "react";
import { Link, Redirect } from 'react-router-dom';
import "./Sidebar.css";
import userImg from "../images/download.png";
class Sidebar extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
username: "",
email: ""
};
}... |
/**
* Kendo UI v2016.2.714 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
// Copyright 2017 Google LLC
//
// 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 ... |
"""
Bidirectional Breadth-First grid planning
author: Erwin Lejeune (@spida_rwin)
See Wikipedia article (https://en.wikipedia.org/wiki/Breadth-first_search)
"""
import math
import matplotlib.pyplot as plt
show_animation = True
class BidirectionalBreadthFirstSearchPlanner:
def __init__(self, ox, oy, reso, ... |
#!/usr/bin/env python
import argparse
import jinja2
import re
from yaml import load
split_re = re.compile(r'^(?P<type>.*?)\s*(?P<name>\w+)$')
env = jinja2.Environment(
trim_blocks=True,
lstrip_blocks=True,
loader=jinja2.FileSystemLoader('template'),
)
def args(args, add_type=True):
return ', '.join(
... |
'use strict';
/**
* Pluralize a name of a subject
* @param {string} name Subject to convert as plural phrase
* @return {string}
*/
exports.pluralize = (name) => {
let nameInPlural = '';
let last = name.split('').pop();
if (last == 's') {
nameInPlural = name + 'es';
} else if (last == 'y') {
nameInPlural =... |
var searchData=
[
['printfinalroute_40',['printFinalRoute',['../class_graph.html#ad4d9b4efa635579d631a39be001cbeae',1,'Graph']]],
['printgraph_41',['printGraph',['../class_graph.html#a5ac05db53839e72af76cdb2bafe88b77',1,'Graph']]],
['printlist_42',['printList',['../class_simple_list.html#a689bc64dac2258b334584896... |
/*******************************************************************************
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
from __future__ import absolute_import
import shutil
import os
import logging
from packaging import version
import unittest
import numpy as np
import bilby
import scipy
from scipy.stats import ks_2samp, kstest
def ks_2samp_wrapper(data1, data2):
if version.parse(scipy.__version__) >= version.parse("1.3.0"):
... |
# Generated by Django 3.2.2 on 2021-05-10 11:12
import django.utils.timezone
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
("transactions", "0003_alter_transaction_txn_amount"),
]
operations = [
migrations.AddField(
... |
import _isNumber from 'lodash/isNumber';
import _uniqueId from 'lodash/uniqueId';
import {
adjustForMagneticNorth,
calculateDistanceToPointForX,
calculateDistanceToPointForY,
isValidGpsCoordinatePair
} from './positionModelHelpers';
import { radians_normalize } from '../math/circle';
import {
degree... |
require.scopes.multiDomainFP = (function() {
/**
* 2d array of related domains (etld+1), all domains owned by the same entity go into
* an array, this is later transformed for efficient lookups.
*/
var multiDomainFirstPartiesArray = [
["1800contacts.com", "800contacts.com"],
["37signals.com", "basecamp.com", "b... |
// const WebpackDevToolPLugin = require('visual-dev/plugins/webpack').default
const WebpackDevToolPLugin = require('../../packages/visual-dev/plugins/webpack').default
module.exports = {
devServer: {
proxy: WebpackDevToolPLugin.proxy({
'/api': {
target: '<url>',
ws: true,
changeOrig... |
"use strict";
describe('SearchCtrl', function(){
beforeEach(module('arethusa.core'));
describe('search', function(){
it('adds a parameter to the url', inject(function($controller, $location) {
var scope = { query : "my query"};
var ctrl = $controller('SearchCtrl',
{ $s... |
test('Reflect.apply can be used to call a function', () => {
const person = {
name: 'Fred',
sayHi(greeting, noun) {
return `${greeting} ${noun}! My name is ${this.name}`
},
}
const result = null // use Reflect.apply to invoke person.sayHi
expect(result).toBe('Hey there Jaimee! My name is Fred... |
import Icon from '../components/Icon.vue'
Icon.register({"table":{"width":512,"height":512,"paths":[{"d":"M464 32H48C21.5 32 0 53.5 0 80V432C0 458.5 21.5 480 48 480H464C490.5 480 512 458.5 512 432V80C512 53.5 490.5 32 464 32zM224 416H64V320H224V416zM224 256H64V160H224V256zM448 416H288V320H448V416zM448 256H288V160H448V... |
from django.http import JsonResponse
from django.views.generic import View, TemplateView
from django.core.exceptions import ObjectDoesNotExist
import json
from main.models import SkinCode
from main.game import GameHandler
from main.game_content import skin_codes
class MainView(TemplateView):
template_name = "ma... |
document.write('<link rel="stylesheet" href="https://github.githubassets.com/assets/gist-embed-31007ea0d3bd9f80540adfbc55afc7bd.css">')
document.write('<div id=\"gist102978218\" class=\"gist\">\n <div class=\"gist-file\">\n <div class=\"gist-data\">\n <div class=\"js-gist-file-update-container js-task-li... |
'use strict';
const siteConfig = require('./config.js');
const postCssPlugins = require('./postcss-config.js');
module.exports = {
pathPrefix: siteConfig.pathPrefix,
siteMetadata: {
url: siteConfig.url,
title: siteConfig.title,
subtitle: siteConfig.subtitle,
copyright: siteConfig.copyright,
di... |
//
//routines for the logins
var crypto = require('crypto');
var auditMod = require('../app_server/auditLog-mod.js');
var nodemailer = require('nodemailer');
exports.encrypt = function (text) {
var crypto_algorithm = 'aes-256-ctr';
var crypto_password = 'HeLlo';
var cipher = crypto.createCipher(crypto_a... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isItemsPerPageOption = isItemsPerPageOption;
exports.itemsPerPageOptionToValue = itemsPerPageOptionToValue;
exports.DEFAULT_ITEMS_PER_PAGE_OPTION = exports.ITEMS_PER_PAGE_OPTIONS = exports.ItemsPerPageOption = void 0;
let ItemsPerPa... |
import boto
import boto.s3.connection
access_key = 'AKIA6LQSYPWOAZDZTOMC'
secret_key = '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'
conn = boto.connect_s3( aws_access_key_id = access_key, aws_secret_access_key = secret_key)
for bucket in conn.get_all_buckets():
total_bytes = 0
name = bucket.name
for key in bucket:
t... |
import unittest
from vector import Vector
class VectorTests(unittest.TestCase):
"""Tests for Vector."""
def test_attributes(self):
v = Vector(1, 2, 3)
self.assertEqual((v.x, v.y, v.z), (1, 2, 3))
def test_equality_and_inequality(self):
self.assertNotEqual(Vector(1, 2, 3), Vecto... |
function steps(n) {
let step;
for (let i = 1; i <= n; i++) {
step = "#".repeat(i)
if(i!=n){
step = step + " ".repeat(n-i);
}
console.log(step);
}
return;
}
console.log(steps(3))
// output:
// '# '
// '## '
// '###'
|
import React from "react";
const Button = () => "Button" + React;
export default Button;
|
import isEqual from 'lodash/isEqual';
import pick from 'lodash/pick';
import React, {
Component,
PropTypes,
} from 'react';
import {
TabBarIOS,
} from './react-native';
export default function createTabBarItemIOSComponent(IconNamePropType, getImageSource) {
return class TabBarItemIOS extends Component {
... |
const { expectRevert, expectEvent, BN } = require('@openzeppelin/test-helpers');
const { expect } = require('chai');
const BasixNFT = artifacts.require("BasixNFT");
contract('BasixNFT', function (accounts) {
beforeEach(async function () {
this.basixnft = await BasixNFT.new(
'BasixNFT',
'BNFT',
... |
import React from 'react'
const SensorInfo = ({ sensor, idx }) => (
<div>
{
(sensor.state === 1) ? (
<p className="d-inline">
<span className="bold">{`Sensor ${ idx }: `}</span>
Working
</p>
) : (
<p className="alert-text">... |
'use strict';
module.exports = {
// @see https://www.twilio.com/docs/api/messaging/message#delivery-related-errors
undeliverableErrorCodes: {
21203: 'International calling not enabled',
21211: 'Invalid \'To\' Phone Number',
21606: 'The \'From\' phone number provided is not a valid, message-capable Twil... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
import React from 'react'
import './footer.css';
function Footer() {
return (
<footer>
<p>React - Javascript - HTML - CSS - Handlebars - jQuery - Node.js - Express - mySQL - Sequelize - Mongodb - Moongoose - Github - Heroku</p>
</footer>
);
}
export default Footer; |
import React, { useEffect, useState } from "react";
import Layout from "../../Component/Layout";
import { Col, Container, Row, Button, Form, Table } from "react-bootstrap";
import { useDispatch, useSelector } from "react-redux";
import { addProduct } from "../../actions";
import Input from "../../Component/UI/Input/in... |
import Tooltip from "./Tooltip";
describe("Tooltip", () => {
let tooltip: Tooltip;
const text = "Hello!";
const anchorX = 500;
const anchorY = 1000;
beforeEach(() => {
tooltip = new Tooltip();
});
afterEach(() => {
document.body.innerHTML = "";
});
it("should inject a hidden div into the ... |
from django.contrib import admin
from example.sampleapp.models import Picture, Category
class PictureInline(admin.StackedInline):
model = Picture
class CategoryAdmin(admin.ModelAdmin):
inlines = [PictureInline]
admin.site.register(Category, CategoryAdmin) |
export function checkField(text, type) {
if (type === "Email") {
if (!/^([a-zA-Z0-9_-]+?)@([a-zA-Z]+?).([a-zA-Z]{2,}?)$/.test(text)) {
document.getElementById("errorElEmail").innerText = `A valid email is needed`
}
else {
document.getElementById("errorElEmail").innerT... |
import entity
from symlib.bit import MAGNETIC, THERMAL
from symlib.terminal import ITERM
from symlib.limit import LSW_NO, LSW_NO_LINE_END , LSW_NO_LINE_INTERSECT
import config as cfg
class OL(entity.CodedSymbol):
min_pole = 1
max_pole = 4
def __init__(self, *args, **kwargs):
super().__init__(*arg... |
const { setNodeEnv, handleError } = require('./utils')
module.exports = function(cli) {
cli
.command(
'build [app-path]',
'Compile the application and generate static HTML files',
{
ignoreOptionDefaultValue: true
}
)
.alias('generate')
.option('--skip-compilation', 'Sk... |
# https://leetcode.com/problems/merge-two-binary-trees/
from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def mergeTrees(
s... |
import itertools
import numpy as np
from copy import deepcopy
class Node():
def __init__(self, label, qpos_ids, qvel_ids, act_ids, body_fn=None, bodies=None, extra_obs=None, tendons=None):
self.label = label
self.qpos_ids = qpos_ids
self.qvel_ids = qvel_ids
self.act_ids = act_ids
... |
"use strict";
const formElement = document.querySelector(".js-submit");
function handleSubmit(ev) {
ev.preventDefault();
}
formElement.addEventListener("submit", handleSubmit);
function handleIntro(event) {
let keyCode = event.which;
if (keyCode == 13) {
event.preventDefault();
return fa... |
#-*- coding: utf-8 -*-
"""
Recognition Tests
=================
A *forest* is an acyclic, undirected graph, and a *tree* is a connected forest.
Depending on the subfield, there are various conventions for generalizing these
definitions to directed graphs.
In one convention, directed variants of forest and tree are def... |
import React, { Component } from 'react';
import logo from './logo.svg';
import bulma from './bulma-logo.png';
import './App.scss';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
const One = () =>
<div className='one'>
<h1>This is Component "One"</h1>
<p>Tumblr meh retro, farm-to-ta... |
'use strict';
const angular = require('angular');
const proxyquire = require('proxyquire');
const bridgeEvents = require('../../../shared/bridge-events');
const util = require('../../directive/test/util');
function pageObject(element) {
return {
menuLinks: function () {
return Array.from(element[0].query... |
# Copyright 2019, OpenCensus 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 applicable law or agreed to in w... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... |
var searchData=
[
['hunt',['HUNT',['../solver_8c.html#a525bf7e52560dc0068ad77c5435af98b',1,'solver.c']]]
];
|
import React from 'react';
import './notFound.css'
export default function NotFound(){
return(
<div id="notfound">
<div className="notfound">
<div className="notfound-404">
<h1>404</h1>
<h2>Page Not Found</h2>
</div>
... |
import React from 'react';
// import {Col, Row, Container} from '../../components/Grid';
// import Jumbotron from '../../components/Jumbotron';
export const NoMatch = () => (
<div>Not found</div>
); |
// / <reference types="Cypress" />
import SettingsPageObject from '../../../support/pages/module/sw-settings.page-object';
describe('Country: Test acl privileges', () => {
beforeEach(() => {
cy.setToInitialState()
.then(() => {
cy.loginViaApi();
})
.then... |
/*
* Copyright (C) 2015 Thalassemia Interpreter Software
*
* This file is part of the Thalassemia Interpreter Software project.
*
* Unauthorized copying of this file, via any medium is strictly prohibited
*
* Thalassemia Interpreter Software project can not be copied and/or distributed without the express
* per... |
from __future__ import with_statement
from __future__ import absolute_import
import argparse
import os
import re
from subprocess import check_output
from io import open
_author_ = u"etikhonov"
def submitJob_remote(workingDir, index, commandExecutable):
u"""
This routine is to submit job to remote cluster
... |
(function (exports) {
'use strict';
var foo = 'foo';
var bar = 'bar';
var baz = 'baz';
var bam = 'bam';
var x = { [foo]: 'bar' };
class X {
[bar] () {}
get [baz] () {}
set [bam] ( value ) {}
}
exports.x = x;
exports.X = X;
}((this.computedProperties = this.computedProperties || {}))); |
var serializer;
module('unit/ember-json-api-adapter - serializer - extract_links_test', {
setup: function() {
// TODO remove global
DS._routes = Ember.create(null);
serializer = DS.JsonApiSerializer.create();
},
tearDown: function() {
// TODO remove global
DS._routes = Ember.create(null);
... |
// Polyfills
if ( Number.EPSILON === undefined ) {
Number.EPSILON = Math.pow( 2, - 52 );
}
if ( Number.isInteger === undefined ) {
// Missing in IE
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
Number.isInteger = function ( value ) {
return typeof valu... |
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import e from"./../../utils/define-nonenumerable-read-only-property.js";import t from"./../../vendor/process.js";import r from"./../../vendor/readable-stream.js";import i from"./../../assert/is-positive-number.js";import... |
const RegionGenerator = require('./bin/RegionGen');
module.exports = {
RegionGen: RegionGenerator,
};
|
import React from 'react';
import { withKnobs, boolean, text } from '@storybook/addon-knobs';
import { withA11y } from '@storybook/addon-a11y';
import { action } from '@storybook/addon-actions'
import PisInput from '.';
import { ThemeProvider } from "../../../../src";
import categories from '../../../../.storybook/ca... |
module.exports = function(grunt) {
// Project configuration.
var initConfig = {
pkg: grunt.file.readJSON('package.json'),
dirs: { /* just defining some properties */
lib: './lib/',
tmp: './tmp/',
scss: './scss/',
theme: '../../../',
assets: 'assets/components/modxstats/',
com... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... |
from scipy.linalg import eig
import numpy as np
import os
import matplotlib.pyplot as plt
sub_list = ['rel', 'his', 'math', 'eng', 'ph', 'med']
n = len(sub_list)
vect_list = []
for sub in sub_list:
l = eval(open('/Users/cottonova/Downloads/'+sub+'_vect.txt', 'r').read())
vect_list += l
sig = np.zeros([5... |
function PhotoLayerCallback(json, panoLayer) {
this.panoLayer = panoLayer;
var photos = this.getPhotos(json);
if (!photos) return;
var batch = [];
for (var i = 0; i < photos.length; i++) {
var photo = photos[i];
if (!panoLayer.ids[this.getId(photo)]) {
var marker = this.createMarker(photo, panoLa... |
# -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2020, Battelle Memorial Institute.
#
# 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... |
// FunctionHelper
// -------
function FunctionHelper(client) {
this.client = client
}
FunctionHelper.prototype.now = function() {
return this.client.raw('CURRENT_TIMESTAMP')
}
export default FunctionHelper
|
import { select } from '../../helpers/stores/genericSelectors';
export const selectOrganizationCards = (state, organizationId, params = {}) =>
select('card', state, `/organizations/${organizationId}/cards`, params);
|
/* global Sk: true, goog:true */
// long aka "bignumber" implementation
//
// Using javascript BigInteger by Tom Wu
/**
* @constructor
* Sk.builtin.lng
*
* @description
* Constructor for Python long. Also used for builtin long().
*
* @extends {Sk.builtin.numtype}
*
* @param {*} x Object or number to convert ... |
"""
Utility functions for this module
"""
def greet():
"""
Return greet statement.
This is for demo only.
:return:
"""
return 'Hello World!'
|
import React from 'react';
import { connect } from 'react-redux';
import { View, FlatList } from 'react-native';
import { List, ListItem } from 'react-native-elements';
import LinearGradient from 'react-native-linear-gradient';
import styled from 'styled-components';
import { colors, fonts } from 'config';
const mapS... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _constants = require('../../constants');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }... |
const hooks = {
onBeforeEachTest: function(done) {
cordova.plugins.http.headers = {};
cordova.plugins.http.acceptAllCerts(false, done, done);
}
};
const helpers = {
acceptAllCerts: function(done) { cordova.plugins.http.acceptAllCerts(true, done, done); },
setJsonSerializer: function(done) { done(cordov... |
import $ from 'jquery'
//import Alert from '../node_modules/bootstrap/js/src/alert'
import Button from '../node_modules/bootstrap/js/src/button'
//import Carousel from '../node_modules/bootstrap/js/src/carousel'
import Collapse from '../node_modules/bootstrap/js/src/collapse'
import Dropdown from '../node_modules/boots... |
/* File: gulpfile.js */
// Use localhost:3000
'use strict';
// modules
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
pug = require('gulp-pug'),
browserSync = require('browser-sync').create(),
reload = browserSync.reloa... |
// Copyright 2017 Yoav Seginer.
//
// 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 t... |
// We only need to import the modules necessary for initial render
import CoreLayout from '../layouts/CoreLayout'
import Home from './Home'
import CounterRoute from './Counter'
import CharacterRoute from './Character'
import RecruitmentCharacterListRoute from './CharacterRecruitment'
/* Note: Instead of using JSX, we... |
# """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger:
# def __init__(self, value=None):
# """
# If value is not specified, initializes an empty list.
# Otherwise initializes a single i... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.SiFerrari = function SiFerrari (props) {
return GenIcon({"tag":"svg","attr":{"role":"img","viewBox":"0 0 24 24"},"child":[{"tag":"title","attr":{},"child":[]},{"tag":"path","attr":{"d":"M20.51 9.773c-.096.13-.139.387-.278.602-.194.3... |
#import AsciiDammit
import re
map_chars = {u'\x0c': u" ",
u'°': u' degree',
u'é': u'e',
u'⁄': u'bkslsh',
u'‘': u"'",
u'<': u" lt ",
u'—': u"-",
u'Ô': u"O",
u'Õ': u"O",
... |
from util.commons_util.logger_utils.timer import Timer
__author__ = 'Danyang'
def timestamp(func):
"""
time the execution time of a function
:param func: the function, whose result you would like to cached based on input arguments
"""
def ret(*args):
timer = Timer()
timer.start()... |
module.exports = {
apps: [
{
name: "next-website-app",
script: "deploy.js",
exec_mode: "cluster",
max_memory_restart: "500M",
env: {
NODE_ENV: "production",
},
},
],
}
|
import React from 'react'
import styled from 'styled-components'
import { Button } from './Button'
import Video from '../assets/videos/video.mp4'
const Hero = () => {
return (
<HeroContainer>
<HeroBg>
<VideoBg src={Video} type="video/mp4" autoPlay loop muted playsInline />
... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-03-06 22:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const helper_1 = require("../helper");
const chalk_1 = require("chalk");
const CliTable2 = require("cli-table2");
class List {
static execute() {
let config = helper_1.default.parseSSHConfig();
console.log(chalk_1.default.g... |
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from pipeline_wrapper import BasePipeline
from waterfall.process_swarming_task_result_pipeline import (
ProcessSwarmingTaskResultPipeline)
from waterfall... |
"""
Internationalization support.
"""
import re
from contextlib import ContextDecorator
from djmodels.utils.functional import lazy
__all__ = [
'activate', 'deactivate', 'override', 'deactivate_all',
'get_language', 'get_language_from_request',
'get_language_info', 'get_language_bidi',
'check_for_langu... |