text stringlengths 7 3.69M |
|---|
const bcrypt = require("bcryptjs");
module.exports = {
async register(req, res) {
const { username, password, email } = req.body;
console.log(req.body);
const db = req.app.get("db");
const user = db.auth.find_email(email);
if (user[0])
return res.status(200).send({ message: "lol this ... |
/**
* Copyright(c) 2012-2016 weizoom
*/
"use strict";
var debug = require('debug')('m:outline.data:ProductModel');
var React = require('react');
var ReactDOM = require('react-dom');
var Reactman = require('reactman');
var FormInput = Reactman.FormInput;
var Action = require('./Action');
var Constant = require('./C... |
import Ember from 'ember';
import C from 'ui/utils/constants';
export default Ember.Route.extend({
model: function() {
var me = this.get(`session.${C.SESSION.ACCOUNT_ID}`);
return Ember.RSVP.hash({
account: this.get('userStore').findAll('apikey', null, {filter: {accountId: me}, url: 'apikeys', forceRel... |
export default function formatDate(date) {
if (date === null) return;
const event = new Date(date);
const options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
};
return event.toLocaleString('en-GB', options);
}
|
/* Chunky Monkey
Write a function that splits an array (first argument) into groups the length of size (second argument) and returns them as a two-dimensional array.
Here are some helpful links:
Array.prototype.push()
Array.prototype.slice()
*/
function chunkArrayInGroups(arr, size) {
var chunk = [];
while (arr... |
import React from 'react';
import ExerciceDisplayer from './ExerciceDisplayer';
import PropTypes from 'prop-types';
import connect from 'react-redux/es/connect/connect';
import { postQuestion } from '../../../../redux/question/actions/post';
import { deleteQuestion } from '../../../../redux/question/actions/delete';
im... |
import MeshPointMap from './MeshPointMap'
export default MeshPointMap
|
import React, {
Component,
PropTypes,
StyleSheet,
Text,
View,
} from 'react-native'
class Watermark extends Component {
static propTypes = {
};
render() {
return (
<View style={styles.container}>
<Text style={styles.text}>{this.props.name}</Text>
</View>
)
}
}
export d... |
/**
* Created by Ziv on 2017/3/10.
*/
/**
* 将输入的字符串变为驼峰法表示。
* @param str
* @returns {string|void|XML|*}
*/
//my solution
function toCamelCase(str) {
return str.replace(/[_-]\w/ig, function (match) {
return match.charAt(1).toUpperCase();
})
}
// returns "theStealthWarrior"
toCamelCase("the-steal... |
"use strict";
document.addEventListener("DOMContentLoaded", function () {
if (Neo.init()) {
if (!navigator.userAgent.match("Electron")) {
Neo.start();
}
}
});
var Neo = function () {};
Neo.version = "1.5.11";
Neo.painter;
Neo.fullScreen = false;
Neo.uploaded = false;
Neo.viewer = false;
Neo.toolSid... |
(function (Modules) {
"use strict";
Modules.MultiselectAutocomplete = function () {
this.start = function ($element) {
var template = selectHTML();
appendAddButton();
createSelectElementsForSelectedOptions();
enableAutocomplete();
function selectHTML() {
var $select = s... |
var leafFunctionsAnalysis = require('../src/LeafFunctionsAnalysis')
var getSpiesJSON = function (variablesToSpy) {
var returnedJSON = []
returnedJSON.push({
variableDefinition: {
name: 'spiesDB', value: {
variables: [], functions: []
}
}
})
if (va... |
const Ice = require('ice').Ice;
const Murmur = require('./Generated/Murmur.js').Murmur;
function ice() {
return Ice.Promise.try(() => {
const host = process.env.MURMUR_HOST;
const port = process.env.MURMUR_PORT;
const secret = process.env.MURMUR_SECRET;
console.log('Connecting to m... |
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import * as React from 'react';
import {screenBackgroundColor} from '../stylesheets/color-sheme';
function RecipeQuad({navigation}) {
return (
<View style={planStyles.tileContainer}>
<View style={planStyles.rowContainer}>
<Touc... |
import { v4 as uuidv4 } from 'uuid';
import { AppError } from "../errors";
import { User } from "../models";
class RegisterController {
async store(req, res) {
const {
body: { name, email, password }
} = req;
const messages = {
success: "Usuário cadastrado com sucesso.",
error: "Ocorr... |
import React from 'react'
import { mount } from 'enzyme'
import { default as MUITable} from '@material-ui/core/Table'
import TableCell from '@material-ui/core/TableCell'
import { getTableProps } from 'Test/factories'
import Loading from '../Loading'
describe('<Loading />', () => {
test('rendering', () => {
const... |
const BaseXform = require('../base-xform');
const BodyPrXform = require('./body-pr-xform');
const PXform = require('./p-xform');
class RichXform extends BaseXform {
constructor() {
super();
this.map = {
'a:bodyPr': new BodyPrXform(),
'a:p': new PXform(),
};
}
get tag() {
return 'c:... |
$(
function() {
$('.square').on('click', function() {
var x = this.text();
$('.answers').text(x);
});
}
)
|
import React, { useEffect } from "react";
import { Container, Row, Col } from 'react-bootstrap';
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'
import bellcurve from 'highcharts/modules/histogram-bellcurve';
import './Analytics.scss'
export const Analytics = ({ userScores,... |
//goalsController.js
(function(){
// add 2 controllers
angular.module('goalsCtrl', [])
.controller('goalsController', goalsController)
//.controller('goalDetailController', goalDetailController)
// inject both controllers with goals factory
// these 2 both use the goals factory:
//goalsController.$inject =... |
import React, { useState } from 'react';
import InputSection from './input-section';
import DaysCardSection from './days-card-section';
import './App.css';
function App() {
const [daysCardData, setDaysCardData] = useState();
return (
<div className="App">
<div className="root">
... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsTextRotationDown = {
name: 'text_rotation_down',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 12v-1.5L10 5.75v2.1l2.2.9v5l-2.2.9v2.1L21 12zm-7-2.62l5.02 1.87L14 13.12V9.38zM6 19.75l3-3H7V4.25H5v12.5H3l3 3z"/></s... |
/**
* 会员查询详细下拉收缩效果
* @author: terry <[email protected]>
* @date: 2013-10-22 16:00
*/
define(function(require, exports, module) {
var $ = require('jquery'),
move = require('../move');
function Slide(){
var self = this;
this.up = function(){
console.log(move);
};
th... |
let connector = null;
let connectedButton = null;
let providerConnected = "";
// Button declarations
window.onload = function() {
if(!window.location.hash){
window.location = window.location + '#loaded';
window.location.href = window.location.href
}
}
const connectMetaMaskButton = document.querySel... |
const { models } = require('../database/index');
const _ = require('lodash');
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
const JWTSecret = 'secret';
module.exports = {
async refreshToken(req, res) {
try {
const user = await models.User.findByPk(req.userId);
jwt.sign({ id:... |
import http from 'k6/http';
export const options = {
thresholds: {
http_req_failed: ['rate<0.01'], // http errors should be less than 1%
http_req_duration: ['p(95)<200'], // 95% of requests should be below 200ms
},
};
export default function () {
http.get('https://test-api.k6.io/public/crocodiles/1/');
... |
import { loadingHide } from "./footballAPI.js";
//Cards container getSatands
const cardsGetStands = (resStand) => {
let containerHTML = "";
let containerHeaderHome = `
<header>
<h5>Match standings of Premier League</h5>
<h6>First Teams</h6>
<hr />
</header>
`... |
//user.test.js
'use strict';
process.env.NODE_ENV = 'test';
const chai = require('chai');
const should = chai.should();
const config = require('../../config');
let mongoose;
let User;
let _user;
let newUserData = {
email: '[email protected]',
password: 'password',
name: 'Milan Smith'
};
before((done) => {
U... |
const getElement = (attrValue) => {
return document.querySelector(attrValue);
}
const getElementById = (attrValue) => {
return document.getElementById(attrValue);
}
const getAAll = (attrValue) => {
return document.querySelectorAll(attrValue);
}
const newElement = (tag, attributes) => {
const element... |
// @tag full-page
// @require C:\Users\Lee\Documents\AdvertisingUtils\web\AdvUtils\app.js
|
'use strict';
$(document).ready(function(){
checkDocumentVisibility(checkLogin);//check document visibility in order to confirm bank's log in status
//load all bank accounts once the page is ready
//function header: laba_(url)
laba_();
//////////////////////////////////////////////////////... |
const execSync = require('child_process').execSync;
const os = require('os');
exports.default = async function(context) {
if (context.appOutDir.indexOf('win-unpacked') > -1) {
if (os.platform() === 'win32') {
execSync('copy tools\\win\\.bin\\ng.cmd dist\\server\\ng.cmd');
execSync('copy tools\\win\\.... |
'use strict'
const {join} = require('bluebird')
const test = require('tape')
const pw = require('../')
test('hash', t => {
t.plan(1)
pw.hash('foo').then(hash => t.equal(typeof hash, 'string', 'type'))
})
test('hash with different passwords', t => {
t.plan(1)
join(pw.hash('foo'), pw.hash('bar'), (a, b) =>
t.ok(... |
$(document).ready(function(){
$("#Real1").click(function(){
$("#Real1").css("display","none");
$("#Real2").css("fill", "pink");
$("#expl1").css("display", "block");
$('#header').css("height", "8vh");
$("#Real2").click(function(){
$("#Real2").css("display","none");
$("#Real3").css("fill", "red");
$(... |
import { useState, useEffect } from 'react';
import { Form, Button } from 'react-bootstrap';
import { RecipeConsumer } from '../../providers/RecipeProvider';
import { withRouter } from 'react-router-dom';
import { Fragment } from 'react';
const RecipeForm = ({ addRecipe, id, title, description, serving, updateRecipe, ... |
/* Declare a first name, a last name, an age and a variable that is 16.
Your program should compare the driver's age with the driving age.
If they are old enough to drive it should console log the first name and last name
*/
const firstName = 'Taylor';
const lastName = 'Sommers';
let driverAge = 27;
const legalDriveAg... |
/*
* C.Geo.Feature.Circle //TODO description
*/
'use strict';
/**
* Creates a georeferenced Circle
*
* @class Circle
* @namespace C
* @extends C.Feature
* @constructor
* @param {Object} options Data
* @param {C.Point} options.location Coordinates.
* @param {Number} [options.radius] Radius in pixel.
* @pa... |
import { DRAW_X, DRAW_O } from '../helpers/actionTypes'
const initialState = [
null, null, null,
null, null, null,
null, null, null,
]
export function boardReducer(state = initialState, action) {
switch (action.type) {
case DRAW_X:
const newXState = [...state]
newXState[action.cellIndex] = 'X'... |
'use strict';
/**
* logic
* @param {} []
* @return {} []
*/
export default class extends think.logic.base {
/**
* index action logic
* @return {} []
*/
limitAction() {
if (!this.isGet()) {
return this.fail(233, '只允许GET请求');
}
let page = this.get('p... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Button } from './styled'
class SectionSwitcher extends Component {
static propTypes = {
onClick: PropTypes.func,
isActive: PropTypes.bool,
}
state = {
isHovered: false,
}
render() {
const { isActive } = thi... |
'use strict';
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 ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
import axios from "axios";
import {userService} from '../services/user.service';
const API_URL = process.env.REACT_APP_API_URL;
export const competenceService = {
save,
};
function save(title, cv_id){
const token = userService.isUserLogged().api_token;
var formData = new FormData();
formData.append("t... |
/**
* Created by Administrator on 2015/4/26.
*/
var ArrayDelDuplication = function(arr){
var res = [];
var json = {};
for(var i = 0; i < arr.length; i++){
if(!json[arr[i]]){
res.push(arr[i]);
json[arr[i]] = 1;
}
}
return res;
};
var ArrayDelValue=function(ar... |
'use strict';
const BN = require('bn.js')
const jayson = require('jayson');
var queuedMiningSolutions = [];
module.exports = {
init(poolUrl, minerAddress, customDiff, maxTarget, resetCallback, incrementCallback, logCallback) {
this.pool = poolUrl;
this.address = minerAddress;
this.customd... |
import React from 'react';
import { createAppContainer } from 'react-navigation';
import Home from '../pages/home/index';
import TipoReceitas from '../pages/tipoReceitas/index';
import Receitas from '../pages/receitas/index/index';
import AddReceita from '../pages/receitas/addReceita/addReceita';
import { createDrawer... |
import React from 'react'
function LoginPasswordLost() {
return (
<div>
<h1>Password lost</h1>
</div>
)
}
export default LoginPasswordLost
|
import React from 'react';
export class TimeTables extends React.Component {
constructor(props) {
super(props);
this.state = {
Stop_Code: this.props.TimeTables.Stop_Code,
day: 'weekday',
line_Code: this.props.TimeTables.line_Code,
Stop_Time: this.props.TimeTables.Stop_Code,
list: this.props... |
/**
* Created by jorten on 16/9/6.
*/
(function($) {
var $pages = $('.pages');
var $pageArr = $pages.find('.page'),
pageCount = $pageArr.length,
curPage = 0;
var pageWidth = window.innerWidth,
pageHeight = window.innerHeight,
startX = 0,
startY = 0,
moveX = ... |
const UserController = require('../controllers/user.controller');
const { permit } = require('../middleware/permission');
const { validate } = require('../middleware/validation');
const { check } = require('express-validator/check');
module.exports = (router, passport) => {
router.get('/user', passport.authenticate('... |
import { useEffect, useRef } from "react";
import "./assets/css/App.css";
const mosaicColors = [
"rgb(249, 143, 250)",
"rgb(143, 250, 209)",
"rgb(143, 198, 250)",
"rgb(214, 250, 143)",
"rgb(249, 177, 105)",
];
const Words = (props, state) => {
const mosaicRef = useRef();
useEffect(() => {
if (mosai... |
define([
'apps/system2/docmgr/docmgr'], function (app) {
app.module.factory("docmgrService", function ($rootScope, Restangular, stdApiUrl, stdApiVersion) {
var restSrv = Restangular.withConfig(function (configSetter) {
configSetter.setBaseUrl(stdApiUrl + stdApiVersion);
})
r... |
import Vue from 'vue'
Vue.filter("status", function(status) {
if (status || status == 1) {
return '启用'
} else {
return '禁用'
}
})
|
import './App.css';
import Forms from './Container/Forms/Forms';
import MemeBox from './Container/Memes/Memes';
import {Redirect, Route,Switch} from 'react-router-dom';
import NotFound from './Container/UI/NotFound/NotFound'
function App() {
return (
<div className="App">
{/* <Forms />
<MemeBox... |
'use strict';
const sequelizePaginate = require('sequelize-paginate');
module.exports = (sequelize, DataTypes) => {
const Member = sequelize.define('Member', {
firstName: {
type: DataTypes.STRING,
allowNull: {
args: false,
msg: "First name must be provided"
},
validate: {
... |
/**
* 首页/促销管理/会员卡详情
*/
import React, { Component, PureComponent } from 'react';
import {
StyleSheet,
Dimensions,
View,
Text,
Button,
Image,
ScrollView,
TouchableOpacity
} from 'react-native';
import { connect } from 'rn-dva';
import math from '../../config/math.js';
import Header ... |
var Game = function() {
this.pickedSquare = [];
}; |
import Swal from 'sweetalert2';
import { getAllMovies } from './GetAllMovies';
// import jwt_decode from 'jwt-decode';
const DELETE_MOVIE = 'DELETE_MOVIE';
const delMovie = (payload) => {
return { type: DELETE_MOVIE, payload };
};
const deleteMovie = (id) => async (dispatch) => {
const token = JSON.parse(lo... |
/**
* @param {string} s
* @return {boolean}
*/
var checkRecord = function(s) {
if (s.length === 1) return true;
var aCount = 0, lCount = 0;
if (s[0] === "A") aCount++;
for (var i = 1; i < s.length; i++) {
if (s[i] === "A") {
aCount++;
}
if (s[i] === "L" && s[i-1] === "L" && s[i+1] === "L") ... |
import Ember from 'ember';
const { Component, $, computed } = Ember;
export default Component.extend({
weekdays: Ember.String.w("Mon Tue Wed Thu Fr"),
property: null,
required: false, //passed in
valueChosen: computed('property', function(){
return this.get('property');
}),
valid: true,
actions: {
... |
/**
* Created by amoroz-prom on 16.11.14.
*/
$(function(){
$.ionTabs("#tabs_1");
}); |
// Elementos
const red = document.getElementById('red');
const green = document.getElementById('green');
const blue = document.getElementById('blue');
const alpha = document.getElementById('alpha');
const red_txt = document.getElementById('red_text');
const green_txt = document.getElementById('green_text');
const blue... |
import { createSlice } from '@reduxjs/toolkit';
import { toast } from 'react-toastify';
import { getLocalStorage, setLocalStorage } from '../../utils/localstorage';
const initialState = {
cart_products: []
}
export const cartSlice = createSlice({
name: 'cart',
initialState,
reducers: {
add_cart_product: (... |
import React, { Component } from "react";
import { withFormik } from "formik";
import { string, object, ref } from "yup";
import ConfirmPasswordReset from "../../components/auth/ConfirmPasswordReset";
import { PASSWORDRESETCONFIRM_SUCCESS_MESSAGE } from "../../constants";
import { passwordResetConfirm } from "../../ap... |
import React from 'react';
import User from '../usercomponent/user'
import Slider from '../carouselcomponent/carousel'
import CommentForm from '../forms/formMessage'
import Message from '../message'
import { connect } from 'react-redux';
class UserPage extends React.Component {
constructor(props) {
super(... |
Ext.ux.userGridSelector = Ext.extend(Ext.grid.GridPanel, {
stateful: false,
useCheckbox: false,
personSelected: [],
getStore: function()
{
return this.store;
},
removeAll: function()
{
this.store.removeAll();
},
getCount: function()
{
return this.st... |
(function() {
var Async, Context, Message, find, getIds, log, send;
Async = require('async');
Context = require('cntxt');
log = require('../log');
Message = require('../models').Message;
find = function(context) {
log.info('findUnsent');
return Message.findUnsent(context.wrap('messages'));
};... |
// const setName = function () {
// var firstName = "Jen"
// }
// setName()
// console.log(firstName)
age = 10
console.log(age)
var age
|
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Tooltip } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faInfoCircle, faTrash } from '@fortawesome/free-solid-svg-icons';
import { openIssueDetai... |
var http = require('http');
//Node function called each time a new HTTPrequest arrives
function onRequest(req,res) {
res.writeHead(200,{'Content-Type':'text/plain'});
res.end('Hello '+ req.connection.remoteAddress +'!');
/*WritetheIPaddressesofourconnectingclienttoconsole*/
console.log('Incoming connection from '+r... |
import React, {Component} from 'react'
import {TextInput} from 'react-native'
import styled from 'styled-components/primitives'
const StyledInput = styled.View`
border-radius: 10;
width: 100%;
`
class Input extends Component {
render() {
return (
<StyledInput>
<TextInput {...this.props} />
... |
/* globals React */
'use strict';
var ProductsIndex = React.createClass({
getInitialState: function () {
return {
data: this.props.data,
page: 1,
limit: this.props.limit,
};
},
render: function () {
var rows = [];
var i_0 = (this.state.page - 1) * this.state.limit;
var i_f =... |
var columns = {
columnA: [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34],
columnB: [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35],
columnC: [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36]
}
var dozens = {
firstDoz: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
middleDoz: [13, 14, 15, 16, 17, 18, 19, 20, 21, ... |
const { writeFile } = require('fs')
const { get } = require('axios')
const { prompt } = require('inquirer')
prompt([
{
type: 'input',
name: 'title',
message: 'Enter the title of a movie:'
}
])
.then(({ title }) => {
get(`http://www.omdbapi.com/?apikey=trilogy&t=${title}`)
.then(({ data: mov... |
import { Button, IconButton, Tooltip } from "@material-ui/core";
import HomeIcon from "@material-ui/icons/Home";
import KeyboardBackspaceOutlinedIcon from "@material-ui/icons/KeyboardBackspaceOutlined";
import SearchIcon from "@material-ui/icons/Search";
import { motion } from "framer-motion";
import moment from "momen... |
import React from 'react'
export default class MenuButton extends React.Component {
render() {
return (
<button className="menu__button"><i>Menu</i></button>
)
}
}
|
$(document).ready(function(){
$("a").mouseenter(function(){
$(".letra, .logo").animate({
opacity: 1,}, 1000);
});
$("a").mouseleave(function(){
$(".letra").animate({
opacity: 0,}, 1000);
$(".logo").animate({
opacity: .5,}, 1000);
});
});
|
/*
* Programming Quiz: Inline Functions
* Udacity Copyright
Directions:
Call the emotions() function so that it prints the output you see below,
but instead of passing the laugh() function as an argument, pass an inline function expression instead.
emotions("happy", laugh(2)); // you can use your laugh function... |
export const DISPLAY_BULK_ACTION = "DISPLAY_BULK_ACTION";
export function displayBulkAction(data) {
return {
type: DISPLAY_BULK_ACTION,
payload: data
}
} |
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
const orderInfo = [
{
"appBundleId": "monitor.hider",
"createTime": 1548564911000,
"finishTime": 1548564921000,
"memberId": 14239,
"orderId": 23592,
"orderStatus": 200,
"payCha... |
import React, { Component } from "react";
import store from "./store";
import { isAdmin } from "@firebase/util";
import { Route, Redirect } from "react-router-dom";
import { Container } from "reactstrap";
const Authorization = WrappedComponent => {
return class WithAuthorization extends React.Component {
constru... |
/*
Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about)
Dual licensed under the MIT or LGPL Version 2 licenses.
*/
OMEDITOR.plugins.add( 'menubutton',
{
requires : [ 'button', 'menu' ],
beforeInit : function( editor )
{
editor.ui.addHandler( OMEDITOR.UI_MENUBUTTON, OMEDITOR.ui.menuButton.handler );
}
})... |
import Vue from "vue";
import restaurant from "./restaurant";
import addrestaurant from "./addRestaurant";
import pager from "./pager";
//Composant restaurants, contient les différents restaurants
//import restaurant from "./restaurant";
//instance de vue principale
new Vue({
// return new Vue({
el: "#main",
c... |
var model = require('../models');
let jwt = require('jsonwebtoken');
module.exports={
create:function(req,res){
let token=req.headers.token;
jwt.verify(token, 'rahasia', function(err, decoded) {
if (err) {
res.send(err);
} else {
model.Question.create({
title:req.... |
/**
* husen you no JavaScript //
*/
var isMouseDown = false;
var offsetX, offsetY;
var cont;
var husenCount = 1;
//var endpoint = "http://localhost:8080/facitter/api";
var isAllMax = 0;
//本番環境用
var endpoint = 'https://team2017-2.spiral.cloud/facitter/api';
/*
* websocket.jsに移動
window.onload = functi... |
import './App.css';
import {BrowserRouter as Router, Switch, Route} from 'react-router-dom'
import Navbar from './components/Navbar';
import HomeView from './views/HomeView';
import CartView from './views/CartView';
import ProductView from './views/ProductView';
import Backdrop from './components/Backdrop';
import Side... |
export const LIGHT = 'LIGHT'
export const DARK = 'DARK'
export const SHOW_SNACKBAR = 'SHOW_SNACKBAR'
export const DISMISS_SNACKBAR = 'DISMISS_SNACKBAR'
export const ENABLE_AUTHENTICATION = 'ENABLE_AUTHENTICATION'
export const DISABLE_AUTHENTICATION = 'DISABLE_AUTHENTICATION'
export const SHOW_MESSAGE = 'SHOW_MESSAGE'
e... |
var x0 = 150, y0 = 150;
var x = 0;
var y = null;
var r = 0;
jQuery(document).ready(function(){
// check R --------------------------------------------------------------------------
document.getElementById("form1:valueR")
.addEventListener("change", function (ev) {
var test_R = document.... |
window.onload=function () {
isHavePhone();
isUserName();
$("#changePassword").click(function(){
var siteId=$("#siteId").val();
window.location.href=ctx+"/weChatPublicNum/goToChangeNum?userName="+$("#username").val()+"&openId=noopenid&siteId="+siteId;
});
$("#changeName").click(function(){
window.location... |
import React, { Component } from 'react'
import promiseFile from '../../funStore/promiseFile'
import AuthProvider from '../../funStore/AuthProvider'
import promiseXHR from '../../funStore/ServerFun'
import FaceForQQ from './FaceForQQ'
import $ from 'jquery'
import GroupSendBox from './GroupSendBox'
import AltMemberBox ... |
import { IoTrashOutline } from "react-icons/io5";
import { BsStarFill, BsStarHalf } from "react-icons/bs";
import { useNominations } from "../context/NominationsContext";
export default function MovieCard({ movie }) {
const movieGenres = movie.Genre.split(",");
let rating = parseFloat(movie.imdbRating);
let sta... |
//供應商訂單查詢
Ext.Loader.setConfig({ enabled: true });
var info_type = "order_master1";
var secret_info = "order_id;order_name";
Ext.Loader.setPath('Ext.ux', '/Scripts/Ext4.0/ux');
Ext.require([
'Ext.form.Panel',
'Ext.ux.form.MultiSelect',
'Ext.ux.form.ItemSelector'
]);
var pageSize = 22;
//聲明grid
Ext.define('... |
document.write("<table border=\"1\">");
for(i=1;i<=9;i++){
document.write("<tr>");
for(j=1;j<=9;j++){
if(j<=i){
document.write("<td>"+i+"*"+j+"="+i*j+"</td>");
}
else{
document.write("<td> </td>");
}
}
}
document.write("</table>");
//****************
document.write("<... |
var app = angular.module('mobex', ['ngRoute', 'ngResource', 'angularFileUpload', 'ui.bootstrap', 'ui.bootstrap.tpls']);
app.config(function ($routeProvider, $locationProvider, $compileProvider) {
// need to add this so angular does not add 'unsafe' to the download url for the backup
$compileProvider.aHref... |
var searchData=
[
['idle_79',['IDLE',['../da/d48/class_mouth_controller.html#a8c012c85d17ee71d6e3ffdc8f124eb07',1,'MouthController']]]
];
|
// ================================================================================
//
// Copyright: M.Nelson - technische Informatik
// Die Software darf unter den Bedingungen
// der APGL ( Affero Gnu Public Licence ) genutzt werden
//
// weblet: dbadmin/table/check
// ===========... |
// Disclaimer: I solved part 2 by running part 1 and waiting for 2+ hours
var players = 468;
var highestMarble = 71843 * 100;
var marbles = [0];
var currentMarbleIndex = 0;
var playerScores = {};
var currentPlayer = 0;
var incrementClockwise = (array, curPos, increment) => (curPos + increment) % array.length;
var de... |
// import Typography from "typography"
// import noriega from "typography-theme-noriega"
// noriega.baseFontSize="16px";
// noriega.baseLineHeight= 1.5;
// const typography = new Typography(noriega)
// export const { scale, rhythm, options } = typography
// export default typography
// 暂时关闭, typography排版插件有可能会造成cssRule... |
import distinct from '../signals/processes/distinct'
import pipe from '../signals/pipe'
import position from './position'
import throttle from '../signals/processes/throttle'
export default pipe(
throttle(300),
position,
distinct
)
|
const fs = require('fs');
const path = require('path');
const Currency = require('@pascalcoin-sbx/common').Types.Currency;
const OperationHash = require('@pascalcoin-sbx/common').Types.OperationHash;
const OperationHashCoder = require('@pascalcoin-sbx/common').Coding.Pascal.OperationHash;
const AccountNumber = require(... |
helloWorld().then(function (result) {
document.getElementById('hw').innerHTML = result;
})
function helloWorld() {
return Q.all([
getUrl('https://cdn.gfkdaphne.com/tests/async.php?a=1'),
getUrl('https://cdn.gfkdaphne.com/tests/async.php?a=2')
]).then(function (result) {
return resu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.