text stringlengths 2 1.04M |
|---|
module.exports = function(hljs) {
var RUBY_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?';
var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?';
var RUBY_KEYWORDS = {
keyword:
'and false then defined module in return redo if BEGIN retry end for true se... |
const express = require("express")
const server = express()
const routes = require("./routes")
const path = require("path")
// definir o template engine padrão (EJS), arquivos .ejs na pasta Views
server.set('view engine', 'ejs')
// mudar a localização da pasta Views
server.set('views', path.join(__dirname, 'views'))
... |
var ListNode = require('./building.js').ListNode;
var buildList = require("./building.js").buildList;
var printList = require("./building.js").printList;
/**
* @param {ListNode} head
* @return {ListNode}
*/
var reverseList = function(head) {
if (head === null) {
return head;
}
var newHead;
(function rec... |
/**
* Copyright (C) 2021 Vasilii Burlacu & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use,
modify, merge the ... |
var nodemap, linkmap = d3.map();
function initdata(nm, lm) {
nodemap = d3.map(nm);
function datainit(xx) {
xx.forEach(function(d, i) {
this.set(i.id, i);
if (i.id != d) {
this.remove(d)
}
})
};
datainit(nodemap);
initNodeshape(nod... |
let diceScore = document.querySelector("#score");
let diceImg = document.querySelector("#result");
let diceRoll = document.querySelector("#rolldice")
let header = document.querySelector("#header");
let startButton = document.querySelector("#strtbtn");
let diceArr =[];
startButton.style.visibility = "hidden"
function ... |
import React, { Fragment } from 'react';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
import Link from 'umi/link';
import { Icon } from 'antd';
import { GlobalFooter } from 'ant-design-pro';
import SelectLang from '@/components/SelectLang';
import styles from './UserLayout.less';
import lo... |
import React, {Component} from "react";
import _ from "lodash";
import {Link} from "react-router-dom";
import classNames from "classnames";
import Header from "../header/header";
import * as styles from "./blog.scss";
import BlogItem from "../home/blog/blog-item";
import BlockBackgroundImage from "../../../resources/im... |
(function ($) {
$.fn.dateManager = function (options) {
return this.each(function () {
var $this = $(this);
var opt = $.extend({}, { "onChange": null, "format": "mm/dd/yyyy" }, options);
var $datepicker = $('.datepicker', $this).datepicker({ 'autoclose': true, 'format'... |
const React = require('react');
const ReactDOMServer = require('react-dom/server');
const DOM = require('react-dom-factories');
let body = DOM.body;
let div = DOM.div;
let script = DOM.script;
const browserify = require('browserify');
const babelify = require('babelify');
const express = require('express');
let app =... |
// +-------------------------------------------------------------------------
// | Copyright (C) 2016 Yunify, Inc.
// +-------------------------------------------------------------------------
// | Licensed under the Apache License, Version 2.0 (the "License");
// | you may not use this work except in compliance with t... |
import {
RYUU
} from "../config.js";
/**
* Extend the basic ActorSheet with some very simple modifications
* @extends {ActorSheet}
*/
export class RyuutamaActorSheet extends ActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classe... |
const spaceImport = require('contentful-import')
const exportFile = require('./export.json')
const [CONTENTFUL_SPACE_ID, CONTENTFUL_MANAGEMENT_TOKEN] = process.argv.slice(2)
console.log({ CONTENTFUL_SPACE_ID, CONTENTFUL_MANAGEMENT_TOKEN })
if (!CONTENTFUL_SPACE_ID || !CONTENTFUL_MANAGEMENT_TOKEN) {
throw new Error... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2016 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... |
export default function formControlState({
props,
states,
muiFormControl
}) {
return states.reduce((acc, state) => {
acc[state] = props[state];
if (muiFormControl) {
if (typeof props[state] === 'undefined') {
acc[state] = muiFormControl[state];
}
}
return acc;
}, {});
} |
var path = require('path')
var webpack = require('webpack')
module.exports = {
/*entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist/js'),
publicPath: '/dist/',
filename: 'xo-loader.js',
library: 'xo-loader', //指定的就是你使用require时的模块名,这里便是require("xo-loader")
libraryTarget: 'u... |
"use strict";
var topics = ["game of thrones", "dexter", "the simpsons", "the wire", "csi miami", "community", "happy endings", "the walking dead", "broad city"]
// console.log(topics);
// creating buttons from the array
window.onload= function () {
for (var i = 0; i < topics.length; i++) {
var a = $... |
const faker = require('faker');
const getPostalAddress = () => {
const example = {
'@context': ['https://goodlookingtech.com'],
type: 'PostalAddress',
organizationName: faker.company.companyName(),
streetAddress: faker.address.streetAddress(),
addressLocality: faker.address.city(),
addressReg... |
angular.module('timetable-visual', ['attendance-controller', 'attendance-rest-service']); |
'kiwi public';
import _ from 'lodash';
import strftime from 'strftime';
import Irc from 'irc-framework';
import * as TextFormatting from '@/helpers/TextFormatting';
import * as IrcdDiffs from '@/helpers/IrcdDiffs';
import typingMiddleware from './TypingMiddleware';
import chathistoryMiddleware from './ChathistoryMiddl... |
/* Flot plugin that adds some extra symbols for plotting points.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
The symbols are accessed as strings through the standard symbol options:
series: {
points: {
symbol: "square" // or "diamond", "triangle", "cross"
}
}
*/
(function... |
let nock = require('nock');
module.exports.hash = "058e97a52ffbf0d84ec36fab6e5997fe";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
.get('/common/discovery/instance')
.query(true)
.reply(200, {"tenant_discovery_endpoint":"htt... |
'use strict';
var ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/vpaid/vpaid-1.xml';
describe('Test for vpaid-js-redirect', function () {
var id = 'rmpPlayer';
var container = document.getElementById(id);
var video = document.querySelector('.rmp-video');
var title = document.getElementsByTagName('titl... |
export {default as Navbar} from './Navbar/Navbar';
export {default as Products} from './Products/Products';
export {default as Cart} from './Cart/Cart';
export {default as NotFound} from './NotFound/NotFound';
export {default as Checkout} from './CheckoutForm/Checkout/Checkout'; |
import { MessageEmbed } from 'discord.js';
const users = new Map();
const LIMIT = 20;
const TIME = 25_000;
const DIFF = 9_500;
const blacklistedWords = [
'fuck',
'pussy',
'bitch',
'hoe',
'whore',
'slut',
'cunt',
'piss',
'shit',
'damn',
'nigga',
'nigger',
'retard',
'dickhead',
'dipshit',... |
import React from 'react'
import { Link } from 'react-router-dom'
import StartChat from './StartChat'
function SideBar({ chats, computer }) {
return <div className="sidebar">
<StartChat computer={computer}></StartChat><br />
{chats.map(object =>
<small key={object._id}><Link to={`/chat/${object._id}`}... |
import './App.css'
import { Link, Typography } from '@material-ui/core'
function Footer() {
return(
<div className="Footer">
<Typography>
<Link style={{color:"black"}} href="https://github.com/tommygeiger/tuner">GitHub</Link>
{" - "}
<Link style={{color:"black"}} href="https:... |
import "tinymce/icons/default/icons.min.js";
import "tinymce/themes/silver/theme";
import "tinymce/plugins/advlist";
import "tinymce/plugins/anchor";
import "tinymce/plugins/contextmenu";
import "tinymce/plugins/directionality";
import "tinymce/plugins/fullpage";
import "tinymce/plugins/fullscreen";
import "tinymce/plu... |
import { StyleSheet } from "react-native";
export const globalOptions = {
name: "aver_wellness_34443",
url: "https://aver_wellness_34443.botics.co",
api: "https://aver_wellness_34443.botics.co/api/v1"
}
export const modulesOptions = {
"@modules/app-menu": {
"copy": "Routes available!"
}
} |
import React from "react";
export const GlobalStateContext = React.createContext();
export const GlobalDispatchContext = React.createContext();
const initialState = {
user: null,
};
function reducer(state, action) {
switch (action.type) {
case "USER": {
return {
...state,
user: action.t... |
import i18n from 'i18next';
import Backend from 'i18next-xhr-backend';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
const detectionOptions = {
order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'path'],
lookupFro... |
// Copyright (c) 2021 Oleksandr Semeniuk
// This code is licensed under MIT license
// See also http://www.opensource.org/licenses/mit-license.php
/**
* @version 1.0.3
* @date Mon Feb 05 2018
*
* @description Claer spaces
* @param str {string}
*/
function as_stringClearSpaces(str) {
return as_stringToSingleLin... |
var loc = window.location.search;
var cadena = loc.split("=")
$('document').ready(function(){
// verifica si la pagina viene del blog
if (loc != "") {
recibirurl(cadena[1])
}
colores();
if (window.location.pathname.length > 26) {
moverproduct();
}
$('.carousel').carousel();
setInterval... |
import {getPlatform} from './api'
import ProjectPicker from './components/ProjectPicker.vue'
import UserPicker from './components/UserPicker.vue'
import UserPickerUserKey from './components/UserPickerUserKey.vue'
import IssueTypePicker from './components/IssueTypePicker.vue'
import GroupsPicker from './components/Grou... |
deepmacDetailCallback("0040d1000000/24",[{"d":"2000-09-08","t":"add","a":"R & D DEPARTMENT NO. 1\n35-8, HONGO 2-CHOME, BUNKYO-KU\nTOKYO 113\n","c":"JAPAN","o":"FUKUDA DENSHI CO., LTD."},{"d":"2001-10-24","t":"change","a":"R & D DEPARTMENT NO. 1\n35-8, HONGO 2-CHOME, BUNKYO-KU TOKYO 113\n\n","c":"JAPAN","o":"FUKUDA DENS... |
module.exports = {
root: true,
extends: ['@react-native-community', 'prettier'],
rules: {
'no-shadow': 0,
'react-native/no-inline-styles': 0,
'react-hooks/exhaustive-deps': 1
}
}; |
// An example of how to use the UntappdClient.
//
// By Glen R. Goodwin
// twitter: @areinet
// Imports
var UntappdClient = require("./UntappdClient",false);
// Definitions
// Replace this with your CLIENT ID
var clientId = "[ your api key goes here ]";
// Replace this with your CLIENT SECRET
var clientSecret = "[ ... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","fa",{euro:"نشان یورو",lsquo:"علامت نقل قول تکی چپ",rsquo:"علامت نقل قول تکی راست",ldquo:"علامت نقل قول دوتایی چپ",rdquo:"علامت نقل قول ... |
import express from 'express';
import graphqlHTTP from 'express-graphql';
import { buildSchema } from 'graphql';
const schema = buildSchema(`
type Query {
Title: String,
Hello: [Test]
}
type Test {
TestInstant: String,
TestDelay: String,
}
`);
const getTest = () => ({
TestInstant: () => `Tes... |
import { combineReducers } from 'redux';
import { appinit } from './appinit';
export default combineReducers({
appinit
}) |
/*global QUnit */
sap.ui.define(["sap/ui/thirdparty/jquery",
"sap/ui/core/Core",
"sap/ui/core/mvc/XMLView",
"sap/m/App"],
function($, Core, XMLView, App) {
"use strict";
var BREAK_POINTS = {
TABLET: 1024,
PHONE: 600,
DESKTOP: 2000
},
MEDIA = {
PHONE: "sapUxAPObjectPageLayout-... |
var roleHarvester = {
/** @param {Creep} creep **/
run: function(creep) {
if(creep.carry.energy < creep.carryCapacity) {
var sources = creep.room.find(FIND_SOURCES);
if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {
creep.moveTo(sources[0]);
}
... |
var electron = require('electron'),
{ BrowserWindow, Menu, app, dialog } = electron.remote,
{ ipcRenderer } = electron,
menu,
template,
mainWindow = null;
var SyncEngine = require('../dist/engine');
//'title-bar-style': 'hidden'
//compose: 552h x 751w
//main: 1287x800
var engine = new SyncEngine(... |
import React, { useState, useEffect } from "react"
import { useStaticQuery, graphql } from "gatsby"
import tw from "tailwind.macro"
const Believe = () => {
const [index, setIndex] = useState(0)
const Wrapper = tw.div`my-8 px-8 py-16 text-3xl text-gray-700 leading-none font-display bg-orange-100 md:mt-0 w-full`
... |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
const fs = require("fs");
const _ = require("underscore");
const out = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
pr... |
export const TOKEN_COOKIE_KEY = 'efw-token'; // eslint-disable-line |
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHi... |
import React, { useState, useEffect } from 'react';
import { Link as RouterLink, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import validate from 'validate.js';
import { makeStyles } from '@material-ui/styles';
import {
Grid,
Button,
IconButton,
TextField,
Link,
FormHelperText,... |
'use strict'
const Liquid = require('..')
const assert = require('../src/util/assert.js')
const lexical = Liquid.lexical
const types = require('../src/scope').types
module.exports = function (liquid) {
liquid.registerTag('increment', {
parse: function (token) {
let match = token.args.match(lexical.identifi... |
import React from 'react'
import {
Container,
ContainModalContainer,
ModalView,
ModalCloseButton,
ViewSpacing,
TopMessage,
BottomMessage
} from './styles'
import { Modal } from "react-native"
import { Fontisto } from 'react-native-vector-icons'
import LottieView from 'lottie-react-native'
import error fr... |
module.exports = options => {
return (req, res, next) => {
const resourceName = require('inflection').classify(req.params.resource);
req.Model = require(`../models/${resourceName}`);
next();
}
} |
webpackJsonp([81],{692:function(a,e,t){"use strict";function n(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(e,"__esModule",{value:!0});var r=t(7),s=n(r),l=t(120),f=n(l),u=t(291);e.default={namespace:"chart",state:{visitData:[],visitData2:[],salesData:[],searchData:[],offlineData:[],offlineChartData:[],... |
/* eslint-disable */
module.exports.QUERY = {
tag: {
controller: 'tagsPublic',
type: 'read',
resource: 'tags',
options: {
slug: '%s',
visibility: 'public'
}
},
author: {
controller: 'authorsPublic',
type: 'read',
resourc... |
module.exports = {
async fn(inputs, exits) {
const { currentUser } = this.req;
const notifications = await sails.helpers.getNotificationsForUser(currentUser.id);
const actionIds = sails.helpers.mapRecords(notifications, 'actionId');
const actions = await sails.helpers.getActions(actionIds);
con... |
export { default as Account } from './Account';
export { default as Dashboard } from './Dashboard';
export { default as Category } from './Category';
export { default as Icons } from './Icons';
export { default as NotFound } from './NotFound';
export { default as ProductList } from './ProductList';
export { default as ... |
import React, { useState, useEffect } from 'react';
import { getCharacter } from '../util/maplestoryio';
const Character = ({items, action, flipped, ...props}) => {
const [characterImg, setCharacterImg] = useState();
useEffect(() => {
const get = async () => {
const blob = await getCharacter(items, ac... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import { Long } from "bytebuffer";
import v from "../../serializer/src/SerializerValidation";
var DB_MAX_INSTANCE_ID = Long.fromNumber(Math.pow(2, 48) - 1);
var O... |
/*
Copyright 2015 Gravitational, 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 or agreed to in writing, soft... |
const requireAll = ctx => ctx.keys().map(ctx);
const req = require.context('./', false, /\.svg$/);
requireAll(req) |
import { describe, PropTypes } from 'react-desc';
import { genericProps } from '../../utils/prop-types';
import { getAvailableAtBadge } from '../../utils/mixins';
export const doc = Tabs => {
const DocumentedTabs = describe(Tabs)
.availableAt(getAvailableAtBadge('Tabs', 'Controls'))
.description('A containe... |
/*
* Copyright 2018 Adobe 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 or agreed to i... |
import * as Fs from "fs";
import * as Yaml from "js-yaml";
export class Config {
constructor(configFile) {
this._configBranchesSeparator = ".";
this._configFile = configFile;
this._configContent = this.readConfig(configFile);
}
get($propertyPath) {
if ($propertyPath) {
... |
let data = {
"body": "<path d=\"M5 5h2v2H5V5M1 1h10v10H1V1m2 2v6h6V3H3m2 14h2v2H5v-2m-4-4h10v10H1V13m2 2v6h6v-6H3m10-2h4v2h2v-2h4v2h-4v2h4v6h-4v-2h-4v2h-2v-2h2v-2h-2v-6m8 8v-2h-2v2h2m-2-4h-2v-2h-2v4h4v-2m3.7-13.65l-1 1l-2.05-2l1-1c.2-.21.54-.22.77 0l1.28 1.23c.21.2.22.54 0 .77M13 8.94l6.07-6.06l2.05 2.05L15.06 11H13V8... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import * as React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
import Footer from "./... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.bulkInsert('Person', [{
name: 'John Doe',
isBetaMember: false... |
import React, { useState } from 'react';
import Avatar from '@mui/material/Avatar';
import Button from '@mui/material/Button';
import CssBaseline from '@mui/material/CssBaseline';
import TextField from '@mui/material/TextField';
import Link from '@mui/material/Link';
import { Link as domLink } from 'react-router-dom';
... |
import { validateNonEmptyness } from './validateNonEmpty';
import validateEmail from './validateEmail';
import { uuid } from './uuidGenerator';
import isImage from './isImage';
import enrichHTML from './enrichHTML';
import { createStore } from './createStore';
import { createHashHistory } from 'history';
describe('Uti... |
(function () {
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.... |
import React from 'react';
import {
View,
Text,
TouchableOpacity,
Touchable
} from 'react-native';
// Styles
import Styles from './Styles';
import * as Animatable from 'react-native-animatable';
// Icon
import FontAwesome from 'react-native-vector-icons/FontAwesome';
const Greeting = (props) => {
... |
'use strict'
const Schema = use('Schema')
class PessoaSchema extends Schema {
up () {
this.create('pessoas', (table) => {
table.uuid('id').primary()
table.string('nome').notNullable()
table.integer('idade').notNullable()
table.enu('sexo', ['masculino', 'feminino']).notNullable()
tab... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var jsxRuntime = require('react/jsx-runtime');
require('react-dom');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#_... |
/**
*
* Copyright (c) 2017 InterDigital, 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 require... |
import React, { useState, useEffect } from "react"
import styled from "@emotion/styled"
const Container = styled.div`
display: flex;
margin: auto auto;
padding-bottom: 10px;
`
const JoyButton = styled.div`
flex-grow: 1;
a {
font-size: 26px;
padding-right: 20px;
text-decoration: none;
}
`
con... |
import Vue from "vue";
import "./plugins/vuetify";
import VueLodash from 'vue-lodash'
import App from "./App.vue";
import router from "./router";
import store from "./store";
import UUID from "vue-uuid";
import Vuelidate from "vuelidate";
import "roboto-fontface/css/roboto/roboto-fontface.css";
import "material-design-... |
/** @jsx jsx */
import { Flex, jsx, Styled } from "theme-ui"
const Social = ({ socialEmbeds }) => {
return (
<section sx={{ p: [16, 16, 24], textAlign: "center" }}>
<Styled.h2
sx={{
mb: 8,
}}
>
Social
</Styled.h2>
<Flex
sx={{
flexWrap: "... |
import React from 'react';
import {toast} from 'react-toastify'
import axio from 'commons/axios';
import axios from 'commons/axios';
class EditInventory extends React.Component{
state={
id:'',
name: '',
price: '',
tags: '',
image: '',
status: 'available'
}
c... |
var map = L.map('map').fitWorld();
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a>... |
'use strict'
var helper = require(__dirname + '/test-helper')
var Connection = require(__dirname + '/../../../lib/connection')
var net = require('net')
const suite = new helper.Suite()
suite.test('connection emits stream errors', function (done) {
var con = new Connection({stream: new MemoryStream()})
assert.emit... |
const price = [
{
_id: 0,
name: 'Any',
array: []
},
{
_id: 1,
name: '$0 to $2,000',
array: [0, 2000]
},
{
_id: 2,
name: '$2,000 to $6,000',
array: [2001, 6000]
},
{
_id: 3,
name: '$6,000 to $15,000',
array: [6001, 15000]
},
{
_id: 4,
name: '$15,0... |
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
imp... |
/**
* Copyright (c) 2017 Nicolas Stuhlfauth, Benedikt Rauch
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/**
* Calculating a negative image
*/
function negativeImg(data) {
for (i = 0; i < data.length; i = i + 4) {
data[i] = 255 - data[i];
data[i + 1]... |
(function() {
'use strict';
angular.module('coreApp.home', ['ngRoute'])
//define as rotas do modulo
.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/home', {
templateUrl: 'modules/home/home.html',
controller: 'HomeController'
});
}])
//define o... |
sap.ui.define([
"sap/base/util/UriParameters",
"sap/ui/core/UIComponent",
"sap/ui/model/json/JSONModel",
"sap/f/library",
"sap/f/FlexibleColumnLayoutSemanticHelper"
], function (UriParameters, UIComponent, JSONModel, library, FlexibleColumnLayoutSemanticHelper) {
"use strict";
var LayoutType = library.LayoutTyp... |
'use strict';
(function() {
/**
* CINEMA_COMPONENTS
* DATABASE
*
* The Database module for the CINEMA_COMPONENTS library.
* Contains functions and objects for dealing with the purely data-related
* parts of a SpecD database. (Parsing, Querying, etc. data. No GUI stuff)
*
* @exports CINEMA_COMPONENTS... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
children: [/*#__PURE__*/_jsx("path", {
d: "M21 11c-.55 0-1 .45-1... |
#!/usr/bin/env node
import '../dist/index.js' |
'use strict';
let angular = require('angular');
module.exports = angular.module('spinnaker.core.instance.instances.directive', [
require('../utils/jQuery.js'),
require('../utils/lodash.js'),
])
.directive('instances', function ($timeout, $, _) {
return {
restrict: 'E',
scope: {
instances... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M14.5 2.5c0 1.5-1.5 6-1.5 6h-2S9.5 4 9.5 2.5C9.5 1.12 10.62 0 12 0s2.5 1.12 2.5 2.5zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4.08-4.89c.18-.75.33-... |
cube(`SalesClientCharacteristics`, {
sql: `SELECT * FROM sales_client_characteristics`,
preAggregations: {
// Pre-Aggregations definitions go here
// Learn more here: https://cube.dev/docs/caching/pre-aggregations/getting-started
},
joins: {
SalesClients: {
sql: `${CUBE}.sales_client... |
/*=========================
Effects
===========================*/
s.effects = {
fade: {
setTranslate: function () {
for (var i = 0; i < s.slides.length; i++) {
var slide = s.slides.eq(i);
var offset = slide[0].swiperSlideOffset;
var tx = -offse... |
function init_detailview() {
$varVal=$("#ttransaksiservicesdetail-g_inventory_gi_id").val();
$.ajax({
url: '/index.php?r=t-transaksi-services-detail%2Fg-inventory-name&id='+$varVal,
success: function (data) {
$('[id="ttransaksiservicesdetail-uom"]').text(data.results.text);
... |
module.exports={A:{A:{"2":"I C G E SB","8":"A B"},B:{"8":"D g q K"},C:{"2":"3 QB F H I C G E A B D g q K L M N O P Q R S T U V s X Y OB NB","8":"Z a","200":"0 1 2 b c d e f J h i j k l m n o p u v w t y r W"},D:{"1":"0 1 2 6 9 f J h i j k l m n o p u v w t y r W CB RB AB","2":"F H I C G E A B D g q K L M N O P Q R S T ... |
module.exports = { prefix: 'fal', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M19.515 120l84-84.485c4.686-4.686 12.284-4.686 16.971 0l84 84.485c4.686 4.686 4.686 12.284 0 16.97l-7.07 7.071c-4.686 4.686-12.284 4.686-16.971 0L129 92.113V468c0 6.627-5.373 12-12 12h-10c-6.627 0-12-5.373-12-12V92.113l-51.444 5... |
let speed = (distance, time) => console.log(distance/time);
speed(10, 10) |
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
import assert from "assert";
import sinon from "sinon";
import Binder from "../src/binder";
describe("Binder", () => {
describe("#aToB", () => {
it("should write all value of 'a' to 'b' on init.", async () => {
const binder = new Binder({
a: {
readAll: sinon.spy(
async () =>
... |
// Because working with row and column-spanning cells is not quite
// trivial, this code builds up a descriptive structure for a given
// table node. The structures are cached with the (persistent) table
// nodes as key, so that they only have to be recomputed when the
// content of the table changes.
//
// This does m... |
const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window... |
import { Selector, ClientFunction } from 'testcafe';
import nock from 'nock';
import { extractInnerText } from 'buying-catalogue-library';
import { apiLocalhost, apiPath } from '../../config';
const getLocation = ClientFunction(() => document.location.href);
const getCommonAttributes = ({
sectionManifest,
questio... |
var webpack = require('webpack');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var path = require('path');
var BUILD_DIR = path.resolve(__dirname, 'build/public');
var APP_DIR = path.resolve(__dirname, 'src');
var config = {
entry: APP_DIR + '/App.js',
output: {
path: BUILD_DIR,
fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.