text stringlengths 2 1.04M |
|---|
// ==========================================================================
// Plyr internationalization
// ==========================================================================
import is from './is';
import { getDeep } from './objects';
import { replaceAll } from './strings';
const i18n = {
get(key = '', ... |
import React from 'react';
import { mount } from 'enzyme';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import A from '../A';
describe('<A />', () => {
it('should match the snapshot', () => {
const renderedComponent = renderer.create(<A />).toJSON();
expect(renderedComponent)... |
// navBrand.js
// PARAMETERS
let classes = 'navbar-brand text-dark',
href = '#',
siteName = '7zipmac.fr',
sNClasses = 'h4',
iClasses = 'mr-2',
iSrc = 'components/navBrand/logo-7zip-macOS.svg'
// FUNCTION ALTER
function navBrandAlter () {
let navBrand = document.getElementById("n... |
$.swap = function (elem, options, callback, args) {
var ret, name, old = {};
// Remember the old values, and insert the new ones
for (name in options) {
old[name] = elem.style[name];
elem.style[name] = options[name];
}
ret = callback.apply(elem, args || []);
// Revert the old values
for (na... |
'use strict';
(function() {
var rootUri = 'https://api.github.com/';
// find a commit comment
function executeCommitCommentRequest() {
$('#commit_comment_response').html('<img src="assets/spinner.gif"/>');
traverson
.from(rootUri)
.follow('repository_url', 'commits_url', 'comments_url')
.wi... |
'use strict'
const EE = require('events').EventEmitter
const util = require('util')
const parallel = require('fastparallel')
const series = require('fastseries')
const uuidv4 = require('uuid/v4')
const bulk = require('bulk-write-stream')
const reusify = require('reusify')
const { pipeline } = require('readable-stream'... |
import Plugin from 'extplug/Plugin'
import emoji from 'plug/util/emoji'
import _ from 'underscore'
import { around } from 'meld'
import Tooltips from './tooltips'
import Events from 'plug/core/Events'
const MAX_EMOJI_SUGGESTIONS = 10
export default Plugin.extend({
name: 'Custom Emoji',
description: 'Shows custom ... |
'use strict'
const { test } = require('tap')
const Fastify = require('fastify')
const proxyquire = require('proxyquire')
const { mapSchema } = require('@graphql-tools/utils')
const { parse, buildSchema, GraphQLSchema } = require('graphql')
const { promisify } = require('util')
const GQL = require('..')
const { ErrorWi... |
$( document ).ready(function() {
$( document ).ajaxError(function( event, jqXHR ) {
if ( 403 === jqXHR.status ) {
window.location.reload();
}
});
}); |
import './polyfills';
import Node from './Node';
import {insert} from './utils';
export const delimiter = ' \\ ';
/**
* Checks whether namespace exists and matches the custom field namespace
* @param {Object} field
* @param {string} namespace - user provided namespace
* @returns {Boolean}
*/
const belongsToNames... |
var searchData=
[
['trybrysowania_71',['TrybRysowania',['../namespace_pz_g.html#aeedae1ef10c66d720f9e89de408ca4ca',1,'PzG']]]
]; |
/// <reference path="../../Phaser/Game.ts" />
(function () {
var game = new Phaser.Game(this, 'game', 800, 600, preload, create, update);
function preload() {
game.load.atlas('bot', 'assets/sprites/running_bot.png', 'assets/sprites/running_bot.json');
}
var bot;
function create() {
b... |
//model attachment
(function ($, _, Backbone) {
"use strict";
cantas.models.Attachment = cantas.models.BaseModel.extend({
idAttribute: "_id",
noIoBind: false,
socket: cantas.socket,
url: function () {
return "/attachment" + ((this.id) ? '/' + this.id : '');
},
initialize: function (... |
//# sourceMappingURL=c3297767b22a1d45c7b5db999e677ff5d1361fa2-00a6b3383754169b4151.js.map |
/**
* Slider Editor
*
* @copyright Commercial License By PavoThemes.Com
* @email pavothemes@gmail.com
* @visit http://www.pavothemes.com
*/
(function( $ ) {
$.fn.layeredAjaxNavigation = function( initvar ) {
/**
* Create List Layers By JSON Data.
*/
this.price = '';
this.ischanged = false;
this... |
import React from 'react';
import PropTypes from 'prop-types';
import words from './words';
const baseLog = (base, val) => Math.log(val) / Math.log(base);
const WordListRadio = ({ value, onChange }) => {
const wordListOptions = [
{
text: 'EFF long word list',
id: 'eff-long',
},
{
tex... |
module.exports = {
name: 'VoiceRooms',
table_name: 'voice_rooms',
fields:{
room_id : "text",
guild_id : "text",
settings: {
type: "map",
typeDef: "<varchar, varchar>"
},
},
key:["room_id", "guild_id"]
}; |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017, 2018 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... |
#!/usr/bin/node
/* prints all characters of a Star Wars movie.
- the first argument is the Movie ID.
- displays one character name by line.
*/
const request = require('request');
const url = 'https://swapi-api.hbtn.io/api/films/' + process.argv[2];
request(url, function (error, response, body) {
if (error) co... |
/**
* Filters cards by query
*
* @param {object} card
* @param {string} query
* @return {boolean}
*/
import _ from 'lodash';
import {filterCards} from "../cards";
export const byUrl = (card, query) => {
return Object.keys(query).every(function (queryKey) {
// if (queryKey === 'mechanics') {
// consol... |
const fs = require('fs');
const https = require('https');
const btoa = require('btoa');
const Nimiq = require('@nimiq/core');
class MetricsServer {
constructor(sslKeyPath, sslCertPath, port, password, metricsPath) {
const options = {
key: fs.readFileSync(sslKeyPath),
cert: fs.readF... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'font', 'no', {
fontSize: {
label: 'Størrelse',
voiceLabel: 'Font Størrelse',
panelTitle: 'Størrelse'
},
label: 'Skrift',
panelTitle: 'Skrift... |
describe('Adopter', function() {
var path, polyline, polygon, linearGradient, radialGradient
beforeEach(function() {
path = SVG('#lineAB')
polyline = SVG('#inlineSVG').find('polyline')[0]
polygon = SVG('#inlineSVG').find('polygon')[0]
linearGradient = SVG('#inlineSVG').find('linearGradien... |
/*======================================================
************ Modals ************
======================================================*/
/*jshint unused: false*/
/* global $:true */
+function ($) {
"use strict";
var _modalTemplateTempDiv = document.createElement('div');
$.modalStack = [];
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A basic Linked List data structure.
*
* This implementation _modifies_ the `prev` and `next` properties of ea... |
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generato... |
import {
LOAD_ALL_PARENT_TAGS,
LOAD_ALL_TAGS,
CREATE_TAG,
CREATE_PARENT_TAG,
CREATE_ERROR,
} from "../action/type";
const tags = (
state = {
allTags: [],
allParentTags: [],
},
action
) => {
switch (action.type) {
case LOAD_ALL_TAGS:
state = Object.assign({}, state, {
allTags... |
describe('SecondController', function() {
var $scope
, ctrl;
beforeEach(module('TodoApp'));
beforeEach(inject(function($rootScope, $controller) {
$scope = $rootScope.$new();
ctrl = $controller('SecondController', { $scope: $scope });
}));
it('should initialize scope variable... |
const BotClient = require("./lib/BotClient");
const BotCommand = require("./lib/BotCommand");
const BotEvent = require("./lib/BotEvent");
module.exports = {
Client: BotClient,
Command: BotCommand,
Discord: require("discord.js"),
Event: BotEvent
} |
'use strict';
var QueryActions = require('./actions/query/QueryActionsConnector');
var CacheActions = require('./actions/query/CacheActionsConnector');
var Widgets = require('./components/helpers/Widgets');
var widgetUtils = require('./utils/widgets');
var genUtils = require('./utils/general');
var devUtils = requir... |
let path = require('path')
let test = require('tape')
let {db} = require('../../src')
let getDBClient = require('../../src/db/_get-db-client')
let server
let dynamo
let TableName = 'mockapp-production-accounts'
let TableName2 = 'mockapp-production-pets'
let cwd = process.cwd()
/* Regular test suite */
test('db.start',... |
// let deadline = '2015-12-31';
// let deadline = '31/12/2015';
// let deadline = 'December 31 2015';
// let deadline = 'December 31 2015 23:59:59 GMT+0200';
// let timeInMinutes = 10;
// let currentTime = Date.parse(new Date());
// let deadline = new Date(currentTime + timeInMinutes*60*1000);
let endtime = 0;
let time... |
$(function(){
$.ajax({
type:"get",
url:"http://localhost/app/index",
//dataType:'jsonp',
//jsonp:'callback',
success: function(data){
if(data.is_login){
var $li = $('<li><a href="change_info.html">' + data.username + '</a></li>'
+ '<li><a href="/app/loginout">loginout</a></li>')
$li.ap... |
class TextMessage {
constructor({ text, onComplete }) {
this.text = text;
this.onComplete = onComplete;
this.element = null;
}
createElement() {
this.element = document.createElement("div");
this.element.classList.add("TextMessage");
this.element.innerHTML =... |
$(document).ready(function () {
$("#submitBtn").on("click", function () {
var zip = $(".inputZip").val()
console.log(zip)
//var selectMap = `https://maps.google.com/maps?q=${zip}&t=&z=13&ie=UTF8&iwloc=&output=embed`
//console.log(selectMap)
document.getElementById("gmap_canva... |
//! moment.js locale configuration
//! locale : Bahasa Malaysia (ms-MY)
//! author : Weldan Jamili : https://github.com/weldan
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?b(require("../moment")):"function"==typeof define&&define.amd?define(["moment"],b):b(a.moment)}(t... |
'use strict';
require('./check-versions')();
process.env.NODE_ENV = 'production';
const ora = require('ora');
const rm = require('rimraf');
const path = require('path');
const chalk = require('chalk');
const webpack = require('webpack');
const config = require('../config');
const webpackConfig = require('./webpack.do... |
/* eslint-disable no-underscore-dangle */
import L from 'leaflet'
import 'leaflet-draw'
import {
dividePolygon,
makeCounterClockwise
} from './geo'
L.SphericalPolygon = L.Polygon.extend({
includes: [L.LayerGroup.prototype, L.FeatureGroup.prototype],
options: {
fill: true
},
initialize(latlngs, options... |
import Vue from 'vue'
import Vuex from 'Vuex'
Vue.use(Vuex) // 使用vuex状态管理工具
let store = new Vuex.Store({ // 创建一个store
state: {
token: '',
carPanelData: JSON.parse(localStorage.getItem('carPanelData')) || [], // 购物车数据
receiveInfo: [
{
'name': '上官飘逸',
'phone': '1381111111',
'ar... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'find', 'et', {
find: 'Otsi',
findOptions: 'Otsingu valikud',
findWhat: 'Otsitav:',
matchCase: 'Suur- ja väiketähtede eristamine',
matchCyclic:... |
/**
* Copyright 2018 The AMP HTML 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
*
* Unless require... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.version = void 0;
var version = '8.0.1'; // Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.
exports.version = version; |
/*
After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them are free, but there's a rumour that all the free rooms are haunted! Since the CodeBots are quite superstitious, they refuse to stay in any of the free rooms, or any of the rooms ... |
// https://github.com/plotly/react-plotly.js/issues/115
if (typeof window.URL.createObjectURL === 'undefined') {
window.URL.createObjectURL = () => {};
} |
/* define require process */
const pa11y = require('pa11y');
const express = require('express');
var port = process.env.PORT || 8080;
const app = express();
app.use(express.static('public'));
app.get('/api/test', async (req, res) => {
'use strict';
const notices = req.query.notice ?? false;
const warnings =... |
/*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
import React, { useEffect } from "react";
import PullToRefresh from "react-simple-pull-to-refresh";
import Card from "@material-ui/core/Card";
import CardMedia from "@material-ui/core/CardMedia";
import CardContent from "@material-ui/core/CardContent";
import CardActions from "@material-ui/core/CardActions";
import Ty... |
// Copyright (C) 2007-2019, GoodData(R) Corporation. All rights reserved.
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
}); |
const frisby = require('frisby')
const URL = 'http://localhost:3000'
describe('/redirect', () => {
it('GET redirected to https://github.com/bkimminich/juice-shop when this URL is passed as "to" parameter', done => {
frisby.get(URL + '/redirect?to=https://github.com/bkimminich/juice-shop', { redirect: 'manual' }... |
/*
* This file contains the logic of the Timer application. It may seem complex,
* but it strictly follows the MVC pattern, which dictates to separate model
* (the Project and Projects classes) from the code manipulating the HTML. The
* use of MVC was probably not necessary in such a small application, but I
* con... |
const LOCAL_TIME_ZONE = moment.tz.guess()
let MONTH_RETURN = 10
let CHART_RETURN = 10
let TODAY_RETURN = 10
let RETURN_TOGGLE = 0
let YESTERDAY_FLAG = 0
let CHARTING = false
const DEFAULT_EARNINGS_DATA = {
today: 0.1,
lastMonth: 0.1,
earnings: []
}
const slider = (obj) => {
let historic = MONTH_RETURN
if (RE... |
import { MetadataArgsStorage } from "../metadata-args/MetadataArgsStorage";
/**
* Transforms entity schema into metadata args storage.
* The result will be just like entities read from decorators.
*/
var EntitySchemaTransformer = /** @class */ (function () {
function EntitySchemaTransformer() {
}
// ----... |
import axios from "axios";
export const FETCH_POSTS = "fetch_posts";
export const CREATE_POST = "create_post";
export const FETCH_POST = " fetch_post";
export const DELETE_POST = "delete_post";
const ROOT_URL = "http://reduxblog.herokuapp.com/api";
const API_KEY = "?key=PAPERCLIP";
export function fetchPosts() {
c... |
export default class Reset
{
constructor (http)
{
http.get('/reset', Reset.get)
http.post('/reset', Reset.do)
}
static get (req, res)
{
res.render('session/guest/reset')
}
static do (req, res)
{
res.render('session/guest/login', {
message : {
type : 'success',
te... |
// Base
const patreonModule = {};
// Start
patreonModule.start = function (data) {
const express = require('@tinypudding/firebase-webhook-express-default');
patreonModule.app = express(async (req, res) => {
// Lodash Module
const _ = require('lodash');
// Prepare Firebase
cons... |
/* eslint no-magic-numbers: 0 */
import React, {Component} from 'react';
import { DashReactDatepicker } from '../lib';
class App extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<DashReactDatepicker/>
</div>
... |
#! /usr/bin/env node
const path = require("path");
const fs = require("fs");
const readline = require("readline");
const HELP = `
Usage: check-kernel-imports PACKAGES ...
Where PACKAGES are paths to one or more elm packages. check-kernel-imports
checks that:
1. Use of kernel definitions match imports in elm files... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const metricSchema = new Schema({
_id: Number,
type: String, // 'metric'
timestamp: Date,
marketid: String,
event: String, // subscriber detected, page view, page click
messagesdelivered: Array, // ids of messages rendered
}, {coll... |
// Creating Server
const { createServer } = require("../server")
var server = createServer(4444, function(packet,rinfo) {
console.log("Received from " + rinfo.address + ":" + rinfo.port + ": " + packet.title);
server.send(rinfo.address, rinfo.port, "Hello back", new Map().set("test1","a"));
server.send(ri... |
import { Development } from './development';
import { Local } from './local';
import { Production } from './production';
import { Staging } from './staging';
const CONFIG = {
development: Development,
local: Local,
production: Production,
staging: Staging
};
const ENVIRONMENTS = {
'pokedextracker... |
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import layout from './template';
export default Component.extend({
globalStore: service(),
layout,
classNames: ['accordion-wrapper'],
model: null,
readOnly: false,
init() {
this._super(...arguments);
th... |
/**
* @providesModule locales
* @noflow
*/
import { chain, map, toPairs, fromPairs } from 'ramda'
import camelize from 'camelize'
// Convert from deeply nested locale object to a flat object with dot
// separators to index into the path.
const flattenObj = obj => {
const go = obj_ =>
chain(([k, v]) => {
... |
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applica... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.reduceright
es5id: 15.4.4.22-9-b-8
description: >
Array.prototype.reduceRight - deleting own property in step 8
causes deleted index property no... |
"use strict";
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _addonActions = require("@storybook/addon-actions");
var _addonKnobs = require("@storybook/addon-knobs");
var _Accordion = _interopRequireWildcard(require("../Accordion"));
var _Select = _interopReq... |
import { getLocationPathname } from './window'
export const isActive = (pageHref) => {
if (typeof window === undefined) {
return false
}
const locationPathname = getLocationPathname()
return locationPathname === pageHref || (
pageHref !== '/' &&
locationPathname !== '/' &&
typeof locationPathna... |
/*
*
* (c) Copyright Ascensio System SIA 2020
*
* The MIT License (MIT)
*
* 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... |
module.exports=require('../../decode-ranges.js')('t4BFDGAAATAmMAglBgxBCAg2HaDFKkNAg7BhkNg6BgwBOAbBAAKEeABFjrAHBBBVAGAACDBIBBBDHADBAEBYBCAFDBBVAGABABABBAAEDBBCCAGDAAGQJCAIACAVAGABAEBJACACBAODBLGGACAHBBBVAGABAEBIBBBCGCDBAEBRJBAFCCADCBAAABCBCCCLDECCADBAFANUEMACAWAPBIACADGBACBABDBJGVACAWAJAEBIACADGBFBADBJABMMACAgyACAFDPBZA... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (v... |
/**
* @exports Player Creates a music player.
* @exports Connection Creates a connection to play stream.
* @exports Broadcast Creates a broadcast to play a stream in multiple guilds.
* @exports Adapter Creates an adapter. Works for multiple Discord.js versions.
* @exports AudioManager Creates an audio manager.
*/... |
export { default as Header } from './Header'
export { default as Banner } from './Banner'
export { default as PostItem } from './PostItem'
export { default as Section } from './Section'
export { default as Footer } from './Footer'
export { default as AnimatedWave } from './AnimatedWave' |
function newBook(book) {
const div = document.createElement('div');
div.className = 'column is-4';
div.innerHTML = `
<div class="card is-shady">
<div class="card-image">
<figure class="image is-4by3">
<img
src="${book.photo}"
... |
import { useMutation } from '@redwoodjs/web'
import { Link, routes, navigate } from '@redwoodjs/router'
const DELETE_MENU_MUTATION = gql`
mutation DeleteMenuMutation($id: Int!) {
deleteMenu(id: $id) {
id
}
}
`
const Menu = ({ menu }) => {
const [deleteMenu] = useMutation(DELETE_MENU_MUTATION, {
... |
/**
* Class for easy manipulation of paths.
*
* Used directly in `pathData: "..."`.
*
* Contains every types of path. Do `Object.keys(AdofaiMapPathData.PATH_LIST)` to get all list of Path in String.
*/
class AdofaiMapPathData {
/**
* Create a path using a constructor.
* @param {String | Number} val Base ... |
const keythereum = require('keythereum');
const { keccak256 } = require('js-sha3');
const { ecsign } = require('ethereumjs-util');
const config = require('../config');
const defaultPassword = config('password_default');
/**
* Generates a new private key and returns it in keystore secret-storage format
*
* @param {... |
"use strict";
var wd = require('wd');
exports.swipe = function (opts) {
var action = new wd.TouchAction();
action
.press({x: opts.startX, y: opts.startY})
.wait(opts.duration)
.moveTo({x: opts.endX, y: opts.endY})
.release();
return this.performTouchAction(action);
}; |
import { GlobalLayout } from 'src/layouts'
import { CheckoutProvider } from 'src/components/Checkout/CheckoutContext'
import { Checkout } from 'src/components/Checkout/Checkout'
import { PageHeading } from 'src/components/UI'
const CheckoutPage = () => {
return (
<GlobalLayout>
<PageHeading>Checkout</PageH... |
'use strict';
const chai = require('chai');
const expect = chai.expect;
const core = require('../../lib/core');
const sessions = core.Sessions;
const TestRunnerContext = require('./spec-runner').TestRunnerContext;
const loadSpecTests = require('../spec').loadSpecTests;
const generateTopologyTests = require('./spec-run... |
$(document).ready(function(){
$('.datetimepicker').datetimepicker({
format: 'DD/MM/YYYY'
});
}); |
deepmacDetailCallback("70ee50000000/24",[{"d":"2011-09-17","t":"add","a":"17 route de la reine\nBoulogne-Billancourt 92100\n\n","c":"FRANCE","o":"Netatmo"},{"d":"2015-08-27","t":"change","a":"17 route de la reine Boulogne-Billancourt FR 92100","c":"FR","o":"Netatmo"}]); |
(function() {
var e = window.AmCharts;
e.AmRectangularChart = e.Class({
inherits: e.AmCoordinateChart,
construct: function(a) {
e.AmRectangularChart.base.construct.call(this, a);
this.theme = a;
this.createEvents("zoomed", "changed");
this.marginRi... |
// Node.js WebSocket server script
const http = require('http');
const WebSocketServer = require('websocket').server;
const server = http.createServer();
server.listen(9898);
const wsServer = new WebSocketServer({
httpServer: server
});
const Journalctl = require('journalctl');
const journalctl = new Journalctl({unit... |
//Exemplo de callback no navegador
// document.getElementsByTagName('body')[0].onclick = function (e){
// console.log('O click ocorreu');
// }
const eventoClique = function(e){
console.log('O click ocorreu');
}
document.getElementsByTagName('body')[0].onclick = eventoClique; |
import Header from "../components/header.js";
import Footer from "../components/footer.js";
import HeadMetadata from "../components/headMetadata.js";
import ItemsList from "../components/itemsList.js";
import getRankedAskItemsByPage from "../apix/items/getRankedAskItemsByPage.js";
export default function Ask({ items,... |
(function( $ ) {
'use strict';
/**
* (en)configurationDirective
* @ko configurationDirective
* @group Directive
* @name configurationDirective
* @class
*/
pinpointApp.constant('ConfigurationDirectiveConfig', {
menu: [{
"view": "General",
"value": "general"
}, {
"view": "User Group",
"valu... |
import $ from 'jquery';
import { A } from '@ember/array';
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import { get, set } from '@ember/object';
import { containingElement } from "liquid-fire/ember-internals";
import layout from 'liquid-fire/templates/components/liquid-v... |
const { createHash } = require('crypto')
let handler = async function (m, { args }) {
if (!args[0]) throw '*You must enter your serial number to unregister! 😿*'
let name = conn.getName(m.sender)
let user = global.db.data.users[m.sender]
let sn = createHash('md5').update(m.sender).digest('hex')
if (args[0] !=... |
provide("util/events",function(a){using("util/util",function(b){function d(){this.completed=!1,this.callbacks=[]}var c={bind:function(a,b){return this._handlers=this._handlers||{},this._handlers[a]=this._handlers[a]||[],this._handlers[a].push(b)},unbind:function(a,c){if(!this._handlers[a])return;if(c){var d=b.indexOf(t... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world, backgroundImg;
var canvas, angle, tower, ground, cannon;
var balls = [];
var boats = [];
function preload() {
backgroundImg = loadImage("./assets/background.gif");
tower... |
'use strict';
const user = {
name: 'Mango',
age: 20,
hobby: 'html',
premium: true,
};
const formatUser = function (userData) {
user.mood = 'happy';
user.hobby = 'skydiving';
user.premium = false;
for (let key of Object.keys(user)) {
console.log(`${key}:${user[key]}`);
}
};
formatUser(user); |
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
import {BaseController} from './base.controller';
function baseConfig($stateProvider) {
$stateProvider
// Base state for all application states
.state('app-layout', {
url: '',
abstract: true,
templateUrl: 'layouts/application.html',
controller: 'BaseController... |
// External Modules
const Agent = require('agentkeepalive');
const async = require('async');
const debug = require('debug')('logdna:lib:connection-manager');
const os = require('os');
const request = require('request');
const url = require('url');
// Internal Modules
const fileUtils = require('./file-utilities');
cons... |
import React, { forwardRef } from 'react';
import ScrollableContentWrapper from '../../components/ScrollableContentWrapper';
const ScrollerWithCustomProps = forwardRef(function ScrollerWithCustomProps(props, ref) {
return (
<ScrollableContentWrapper
{...props}
ref={ref}
renderView={({ style, ...props }) =... |
/**
* IEEE 754 floating-point.
*
* Supports single- or double-precision
*/
var Float = exports.Float = {};
var allZeros = /^0+$/;
var allOnes = /^1+$/;
Float.fromBytes = function(bytes) {
// Render in binary. Hackish.
var b = '';
for (var i = 0, n = bytes.length; i < n; i++) {
var bits = (bytes[i] & 0... |
module.exports = {
root: true,
env: {
node: true,
jest: true,
},
plugins: ['prettier', '@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:vue/base',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-strongly-recommended',
'plugin:vue/vue3-recommended',
'p... |
async function drawGraph(
baseUrl,
pathColors,
depth,
enableDrag,
enableLegend,
enableZoom
) {
const container = document.getElementById('graph-container')
const { index, links, content } = await fetchData
// Use .pathname to remove hashes / searchParams / text fragments
const cleanUrl = window.loc... |
import { combineReducers } from 'redux';
import rest from "../rest/yle"; //our redux-rest object
const rootReducer = combineReducers(
rest.reducers
);
export default rootReducer; |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const Positioning_1 = require("./Positioning");
class X12Element {
constructor() {
this.range = new Positioning_1.Range();
this.value = '';
}
}
exports.X12Element = X12Element; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.