text stringlengths 3.22k 29.5k |
|---|
//Sukuriamas objekto šablonas:
function Zmogus(vardas, pavarde, gimimoMetai) {
this.vardas = vardas;
this.pavarde = pavarde;
this.gimimoMetai = gimimoMetai;
}
//Su komanda "Object.defineProperty" įvedama nauja savybė į šablono prototipo objektą. Šiuo atveju metodas (arba funkcija) "amzius" įvedamas per 'ge... |
/*
GEIESPICTURES - The picture language from chapter 2 of SICP
Author: <NAME> (<EMAIL>)
Web: http://faustinelli.net/
http://faustinelli.wordpress.com/
Version: 0.1 - Requires Geieslists 1.1, Geiesvectors 0.2 and Geiespictures 1.0
The MIT License - Copyright (c) 2016-2018 Geiespictures Project
*/
var expect = c... |
/// <reference path='./Scripts/DlhSoft.ProjectData.GanttChart.HTML.Controls.d.ts'/>
var LoadChartView = DlhSoft.Controls.LoadChartView;
// Query string syntax: ?theme
// Supported themes: Default, Generic-bright, Generic-blue, DlhSoft-gray, Purple-green, Steel-blue, Dark-black, Cyan-green, Blue-navy, Orange-brown, Teal... |
var goodsItemList = [];
var count = -1;
function loadMianItems(mainItemUrl) {
$.getJSON(mainItemUrl, function (data) {})
.done(function (data) {
var t = JSON.parse(jsonEscape(data))
createSelectOptions(t, "goods-main-item-category", "main_item_name", "main_item_id", "Select Main Item");
$(".loader"... |
/* # Mangrove Summary
* The Mangrove holds offer books for `outbound_tkn`,`inbound_tkn` pairs.
* Offers are sorted in a doubly linked list.
* Each offer promises `outbound_tkn` and requests `inbound_tkn`.
* Each offer has an attached `maker` address.
* In the normal operation mode (called Mangrove for Ma... |
import {TableConfig} from './TableConfig';
import {max, mean, min, std} from 'mathjs';
import {stripIndent} from 'common-tags';
import {format, snap, zscore} from './util';
import jQuery from 'jquery';
import 'jquery-sparkline';
const PLAIN = 1,
PERCENTAGE = 2,
CURRENCY = 3;
/**
* The table marker class i... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import anime from 'animejs'
import { Container, ArmWrapper } from './styles'
import { Draggable, TweenMax } from 'gsap/all'
import ContentWrapper from '$components/Layout/ContentWrapper'
import CustomIma... |
const BigchainDB = require('bigchaindb-driver')
const bip39 = require('bip39')
// ***************************************************************
// Simple example:
const alice = new BigchainDB.Ed25519Keypair()
const bob = new BigchainDB.Ed25519Keypair()
console.log(alice)
const API_PATH = 'http://192.168.127.12:8209/... |
"use strict";
var loader = (function () {
var loadingMessage = document.getElementById("image-loading-message");
return {
message (message) {
loadingMessage.style.display = "block";
loadingMessage.innerHTML = message;
},
hide () {
loadingMessage.styl... |
const router = require("express").Router();
const bcrypt = require("bcryptjs");
const jwt = require("jsonwebtoken");
const passport = require("passport");
const GoogleTokenStrategy = require("passport-google-token").Strategy;
let User = require("../models/user.model");
const auth = require("../helpers/auth.helper");
co... |
import React, { Component } from "react";
import {
Text,
Platform,
StyleSheet,
View,
Image,
ScrollView,
TextInput,
KeyboardAvoidingView,
TouchableOpacity,
TouchableHighlight,
AsyncStorage,
ActivityIndicator
} from "react-native";
import {
Container,
Header,
Left,
Body,
Right,
Button,... |
/**
* Runs an app on a Windows Phone device or emulator.
*
* @copyright
* Copyright (c) 2014-2015 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
const
appc = r... |
// =============================================================================
// This is meant to be a server that is a hub app. You can register your own app at https://developer.broadsoftlabs.com
// See the readme for more details
// YOUR APP HAS TO BE SET TO PRIVATE
// ============================================... |
/* global THREE, p2 */
import map from 'controllers/map/map'
import store from 'utils/store'
import three from 'controllers/three/three'
import ThreeComponent from 'abstractions/ThreeComponent/ThreeComponent'
import Vehicle from 'abstractions/Vehicle/Vehicle'
import config from 'config'
import orders from 'controllers... |
/**
* Copyright 2017 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 required by applica... |
import React, { Component } from "react"
import { sliderList, Card, BasicButton, ToggleSwitch } from "../generic"
import { SECTION_NAMES, RESET_LABEL } from "../vars"
import getWalkSequence from "../../hexapod/solvers/walkSequenceSolver"
import PoseTable from "./PoseTable"
import { DEFAULT_POSE } from "../../templates"... |
require("dotenv").config();
const fs = require("fs");
const parser = require("fast-xml-parser");
const WebSocket = require("ws");
const express = require("express");
const cors = require('cors');
const { DateTime } = require("luxon");
require('log-timestamp');
const GBFS_VERSION = "2.0"
class IxsiGbfsConverter {
c... |
const { Model, raw } = require('objection')
const { pokemon: masterfile } = require('../data/masterfile.json')
const fetchQuests = require('../services/functions/fetchQuests')
class Pokestop extends Model {
static get tableName() {
return 'pokestop'
}
static async getAllPokestops(args, perms) {
const ts... |
import {
addCurrencies,
conversionUtil,
conversionGTE,
multiplyCurrencies,
conversionGreaterThan,
conversionLessThan,
} from '../../helpers/utils/conversion-util'
import BigNumber from 'bignumber.js'
import { calcTokenAmount } from '../../helpers/utils/token-util'
import {
INVALID_HEX_ERROR,
BASE_TOKE... |
//Welcome to Time Table B2 Project
import {
showVideos,
do24HourFormat,
timeTableObj,
meetLinks,
timings,
} from "./config/config.js";
//foo is for functions which are returning some values
//DOMfoo is for DOM Manipulation functions
import foo from "./js/functions.js";
import DOMfoo fro... |
setTimeout(() => {
$(".msg-div").hide();
}, 5000);
$(document).ready(function () {
$('.button1').click(function (e) {
e.preventDefault(); // stops link from making page jump to the top
e.stopPropagation(); // when you click the button, it stops the page from seeing it as clicking the body too
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
function getPolicy(network_id, clientMAC, apiKey, index){
return new Promise(resolve => {
setTimeout(function() {
console.log("HELLO");
var data = null;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.ready... |
'use strict';
let Timer = require('../public/lib/Timer');
let cache = require('memory-cache');
(function () {
let mysql = require('mysql');
let connection = null;
function createDbHandle (logMessage, callback) {
return function (error, result) {
if (error) {
throw error;
}
console.log(logMessage);... |
'use strict';
/*
* Helper functions for the application. Use this file to define any helpers which are used throughout the application.
* Helpers shall not reference any modules within the application, it can refer modules provided by Node.
* @Author - <NAME>
* @Date - 28 March 2018
*/
// Container for Helpers
c... |
const fromCharCode = String.fromCharCode;
const write = (target, position, value, length) => {
const start = position;
let i, c1, c2;
for (i = 0; i < length; i++) {
c1 = value.charCodeAt(i);
if (c1 < 0x80) {
target[position++] = c1;
} else if (c1 < 0x800) {
target[position++] = (c1 >> 6) ... |
const fs = require("fs");
const fse = require("fs-extra");
const path = require("path");
const { promisify } = require("util");
const utils = require("../utils");
const { assert } = utils;
const crypto = require("crypto");
const os = require("os");
const get_chrome_extension = require("./chrome");
const get_firefox_ext... |
import { getInitAxisIntervalData, getMaxLabelSize, isLabelAxisOnYAxis, makeTitleOption, getDefaultRadialAxisData, } from "../helpers/axes";
import { makeLabelsFromLimit, getFontHeight } from "../helpers/calculator";
import { getTitleFontString } from "../helpers/style";
import { DEGREE_360, DEGREE_0 } from "../helpers/... |
//Do not use "use strict" as it breaks outbound texting to tropo
//CISCOSPARK_ACCESS_TOKEN=<your Cisco Spark Token here> node ./server.js
var http = require('http');
var path = require('path');
var util= require('util');
var async = require('async');
var socketio = require('socket.io');
var express = require('express')... |
/*
<NAME> and <NAME>
Course: CSc 648 Software Engineering Summer 2019 Team 2
Manage the map on the search resutls page
Add new pins with info boxes populated with report information
Resize map to adapt with screen size
*/
// The current saved coordinates of the center of the map.
var curLatLng = {
lat: 37.7749,
l... |
// Arreglo que contiene las intrucciones del juego
var instrucciones = [
'Mueve la pieza vacía con la teclas de dirección',
'Pikachu no te la va a complicar'
];
// Arreglo para ir guardando los movimientos que se vayan realizando
var movimientos = [];
// 'No hay límite de tiempo, solo el que dispongas vos',
... |
function starsEvaluation() {
$('.star').each((i, elem) => {
$(elem).hover(() => {
let id = $(elem).attr('id').split('-')[1]
$(elem).toggleClass('text-warning')
$('.star').each((i, elem2) => {
let idTodos = $(elem2).attr('id').split('-')[1]
... |
import React from 'react';
import { View, StyleSheet, Image, TextInput, ScrollView } from 'react-native';
import Head from '../components/CustomHeader';
import { Button, Text, ProgressBar, Dialog, Portal } from 'react-native-paper';
import { Icon } from 'react-native-elements'
import firebase from 'firebase';
import { ... |
const axios = require('axios')
const { resolve } = require('path')
const webpack = require('webpack')
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
dev: !isProduction,
head: {
title: '<NAME> | Desenvolvedor front-end e WordPress em Curitiba/PR',
htmlAttrs: {
dir: 'ltr... |
function assert(condition, reason) {
if (!condition)
throw new Error(reason);
}
// -----------------
// CheapHeapSnapshot
//
// Contains two large lists of all node data and all edge data.
// Lazily creates node and edge objects off of indexes into these lists.
// [<0:id>, <1:size>, <2:classNameTableIndex... |
import { objectForEach } from './utils/objects';
const TOK_LINK = 'link';
const TOK_IMAGE = 'image';
const TOK_OLIST = 'oList';
const TOK_ULIST = 'uList';
const TOK_STRING = 'string';
const TOK_VARIABLE_2 = 'variable-2';
export const CMD_PREVIEW = 'preview';
export const CMD_H1 = 'h1... |
import React, {useState, useEffect} from 'react';
import axios from 'axios';
import Profile from './subcomponent/Auth/AuthUserComponent/Profile';
import BookBuilder from './subcomponent/Book/Book_Builder';
import DashboardIcon from '@mui/icons-material/Dashboard';
import {useSelector} from 'react-redux';
import {useHis... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const entity_parser_1 = require("./entity-parser");
const architecture_parser_1 = require("./architecture-parser");
const parser_base_1 = require("./parser-base");
const objects_1 = require("./objects");
const package_parser_1 = require("./pac... |
function isPawn(pawn, king) {
return king.owner && Math.abs(pawn.x - king.x) === 1 && king.y + 1=== pawn.y
|| !king.owner && Math.abs(pawn.x - king.x) === 1 && king.y === pawn.y + 1;
}
function isRook(rook, king, pieces) {
let xMax = Math.max(rook.x, king.x),
xMin = Math.min(rook.x, king.x),
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { addFlashMessages } from '../../../../../actions/flashMessages';
import { saveEvent, fetchEvent, updateEvent } fr... |
// @ts-check
const fs = require("fs");
const path = require("path");
const jsonc_parser = require("jsonc-parser");
const ajv = require("ajv");
const chalk = require("chalk");
function binarySearch(array, value) {
if (array.length === 0 || value < array[0]) {
return -1;
}
if (value > arra... |
import {
_resetSchema,
any,
array,
boolean,
date,
DUPLICATE_VALUE_ERROR,
falsy,
func,
int,
INVALID_VALUE_ERROR,
list,
nanValue,
negativeInt,
negativeNumber,
nonNegativeInt,
nonNegativeNumber,
nonPositiveInt,
nonPositiveNumber,
nullValue,
number,
object,
optionalAny,
optiona... |
'use strict';
const queryOps = {
query: 'select', // TODO: rename to SELECT
union: 'union',
unionAll: 'union',
intersect: 'union',
except: 'union',
subquery: 'union', // for (subquery) with ORDER BY or LIMIT/OFFSET
}
/**
* Test for early-adaptor feature, stored in option `beta`(... |
import moment from "moment";
export const giveArrayOfMonths = (posts) => {
let auxiliaryArray = [];
let arrayOfMonths = [];
posts.forEach(post => {
const date = post.createdAt * 1000;
const momentDate = moment(date).format('MMMM,YYYY');
if (!auxiliaryArray.includes(momentDate)) {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SubmitProposalMsg = exports.OrderBook = exports.OrderBookLevel = exports.TradingPair = exports.OpenOrder = exports.TokenBalance = exports.AppAcco... |
const malScraper = require('mal-scraper')
// seiyuu bedo lib
const Mal = require("node-myanimelist")
// some trash here
const channelRegex = /\<\#(.+?)\>/
const imageLinkRegex = /(https?:\/\/.*\.(?:png|jpg|gif|jpeg)\??.*)/i
class yinani {
static handleMalQuery(query, message, deletemessage, is7up) {
malS... |
import VectorSource from "ol/source/Vector";
import VectorLayer from "ol/layer/Vector";
import GeoJSON from "ol/format/GeoJSON";
import GML2 from "ol/format/GML2";
import GML3 from "ol/format/GML3";
import WFS from "ol/format/WFS";
import { all as strategyAll, bbox as bboxStrategy } from "ol/loadingstrategy";
import { ... |
'use strict';
require('dotenv').config();
const express = require('express');
const superagent = require('superagent');
const pg = require('pg');
const cors = require('cors');
const methodOverride = require('method-override');
const app = express();
const PORT = process.env.PORT || 3000;
const client = new pg.Client... |
const fs = require('fs');
const path = require('path');
const {promisify} = require('util');
const schedule = require('node-schedule');
const {sortBy} = require('lodash');
const moment = require('moment');
const {unlock} = require('../achievements');
class Counter {
constructor(name) {
this.name = name;
this.map ... |
/* eslint-env browser */
/** @module animatedGradientFuncs */
import { DIRECTION } from './constants'
import { create2dContext, rgbToHex, getNextIndex } from './utils'
import { drawNoisyGradient, scaleImageData, fillImageData } from './drawFuncs'
/**
* @typedef {Object} State
* @property {HTMLCanvasElement} canvasBa... |
const { ipcRenderer, remote} = require('electron')
const prompt = require('electron-prompt')
let start_time = 0
let end_time = Number.MAX_SAFE_INTEGER
let selected_user = -1
let expense_chart = initPieChart(true)
let income_chart = initPieChart(false)
let net_income_chart = initLineChart()
initDB(() => {getUserCou... |
const $_postObj = {
classToPost: null,
protoToPost: null,
tabObjToPost: null
};
Array.prototype.inArray = function(comparer, element) {
for(var i=0; i < this.length; i++) {
if(comparer(this[i], element)) return true;
}
return !Boolean(element);
};
Array.prototype.refInArray = function... |
import React from 'react'
import { connect } from 'dva'
import { routerRedux } from 'dva/router'
import group from './group.less'
import * as order from '@/services/order'
import * as groupApi from '@/services/groupBuy'
import { openGroup, joinGroup } from '@/utils/setSensors'
import { getCookie, setCookie , setReferre... |
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const config = require('../../config')
const { dispatch } = require('../lib/dispatcher')
const { readPlaylistFile } = require('../lib/playlist-refreex')
const { addDatProtocolUrl, connectMyOwnPlaylistFolderInDatNetwork } = require('... |
// Main JavaScript for xkcd Generator
// Define settings
const numParameters = 4;
// Size of input and output images in pixels (width and height)
const imageSize = 16;
// Number of images to use when training the neural network
const numTrainingImages = 15;
const logData = false;
const optimizer = tf.train.adam(0.01)... |
class urState {
initRobotStatePacket(type){
switch (type) {
case 0:
this.robotModeData = {
timestamp : null,
physicalRobotConnected : null,
realRobotEnabled : null,
robotPowerOn : nu... |
// Variables
let aimCanvas = new canvas('aim');
let cursor = new mouse();
// Setup
aimCanvas.setSize(800, 600);
// Run it !
run();
// Global Class
function canvas(canvasId){
// Canvas
this.canvas = document.querySelector('#' + canvasId);
this.ctx = this.canvas.getContext('2d');
this.... |
//Make a small drawing program with p5 speech
//reference: http://ability.nyu.edu/p5.js-speech/
//cloned from github.com/simmoe/p5_api_speech
let myRec, browserCompatible, pen, direction, displayWord;
let a = +0.1;
let r = +1;
let q = 2
let tid;
let tegning = false;
function setup() {
cnv = createCanvas(400, 400... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/**
*
* [Template Name: Decimal - One Page Creative Template]
* Version: 1.0.0
* Author: DxE-Design
* Website: http://dxe-design.com
*
*/
/* Preloader */
// preloader loads before any contents are visible
$('body').css('overflow-y', 'hidden'); // set y-overflow to hidden initially
$(document).read... |
import {protoUI, ui, $$} from "../ui/core";
import {$active} from "../webix/skin";
import {isUndefined, isArray, extend, uid} from "../webix/helpers";
import {_event} from "../webix/htmlevents";
import {setSelectionRange} from "../webix/html";
import {assert} from "../webix/debug";
import template from "../webix/templa... |
const data = require('./input.json')
.map(v => {
let match = v.match(/pos=<(-?\d+),(-?\d+),(-?\d+)>, r=(-?\d+)/);
return {
x: parseInt(match[1], 10),
y: parseInt(match[2], 10),
z: parseInt(match[3], 10),
r: parseInt(match[4], 10),
};
});
l... |
/**
* Tic Tac Toe component.
* Is responsible for the creation of the board & for handling clicks.
* Expects two elements declared on the corresponding HTML (Clear & Restart buttons)
*/
// Global Variables
var canvas;
var canvasData;
var canvasContext;
var currentPlayTile;
var filledTileCount;
var crea... |
import React, {useContext, useRef, useEffect, useState} from "react";
import PropTypes from "prop-types";
import {MapContext} from "@mapcomponents/react-core";
import {bbox} from "@turf/turf";
import Divider from "@mui/material/Divider";
import Typography from "@mui/material/Typography";
import Drawer from "@mui/materi... |
import { getPlatform } from '@/utils/utils';
import { modify } from '@/services/versions';
import { type } from '@/utils/utils';
import { connect } from 'dva';
import {
Table,
Input,
InputNumber,
Popconfirm,
Form,
Breadcrumb,
Icon,
Button,
Select,
} from 'antd';
import React, { PureComponent } from... |
var async = require('async');
var SwapModel = require('../model/swap.server.model');
var OfferModel = require('../model/offer.model');
exports.categories = function (req, res, next) {
var self = this;
console.log('Profile contoller - categories--received');
// check if the user is logged in
let loginF... |
/* eslint-disable react/no-access-state-in-setstate */
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { connect } from 'react-redux';
import { Flex, NavBar, WhiteSpace } from 'antd-mobile';
import { Row, Col, Alert, Button, Breadc... |
"use strict";
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _class, _temp2... |
var MONGO_DB_CONNECTION = process.env.MONGO_DB_CONNECTION || F.config['mongo'];;
var Agent = require('sqlagent/mongodb').connect(MONGO_DB_CONNECTION);
// send sms import modile
var smsModule = MODULE('sms');
// send email import module
var emailModule = MODULE('email');
// import push notification module
const fcm =... |
const capitalize = require('lodash/capitalize');
const Command = require('../Command');
const Channel = require('../../Models/Channel');
const Guild = require('../../Models/Guild');
const EventHandler = require('../../Gitlab/EventHandler');
const bools = ['no', 'yes'];
const Actions = {
INVALID: -1,
DISABLE: ... |
// import { strftime } from '../../support/date';
import { ago, day } from '../../support/number';
import { timeTag } from './tagHelpers';
// distanceOfTimeInWords(fromTime)
// distanceOfTimeInWords(fromTime, options)
// distanceOfTimeInWords(fromTime, toTime)
// distanceOfTimeInWords(fromTime, toTime, options)
// ===... |
/* eslint-disable */
const csv = require('csv-parser'); // CSV parser
const fs = require('fs'); // File system
const { PrismaClient } = require('@prisma/client'); // Prisma client
// First ID of records to insert
const STARTING_INDEX = 100;
// Prisma Client
const prisma = new PrismaClient();
/**
* Get payment metho... |
document.getElementById("txttipoproyecto").addEventListener("change", divNit);
// document.getElementsByName("txtpata_publi")[0].elements;
$divNit = $("#divNit");
$divNit.hide();
function divNit(){
$('#nit').val("");
$('#txtrazon_social').val("");
let id = $("#txttipoproyecto").val();
let nombre = $("#txttip... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
"use strict";
const functions = require("firebase-functions");
const { WebhookClient } = require("dialogflow-fulfillment");
const { Payload } = require('dialogflow-fulfillment');
const { Image } = require('dialogflow-fulfillment');
const mysql = require("mysql");
const nodemailer = require("nodemailer");
process.env.... |
'use strict';
var forEach = require('lodash/collection').forEach,
forIn = require('lodash/object').forIn,
debounce = require('lodash/function').debounce,
_set = require('lodash/object').set,
_get = require('lodash/object').get,
domify = require('min-dom/lib/domify'),
domQuery = require('min-dom... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefau... |
import {renderCartNumber} from './app.js';
// main
window.addEventListener('load', function () {
renderCartNumber();
renderCart();
renderService();
renderTotal();
});
function renderCart() {
const cart = JSON.parse(localStorage.getItem('cart')) || [];
const cart_number = document.getElementById('cart-tit... |
// //load
$(document).ready(function()
{
// addSantri("TMI");
setTable();
$(".select2").select2();
$('.datepicker').datepicker(
{
rtl: App.isRTL(),
orientation: "left",
autoclose: true,
format: 'dd-mm-yyyy'
});
$('.numbers-only').keypress(function(event) {
var charCode = (event.which) ? event.... |
import Link from 'next/link';
import Button from '@/components/ui/Button';
import React from 'react';
import { supabase } from '../utils/supabase-client';
import { useState, useEffect } from 'react';
import { userContent } from '@/utils/useUser';
import { useRouter } from 'next/router';
import moment from 'moment';
imp... |
// Contains visuals and a playable game of maze (set autoplay to false)
const frameDelay = 50, reverseMoves = [0, 2, 1, 4, 3], size = 42;
let screen = [], root, actionLog = [], unresolvedPoints = [], autoplay = true,
comp = new Computer(), bot = {x:size/2,y:size/2}, botStart = {x:size/2,y:size/2},
ox = false, ... |
// import PRNG from "./prng-mersenne";
import getConfig from "../config";
import defined from "./defined";
import PCG, { getRandomState } from "./prng-pcg";
import queryString from "./query-string";
const embed = getConfig().embed;
//[39783, 27946, 21768, 27541]
// 9103, 33041, 40850, 9357
// We can use a s... |
import * as a from "@swc/helpers";
import b from "algoliasearch-helper";
import c from "./createWidgetsManager";
import { HIGHLIGHT_TAGS as d } from "./highlight";
import { hasMultipleIndices as e } from "./indexUtils";
import { version as f } from "react";
import g from "./version";
function h(a) {
if (typeof a.ad... |
import React, { Component } from 'react';
import Input from '../nc_Input';
import FormControl from '../nc_FormControl';
import PropTypes from 'prop-types';
const propTypes = {
min: PropTypes.number,
max: PropTypes.number,
onBlur: PropTypes.func,
onChange: PropTypes.func
};
class NCNumber extends Component {
con... |
/* Copyright 2015 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... |
const tf = require('@tensorflow/tfjs-node-gpu');
const zeros = (w, h, v=0) => Array.from(new Array(h), _ => Array(w).fill(v));
class Agent {
constructor(state_size, action_size, num_hidden, actions_index=undefined) {
this.action_size = action_size;
console.log('Actions size '+action_size);
t... |
import React from 'react';
import Flex from '../../../components/Flex';
import LeftNav from '../../../components/LeftNav';
import { Link, graphql } from 'gatsby';
import { media, colors } from '../../../components/theme';
import ResourcesList from '../../../components/ResourceList/ResourcesList';
import ResourcesCarous... |
'use strict'
module.exports = convertBinaryToJSON
var MAGIC = '3PB\n'
var TYPE_CODES = [
'uint8',
'uint16',
'uint32',
'int8',
'int16',
'int32',
'float32',
'float64'
]
var TYPE_SIZES = {
'uint8': 1,
'uint16': 2,
'uint32': 4,
'int8': 1,
'int16': 2,
'int32': 4,
'float32': 4,
... |
/*
* font showcase with zoom and pan
* copyright 2019 tanakazuhiko
* powered by d3.js
*/
var path = "../setting.json";
var api_url = "https://www.googleapis.com/webfonts/v1/webfonts?key=";
var css_url = "https://fonts.googleapis.com/css?display=swap&family=";
var string1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var string2 = "a... |
import Promise from 'bluebird';
import fetch from 'isomorphic-fetch';
import config from '../../../../config';
import paymentsConfig from '../../';
let paymentsFunctions = {};
if (__SERVER__) {
const redis = require('redis');
// Promisify redis with bluebird
Promise.promisifyAll(redis.RedisClient.prototype);
P... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clear, clearError, action } from '../actions/common';
import { check, register_, CLEAR_EMAIL_VALIDITY } from '../actions/api';
import { NavLink } from 'react-router-dom';
function checkEmail(email) {
let regExp = /^[0-9a-zA-Z... |
import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import isEqual from 'lodash/isEqual';
import Autosuggest from 'react-autosuggest';
import Paper from '@material-ui/core/Paper';
import Popper from '@material-ui/core/Popper';
import TextField from '@material-ui/core/TextField';... |
const nav = require("./config/nav")
const pluginsConf = require('./plugins/index')
const baseImgUrl = "http://cdn.rayshine.site/blog"
module.exports = {
base: "/",
title: "一ξひβθ光 i",
description: '乾坤未定 你我皆是黑马',
dest: 'dist',
head: [
["meta", {name: "viewport",content: "width=device-width,initial-scale=1,us... |
const { Event } = require('./Utilities/Utilities');
const GameProperties = require('./GameProperties');
const View = require('./View');
class PuzzleEditorView extends View {
constructor(_bindElementID, _height = -1, _width = -1) {
super('PuzzleEditorView', _height, _width, _bindElementID);
this.vModel = nul... |
$(function () {
$('#escolaridade').change(function () {
// var click = document.getElementById('escolaridade').value = this.value;
// console.log('sei la' + this.value);
if (this.value == '1') {
// $('#nivel_idnivel').style.display = 'block';
document.getElementB... |
import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import { Nav, Navbar, NavItem, NavDropdown, MenuItem, Grid, Col, Row } from 'react-bootstrap'
import Scrollchor from 'react-scrollchor';
import * as firebase from "../../firebase";
import '../l... |
import {
ElementMixin
} from "./chunk-6TGXYB6C.js";
import {
typography
} from "./chunk-ESTDBV53.js";
import {
color
} from "./chunk-YRRWCJGV.js";
import {
ThemableMixin,
registerStyles
} from "./chunk-LYMUE5P7.js";
import {
css
} from "./chunk-AILCGYJH.js";
import {
PolymerElement
} from "./chunk-YGHRZLA... |
import discourseComputed from "discourse-common/utils/decorators";
import { get } from "@ember/object";
import { ajax } from "discourse/lib/ajax";
import RestModel from "discourse/models/rest";
import { on } from "discourse-common/utils/decorators";
import PermissionType from "discourse/models/permission-type";
import ... |
import {Component} from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import Checkbox from '@material-ui/core/Checkbox';
import Select from '@material-ui/core/... |
// header
$(function(){
var w = $('.logo').outerWidth();
//console.log(w);
$('.topbar-main-wrapper').css({ 'width': 'calc(100% - ' + w + 'px)' });
});
// Menu
$(function () {
// const get_Height = $('.menu-main-wrapper').height();
// console.log(get_Height);
$(".sub-menu-main li.open").hover(function... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.