text stringlengths 7 3.69M |
|---|
'use strict';
var app = angular.module('crawlscreenshotApp', ['ngRoute'])
// constant values for authentication service
.constant('AUTH_EVENTS', {
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
logoutSuccess: 'auth-logout-success',
sessionTimeout: 'auth-session-timeout',
notAuthe... |
import React, { Component } from 'react';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.min.css';
import ImageGallery from './components/ImageGallery/ImageGallery';
import Searchbar from './components/Searchbar/Searchbar';
import Modal from './components/Modal/Modal';
cla... |
'use strict'
const util = require('util')
const mongodb = require('mongodb')
const redis = require('redis')
const ErrorContainer = require('./error').ErrorContainer
const utils = require('./utils')
const jsonschema = require('jsonschema')
class Service
{
get name() { return utils.detectName(this, 'service') }
con... |
$(document).ready(function(){
$("#full_name").focusout(function(){
if($(this).val()==''){
$(this).css("border-color", "#FF0000");
$('#check_register').attr('disabled',true);
$("#error_name").text("* Vui lòng nhập họ tên!");
}
else
{
$(this... |
import React from 'react'
import { render } from '@testing-library/react'
import { toMatchDiffSnapshot } from 'snapshot-diff'
expect.extend({ toMatchDiffSnapshot })
import Status from '../Status'
describe('Status component',() => {
it('should render the active and inactive status without crashing',() => {
const { ... |
import apiService from '../services/api-service'
const FeedbacksApi = {
sendFeedback(feedback, email) {
const url = 'feedbacks'
const body = {
feedback,
email,
}
return apiService.post(url, body)
},
}
export default FeedbacksApi
|
// Audio helpers
import Assets from './assets';
let GameAudio = {};
GameAudio.play_sound = function(sound_alias, volume = 1.0) {
let sound = Assets.sound_get(sound_alias);
if(sound.is_ready) {
sound.volume = volume;
if(sound.paused === false) {
sound.pause();
sound.cur... |
require('dotenv/config') // DBox file: 01-PostgresAPI
const express = require('express')
const app = express()
const router = require('express').Router()
const bodyParser = require('body-parser')
const port = process.env.SERVER_PORT
const dbTaskMethods = require('./ExpressFiles/apiTasksMethods')
// ===[ Middleware... |
"use strict";
var https = require('https');
var parseString = require('xml2js').parseString;
var schedule = require('node-schedule');
module.exports = JumpsJob;
function JumpsJob(models) {
var model = models.jumps;
var job, self = this;
this.start = function () {
https.get('https://api.eveonline.... |
const puppeteer = require("puppeteer");
const getData = async (url) => {
try {
//Headless browser başlatma
const browser = await puppeteer.launch({
headless: true,
defaultViewport: null,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
});
const page = await browser.newPage(); //B... |
module.exports = {
development: {
client: 'mysql',
connection: {
database: 'tokenlab_db',
user: 'root',
password: '',
port: '3306'
},
migrations: {
tableName: 'knex_migrations',
directory: './src/db/migrations'
}
},
};
|
var ObjectSize = function (obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
}
function DFNode(id, key, innerHTML, nodeClass, rightNodesList) {
this.id = id,
this.key = key,
this.nodeClass = 'node';
if (nodeClass) this.nodeClass += ... |
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import util from './util/util';
import store from './store/store';
import i18n from './i18n';
import SocialSharing from 'vue-social-sharing'
// import VueImgOrientationChanger from 'vue-img-orientation-changer'
// import { AutoRotate } f... |
// Import Major Dependencies
import React, { Component } from 'react'
import { ethers } from 'ethers';
import { Input, Form, Button, Loader, Dropdown, Checkbox } from 'semantic-ui-react'
// Import CSS Files
import './stoporder.css'
const MAX_VAL = "115792089237316195423570985008687907853269984665640564039457584007913... |
// Projection
// ----------
// An abstract class / interface for projections
MM.Projection = function(zoom, transformation) {
if (!transformation) {
transformation = new MM.Transformation(1, 0, 0, 0, 1, 0);
}
this.zoom = zoom;
this.transformation = transforma... |
import React, {useContext} from 'react'
import EmployeeContext from './employee/EmployeeContext';
const Employeeitem = ({employee}) => {
const employeeContext=useContext(EmployeeContext);
const {deleteEmployee ,setCurrent, clearCurrent,updateEmployee} =employeeContext;
const {id,name,phone,email,designatio... |
import React,{Component} from 'react';
import {
Dimensions,
ListView,
ScrollView,
Image,
View,
StyleSheet,
Text,
Platform,
TouchableOpacity,
RefreshControl,
Animated,
Easing
} from 'react-native';
import { connect } from 'react-redux';
var {height, width} = Dimensions.ge... |
import path from 'path'
import express from 'express'
import session from 'express-session'
import connectMongo from 'connect-mongo'
import flash from 'connect-flash'
// import configFile from 'config-lite'
import router from './routes/index'
import pkg from './package'
import db from './mongodb/db.js'
import expressWs... |
import React from 'react'
import { View, Text, Image } from 'react-native'
export default function History(props) {
const { lists } = props
return (
<View>
<View>
<View style={{ flexDirection: 'row', justifyContent: "space-between", alignItems: "center" }}>
... |
import fatima from '../asset/images/TeamPhotos/teamFatima.jpg';
import marwa from '../asset/images/TeamPhotos/teamMarwa.jpg';
import somaia from '../asset/images/TeamPhotos/teamSomaia.jpg';
import dhiaa from '../asset/images/TeamPhotos/teamDhiaa.jpg';
import nuha from '../asset/images/TeamPhotos/teamNuha.jpg';
import m... |
const Post = require("../models/postModel");
const catchAsync = require("../utils/catchAsync");
const AppErrors = require("../utils/appErrors");
exports.createPost = catchAsync(async (req, res, next) => {
const { title, content } = req.body;
const url = req.protocol + "://" + req.get("host");
const filewithUrl =... |
var emotes = []
var params = window.location.search.slice(1)
var searchParams = new URLSearchParams(params)
var channel = searchParams.get("channel") || "rikitales"
var bg = searchParams.get("bg")
var solitaire = searchParams.get("solitaire")
var options = {
options: {
debug: false
},
connection: {
... |
const chai = require('chai');
const chaiHttp = require('chai-http');
const expect = chai.expect;
const server = require('./server');
chai.use(chaiHttp);
describe('tests all APIs', () => {
it('tests the data returned from the area API', (done) => {
chai.request(server)
.get('/areas')
.end((... |
import "../../../js/index";
import $ from "jquery";
import PartitialAjax from "django-partitialajax"
import setupCrud from "../../../js/crud";
$(function () {
PartitialAjax.initialize();
setupCrud(
PartitialAjax.getPartitialFromElement(document.getElementById("hostgroup-list-partitial")),
PartitialA... |
var puck = {
x: 300,
y: 200,
xSpeed: 3,
ySpeed: 1
}
var edgeOffset = 20;
var player1 = {
x: edgeOffset,
y: 200,
ht:50, //height of paddle
wt: 10
}
var player2 = {
x: 600 - edgeOffset - 10,
y: 200,
ht: 50,
wt: 10
}
function setup() {
createCanvas(600, 400);
}
function draw() {
back... |
"use strict";
var utils = require('./support/utils');
var Tag = require('./Tag');
var TemplateTag = require('./TemplateTag');
var TemplateVar = require('./TemplateVar');
var Filter = require('./Filter');
var Parser = require('./Parser');
var rethrow = utils.rethrow;
var append = utils.... |
$(document).ready(function () {
const amenityDict = {};
$('.amenities input:checkbox').on('change', function () {
$(this).each(function () {
const dataID = $(this).attr('data-id');
if (this.checked) {
// add Amenity ID to amenityDict
amenityDict[dataID] = $(this).attr('data-name');
... |
const fs = require('fs');
const csvjson = require('csvjson');
module.exports = {
loadExpectedTimes: function () {
return new Promise((resolve, reject) => {
fs.readFile('./data/expected_running_times.csv', 'utf-8', (err, data) => {
if (err) {
reject(err);
... |
import './HomePage.css';
import React, { Component } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import {
Container,
Row,
Col,
} from 'reactstrap';
export default class HomePage extends Component {
render() {
return (
<div className="home-page">
<... |
export default [
"Are you ready to reclaim the time and money to do more of what you love?"
];
|
import React, { useEffect } from "react";
import { connect } from "react-redux";
import Container from "react-bootstrap/Container";
import handleClientLoad from "./features/auth";
import NavBar from "./features/NavBar/NavBar";
import EmailsList from "./features/emails/EmailsList";
import MailModal from "./features/emai... |
import {h} from 'preact';
const telegram = ({size, fill}) => {
return (
<svg
fill={fill || '#2CA5E0'}
width={size || '32px'}
height={size || '32px'}
aria-labelledby="simpleicons-telegram-icon"
role="img"
xmlns="http://www.w3.org/2000/s... |
import { types } from "mobx-state-tree";
import makeInspectable from 'mobx-devtools-mst';
import { ApplyPluginsType } from 'umi';
import { plugin } from './core/umiExports';
const runtimeMobx = plugin.applyPlugins({
key: 'layout',
type: ApplyPluginsType.modify,
initialValue: {},
}) || {};
let config = { <%= Mobx... |
import React from 'react';
import {compose} from 'redux';
import {connect} from 'react-redux';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import {Helmet} from 'react-helmet';
import {Button, CircularProgress, InputAdornment, Paper, Typography, TextField} from '@material-ui/core';
import wi... |
const { EventHubClient, EventPosition } = require('azure-event-hubs');
var SerialPort = require('serialport');
var Readline = SerialPort.parsers.Readline;
var serialPort = new SerialPort('/dev/ttyACM0', {
baudRate: 9600
//parser: new SerialPort.parsers.readline("\r")
});
"use strict";
const process = requi... |
/* eslint-disable no-unused-vars */
export const color = {
negro: '#000000',
gris: '#666666',
blanco: '#FFFFFF',
rojo: '#FF0000'
};
/* eslint-enable no-unused-vars */
|
import React, { Component } from 'react';
import Surface from './Surface';
import PropTypes from 'prop-types';
class Room extends Component {
state = {
showContactInfo: false
};
// bellow function to toggle sort-down
onShowClick = e => {
this.setState({
showContactInfo: !this.state.showContactInf... |
import styled from 'styled-components';
import React, { useState } from 'react';
import {ReactComponent as CheckIcon} from '../assets/check.svg';
import Loader from "react-loader-spinner";
function TodayHabitItem({ habit, handleCheckHabit }) {
const { id, name, done, currentSequence, highestSequence } = habit;
... |
// import './js/test1'
// import './style/swiper.min'
// import './style/common_mobile'
// import './style/steps.min'
// import './style/bootstrap.min'
import './style/index.css'
/* import './js/zepto.min'
import './js/swiper.jquery.min'
import './js/h5_game_common'
import './js/index'
import './js/mock'
import './js... |
'use strict'
const QueueService = make('App/Services/QueueService')
class DemoController {
async enqueue ({ params, request, response }) {
// Name of the state function job, it helps to give this some kind of id
// that maps back to an id in your application, so you can trace and debug.
const name = req... |
// const btn = document.querySelector('#btnSubmit');
// btn.addEventListener('click', (event) => {
// // alert(validateForm('color'));
// validateForm();
// });
// function validateForm() {
// debugger;
// const form = document.getElementById('form');
// const email = form['email'].value;
// co... |
import { useState } from "react";
import data from "../data/section1";
const ChooseYourMs = () => {
const [cards] = useState(data);
return (
<section className="md:grid grid-cols-2 xl:grid-cols-6 my-8 xl:mx-20">
{cards.map((card) => {
const { id, text, image } = card;
return (
<... |
$(function(){
//初始化
function initModal(){
$('#docModal #docModalLabel').html("新增名医信息");
$('#docModal input[name="name"]').attr("disabled",false);
$('#docModal input[name="name"]').removeClass("wid");
$('#docModal input[name="accountId"]').val('');
... |
$(document).ready(function () {
$('body').on('click','button[data-target="#myModal2"]', function () {
var Sell_ID = $(this).data('id');
$(".modal-body #sellID").val(Sell_ID);
});
... |
import {createElementFromHTML} from "../html.js";
const template = `
<div class="container">
<div class="mb-3">
<label for="email" class="form-label">Email address</label>
<input type="email" class="form-control" id="email">
<label id="emailvalidate">test</label>
</div>
<div class="mb-3... |
console.log('last.js was rendered last');
|
import React, { useState, useEffect } from 'react';
import { useSelector } from 'react-redux';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Navigation from '../Navigation';
import { Row, Col } from 'antd';
import axios from 'axios';
import {
Link
} from... |
import React, { useState } from 'react'
import {
View,
Text,
StyleSheet,
ScrollView,
Animated,
TouchableOpacity,
Image,
} from 'react-native'
import SearchBar from '../components/SearchBar'
import useResults from '../hooks/useResults'
import ResultsList from '../components/ResultsList'
import... |
import React from 'react';
import { TrainSchedule } from 'containers';
import { Header, BackButton } from 'components';
const TrainSchedulePage = () => (
<div style={{ position: 'relative' }}>
<BackButton />
<Header text="Train Schedule" />
<TrainSchedule />
</div>
);
export default TrainSchedulePage;... |
import React from 'react';
import {Box, Grid} from '@material-ui/core/';
import './Footer.css';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
root: {
marginTop:'15px',
},
});
const Footer = () => {
const classes = useStyles();
return(
<div class... |
import React, { Fragment, useEffect } from 'react';
import { Grid, Button, Typography, Grow } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import { ipcRenderer } from 'electron';
import SeriesItem from './SeriesItem';
const useStyles = makeStyles((theme) => ... |
import React, {Component} from 'react';
import '../../css/clock/clock.css';
import $ from "jquery";
class Clock extends Component {
constructor(props){
super(props);
this.state = {
parentDiv:null,
dynamicChildDiv:null,
objectState:{}
}
}
CountdownTracker = async (label, value) => ... |
import Header from "./Header";
import Post from "./Post";
import CommentList from "./CommentList";
import CommentWrite from "./CommentWrite";
export { Header, Post, CommentList, CommentWrite } |
var map;
function initMap()
{
map = new google.maps.Map(document.getElementById('map'), {center: {lat: -34.763845, lng: 138.643993},
zoom: 15});
}
|
const express = require('express') //importando o express
const app = express()
app.use(express.json()) //Informando ao express que ele pode obter o body param como JSON
/* Metodos HTTP
GET - Buscar uma informação dentro do servidor
POST - Inserir uma informação no servidor
PUT - Alterar uma informação... |
import React from "react";
import { Button } from "react-bootstrap";
import Dialog from "./bootstrap-dialog/index";
export default class ConfirmDialog extends React.Component {
onClickOkCancel = () => {
this.dialog.show({
body: this.props.body,
actions: [
Dialog.CancelAction(),
Dialog... |
import React from 'react'
import styled from 'styled-components'
import dayjs from 'dayjs';
import weekOfYear from 'dayjs/plugin/weekOfYear';
import { animated, useSpring, config } from 'react-spring'
const Container = styled(animated.div)`
/* margin-right: auto; */
margin-left: 1rem;
align-self: flex-start;
overflow:... |
// **********************************************
// require
// **********************************************
const $ = require('./gulp/plugin')
const conf = require('./gulp/config')
const { bs } = require("./gulp/tasks/bs")
const { style } = require("./gulp/tasks/style")
const { html } = require("./gulp/tasks/html")
... |
const assert = require('chai').assert;
const getRandomHex = require('../src/helpers.js').getRandomHex;
const generateColor = require('../src/helpers.js').generateColor;
describe('getRandomHex()', function() {
for (let i = 0; i < 10; i++) {
it('should return random int between 0 and 255', function() {
... |
import { Container, AppBar, Typography, Grow, Grid, Box, Divider, Toolbar, Button} from '@material-ui/core';
import Styles from '../../styles';
import logo from '../../images/logo.png'
import logo2 from '../../images/image2.png';
import { Link } from 'react-router-dom';
const Navbar = () => {
const user = null;
... |
import config from './config.js'
class Base{
constructor(){
this.baseUrl=config.rootApi
}
axios(method,url,data){
return new Promise((resolve,reject)=>{
wx.request({
url: this.baseUrl + url,
method:method,
data:data,
success:(data)=>{
resolve(data.data)
... |
import styled from "@emotion/styled"
export const ProductItemWrapper = styled.li`
display: flex;
align-items: center;
border-radius: 3px;
border: 1px solid ${({ theme }) => theme.colors.greyLigth};
padding: 0.625rem;
margin-bottom: 1rem;
&:last-of-type {
margin-bottom: initial;
}
`
export const P... |
const bodyParser = require('body-parser');
const config = require('./config.js');
const db = require('./database.js');
const express = require('express');
const hbs = require('express-handlebars');
const PORT = process.argv[2] || 3612;
// CREATES TABLE IF IT DOESN'T EXIST, AND SEEDS DATABASE
db... |
import React, { useState } from 'react'
import { Tab, Nav} from 'react-bootstrap'
const CONVERSERATION_KEY = 'conversations'
const CONTACTS = 'contacts'
export default function Sidebar() {
const [activeKey, setActiveKey] = useState(CONVERSERATION_KEY);
return (
<div style={{width:'250px'}} className... |
/*global Connection */
var Collection = Phoenix.Collection = Thorax.Collection.extend({
sync: Connection.sync,
ajax: Connection.ajax,
parseModels: function(models, options) {
options = _.defaults(options || {}, {
parse: true
});
return _.map(models, function(model) {
return this._prepareMo... |
(function () {
"use strict";
class Game {
constructor(canvas, sounds) {
this.canvas = canvas;
this.sounds = sounds;
init.call(this);
}
start() {
this.timer = new Timer(Date.now());
this.renderer.setTimer(this.timer);
... |
var tetris = tetris || {};
tetris.model = (function(){
var currentShape = undefined;
getCurrentShape = function(){ return currentShape };
var gameInterval;
getGameInterval = function(){
return gameInterval;
};
setGameInterval = function( value ){
gameInterval = value;
};
var intervalSpeed = ... |
X.define("modules.supplier.supplierDisplay",["model.userModel","model.supplierModel","common.layer","data.addressData","model.companyModel"],function (userModel,supplierModel,layer1,address,companyModel) {
//初始化视图对象
var view = X.view.newOne({
el: $(".xbn-content"),
url: X.config.supplier.tpl.su... |
import React from 'react'
import cx from 'classnames'
import './styles.css';
function MonsterHealth({
health,
currentHealth,
flip,
children }) {
return <div className={cx('MonsterHealth', {'MonsterHealth--flip': flip})}>
<div className="MonsterHealth__bar" style={{
width: (Math.min(currentHealth/h... |
import styled from "styled-components";
export const Close = styled.a`
cursor: pointer;
top: 0.5rem;
left: 0.5rem;
padding: 0.5rem;
color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
position: fixed;
width: 3rem;
height: 3rem;
display: flex;
justify-content: center;
align-items: center;
fon... |
import React from 'react'
import { shallow } from 'enzyme'
import { AppContainer } from './AppContainer'
describe('AppContainer Component', () => {
it('should render', () => {
const component = shallow(<AppContainer />)
expect(component.find('.c-app-container').exists()).toBe(true)
})
it('should be able ... |
var a = 10;
document.write("Result:"+"<br>" + "The value of a : "+a+"<br>"+"<br>"+"............................."+"<br>"+"<br>")
++a;
document.write("The value of ++a is : " + a+"<br>")
document.write("The value of ++a is : " + a+"<br>"+"<br>"+"<br>")
document.write("The value of a++ is : " + a +"<br>")
a++;
document.w... |
if (Ext.data.Store) {
Ext.apply(Ext.data.Store.prototype, {
sortData : function(f, direction) {
direction = direction || 'ASC';
var st = this.fields.get(f).sortType;
var fn = function(r1, r2) {
var v1 = st(r1.data[f]), v2 = st(r2.data[f]);
if (typeof (v1) == "string")
return v1.localeCo... |
config({
'gallery/easydialog/index': {alias: ['gallery/easydialog/1.0/index']}
}); |
import React, {Component} from 'react';
import {withRouter} from 'react-router-dom';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import {ADMIN_PANEL_URI} from '../App/routes';
import {ADMIN_USERS_URI, USERS_URI} from './routes';
import {
openDeleteUserModal,
getUser,
closeDelet... |
var app = new Vue({
el: '#app',
data(){
return {
newProd: {
name: 0,
cal: 0,
fat: 0,
car: 0,
pro: 0
},
productList: [
{
name: 'Potato',
... |
/**
* Created by 任凡 on 2017/5/8.
*/
import Vue from 'vue'
import Vuex from 'vuex'
import authStore from './store/sys/authStore'
import menuStore from './store/sys/menuStore'
import enumStore from './store/sys/enumStore'
import permissionStore from './store/sys/permissionStore'
Vue.use(Vuex)
export default new Vuex.S... |
export { AuthPage } from './auth';
|
var mongoose = require('mongoose');
var Party = mongoose.model('Party');
var User = mongoose.model('User');
var Song = mongoose.model('Song');
module.exports = {
index: function(req, res) {
res.render('index');
},
getParties: function(req, res){
Party.find({}, function(err, parties){
if(err)
... |
import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { getImage } from '../../api/storage'
import { dateStringToDate } from '../../helpers/helpers';
class PostInfo extends Component {
constructor() {
super();
this.state = {
imageFile: null,
};
}
// ... |
import {
put, takeLatest, call, select,
} from 'redux-saga/effects';
import { getProfesores, getProfesor, saveComment } from '../../api';
export const getToken = ({ auth }) => auth.token;
function* doTraeProfesores() {
const token = yield select(getToken);
yield put({ type: 'GETPROFESORES_START' });
try {
... |
import React from "react";
import ReactDOM from "react-dom";
function Collapse(props) {
const [isCollapsed, setIsCollapsed] = React.useState(props.collapsed);
return (
<div>
<button
style={style.buttonStyle}
onClick={() => setIsCollapsed(!isCollapsed)}
>
{isCollapsed ? "Sho... |
const db = require('../pg-database/database.js');
module.exports = {
// Required input is a homeId and zipcode
// Returns a promise
getSimilarHomes: (homeId, state, zipcode) => {
const queryString = `SELECT homes.home_id, homes.beds, homes.title, homes.category, homes.stars, homes.reviewcount, homes.pricepe... |
'use strict';
const randomWords = require('random-words');
const myUtil = require('../util/util');
const mbHelper = require('../src/index');
const helloResponses = myUtil.returnResponsesForAllVerbs('hello');
// create the imposter
const firstImposter = new mbHelper.Imposter({ 'imposterPort' : 3000 });
function updat... |
$(function(){
$.mask.definitions['r']='[А-Яа-я]';
var mask = $("#cp_worktime_mask").val()
if (mask !== null) {
$("#elm_pickup_work_time").mask(mask);
}
}); |
import React from 'react';
import './all.css'
import axios from 'axios'
class Login extends React.Component{
state={
email:'',
password:'',
loggedin:false,
userdata:{
name:null,
email:null,
image:"https://static.thenounproject.com/png/17241-200.pn... |
export const typeOf = function(item) {
const _ts = Object.prototype.toString
if(_ts.call(item) === "[object Promise]"){
return "Promise"
}
if(_ts.call(item) === "[object Function]"){
return "Function"
}
if(_ts.call(item) === "[object Object]"){
return "Object"
}
if(_ts.call(item) === "[o... |
var name="grumpy"; |
import React, { useContext } from 'react';
import Header from '../commons/Header';
import UserContext from '../../context/UserContext';
import GameContext from '../../context/GameContext';
import SelfCard from '../PlayComponents/SelfCard';
import styled from 'styled-components/macro';
import CardTable from '../PlayComp... |
// cuon-matrix.js (c) 2012 kanda and matsuda
/**
* 4x4�行列を実装��クラス。
* OpenGLã?®è¡Œåˆ—スタックã?¨å?Œç‰ã?®æ©Ÿèƒ½ã‚’å‚™ã?ˆã?¦ã?„る。
* 変�後�行列��変�行列を��ら��る���計算�れる。
* 計算ã?—ã?Ÿçµ?æžœã?§ã€?行列ã?®å†…容ã?Œç½®ã??æ?›ã?ˆã‚‰ã‚Œã... |
(function() {
if (typeof TFE === "undefined") {
window.TFE = {};
}
var Game = TFE.Game = function() {
this.board = new TFE.Board();
};
Game.prototype.gridCopy = function() {
var copy = [];
for (var i = 0; i < this.board.grid.length; i++) {
copy.push([])
for (var j = 0; j < this.b... |
import React, { useState,useEffect } from "react";
import {useHistory} from 'react-router-dom'
import DatePicker from 'react-datepicker'
import axios from 'axios';
import "react-datepicker/dist/react-datepicker.css";
export default function EditsExercise(props) {
console.log("props in edit exercise: ", props);
con... |
document.getElementById('td1').style.background = 'red';
document.getElementById('td2').style.background = 'red';
document.getElementById('td3').style.background = 'red';
document.getElementById('td4').style.background = 'red';
function setColor(idEl) {
document.getElementById(idEl).style.background = 'rgb(' +
Ma... |
import React from 'react';
import {Field, Form, Formik} from "formik";
import {Alert, Button, Col, Row} from "reactstrap";
import {ReactstrapInput} from "reactstrap-formik";
import { getArabic, getRoman} from '../services/conversionsService';
function AlertHelper(color, message) {
const selectedColor = color ? "suc... |
export {StoreButton} from "./StoreButton" |
const { EventEmitter } = require('events');
class Emitter extends EventEmitter {
logger(message){
this.emit('logger', message.toUpperCase())
}
insertPerson(info) {
this.emit('insertPerson', info)
this.sendEmail(info.email)
}
sendEmail(email) {
this.emit('send-email', email)
}
}
module.expo... |
import styled from "styled-components"
export const Section = styled.div`
paddingbottom: "3vh";
`
export const Edit = styled.button`
background-color: orange;
border: 0;
border-radius: 10px;
margin-right: 5px;
@media (max-width: 500px) {
margin-bottom: 5px;
}
&:hover {
transition: transform... |
// Отдельные дефолтные классы
var gameField = document.getElementById("gameField");
var scoreText = document.getElementById("score");
var recordText = document.getElementById("record");
var gameOverText = document.getElementById("gameOverTextBox");
var gameOver = false;
var secretUsing = false;
var saveRecordBtn = do... |
(function(){
'use strict'
var URL = "https://pocfirepoly.firebaseio.com/comment-list";
Polymer({
is:"comment-list-item",
properties:{
img:String,
name:String,
comment:String,
date_time:String,
key:String
},
doDelete... |
import { promisify } from './util'
// 需要手动配置tabbar页面列表
const TABBAR_PAGES = ['index', 'friend', 'mine']
/**
* 页面跳转重载
* @param pageName String 必填,页面文件名称
* @param urlParams Json 页面参数
* @param close Boolean/String 跳转方式,true:关闭当前页再跳转;'all':关闭所有页面再跳转
*/
const navigateTo = (pageName, urlParams, close) => {
const objP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.