text stringlengths 3 1.05M |
|---|
// @ts-check
const { task, series, parallel, option, argv, tscTask, cleanTask, eslintTask } = require('just-scripts');
const path = require('path');
const srcPath = path.join(process.cwd(), 'src');
const libPath = path.join(process.cwd(), 'lib');
module.exports = function preset() {
option('production');
task(... |
const LLVM = require("../../middle/llvm.js");
const TypeRef = require('../typeRef.js');
const Primative = {
types: require('../../primative/types.js')
};
const ExecutionExpr = require('./expr.js');
class ExecutionFlow extends ExecutionExpr {
compile_if (ast) {
let frag = new LLVM.Fragment(ast);
// Chec... |
import Controller from '@ember/controller';
import { A } from '@ember/array';
import UIkit from 'uikit';
export default Controller.extend({
group1: A([
{ label: 'Item 1' },
{ label: 'Item 2' },
{ label: 'Item 3' },
{ label: 'Item 4' }
]),
group2: A([
{ label: 'Item 5' },
{ label: 'Item 6... |
export default {
'POST /engine/varList/list': (req, res) => {
res.send({
status: 'ok',
data:[
{
id:1,
oneclass:'反欺诈',
oneclassId:1,
twoclass:'注册',
twoclassId:1,
varname:'注册时间',
varcode:'变量代码',
vartype:'变... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Stores in a text stream the representation of the struct data types in the generated program.
Its use is for debugging purposes, to check the structure of the struct types in the generated program.
"""
from __future__ import print_function
from __future__ import unico... |
import template from './sw-data-grid.html.twig';
import './sw-data-grid.scss';
const { Component } = Shopware;
const { Criteria } = Shopware.Data;
const utils = Shopware.Utils;
/**
* @public
* @status ready
* @description The sw-data-grid is a component to render tables with data.
* It also supports hiding column... |
define([
'lodash',
'app/config',
'app/components/events',
'app/components/component',
'./keyboard'
], function(
_,
Config,
EVENTS,
Component,
KeyboardInputComponent
) {
/**
* Defines the keyboard shortcuts.
* @type {object}
* @const
*/
var SHORTS = Config.get('keyboardShortcuts');
/**
* Defines... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgFolder3Line(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M12.414 5H21a1 1 0 011 1v14a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1... |
import Util from './ezy-util';
import Entity from './ezy-entities';
import Const from './ezy-constants';
import Config from './ezy-configs';
import EventHandler from './ezy-event-handlers';
import DataHandler from './ezy-data-handlers';
import EzyClient from './ezy-client';
import EzyClients from './ezy-clients';
cons... |
import RowDelete20 from "./RowDelete20.svelte";
export default RowDelete20; |
#!/usr/bin/env python
import sqlite3
from urllib.request import pathname2url
class DBConnect:
def __init__(self, name):
self.name = name
self.db_conn = None
def __enter__(self):
try:
dbURI = 'file:{}?mode=rw'.format(pathname2url(self.name))
self.db_conn = sqlit... |
var designer = designer || {};
var designerCanvasObj, selectedObj;
var designer_settings_data, designer_img_elements, design_save_json_data, design_save_json_databackside;
var $lineHeightRange, $textShadowX, $textShadowY, $shadowBlur, $textOpacity, $curveRadius, $curveSpacing, $imgOpacity;
var ary = [];
var img_data_ar... |
import React from 'react'
import { Image, Flex } from 'rebass'
import TextRegular from '../TextRegular'
import fourth from '../../assets/images/onboarding-fourth.svg'
export default () => {
return (
<Flex flexDirection={'column'} alignItems={'center'}>
<Image src={fourth} width={'100%'} m={[10, 20]} />
... |
export const focus = {
inserted(el, binding) {
if (!!binding.value || binding.value === undefined)
el.focus();
},
};
|
if(!d3.chart) d3.chart = {};
d3.chart.deputiesGraph = function() {
var svg,
data,
force,
link,
node
threshold =70;
/*global d3 tooltip*/
$('#slider').slider({
value: threshold,
min: 50,
max: 100
});
var nodes,links,every_link; // DATA
var dispatch = d3.dispatch(chart, "hover"... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var deepFreeze = require('deep-freeze-strict');
function storeFreeze(reducer) {
return function freeze(state, action) {
state = state || {};
deepFreeze(state);
// guard against trying to freeze null or undefined typ... |
import Class from '../mixin/class';
export default {
mixins: [Class],
args: 'animation',
props: {
},
data: {
selButton: '.ng-button'
},
connected() {
const buttonGrp = this.$el.querySelectorAll('.ng-button');
for (let i = 0; i < buttonGrp.length; i++) {
... |
const User = require("../models/user");
const Topic = require("../models/topic");
const Resource = require("../models/resource");
|
import React, { Component } from 'react';
import './modal.css';
export default class Modal extends Component {
render() {
if(!this.props.show){
return null;
}
return (
<div class="modal">
<div class="modal-back"></div>
<div className="modal__content">
{this.props.children}
... |
import React from "react"
import { render, fireEvent, screen } from "../../../../test-utils"
import "@testing-library/jest-dom/extend-expect"
import ButtonExample from "../ButtonExample"
describe("ButtonExample", () => {
it("renders correctly", () => {
const component = render(<ButtonExample />)
expect(compo... |
let { networkConfig, getNetworkIdFromName } = require('../helper-hardhat-config')
task("fund-link", "Funds a contract with LINK")
.addParam("contract", "The address of the contract that requires LINK")
.addOptionalParam("linkaddress", "Set the LINK token address")
.setAction(async (taskArgs) => {
... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 16 09:42:38 2019
@author: Giles
"""
#x = 5
#
#y = 12
##
#z = x + y
##
#print(z)
#
#1x = 3
#new_variable = 9
#z = x - y
#
#a = 2.5
#b = 3.14159
#c = b * a**2
##
#radius = 2.5
#pi = 3.14159
#area_of_circle = pi * radius**2
#phrase_1 = 'The cat sat ... |
function toggleDarkMode(e) {
document.querySelector("body").classList.toggle("dark");
}
function open_modal_profile() {
alert("User profiles are still under construction... Stay tuned!");
}
/*
el = DOM node with data-radiogroup of a unique value.
*/
function radio_button_select(el) {
document.querySelector("[... |
module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 4582:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const core = __nccwpck_require__(2186);
const exec = __nccwpck_require__(1514);
const keyValueAsService = __nccwpck_require__(5241);
const cover... |
$(document).ready(function () {
$("#progress").click(function () {
let carPerson = $("#car-owner").val();
let plate = $("#plate").val();
let engine = $("#engine").val();
let fuelSystem = $("#fuel").val();
let exhaustSystem = $("#exhaust").val();
let coolingSystem = $("#cooling").val();
le... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from ...IO import read_input as rin
def check_input_qe():
# ---------- prepare rin.jobfile, rin.qe_infile
calc_inputs = [rin.jobfile, rin.qe_infile]
# ------ check required files
for f in calc_inputs:
if f == rin.qe_infile:
... |
/*!
* Copyright (c) 2018-2019 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
const chai = require('chai').use(require('chai-bytes'));
const env = require('./env');
const should = chai.should();
if(env.nodejs) {
global.TextEncoder = require('util').TextEncoder;
}
const {encode, decode} = require('..')... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
import mysql.connector
import settings
from pprint import pprint
def db_connect():
return mysql.connector.Connect(host=settings.db_host, port=settings.db_port, user=settings.db_user, password=settings.db_password, database=settings.db_name)
def db_disconnect(db):
return db.close()
def db_query(db, query, fet... |
from __future__ import unicode_literals
import os
import datetime
from django.test import TestCase, Client, override_settings
from django.utils import timezone
from ..models import Show, Episode, Enclosure
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var ImageTexture = createClass({
displayName: 'ImageTexture',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
... |
'use strict';
/**
* Unit tests
*/
const castId = require('../lib/helpers/cast-id');
const endpoint = require('../lib/helpers/endpoint');
const preparePatchData = require('../lib/helpers/patch-data');
const getSchemaForRequest = require('../lib/helpers/request-schema');
const beforeRoute = require('../lib/before-rou... |
import React, { useState, useEffect, useContext } from "react";
import { useWeb3React } from '@web3-react/core';
import { CovidContext, TokenInfoContext } from "../context/ContextComponent";
import InfectScoreComponent from "./InfectScoreComponent";
let infectingScore = 0;
let totalInfectingScore = 0;
function Reward... |
import bpy
import sys
from pathlib import Path
from math import radians,sin,cos,pi
homedir = Path.home()
thisdir = homedir / 'virtualroom'
savedir = homedir / 'Renders'
utildir = homedir / 'blender_utils'
libdir = thisdir / 'lib'
sys.path.append(str(utildir))
import blender_methods as bm
import clear_utils as cu
... |
import React, { useEffect, useRef, useState } from 'react'
import './style/index.css'
import { createPortal } from 'react-dom'
// class Modal extends React.Component {
// constructor (props) {
// super(props)
// console.log(props)
// this.state = {}
// }
// render () {
// return (
// <div c... |
import broadcast from './src/broadcast'
import localstorage from './src/localstorage'
import serviceworker from './src/serviceworker'
import sharedworker from './src/sharedworker'
import winopen from './src/winopen'
import so from './src/socket'
const openers = []
window.onload = ()=>{
const {type} = performance.n... |
# generate a certain number of random variables
# numpy.random.randn(100) # generates a 100 random numbers
import numpy
counter=0
for i in numpy.random.randn(100):
# this loop can be used to iterate over these 100 random numbers
if i >=-1 and i<=1:
counter+=1
result=counter/100
print(result)
|
/* eslint-env node */
'use strict';
module.exports = {
extends: 'recommended',
rules: {
'bare-strings': true // don't allow bare strings
'triple-curlies': false,
'block-indentation': 2
}
};
|
import { pkg } from '@carbon/ibm-cloud-cognitive/es/settings';
// pkg.prefix = "tst";
// Enable all 'canary' (not yet reviewed/released) components
// that we want to make use of
pkg.component.EmptyState = true;
pkg.component.ErrorEmptyState = true;
pkg.component.NoDataEmptyState = true;
pkg.component.NoTagsEmptyStat... |
/*!
* ui-grid - v4.4.7 - 2018-04-20
* Copyright (c) 2018 ; License: MIT
*/
!function(){angular.module("ui.grid").config(["$provide",function(a){a.decorator("i18nService",["$delegate",function(a){return a.add("bg",{headerCell:{aria:{defaultFilterLabel:"Филттър за колоната",removeFilter:"Премахни филтър",columnMenuB... |
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxWebServices.js
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjaxWebServices.js
Type._registerScript("Mi... |
export const MainNav = [
{
icon: 'pe-7s-rocket',
label: 'Dashboard',
to: '#/dashboard',
},
];
export const ComponentsNav = [
{
icon: 'pe-7s-diamond',
label: 'Elements',
content: [
{
label: 'Standard Buttons',
to: '#/... |
from parsel import Selector
from utils import download, find_id_in_url, catch_errors, get_last_part_url
from data import ImageContent, Meme, Author, Page
import re
ROOT = "https://mistrzowie.org"
COMMENT = re.compile(r"Skomentuj\(([0-9]+?)\)")
def scrap(url):
html = download(url)
return parse(html)
def pa... |
function NotificationController(worldState, currentPlayer, scene){
this.worldState = worldState;
this.currentPlayer = currentPlayer;
this.scene = scene;
this.notifications = {};
this.assetFootStep = Warehouse.assets.get('notify-footstep');
this.assetGunShot = Warehouse.assets.get('notify-gunshot');
this.assetF... |
# -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil Authors. 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
#
# Unles... |
import _plotly_utils.basevalidators
class XValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name='x', parent_name='layout.legend', **kwargs):
super(XValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type... |
// Copyright 2015, EMC, Inc.
/* jshint node:true */
'use strict';
describe("Task Graph", function () {
var runner;
var registry;
var TaskGraph;
var Task;
var loader;
var Promise;
function findAllValues(obj) {
var allValues = _.map(obj, function(v) {
if (v !== null && t... |
"""
Custom manager for ServerConfig objects.
"""
from django.db import models
class ServerConfigManager(models.Manager):
"""
This ServerConfigManager implements methods for searching and
manipulating ServerConfigs directly from the database.
These methods will all return database objects (or QuerySet... |
/**
* NOTE: The API defaults to multiples of MiBs
*
* See backend counterpart here:
* https://github.com/Vizzuality/marxan-cloud/blob/develop/api/apps/api/src/modules/uploads/upload-limits.ts
*/
export const PLANNING_UNIT_UPLOADER_MAX_SIZE = 1048576; // 1MiB
export const PLANNING_AREA_UPLOADER_MAX_SIZE = 1048576;... |
/**
* dojox - A version of dojox.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dojox/
* @license MIT
*/
define({displayOptions:"[옵션 표시]",title:"제목",authors:"작성자",contributors:"제공자",id:"ID",close:"[닫기]",updated:"업데이트된 날짜... |
// @flow
import type {
DBChannel,
DBUsersChannels,
DBCommunity,
DBUsersCommunities,
DBThread,
DBUser,
DBReaction,
DBThreadReaction,
DBMessage,
DBUsersThreads,
} from 'shared/types';
import { getTruthyValuesFromObject } from 'shared/truthy-values';
type AnalyticsChannel = {
id: ?string,
name: ?s... |
################################################################################
# Aaron Penne
# https://github.com/aaronpenne
################################################################################
import datetime
import string
import sys
from random import shuffle, seed
import helper
#####################... |
//this is a date converter that takes in a date in the form 12/31/2015 and converts it to 20151231
function formatDate(userDate){
var x=[];
var year="";
var monthDay="";
for(var i=0;i<userDate.length;i++){
if(userDate[i]!=="/" && x.length<2 && userDate[i]!=="0"){
monthDay+=userDate[i];
}
if(userDate[i]===... |
/** @jsx jsx */
import { css, jsx } from "@emotion/core";
import { useEffect, useState } from "react";
import Navbar from "../navbar/Navbar";
import PageSpinner from "../general/PageSpinner";
import FindUsers from "./FindUsers";
import SearchResults from "./search_results/SearchResults";
import { login } from "../../u... |
/* global alert */
import { Alert, Linking, PermissionsAndroid, Platform } from 'react-native';
import RNFS from 'react-native-fs';
import Share from 'react-native-share';
import loc from '../loc';
import DocumentPicker from 'react-native-document-picker';
import isCatalyst from 'react-native-is-catalyst';
import { lau... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import capitalize from 'lodash/capitalize'
import actions from'../actions'
export default function Navigate({ dispatch, vehicleJourneys, pagination, status, filters}) {
let firstPage = 1
let lastPage = Math.ceil(pagination.totalCount / pag... |
import unittest
from falx.visualization.chart import *
import os
test_data = [{"Totals":7,"Value":"A","variable":"alpha","value":2,"cumsum":2},
{"Totals":8,"Value":"B","variable":"alpha","value":2,"cumsum":2},
{"Totals":9,"Value":"C","variable":"alpha","value":3,"cumsum":3},
{"T... |
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles((theme) => ({
appBar: {
top: 'auto',
bottom: 0,
},
appBarContainer: {
display: 'flex',
justifyContent: 'space-between',
'& button': {
'& span': {
display: ... |
L.Polyline.polylineEditor = L.Polyline.extend({
/**
* Will add all needed methods to this polyline.
*/
_addMethods: function() {
var that = this;
this._init = function(options, contexts) {
// Container for all editable polylines on this map:
if(!('_editablePoly... |
import sim
import plot_gen
from tqdm import tqdm
import matplotlib.pyplot as plt
import numpy as np
import multiprocessing
import json
import os
import functools
def generate_star_data():
"""Returns a set of """
q_c_range = [-9, 19]
q_c_set = np.around(np.exp(np.linspace(*q_c_range, ... |
import os
from pathlib import Path
from django.core.paginator import Paginator
from django.shortcuts import redirect, render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view, parser_classes, authentication_classes, permission_classes
from rest... |
angular.module('example', [
'common.fabric',
'common.fabric.utilities',
'common.fabric.constants'
])
.controller('ExampleCtrl', ['$scope', '$www', 'Modal', 'Fabric', 'FabricConstants', 'ImagesConstants', 'Keypress', function($scope, $www, Modal, Fabric, FabricConstants, ImagesConstants, Keypress) {
$scope.fabric ... |
from ..logger import logger
import subprocess
def run_parafoam_touch_all(case_dir):
logger.info(f'Running paraFoam -touchAll')
res = subprocess.run(
["/bin/bash", "-i", "-c", "paraFoam -touchAll"],
capture_output=True,
cwd=case_dir,
user='root')
if res.returncode == 0:
... |
/*! jQuery UI - v1.10.4 - 2015-03-29
* http://jqueryui.com
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.hy={closeText:"Փակել",prevText:"<Նախ.",nextText:"Հաջ.>",currentText:"Այսօր",monthNames:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հո... |
var sockjs = require('sockjs');
exports.install = function(opts, server) {
var sjs_echo = sockjs.createServer(opts);
sjs_echo.on('connection', function(conn) {
console.log(' [+] echo open ' + conn);
conn.on('close', function() {
console.log(' [-] echo close ' + conn);
... |
from ..builder import DETECTORS
from .single_stage import SingleStageDetector
from .cascade_rcnn import CascadeRCNN
@DETECTORS.register_module()
class CBCascadeRCNN(CascadeRCNN):
def __init__(self,
backbone,
neck=None,
rpn_head=None,
roi_head=Non... |
/**
* exam.js
*/
module.exports = Exam;
var Group = require("./group");
var Type = require("./type");
var binary = Type.getType("binary");
function Exam(src) {
if (!(this instanceof Exam)) return new Exam(src);
this.src = src || {};
}
Exam.getExams = getExams;
Exam.prototype.getMsgpacks = getMsgpacks;
Exam.... |
// @flow strict
import os from 'os';
import fs from 'fs';
import path from 'path';
import {
findBreakingChanges,
findDangerousChanges,
buildSchema,
printSchema,
lexicographicSortSchema,
type GraphQLSchema,
} from 'graphql';
import SignedSource from '@kiwicom/signed-source';
import { buildBreakingChangesBl... |
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import get_user_model
from django.utils.html import format_html
from django.utils.timezone import now
from django.contrib import admin
from .models import Session
from pprint import pformat
class ExpiredFilter(admin.SimpleListFilter):
... |
"""
NCL_proj_3.py
=============
This script illustrates the following concepts:
- Drawing filled contours over an orthographic map
- Changing the center latitude and longitude for an orthographic projection
- Turning off map fill
See following URLs to see the reproduced NCL plot & script:
- Original NCL ... |
'use strict';
describe("resource", function() {
var $resource, CreditCard, callback, $httpBackend;
beforeEach(module('ngResource'));
beforeEach(inject(function($injector) {
$httpBackend = $injector.get('$httpBackend');
$resource = $injector.get('$resource');
CreditCard = $resource('/CreditCard/:id:v... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-14 23:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('game', '0004_auto_20160214_2259'),
]
operations = [... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
import React from 'react';
import PropTypes from 'prop-types';
import { CardHeader, CardFooter, Level, Label } from '@patternfly/react-core';
import { CATALOG_API_BASE } from '../../utilities/constants';
import CardIcon from '../../presentational-components/shared/card-icon';
import CardCheckbox from '../../presentati... |
import csv
import json
import six
class Example(object):
"""Defines a single training or test example.
Stores each column of the example as an attribute.
"""
@classmethod
def fromJSON(cls, data, fields):
return cls.fromdict(json.loads(data), fields)
@classmethod
def fromdict(cl... |
import { WebElement } from "../util/web_element.js";
export class Feedback {
constructor(
currentPomodoro,
dispatch,
productiveBtn = new WebElement(".productive--btn")
) {
this.currentPomodoro = currentPomodoro;
this.dispatch = dispatch;
this.productiveBtn = productiveBtn.get();
}
upda... |
"""
Test module for client.py
"""
import os
import unittest
from datetime import datetime
from importlib import reload
from unittest.mock import patch
import mona_sdk.client
from mona_sdk.client import Client, MonaSingleMessage
from mona_sdk.authentication import _get_auth_response_with_retries
from mona_sdk.client_ex... |
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'firefox'
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine',
// Spec patterns are relative to the current working directly when
// ... |
from conjureup import controllers
from conjureup.app_config import app
class BaseLXDSetupController:
""" Provides configuration for LXD storage and network
The following keys exist to allow spell/addon authors to make use of
the lxd selections:
conjure-up.<spell>.lxd-network-name
- Name of the s... |
import bs4
import requests
from bs4 import BeautifulSoup as soup
city=str(input("Enter City Text\n"))
guest=str(input("Enter no. of Guest < 4\n"))
nod=int(input("Number of Days For Stay"))
date=str(input("DD\n"))
month=str(input("MM\n"))
rdate=str(input("Return DD\n"))
ydate=str(input("Return MM\n"))
urlhotel... |
from .dedupe import dedupe
|
/* jshint node: true, curly: false */
// Parts of this section of code is taken from acorn.
//
// Acorn was written by Marijn Haverbeke and released under an MIT
// license. The Unicode regexps (for identifiers and whitespace) were
// taken from [Esprima](http://esprima.org) by Ariya Hidayat.
//
// Git repositories for... |
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class UtilsConfig(AppConfig):
name = "radical_translations.utils"
verbose_name = _("Utils")
|
import React from 'react';
import { Route, Link } from 'react-router-dom';
import { Breadcrumb, BreadcrumbItem } from 'reactstrap';
import routes from '../../routes/breadcrumbRoutes';
const findRouteName = url => routes[url];
const getPaths = pathname => {
const paths = ['/'];
if (pathname === '/') return paths;... |
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["E... |
{
"title": "Map 3",
"roadData": {
"x": 150,
"y": 200,
"x3d": 20,
"y3d": 30,
"width": 100,
"dir": 0,
"color": 8947848,
"path": [
{
"type": 0,
"dist": 200
},
{
"type": 1,
"dir": "r",
"stepDist": 10,
"steps": 9,
"... |
module.exports = {
siteMetadata: {
title: 'Frontend Masters Gatsby Workshop',
description:
'A site we built together in a Gatsby course on Frontend Masters',
},
plugins: [
'gatsby-plugin-emotion',
'gatsby-plugin-react-helmet',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
... |
'use strict'
var agent = require('../../..').start({
serviceName: 'test',
secretToken: 'test',
captureExceptions: false
})
var semver = require('semver')
if (semver.lt(process.version, '6.0.0')) process.exit()
var test = require('tape')
var http = require('http')
var express = require('express')
var querystri... |
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
export default function BlogPost({ data }) {
const post = data.markdownRemark
return (
<Layout>
<div>
<h1>{post.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.html }}... |
import TextCreation32 from "./TextCreation32.svelte";
export default TextCreation32; |
// import Amplify, { Storage, Predictions } from 'aws-amplify';
// import { AmazonAIPredictionsProvider } from '@aws-amplify/predictions';
const Amplify = require('aws-amplify')
console.log('Amplify: ', Amplify)
let audio = null
document.addEventListener('mouseup', function translator() {
let text = ""
if (windo... |
// URL Polyfill
// Draft specification: https://url.spec.whatwg.org
// Notes:
// - Primarily useful for parsing URLs and modifying query parameters
// - Should work in IE8+ and everything more modern
(function (global) {
'use strict';
function isSequence(o) {
if (!o) return false;
if ('Symbol' in global ... |
export const ERROR = 'error';
export const PUSH_ARKID = 'pushArkId';
export const GET_OR_REQUEST_IDENTITY = 'getOrRequestIdentity';
export const IDENTITY_FROM_PERMISSIONS = 'identityFromPermissions';
export const FORGET_IDENTITY = 'forgetIdentity';
export const REQUEST_SIGNATURE = 'requestSignature';
export const ABI_C... |
import React, { Component, createElement } from "react";
//
var chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
/* Some high number, usually 9-digit base-10. Map it to base-😎 */
var generateAlphabeticName = function generateAlphabeticName(code) {
var lastDigit = chars[code % chars.length]... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");
var ts = require("typescript");
var loaderUtils = require('loader-utils');
var index_1 = require("../../index");
var webpack_wrapper_1 = require("../../../webpack-wrapper");
var AOTMode;
var compilerOptions;
functio... |
/home/runner/.cache/pip/pool/d3/fb/0e/114313e02570f5da03defc91857f345f5f4fc2a168501b3b816b05304e |
"""
Wiki gems exporter
Overview
===============================================================================
+----------+------------------------------------------------------------------+
| Path | PyPoE/cli/exporter/wiki/parsers/gems.py |
+----------+----------------------------------... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-09-14 13:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependenci... |
import CardForHomePage from './CardForHomePage';
export default CardForHomePage; |