text stringlengths 2 1.04M |
|---|
/* Copyright 2010-2016 Will Scullin <scullin@scullinsteel.com>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and thi... |
import PropTypes from 'prop-types';
import { Link as RouterLink } from 'react-router-dom';
// material
import { Box, Card, Link, Typography, Stack } from '@mui/material';
import { styled } from '@mui/material/styles';
// components
import MoreMenu from '../../MoreMenu';
// utils
import { fCurrency } from '../../../util... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.createTable('UsersCommissions',
{ UserId: {
type: Sequelize.INTEGER,
allowNull: false,
},
CommissionId: {
... |
// @flow
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import HomePage from './containers/HomePage'
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
</Route>
) |
import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount () {
new google.maps.Map(this.refs.map, {
zoom: 12,
center: {
lat: this.props.lat,
lng: this.props.lon
}
});
}
render() {
return <div ref="map" />;
}
}
export default GoogleMap; |
(window.webpackJsonp=window.webpackJsonp||[]).push([[347],{3291:function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return c}));n(12),n(2),n(5),n(8),n(3),n(10);var r=n(0),l=n.n(r);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.proto... |
import React from "react"
import { graphql, useStaticQuery, Link } from "gatsby"
import Layout from "../components/layout"
const BlogPage = () => {
const data = useStaticQuery(graphql`
query {
allContentfulCategory(sort: { fields: createdAt, order: ASC }) {
edges {
node {
titl... |
import TelegramBot from './telegram';
import SlackBot from './slack';
import _ from 'underscore';
class Bots {
bots = [];
constructor(tokens) {
tokens.forEach(token => {
this.add(token);
});
}
add(token) {
const duplicates = this.bots.filter((bot) => {
... |
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/*!**********************************************************************!*\
!*** ../demo1/src/js/pages/crud/datatables/extensions/colreorder.js ***!
\**********************************************************************/
/*! unknown exports (runtime-de... |
// FBSage - Firebelly 2015
/*jshint latedef:false*/
// Good Design for Good Reason for Good Namespace
var FBSage = (function($) {
var screen_width = 0,
breakpoint_nano = false,
breakpoint_tiny = false,
breakpoint_small = false,
breakpoint_medium = false,
breakpoint_large = false,
... |
const fs = require("fs");
const process = require("process");
const { getDNA } = require("../metadata.js")
const mongoose = require("mongoose");
const req = require("express/lib/request");
//@param @Schema used to store new instances of Schemas on mongoDB
let Schema = mongoose.Schema;
//@param @metaDataSchema used t... |
export default {
'groups': [{
'label': 'side',
'points': 37,
'connectivity':
['0 1',
'1 2',
'2 3',
'3 4',
'4 5',
'5 6',
'6 7',
'7 8',
'8 9',
'9 10',
'10 11',
'11 12',
'12 13',
'13 ... |
var structranges_1_1v3_1_1replace__fn =
[
[ "operator()", "structranges_1_1v3_1_1replace__fn.html#a1f55bdf3448c23f7a2110e1a16cec4ac", null ],
[ "operator()", "structranges_1_1v3_1_1replace__fn.html#ae0e256d041a6e297a38a30574084b7eb", null ]
]; |
const { data, version } = require("sdk/self");
const { openEmberInspector } = require("./tomster-devtool-panel");
const tabs = require("./tomster-tabs");
const { UrlbarButton } = require("./urlbarbutton");
const { Panel } = require("sdk/panel");
const TOMSTER_BUTTON_ID = "ember-inspector-toolbarbutton";
let butto... |
const DynamoDB = require('aws-sdk/clients/dynamodb');
const uuid = require('uuid');
module.exports.handle = async event => {
const data = JSON.parse(event.body);
try{
const dynamoDb = new DynamoDB.DocumentClient();
const result = await dynamoDb.query({
TableName: process.env.t... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MovieCard from "./MovieCard"
export default class MoviesList extends Component {
render() {
return (
<div>
{this.props.movies.
map (m => <MovieCard movie={m}/>... |
(function() {
'use strict';
describe('HomeController', function() {
var $scope;
beforeEach(module('app'));
beforeEach(inject(function($rootScope, $controller) {
$scope = $rootScope.$new();
$controller('HomeController', { $scope: $scope });
}));
it('- should have githubRepo obje... |
// @flow
import type Transport from "@ledgerhq/hw-transport";
import type { CryptoCurrency } from "../../types";
import type { DerivationMode } from "../../derivation";
export type Result = {
rsv: {
r: string,
s: string,
v: number,
},
signature: string,
};
export type MessageData = {
currency: Cry... |
const WebSocketServer = require('ws').WebSocketServer;
const Telnet = require('telnetlib');
const Base = require('./base');
const ServerType = {
stWebsocket: 1,
stTelnet: 2
}
class Client extends Base{
constructor(client, ip) {
super();
this.client = client;
this.ip = ip;
thi... |
module.exports = function(pathString) {
if (Array.isArray(pathString)) return [...pathString]
if (typeof pathString === 'number') return [pathString]
const pathArrayResult = []
// From lodash
const pathRx = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
St... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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, copy, modify... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var iconPropTypes = require('./iconPropTypes-b9203099.js');
va... |
/// <reference path="../typings/PlayFab/PlayFab.d.ts" />
var url = require("url");
var https = require("https");
exports.sdk_version = "2.43.200303";
exports.buildIdentifier = "jbuild_nodesdk__sdk-genericslave-3_1";
var settings = exports.settings = {
productionUrl: ".playfabapi.com",
verticalName: null, // ... |
var express = require('express');
var router = express.Router();
Behaviour = require('../models/behaviour');
router.get('/', function (req, res) {
// http://mongoosejs.com/docs/api.html#query_Query-find
var options = {
page: req.query.page || 1,
limit: req.query.limit || 10
};
Beha... |
/* This file is generated by createIcons.js any changes will be lost. */
import createIcon from '../createIcon';
const OutlinedIdCardIcon = createIcon({
name: 'OutlinedIdCardIcon',
height: 512,
width: 576,
svgPath: 'M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5... |
// this is to make sure that temp collections get cleaned up on restart.
//
// This test requires persistence beacuase it assumes data will survive a restart.
// @tags: [requires_persistence]
testname = 'temp_namespace_sw';
var conn = MongoRunner.runMongod({smallfiles: "", noprealloc: "", nopreallocj: ""});
d = conn.... |
const
config = require('./config');
exports.convertToTileSpace = function(v) {
return Math.floor(v / config.wallSize);
};
/**
* @param ax1 first rectangle, upper left x-coordinate
* @param ay1 first rectangle, upper left y-coordinate
* @param ax2 first rectangle, bottom right x-coordinate
* @param ay2 fir... |
/*!
* jquery.fancytree.select.js
*
* Configurable support for hierarchical selection.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/Lice... |
// pages/toc/product/CustomerClassification.js
const JLTools = require("../../util/JLTools.js")
Page({
/**
* 页面的初始数据
*/
data: {
biglist: [],
smalllist: [],
allsmalllist: {
"a": "",
"b": 1
}
},
bd: function () {
wx.navigateTo({
url: '/pages/toc/product/CustomerProduct... |
/**
* OAuth Manager Factory
* @author Tang Bo Hao
*/
var defaultPlatform = null;
/**
* configure social
*
* @param platforms
* {platform_name : {key: key, secret: secret}}
*
* you can set multi platforms
*
* usage:
*
* var factory = require('social')({
* renren: {
* key : '.....'
* ... |
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from './reducers';
import { Header } from './components/common';
import LibraryList from './components/LibraryList';
export default class Ap... |
import alt from '../alt';
import Const from '../utils/consts';
import NodeAction from '../actions/node-action';
class NodeStore {
constructor() {
this.bindActions(NodeAction);
this.nodes = [];
this.data = null;
this.period = Const.shared.timeperiod[0];
}
onFetchNodes(result) {
this.nodes = ... |
import React, { useState, useEffect } from 'react'
import TrouserCard from '../../Cards/TrouserCard/TrouserCard'
function TrouserList({ search, trousers }) {
return (
<div>
<TrouserCard trousers={trousers} search={search} />
</div>
)
}
export default TrouserList |
OC.L10N.register(
"dav",
{
"Calendar" : "Dagatal",
"Todos" : "Verkþættir",
"Personal" : "Einka",
"{actor} created calendar {calendar}" : "{actor} bjó til dagatalið {calendar}",
"You created calendar {calendar}" : "Þú bjóst til dagatalið {calendar}",
"{actor} deleted calendar {calendar}" ... |
/* */
(function(process) {
'use strict';
var EventConstants = require("./EventConstants");
var invariant = require("./invariant");
var injection = {
Mount: null,
injectMount: function(InjectedMount) {
injection.Mount = InjectedMount;
if ("production" !== process.env.NODE_ENV) {
("pr... |
import React from 'react'
import L2PagesLayout from "../../components/l2-page-template"
import bgImage from "../../images/Framing-Construction.jpg"
const Safety = () => (
<>
<L2PagesLayout
title={`Safety`}
subnav={`firm`}
backgroundImage = {bgImage}
content={`
<p>Safety ... |
/*
=========================================================
* Vue Black Dashboard - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/black-dashboard
* Copyright 2018 Creative Tim (http://www.creative-tim.com)
=================================... |
//# sourceMappingURL=mandatory.js.map |
const { Mixin } = require('hops-mixin');
const {
internal: { createWebpackMiddleware },
} = require('hops-webpack');
function exists(path) {
try {
require.resolve(path);
return true;
} catch (e) {
return false;
}
}
function tryResolve(name) {
try {
return require.resolve(name);
} catch (e)... |
describe('Select - Events - selectItems', function() {
let table;
dt.libs({
js: ['jquery', 'datatables', 'select'],
css: ['datatables', 'select']
});
describe('Check the defaults', function() {
let params = undefined;
dt.html('basic_id');
it('Set stuff up', function() {
table = $('#example')
.Da... |
const socketMiddlware = socket => store => next => action => {
if (action.remote) {
socket.emit('action', action);
console.log('Emitted remote action', action)
}
return next(action);
};
module.exports = socketMiddlware; |
(function () {
'use strict';
angular
.module('mean.about')
.factory(About);
About.$inject = [];
function About() {
return {
name: 'about'
};
}
})(); |
//var gulp = require('gulp');
//var bower = require('gulp-bower');
//global.gulp.task('bower', function() {
// return bower({
// cwd: "./"
// });
//}); |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/**
* SemanticPage base classes
*
* @namespace
* @name sap.m.semantic
*/
// Provides class sap.m.semantic.SemanticConfiguration... |
import { Controller } from '@hotwired/stimulus'
import flatpickr from 'flatpickr'
import { kebabCase, capitalize } from './utils'
import { options, dateFormats } from './config_options'
import { events } from './events'
import { elements } from './elements'
import { convertDateFormat } from './strftime_mapping'
class ... |
import { useState, useEffect } from 'react'
import {
Container,
Center,
Heading,
Text,
Input,
FormControl,
FormLabel,
Button,
Box,
Flex,
SimpleGrid,
HStack,
VStack,
Grid,
GridItem,
Avatar,
Textarea,
} from '@chakra-ui/react'
import Loader from '../components/loader.js'
import { useCurr... |
import * as types from './actions-types';
export const changeParametre = (parametre) => {
return {
type: types.CHANGE_PARAMETRE,
payload: parametre
}
}
export const setVisibilityCorrection = () => {
return {
type: types.SET_VISIBILITY_CORRECTION
}
}
export const createGrille =... |
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var _20 = {
"elem": "svg",
"attrs": {
"xmlns": "http:/... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* DevExtreme (esm/core/set_template_engine.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
export {
setTemplateEngine as
default
}
from "./templ... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var __awaiter = (this && th... |
'use strict'
const ccxt = require ('ccxt');
var math = require ('mathjs');
const ansi = require ('ansicolor').nice
const asTable = require ('as-table')
const fs = require ('fs')
const log = require ('ololog').configure ({ locate: false })
var therocksqv = require ('./therocksqv.js')
var ... |
import React from 'react'
import {
ArrowLink,
} from "../../styles/globalStyles"
const GetArrowLink = (link) => {
let heroUrl = null
if ((link && link.url) || (link && link.link)) {
heroUrl = (
<ArrowLink
green
right
pt="1rem"
href={link.url || ... |
import * as olo from '@onlabsorg/olojs/browser';
window.olo = olo;
import Wiki from './wiki';
document.addEventListener("DOMContentLoaded", async () => {
olo.wiki = await Wiki('#app', {
appName: "oloWiki",
routes: {
'/' : new olo.HTTPStore(location.origin + "/do... |
let resumeData = {
"name": "Ashley Ye",
"pronouns": "she/her",
"role": "student studying Electrical Engineering and Computer Science at UC Berkeley",
"linkedinId": "ashlye",
"roleDescription": " I'm interested in engineering optimal software—whether it's through building scalable infrastructure or designing ... |
$(document).on('click', "#new_participant_button", function(){
var new_participant = parseInt($("#number_of_new_participant").val());
if(parseInt($("#new_participant_body tr:last").attr("value"))){
var largest = parseInt($("#new_participant_body tr:last").attr("value"))+1;
}
... |
Hammer.utils = {
/**
* extend method,
* also used for cloning when dest is an empty object
* @param {Object} dest
* @param {Object} src
* @parm {Boolean} merge do a merge
* @returns {Object} dest
*/
extend: function extend(dest, src, merge) {
for(var key in src) {
if... |
// Add content key/value pairs here
// Content variables are ordered alphabetically
module.exports = {
// add key/pairs like the line below
// variable: 'content',
notificationsHeadingOne: 'Set up notifications',
notificationsLedeParagraph: 'All intelligence is available on the tool but you can be notified ab... |
var Api = require('../../utils/api.js');
var util = require('../../utils/util.js');
var WxParse = require('../../wxParse/wxParse.js');
var wxApi = require('../../utils/wxApi.js')
var wxRequest = require('../../utils/wxRequest.js')
import config from '../../utils/config.js'
var pageCount = config.getPageCount;
var webS... |
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c... |
import React from "react"
import Img from "gatsby-image"
import { useStaticQuery, graphql } from "gatsby"
const Menu = () => {
const data = useStaticQuery(graphql`
query SiteMenuQuery {
site {
siteMetadata {
poke
bao
boba
}
}
allFile(filter: { relat... |
import React from "react"
import { Container } from "reactstrap"
const NotFoundPage = () => (
<section className="page-404 section-lg">
<Container>
<header>
<h1>404</h1>
<h2>NOT FOUND</h2>
</header>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Contain... |
import { openDB } from "idb";
const initdb = async () =>
openDB("jateDb", 1, {
upgrade(db) {
if (db.objectStoreNames.contains("jate")) {
console.log("jate database already exists");
return;
}
db.createObjectStore("jate", { keyPath: "id", autoIncrement: true });
console.log... |
import Controller from '@ember/controller';
import {alias} from '@ember/object/computed';
import {get} from '@ember/object';
import {isArray as isEmberArray} from '@ember/array';
import {
isVersionMismatchError
} from 'soul-admin/services/ajax';
import {inject as service} from '@ember/service';
import {task} from '... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
/**
* vee-validate v3.4.14
* (c) 2021 Abdelrahman Awad
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VeeValidate={},e.Vue)}(... |
module.exports = function (o, cb, s) {
var n;
if (!o) {
return 0;
}
s = !s ? o : s;
if (o instanceof Array) {
// Indexed arrays, needed for Safari
for (n = 0; n < o.length; n++) {
if (cb.call(s, o[n], n, o) === false) {
return 0;
}
}
} else {
// Hashtables
for (n... |
import axios from 'axios';
/* Há chave key e unica para cada pessoa e você consegue ela acessando o site oficial do bitly, onde você deve
fazer o cadastro e procurar pela Api, depois disso você pega essa chave key e troca pelos caracteres abaixo.... */
// base url: https://api-ssl.bitly.com/v4/ ,
export const k... |
import React, { useEffect } from 'react';
import { View, SafeAreaView, ScrollView, Text, Image } from 'react-native';
import { Card, Icon } from 'react-native-elements';
import { ICONS } from '../../config/images';
import styles from './styles';
import { useSelector, useDispatch } from 'react-redux';
import * as action... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[129],{
/***/ "../../src/components/icon/assets/kql_function.js":
/*!***********************************************************************************!*\
!*** /Users/chanderprall/projects/eui/src/components/icon/assets/kql_function.js ***!
\**********... |
(function (Luhnar) {
"use strict";
function sweden(input) {
// Remove dash and plus
input = input.replace('-', '').replace('+', '');
// Remove century and check number
if (input.length === 12) {
input = input.substr(2, 10);
} else if (input.length === 10) {... |
import { isNum, isEmpty } from './helpers'
export const cardNames = {
VISA: 'Visa',
MC: 'Mastercard',
DISC: 'Discover',
AMEX: 'American Express',
OTHER: 'Other Credit Card',
}
// https://github.com/jasminmif/react-interactive-paycard
export const cardNumbersRegex = {
VISA: '^4',
MC: '^5[1-5]',
DISC: '... |
import { Subscription } from '../Subscription';
import { operate } from '../util/lift';
import { innerFrom } from '../observable/from';
import { OperatorSubscriber } from './OperatorSubscriber';
import { noop } from '../util/noop';
import { arrRemove } from '../util/arrRemove';
export function bufferToggle(openings, cl... |
(function () {
'use strict';
angular
.module('forums')
.controller('ForumsPostController', ForumsPostController);
ForumsPostController.$inject = ['$scope', '$state', '$window', 'Authentication', 'MeanTorrentConfig', 'ForumsService', 'Upload', '$timeout', 'NotifycationService',
'marked', '$stateParam... |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
const TeamPage = () => {
return (
<Layout pageTitle="Our team">
<SEO title="Team" keywords={[`gatsby`, `application`, `reac`]} />
<p>
Voluptate beatae nostrum nemo quisquam earum impedit es... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.... |
describe('callsCountSpec', () => {
let calculadora = {
somar: (a, b) => { return a+b },
dividir: (x, y) => { return x/y }
}
beforeEach(() => {
spyOn(calculadora, "somar");
})
it('deve verificar se o metodo foi chamado ao meno uma x', () => {
calculadora.somar(1,1);
calculadora.somar(1,1... |
(function(e){const n=e["nb"]=e["nb"]||{};n.dictionary=Object.assign(n.dictionary||{},{"%0 of %1":"","Align center":"Midstill","Align left":"Venstrejuster","Align right":"Høyrejuster",Aquamarine:"",Black:"",Blue:"",Bold:"Fet","Bulleted List":"Punktmerket liste",Cancel:"Avbryt","Dim grey":"","Document colors":"",Download... |
var gulp = require('gulp');
var flatten = require('gulp-flatten');
var svgstore = require('gulp-svgstore');
var path = require('path')
var rename = require('gulp-rename')
gulp.task('pull', [], function () {
gulp.src(['./node_modules/material-design-icons/**/svg/design/*_24px.svg', './simpleicons/*.svg'])
.... |
import React from "react";
import { HomeOutlined, ToolOutlined, HeartOutlined } from "@ant-design/icons";
// pages
import Exception403 from "~/pages/exception/403";
import Exception404 from "~/pages/exception/404";
import Exception500 from "~/pages/exception/500";
import Home from "~/pages/home";
import Welcome from ... |
/**
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
eg.module("eg", ["jQuery", eg, window, eg.Agent], function($, ns, global, Agent) {
"use strict";
var raf = global.requestAnimationFrame || global.webkitRequestAnimationFrame ||
global.mozRequestAnimationFrame || global.ms... |
$(document).ready(function(){
// hide all warnings
$('.warning').hide();
//click to publish report and let client see report
$('#publish').click(function(){
$('#publishForm').submit();
});
//Show hide publish warnning
$('#publish').hover(
function(){
$('#publishWarning').show();
},
function(){
$('... |
const github = require("https://github.com/PipedreamHQ/pipedream/components/github/github.app.js");
//const github = require("./github.app.js");
module.exports = {
name: "New Security Alert",
description: "Triggers when GitHub discovers a security vulnerability in one of your repositories",
version: "0.0.1",
p... |
function foo(o) {
return o[0];
}
noInline(foo);
function test(a, x) {
var intArray = new Int32Array(1);
intArray[0] = a;
var floatArray = new Float32Array(intArray.buffer);
var element = foo(floatArray);
var result = element + 1;
if (("" + result) != ("" + x))
throw "Error: bad res... |
var mysql = require('mysql');
var dao = require('./Dao');
var UPDATE_FIRST_NAME = 'update user set name = ? where id = ?';
var UPDATE_LAST_NAME = 'update user set last_name = ? where id = ?';
var UPDATE_EMAIL = 'update user set email = ? where id = ?';
var UPDATE_WORKPLACE = 'update user set workplace = ? where id = ?... |
const shoppingCartReducer = (state = {items: [],userId:0, id:0, total: 0}, action) => {
switch(action.type) {
case 'LOADING_SHOPPING_CART':
return {...state, items: [...state.items],
loading: true}
case 'ADD_SHOPPING_CART':
let prices = action.shoppingCart.items.m... |
/**
* jQuery extensions. See {@link $.fn}.
*
* @module jqueryExtensions
*/
import cd from './cd';
import { handleScroll } from './eventHandlers';
/**
* jQuery. See {@link $.fn} for extensions.
*
* @namespace $
* @type {object}
*/
/**
* (`$.fn`) jQuery extensions.
*
* @namespace fn
* @memberof $
*/
expo... |
/*
Copyright (c) 2016, Alihan Livdumlu. All rights reserved.
Copyrights licensed under MIT License. See the accompanying LICENSE file for terms.
*/
var should = require('chai').should();
var math3d = require('../index'),
Vector3 = math3d.Vector3,
Vector4 = math3d.Vector4;
var existenceVector3 = new Vector3(4... |
var createCompounder = require('./_createCompounder');
/**
* Converts `string`, as space separated words, to lower case.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the lower cased string.
* @example
*
* _.lower... |
import React from 'react';
import { Redirect } from '@docusaurus/router';
import useBaseUrl from '@docusaurus/useBaseUrl';
export default function Home() {
const redirectUrl = useBaseUrl('/docs/overview/introduction');
return (
<Redirect to={redirectUrl} />
);
} |
const webpack = require('webpack')
const ora = require('ora')
const chalk = require('chalk')
process.env.NODE_ENV = 'production'
const config = require('./webpack/webpack.prod.config')
let spinner = ora('Compiling assets ...')
spinner.start()
let compiler = webpack(config)
compiler.run((err, result) => {
spinner... |
import React, { Component } from 'react';
import { View, ActivityIndicator, AsyncStorage } from 'react-native';
class InitialScreen extends Component {
async componentDidMount() {
this._bootstrapAsync();
}
_bootstrapAsync = async () => {
let token = await AsyncStorage.getItem('token');
if (!token) ... |
const { createElementVNode: _createElementVNode, openBlock: _openBlock, createElementBlock: _createElementBlock } = require("vue")
module.exports = function render(_ctx, _cache) {
return (_openBlock(), _createElementBlock("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentC... |
var struct_ash_tx_dma_buffer =
[
[ "data", "group__ashv3.html#gaf145492403aabb1a74637161d4e9b0b5", null ],
[ "finger", "group__ashv3.html#gabac89820a28155cf2514dff895421afe", null ],
[ "isCorrupt", "group__ashv3.html#gaddb123b3f62e28c817660b81977767e4", null ],
[ "resend", "group__ashv3.html#ga18411940f... |
const QuestionController = require('../controllers/questionController');
const AnswerController = require('../controllers/answerController');
let questionController = new QuestionController();
let answerController = new AnswerController();
async function questionMiddleWare(req, res, next) {
let id = req.params.id... |
/* Copyright (c) 2012 Sergiy Kovalchuk (serg472@gmail.com) under the Apache License 2.0 */
(function() {
if(window.location.hash.toLowerCase() == "#debug" || window.location.href.match(/[&?]debug\b/i)) {
DEBUG = true;
}
var logProps = ["log", "debug", "info", "warn", "error"];
var generalProps = ["assert", "cle... |
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different ... |
#! /usr/bin/env node
"use strict";
var _bluebirdLstC;
function _load_bluebirdLstC() {
return _bluebirdLstC = require("bluebird-lst-c");
}
var _bluebirdLstC2;
function _load_bluebirdLstC2() {
return _bluebirdLstC2 = _interopRequireDefault(require("bluebird-lst-c"));
}
let main = (() => {
var _ref = (0, ... |
define([
'backbone',
'backbone.localStorage',
'backbone.marionette',
'chai',
'cocktail',
'jquery',
'jquery.perfectScrollbar',
'jquery.qtip',
'jquery-ui',
'underscore',
'mocha',
'sinon'
], function (Backbone, BackboneLocalStorage, Marionette, chai, Cocktail) {
window... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
require('prismjs/themes/prism-tomorrow.css');
exports.onServiceWorkerUpdateReady = () => {
const answer = window.confirm(
'llangis.xyz has been updat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.