text stringlengths 2 1.04M |
|---|
//=include _components/_timer.js
//=include _components/_alert.js
//=include _components/_animation.js
//=include _components/_helper.js
//=include _components/_menu.js
//=include _loading/_scene.js
//=include _scene/_initialize.js
//=include _loading/_data.js
//=include _loading/_side.js
//=include _loading/_select.j... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'newpage', 'ka', {
toolbar: 'ახალი გვერდი'
} ); |
OC.L10N.register(
"encryption",
{
"Missing recovery key password" : "Mungon fjalëkalim kyçi rimarrjesh",
"Please repeat the recovery key password" : "Ju lutemi, rijepni fjalëkalimin për kyç rimarrjesh",
"Repeated recovery key password does not match the provided recovery key password" : "Fjalëkalimi... |
/**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
/**
* @Author: dayTimeAffect
* @Date: 2021/7/26
*/
import React, {useMemo, useState, useEffect} from "react";
import moment from 'moment';
import { Table } from "antd";
import { Img } from "@/components/widget"
import style from "./index.module.less"
import {isArray, isNoneVal} from "@/utils";
const DetailsShow = (... |
var canvas = document.getElementById("canvas");
/*2d圖案+定義x===canvas*/
var x = canvas.getContext("2d");
x.strokeStyle = '#7CFC00';
x.lineWidth = 10;
/*影子*/
x.shadowBlur= 15;
x.shadowColor = '#7CFC00';
/*由於圓圈的表達方式是pi/180 出現這個funtion*/
function degToRad(degree){
var factor = Math.PI/180;/*圓pi*/
... |
require('newrelic');
var port = 8080
var app = require('./index.js');
app.listen(port, () => {
console.log(`Listening on port ${port}`)
}) |
const Discord = require('discord.js');
const bot = new Discord.Client();
const prefix = '.';
const token = 'TOKEN_HERE';
const fs = require("fs")
const replaceExt = require('replace-ext');
//let warns = JSON.parse(fs.readFileSync("./warns.json","utf8"))
//let modules = JSON.parse(fs.readFileSynce("./modules.json","utf8... |
const state = require("./");
test("setState", () => {
expect(state.setState("setState", true)).toStrictEqual({ success: true });
});
test("getState", () => {
state.setState("getState", true);
expect(state.getState("getState")).toStrictEqual({ success: true, data: true });
}); |
const CATEGORIES = []
const ACTIVES = new Set()
const STORAGE_KEY = 'Store.Log.Actives'
function saveActives() {
ACTIVES.size ?
localStorage[STORAGE_KEY] = JSON.stringify([...ACTIVES]) :
localStorage.removeItem(STORAGE_KEY)
}
function loadActivate(cat) {
const actives = JSON.parse(localStorage[STORAGE_KEY... |
const { slugify } = require('transliteration');
const SLUGIFY_OPTIONS = {
lowercase: false,
separator: '_',
allowedChars: 'a-zA-Z0-9',
};
const defaultFileNameFormatter = ({ configurationName, kind, story }) =>
slugify(`${configurationName} ${kind} ${story}`, SLUGIFY_OPTIONS);
function getOutputPaths(options... |
//START OF GLOBAL VAR'S
//STORAGE ARRAY FOR SETTING and GETTING.
var cityHistory = reloadExisting ? [...reloadExisting]:[]
//SET VAR SET CITYHISTORY STORAGE
var memorySet= function () {
localStorage.setItem("cityHistory", JSON.stringify(cityHistory))
}
//SET VAR MY CITY RETRIEVE
var cityRetrieve = JSON.parse(lo... |
const path = require('path');
const Dotenv = require('dotenv-webpack');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'api.bundle.js',
},
target: 'node',
plugins: [
new Dotenv({
path: './environments/.env-prod', // Path to .env file (this... |
import axios from 'axios'
import { MessageBox, Message } from 'element-ui'
import store from '@/store'
import { getToken } from '@/utils/auth'
// create an axios instance
const service = axios.create({
// baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// baseURL: 'http://localhost:8090', //... |
'use strict';
var BaseModel = require('model-toolkit').BaseModel;
module.exports = class GarmentInventoryMovement extends BaseModel {
constructor(source) {
super('inventory-garment-document', '1.0.0');
// Define properties.
this.code = '';
this.date = new Date();
this.ref... |
object-assign
(c) Sindre Sorhus
@license MIT
*/
* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
* react.production.min.js
*
* Copyright (c) 2013-present... |
module.exports = [
{
title: 'mysql侧边栏1',
collapsable: true,
children: ['/mysql/mysql1/']
},
{
title: 'mysql侧边栏2',
collapsable: true,
children: ['/mysql/mysql2/']
}
] |
"use strict";
var gulp = require('gulp-help')(require('gulp'));
gulp.task('jshint', 'JsHint check for source files.', function () {
var jshint = require('gulp-jshint');
return gulp.src('src/**/*.js')
.pipe(jshint({
lookup : true
}))
.pipe(jshint.reporter('default'))
... |
/*
* Author: Sarah Knepper <sarah.knepper@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
// Load temp... |
"use strict";
const {strict: assert} = require("assert");
const _ = require("lodash");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const emoji = zrequire("../shared/js/emoji");
const emoji_picker = zrequire("emoji_picker");
const emoji_codes = zrequire("../gen... |
var searchData=
[
['increasepositionby_0',['increasePositionBy',['../_servo_8h.html#a8f5073c314ec2294c56af3b8c7c5f8c2',1,'increasePositionBy(Servo *servo, uint16_t length): Servo.c'],['../_servo_8c.html#a8f5073c314ec2294c56af3b8c7c5f8c2',1,'increasePositionBy(Servo *servo, uint16_t length): Servo.c']]],
[... |
import path from 'path';
import {ipcRenderer} from 'electron';
import {BadgeStore} from 'nylas-exports';
// Must be absolute real system path
// https://github.com/atom/electron/issues/1299
const {platform} = process
const INBOX_ZERO_ICON = path.join(__dirname, '..', 'assets', platform, 'MenuItem-Inbox-Zero.png');
con... |
(function () {
tinymce.PluginManager.requireLangPack('jbimages');
tinymce.create('tinymce.plugins.jbImagesPlugin', {
init: function (ed, url) {
ed.addCommand('jbImages', function () {
var unixtime_ms = new Date().getTime();
ed.windowManager.open({
... |
const Commando = require("discord.js-commando");
const fs = require("fs");
signUps = 0;
module.exports = class SignupCommand extends Commando.Command {
constructor(bot) {
super(bot, {
name: "signup",
aliases: ["su"],
group: "raid",
memberName: "signup",
... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sa... |
const colors = require('colors/safe');
const moment = require('moment');
const cwlog = {
project: 'cwlog',
showDate: false,
setProject(project) {
this.project = project;
},
displayDate() {
this.showDate = true;
},
stdout(msg) {
console.log(`[${colors.brightBlue(t... |
//// [exportDeclarationInInternalModule.ts]
class Bbb {
}
class Aaa extends Bbb { }
module Aaa {
export class SomeType { }
}
module Bbb {
export class SomeType { }
export * from Aaa; // this line causes the nullref
}
var a: Bbb.SomeType;
//// [exportDeclarationInInternalModule.js]
var __extends ... |
'use strict'
var executionContext = require('../../execution-context')
class CompilerMetadata {
constructor (events, opts) {
var self = this
self._events = events
self._opts = opts
self.networks = ['VM:-', 'main:1', 'ropsten:3', 'rinkeby:4', 'kovan:42']
}
syncContractMetadata () {
var self =... |
const connection = require('../config/connection');
const Role = function(role) {
this.connection = connection
};
Role.getAll = () => {
return connection.query("SELECT * FROM employeetracker_db.role")
};
Role.getAllUpdated = () => {
return connection.query("SELECT id as value, title as name FROM employeetrac... |
const express = require("express");
const router = express.Router();
const usersController = require("../controllers/users");
const { verifyToken } = require("../middleware/auth");
router.get("/org/:orgName", verifyToken, usersController.index);
router.get("/:username", verifyToken, usersController.show);
router.post... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Logo extends Component {
render() {
const size = {
height: this.props.size ? this.props.size : 105,
width: this.props.size ? this.props.size : 105
}
return (
<div... |
/* eslint-disable no-param-reassign */
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
strict: true,
state: {
user: JSON.parse(localStorage.getItem('user')) || null,
token: localStorage.getItem('token') || null,
},
mutations: {
setUser(state, data) {
... |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
// Webpack plugins
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const NODE_ENV = process.env.NODE_ENV;
// Development environment
const devEnv = () => (NODE_ENV === 'development');... |
class sapi_spgrammarcompiler {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
Ge... |
var q = require('q');
var jsonArg = process.argv[2];
var parsePromised = function(json) {
var defer = q.defer();
try {
var a = JSON.parse(json);
defer.resolve(a);
} catch (e) {
defer.reject(e);
}
return defer.promise;
};
parsePromised(jsonArg)
.then(null, console.log); |
import React, { useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import styled from 'styled-components';
import { Container, Header, FooterContainer, Row, Column } from './TableComponents';
const Img = styled.img`
height: 100px;
width: 100px;
`;
const Table = props => {
const { co... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2018 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
//Remove all function
function removeAll(n) {
while (n.firstChild) {
n.removeChild(n.firstChild);
}
}
//Remove all function
function debugge(funcToDebug) {
debugger;
funcToDebug();
} |
/* eslint-env mocha */
'use strict'
const { expect } = require('aegir/utils/chai')
const testHttpMethod = require('../../utils/test-http-method')
const http = require('../../utils/http')
const sinon = require('sinon')
const { AbortSignal } = require('abort-controller')
const defaultOptions = {
recursive: false,
f... |
'use strict';
require('dotenv').config();
const { db } = require('./src/auth/models/index.js');
db.sync()
.then(() => {
require('./src/server.js').startup(process.env.PORT);
}); |
/*
* Copyright 2014, Gregg Tavares.
* 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 condi... |
import React, { useState, useEffect } from 'react'
import { Card, List, Modal } from 'semantic-ui-react'
import ReactJson from 'react-json-view'
import Player from './Player'
var moment = require('moment');
function RecordDetails(props) {
const [record, setRecord] = useState({id: 0})
const [transferUI, setTr... |
/**
* Developer: Stepan Burguchev
* Date: 12/4/2014
* Copyright: 2009-2016 Comindware®
* All Rights Reserved
* Published under the MIT license
*/
import 'lib';
import { helpers } from 'utils';
import HighlightableBehavior from '../../../../../collections/behaviors/HighlightableBehavior';
import SelectableB... |
import React, { Component } from 'react';
import GoogleMapReact from 'google-map-react';
import styled from '@emotion/styled';
import { useSiteMetadata } from '../hooks/use-site-metadata'
const MapWrapper = styled.div`
width: 130px;
padding: 10px;
margin-left: 10px;
background-color: white;
border-... |
const {
existsSync,
readdirSync,
} = require('fs');
const {
join,
extname,
} = require('path');
/**
* Import specs
*/
const dirs = ['', 'Paypal', 'utils'];
dirs.forEach((dir) => {
const where = './tests/specs/' + dir;
if (existsSync(where)) {
readdirSync(where).forEach((file) => {
if (extname... |
import _ from "lodash";
export const extractor = (raw) => _.get(raw, "github.commitsStats.all", []).length * 7; |
function dateFormat(format,date){
if(!date || date === "")
{
date = new Date();
}
else if(typeof date !== 'object')
{
date = new Date(date.replace(/-/g,"/")); // attempt to convert string to date object
}
var string = '',
mo = date.getMonth(), // month (0-11)
... |
module.exports = {"1583":{"id":"1583","parentId":"186","name":"\u6c99\u5e02\u533a"},"1584":{"id":"1584","parentId":"186","name":"\u8346\u5dde\u533a"},"1585":{"id":"1585","parentId":"186","name":"\u77f3\u9996\u5e02"},"1586":{"id":"1586","parentId":"186","name":"\u6d2a\u6e56\u5e02"},"1587":{"id":"1587","parentId":"186","... |
import React, { PureComponent } from 'react';
import { View, Text } from 'react-native';
import GenericHeader from 'src/components/GenericHeader';
import Detail from './Detail';
import Pronuntiation from './Pronuntiation';
import { connect } from 'react-redux';
import { withNavigation } from 'react-navigation';
class ... |
const ffmpeg = require('fluent-ffmpeg')
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
ffmpeg.setFfmpegPath(ffmpegPath)
const path = require('path')
const {obterNomeAleatorio} = require('./util')
module.exports ={
converterMp4ParaMp3 : (caminhoVideo) => {
return new Promise((resolve,reject)=>... |
var hypnoticBall, database;
var position;
function setup(){
database = firebase.database();
console.log(database);
createCanvas(500,500);
hypnoticBall = createSprite(250,250,10,10);
hypnoticBall.shapeColor = "red";
var hypnoticBallPosition = database.ref('ball/position');
hypnoticBallPosition.on("val... |
import { verticalGradient } from 'vizart-core';
import { area } from 'd3-shape';
import interpolateCurve from '../../util/curve';
import nodeColor from './node-color';
const drawArea = (context, particles, opt) => {
context.save();
const curve = area()
.x(d => d.x)
.y0(context.canvas.height)
.y1(d =>... |
exports.send = require('send-json');
exports.json = require('json'); |
import Ember from 'ember';
const {
run,
isNone
} = Ember;
export default Ember.Component.extend({
classNames: ['query-builder'],
didReceiveAttrs() {
this._super(...arguments);
this.scheduleSetupQueryBuilder();
},
willDestroyElement() {
this._super(...arguments);
run.cancel(this._setupTim... |
import { isDefined } from '../checks/isDefined';
/**
* Sets the axis and meridian properties from options in the correct order.
* @hidden
*/
export function setAxisAndMeridian(mesh, options) {
if (isDefined(options.axis)) {
mesh.axis = options.axis;
}
if (isDefined(options.meridian)) {
me... |
//# sourceMappingURL=pdjs.js.map |
import React from "react"
import { Link } from "gatsby"
import { rhythm, scale } from "../utils/typography"
const Layout = ({ location, title, children }) => {
const rootPath = `${__PATH_PREFIX__}/`
let header
if (location.pathname === rootPath) {
header = (
<h1
style={{
...scale(1.... |
_out.json(_val.map().set("result", true)) |
/***
* subtask for js sdk1.0
*/
if (!window) {
window = {}
}
;(function (){
var storage = window.localStorage;
var time_at = setTimeout;
var error_c = console.error;
var subtask = {
"VERSION" : "v1.0"
}
subtask.sock_connected = false;
subtask.master_ip = null;
var ERR... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
// Define your own mock data here:
export const standard = () => ({
directory: {
id: 42,
},
}) |
"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.ap... |
import {
CentrelineType,
LocationSelectionType,
RoadIntersectionType,
RoadSegmentType,
StudyType,
} from '@/lib/Constants';
import { InvalidCentrelineTypeError } from '@/lib/error/MoveErrors';
import {
getLocationFeatureType,
getLocationStudyTypes,
getLocationsCorridorDescription,
getLocationsDescript... |
// this is a test to understand accessing sql api via websockets
var express = require('express')
, app = express.createServer(
express.logger({
buffer: true,
format: '[:date] :req[X-Real-IP] \033[90m:method\033[0m \033[36m:req[Host]:url\033[0m \033[90m:status :response-time ms -> :res[Content... |
import Controller from '@ember/controller';
import Ember from "ember";
export default Controller.extend({
session: Ember.inject.service('session'),
currentMember: Ember.computed("session.data.authenticated.member.id", function() {
return this.store.find("member", this.get("session.data.authenticated.m... |
import { Component } from '@angular/core';
var MyComponent = (function () {
function MyComponent() {
}
MyComponent.decorators = [
{ type: Component, args: [{
selector: 'my-component',
template: "<div>I'm a special snowflake</div>"
},] },
];... |
exports.dbs = {
G5_versions:"G5_versions"
} |
const path = require('path');
const metroBundler = require('metro-bundler');
// based on https://github.com/facebook/metro-bundler/issues/1#issuecomment-333658773
const projectRoot = path.resolve(__dirname);
const sdkRoot = path.resolve(__dirname, '../platform/sdk/react-native/');
module.exports = {
extraNodeModule... |
/**
@author: vaibhav padsala
@Email: vaibhavpatel2017@gmail.com
**/
const config = require("../config/auth.config");
const db = require("../models");
const User = db.user;
const Role = db.role;
var jwt = require("jsonwebtoken");
var bcrypt = require("bcryptjs");
exports.signup = (req, res) => {
const user =... |
import React, { useState } from 'react'
import { Link, useHistory } from 'react-router-dom'
import { FiArrowLeft } from 'react-icons/fi'
import api from '../../services/api'
import './styles.css'
import logoImg from '../../assets/logo.svg'
export default function Register() {
const [name, setName] = useState('')
c... |
/*
jQWidgets v8.3.1 (2019-Oct)
Copyright (c) 2011-2019 jQWidgets.
License: https://jqwidgets.com/license/
*/
/* eslint-disable */
|
const mongoose = require('mongoose');
const buildFakeData = require('../../database/fake_data');
const Goal = require('../../database/models/goal');
describe('testing the goal model', () => {
beforeEach(async () => {
await buildFakeData();
});
afterAll(async () => {
await mongoose.disconnect();
});
... |
var searchData=
[
['range_6348',['range',['../structanonymous__namespace_02Iocgns__DatabaseIO_8C_03_1_1SBlock.html#a05e558859b5f9be8f7beb57d4507e505',1,'anonymous_namespace{Iocgns_DatabaseIO.C}::SBlock']]],
['range_5fbeg_6349',['range_beg',['../structIocgns_1_1ZoneBC.html#a18fb5b6b89424a35fcdad673e3068b3e',1,'Iocgn... |
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'airbnb',
'react-app',
'react-app/jest',
],
rules: {
'react/jsx-filename-extension': 0,
'import/no-named-as-default': 0,
'consistent-return': 0,
'object-curly-newline': 0,
'max-len': 0,
... |
var searchData=
[
['tolowercase',['toLowerCase',['../classutil_1_1Strings.html#a111a9ac8088ec56d3a109b95d43f654a',1,'util::Strings']]],
['tostring',['toString',['../classTreeNode.html#a652d0e9aaa8872b23a243cd3c6f99364',1,'TreeNode::toString()'],['../classObject.html#a2a71a6af528b14988cbf837b1d2861c6',1,'Object::toS... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
function ListItem(props){
const data = props.data;
let anchorAttrs = {
href: data.url,
title: data.name
}
return(
<li>
<a {...anchorAttrs}><span>{data.name}</span></a>
</li>
)
}
export default function(){
const data = useStati... |
const germs = require(`germs`)
const pkg = require(`./package.json`)
const utils = require(`nps-utils`)
const allNPS = utils.concurrent.nps
const GERMS = germs.build(pkg.name, {
readme: `documentation readme -s "API" src/*.js`,
test: [
`jest src/*.spec.js --coverage`,
`--coveragePathIgnorePatterns entrust.... |
const config = {
bridge: {
uri: 'ws://localhost:1025/ws',
sessionBaseUri: 'http://localhost:1026',
pingInterval: 30 // Expect a ping from server every 30 seconds.
},
btcd: {
uri: 'wss://localhost:18556/ws',
username: 'LHb574e7pzDNhUIsTaJguQAw7iA',
password: 'UZgaYSJwBgao2HCh+ywKNhBPOJA',
... |
( function( angular ) {
'use strict';
var trail = function( str, ch ) {
return !str.match( new RegExp( ch + '$' ) ) ? str + ch : str;
};
var toKeyValue = function( obj ) {
var parts = [];
angular.forEach( obj, function( value, key ) {
parts.push( encodeUriQuery( key, true ) + ( value === tr... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"3XHS":function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),r=a.n(n),c=a("LbRr"),o=a("Wbzz");t.default=function(){return r.a.createElement("div",{style:{color:"teal"}},r.a.createElement(o.a,{to:"/"},"Home"),r.a.createElement(o.a,{to:"/contact/"},"Contact"),r.a.cre... |
let chordMode = false;
let arpMode = true;
const codeNotes = [
["C", 3, 81, "Q"],
["C#", 3, 50, "2"],
["D", 3, 87, "W"],
["D#", 3, 51, "3"],
["E", 3, 69, "E"],
["F", 3, 82, "R"],
["F#", 3, 53, "5"],
["G", 3, 84, "T"],
["G#", 3, 54, "6"],
["A", 3, 89, "Y"],
["A#", 3, 55, "7"],... |
export { default } from 'ember-component-showcase/components/showcase/s-example'; |
'use strict';
var decorators = require('*/cartridge/models/product/decorators/index');
var cloudinaryConstants = require('*/cartridge/scripts/util/cloudinaryConstants');
var productBundleBase = module.superModule;
/**
* Decorate product with set product information
* @param {Object} product - Product Model to be d... |
/**
* @license
* Copyright 2014 Google Inc. 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 requir... |
import { createIcon } from '../createIcon';
export const HorseHeadIconConfig = {
name: 'HorseHeadIcon',
height: 512,
width: 512,
svgPath: 'M509.8 332.5l-69.9-164.3c-14.9-41.2-50.4-71-93-79.2 18-10.6 46.3-35.9 34.2-82.3-1.3-5-7.1-7.9-12-6.1L166.9 76.3C35.9 123.4 0 238.9 0 398.8V480c0 17.7 14.3 32 32 32h236.2c23... |
import a1 from '@/assets/images/solution/online/apply/a1.png';
import a2 from '@/assets/images/solution/online/apply/a2.png';
import a3 from '@/assets/images/solution/online/apply/a3.png';
const data = {
title: '使用场景',
content: [
{
cover: a1,
title: '凤凰飞舞',
data: [
'导鸣人修行时曾形容他和父亲水门极为相... |
/* Hacky hacky */
const fs = require('fs')
const path = require('path')
const glob = require('glob')
/** Glob always uses forward slash for separator, regardless of OS. */
function globJoin (...args) {
return path.join(...args).replace(/\\/g, '/')
}
///////////////////////////////////////////////////////
// Gathe... |
const Log4n = require('../../utils/log4n.js');
const configMQTT = require('../../config/mqtt.js');
const get = require('../../models/api/device/get.js');
const update = require('../../models/api/device/patch.js');
const errorparsing = require('../../utils/errorparsing.js');
module.exports = function (context, content)... |
import React from "react";
import "@fortawesome/fontawesome-svg-core/styles.css";
import Layout from "../components/layout";
import SEO from "../components/SEO/seo";
import Nav from "../components/nav";
import Header from "../components/header";
import Cta from "../components/cta";
import About from "../components/ab... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, ControlLabel, FormControl } from 'react-bootstrap';
import { graphql } from '@apollo/react-hoc';
import gql from 'graphql-tag';
class EventTemplatePicker extends React.Component {
static getInitialProps({ query: { collectiveSlug } }) ... |
import hoc from '@enact/core/hoc';
import {useFloatingLayer} from '@enact/ui/FloatingLayer';
const defaultConfig = {};
const FloatingLayerIdProvider = hoc(defaultConfig, (config, Wrapped) => {
// eslint-disable-next-line no-shadow
return function FloatingLayerIdProvider (props) {
const {floatingLayerId} = useFloa... |
import React, { PropTypes } from 'react';
import { NavLink } from 'react-router-dom';
export const HeaderNavContainer = () => {
return (
<nav className="navbar navbar-toggleable-sm custom-black navbar-inverse">
<div className="container">
<button className="navbar-toggler" data... |
const path = require('path')
module.exports = (options, context) => ({
enhanceAppFiles: [
path.resolve(__dirname, './lib/client.js')
],
scss: {
includePath: ["./lib/theme/tabs.scss"]
},
chainMarkdown (config) {
config
.plugin('@superbiger/tabs')
.use(... |
const createFile = require('./')
const st = createFile('benchmark.txt')
st.open(tinyWrites)
function tinyWrites () {
let offset = 0
const buf = Buffer.alloc(1)
console.time('10000 tiny writes')
st.write(0, buf, function onwrite (err) {
if (err) throw err
offset++
if (offset === 10000) {
cons... |
var registry = require('../');
var minimist = require('minimist');
var cp = require('child_process');
var resolve = require('resolve');
var argv = minimist(process.argv.slice(2));
if (!argv.npm) argv.npm = 'http://skimdb.npmjs.com/registry';
if (!argv.es) argv.es = 'http://localhost:9200/npm';
function startIt() {
... |
var apiUrl = "https://api.data.gov.sg/v1/transport/taxi-availability";
var apiKey = "D1d2ksxbOfibGHhw30tqo1nWRnAKlx6W";
var apiAcc = "application/json";
var xhr = new XMLHttpRequest();
var map = L.map('map').setView([1.35, 103.85], 12);
var hexLayer;
window.toggle = false;
L.tileLayer('http://{s}.basemaps.cartocdn.com... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ShareTestModule
*/
'use strict';
var BatchedBridge = require('BatchedBridge');
var React = require('React');
var Rec... |
// This file is managed by Shoutem CLI
// It exports pages from extension.json
// You should not change it manually
{{#pagesImports}}
// screens imports
{{{pagesImports}}}
{{/pagesImports}}
{{#pagesNames}}
export const pages = {
{{pagesNames}}
};
{{/pagesNames}} |
import { ethers, getNetworkId, getNetworkProviderUrl } from '@ensdomains/ui';
import getENS, { getRegistrar } from 'api/ens';
const ChainLinkABI = [
{
inputs: [],
name: 'decimals',
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
stateMutability: 'view',
type: 'function'
},
{
... |
module.exports = [{"name":"path","attribs":{"d":"M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"}}]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.