text
stringlengths
7
3.69M
import AppCore from 'comptechsoft-app-starter' export default { methods: { init() { this.dt = new AppCore.DatatableManager('dt-teams', this.model, this) this.dt.addFilter('company_id', { value: this.company.id, where: 'teams....
import React, { Component } from 'react'; import Intro from './Intro' class Intros extends Component { state = { intros:[{background:'firstIntro', title:'Who are We?', intro:'Ever since its inception in 2015, with a commitment to deliver value-based technology consulting ...
import React from "react"; import { Flex, Button, FormControl, FormLabel, Input, Heading, Image, Text, Spinner, useMediaQuery, } from "@chakra-ui/react"; import { useHistory } from "react-router-dom"; import { Link } from "react-router-dom"; import { FontAwesomeIcon } from "@fortawesome/react-fontaw...
import React from 'react'; import {Text, StyleSheet, View, FlatList} from 'react-native'; const ListScreen = () => { const friends = [ {name: "Friend #1", key: "01", age: "20"}, {name: "Friend #2", key: "02", age: "35"}, {name: "Friend #3", key: "03", age: "18"}, {name: "Friend #4",...
/* --------------------------- INTUIT CONFIDENTIAL --------------------------- overview.js Written by Date Jason Harris 10/19/09 Revised by Date Summary of changes Lane Roathe 06/22/10 [DE1411] check window.viewController usage to fix deferred printing (Some reports do not have a viewController or...
import React ,{Component} from 'react'; import { queryApi } from "../../../utils/queryApi"; import { useApi } from "../../../hooks/useApi"; import { Link } from "react-router-dom"; import Header from'../Header'; export default function Learn({match}) { const id = match.params.id; const [courses, err, reload] = ...
export class CSS { constructor (name = undefined) { this.name = name; } get vars () { let prefix = ''; const { name } = this; if (name) { prefix = `${name}-`; } return Object.entries(this).reduce((res, [key, t]) => { if (key === 'name' || key === 'cssVars' || key === 'templat...
import GlobalStyle from "../GlobalStyle"; import { library } from "@fortawesome/fontawesome-svg-core"; import { fab } from "@fortawesome/free-brands-svg-icons"; import styled from "styled-components"; import Meta from "./Meta"; //import Header from './Header'; //import Footer from './Footer'; library.add(fab); const ...
jQuery("#simulation") .on("click", ".s-d12245cc-1680-458d-89dd-4f0d7fb22724 .click", function(event, data) { var jEvent, jFirer, cases; if(data === undefined) { data = event; } jEvent = jimEvent(event); jFirer = jEvent.getEventFirer(); if(jFirer.is("#s-Panel_1")) { cases = [ { ...
import React from 'react' import Image from '../assets/img/doguito404.svg'; import '../assets/css/404.css'; const NotFound = () => { return ( <main className="container flex flex--center flex--column"> <img src={Image} alt="" className="doguito-imagem"/> <p className="naoencontrado...
({ getSuggestedUnits : function(component, event, helper) { var unit = component.get("c.getUnitRecords"); unit.setParams({ leadID : component.get("v.recordId") }); unit.setCallback(this, function(response){ var state = response.getState(); if (state === "SU...
import React, { useEffect, useState } from "react"; import { useSelector, useDispatch } from "react-redux"; import { editUser } from "../action/authAction"; import { useHistory } from "react-router-dom"; const Admin = () => { const history = useHistory(); const dispatch = useDispatch(); const user = useSelector((...
const {Op} = require('sequelize'); const Notice = require('../entity/Notices'); const Author = require('../entity/Author'); const AuthorRepository = require('../repository/AuthorRepository'); async function insertNotice(req) { let authorId = await AuthorRepository.insertAuthor(req.authorName) await Notice.crea...
'use strict'; (function () { window.initializeScale = function (scale, data, callBack) { var buttonDec = document.querySelector('.upload-resize-controls-button-dec'); var buttonInc = document.querySelector('.upload-resize-controls-button-inc'); function onClickResize(evt) { if (evt.target === butto...
import {StyleSheet} from 'react-native'; const styles = StyleSheet.create ({ headerContainer: { padding: 25, backgroundColor: '#5784BA', borderBottomStartRadius: 20, borderBottomEndRadius: 20, paddingBottom: 35 }, headerName: { fontFamily: 'Kanit-Medium', ...
//getRoom(id) //addRoom(id, type, key, admin) //removeRoom(id) class Rooms{ constructor(){ this.rooms = []; } addRoom(id, type, key, admin, activeUser){ var room = {id, type, key, admin, activeUser}; this.rooms.push(room); return room; } getRoom(id){ return this.rooms.filter((room)=> r...
import React from "react"; import { Consumer } from "../../context"; const RightArrow = () => { let n = 12; const goForward = dispatch => { n++; dispatch({ type: "GO_FORWARD", payload: n }); }; return ( <Consumer> {value => { const { dispatch } = value; return ( <div className="panel-right" ...
class Element { constructor(type, props, children) { this.type = type this.props = props this.children = children } } function createElement(type, props, children) { return new Element(type, props, children) } // 设置属性 function setAttr(dom, key, value) { switch (key) { case 'value': // dom是一个in...
/** * Created with JetBrains WebStorm. * User: ty * Date: 14-5-21 * Time: 上午9:07 * To change this template use File | Settings | File Templates. */ /** * Created with JetBrains WebStorm. * User: ty * Date: 14-2-22 * Time: 上午9:43 * To change this template use File | Settings | File Templates. */ var chargeMg...
var searchData= [ ['values_2eh_46',['values.h',['../values_8h.html',1,'']]], ['visualisation_5fmode_47',['visualisation_mode',['../_main_8c.html#a2dec2fc8ae5940a371ea303bd698b071',1,'visualisation_mode():&#160;Main.c'],['../values_8h.html#a2dec2fc8ae5940a371ea303bd698b071',1,'visualisation_mode():&#160;Main.c']]], ...
import React,{Component} from 'react' import { Route, Switch, NavLink } from "react-router-dom"; import * as api from '../../config/api.js' import { Tabs,Pagination, DatePicker,Modal ,Button,Icon,Popover} from 'antd' import Information from '../../common/model/index' import ConfirmedPopup from '../../common/model/quer...
module.exports = { GetAllCategories: require("./GetAllCategories"), CreateCategory: require("./CreateCategory"), GetCategory: require("./GetCategory"), UpdateCategory: require("./UpdateCategory"), DeleteCategory: require("./DeleteCategory"), OrderCategory: require("./OrderCategory") };
// Load plugins var gulp = require( 'gulp' ), changed = require( 'gulp-changed' ), chmod = require( 'gulp-chmod' ), imagemin = require( 'gulp-imagemin' ), notify = require( 'gulp-notify' ), plumber = require( 'gulp-plumber' ), // Load config file config = require( '../gulp-tasks/config' ).images, size...
class TerreScene { constructor() { this.scene = new THREE.Scene(); this.actif = true; this.camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.5, 4000); this.name = "Terre"; this.IsDefine = false; } DefineScene() { this.scene.ba...
import h, { render } from '@kuba/h' import router from '@kuba/router' router('/login', async function logIn () { const { default: LogIn } = await import('./auth' /* webpackChunkName: "logIn" */) render(document.body, <LogIn />) })
var config = { username: process.env.BOT_USERNAME, /* Be sure to update the .env file with your API keys. See how to get them: https://botwiki.org/tutorials/how-to-create-a-twitter-app */ consumer_key: process.env.TWITTER_CONSUMER_KEY, consumer_secret: process.env.TWITTER_CONSUMER_SECRET, ...
// Adapted from https://gist.github.com/electricg/4372563 // global variables let startTime = 0; let lapTime = 0; let timer = 0; const clockElement = document.querySelector('.clock'); function formatTime(time) { // Define many variables in one line! let h = m = s = ms = 0; let newTime = ''; h = Math.floor( tim...
const day = "25-04-2018"; module.exports = { day, intervals: [ { begin: "08:00", end: "09:00", sessions: [require("../breakfasts")[day][0]], }, { begin: "09:00", end: "10:00", sessions: [require("../presentations/ken-wheeler")], }, { begin: "10:00", ...
// import * as home from './home' // import * as message from './message' // import * as messageUI from './messageUI' // import * as topic from './topic' // import * as topicUI from './topicUI' // import * as user from './user' // import * as userUI from './userUI' // import * as utils from './utils' // import { combin...
const shuffle = module.exports = list => { let r, t for (let i = list.length - 1; i >= 0; i--) { r = Math.floor(Math.random() * (i + 1)) // 在 i 的基础上 +1,是因为 random() 包含下限0不含上限1 t = list[i] list[i] = list[r] list[r] = t // console.log(`i=${i}, r=${r}`) // console.l...
// map 在 lodash 和 lodash/fp 中也是不一样得 const _ = require('lodash') const fp = require('lodash/fp') console.log(_.map(['23', '8', '10'], parseInt)); // [ 23, NaN, 2 ] // 输出结果不是我们想要得原因分析 /* 迭代时,将三个参数传入 parseInt (value, index|key, array) 可是 parseInt 得参数得意义分别是:值,进制 parseInt ('23', 0, array) 0 表示 10 进制 parseInt ('8', 1, ar...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { listMonthly, updateMonthly, deleteExpense } from '../../api/remote'; import Input from '../common/Input'; export default class MonthlyBalance extends Component { constructor(props) { super(props); this.st...
import React, { Component, PropTypes } from 'react'; import DisqusThread from './DisqusThread'; import { Well } from 'react-bootstrap'; export default class Comments extends Component { static propTypes = { item: PropTypes.object } render() { const { item } = this.props; return ( <Well> ...
/* Copyright 2016 - $Date $ by PeopleWare n.v. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
import React from 'react' import {Box, Link, Flex,List, Text,Spacer} from '@chakra-ui/react' import SideBar from './SideBar' import MenuOptions from './Menu' const MainNavBar = () => { return ( <Box bg='red.300'color='white' py={3}> <List> <Flex> {/* <...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _server = require('./server'); var _server2 = _interopRequireDefault(_server); var _route = require('./route'); var _route2 = _interop...
import React from 'react'; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import { withRouter } from "react-router"; import { Layout, Icon, Button } from 'antd' import SiderMenu from './SiderMenu' import Routes from "./routes"; import { toggleSiderMenu } from "../modules/layout"; imp...
export { default as auth } from './auth' export { default as user } from './user' export { default as ticket } from './ticket' export { default as typeUser } from './typeUser'
var express = require('express'); // var pug = require ('pug'); var app = express(); var port = 3008; app.set('view engine', 'pug'); app.set('views', './'); var arr_ten = [ {id: 1, name: 'nhi'}, {id: 2, name: 'thương'}, {id: 3, name: 'gái'} ]; app.get('/', function(request, response) { response.send...
import React, {useEffect, useState} from "react"; import Layout from "../../components/layout/layout"; import {Container, Paper, Tab, Tabs} from "@material-ui/core"; import {makeStyles} from "@material-ui/styles"; import {useDispatch, useSelector} from "react-redux"; import {getOrders} from "../../redux/orders/order-ac...
// from data.js var tableData = data; // YOUR CODE HERE! // Using the UFO dataset provided in the form of an array of JavaScript objects, write code that appends a // table to your web page and then adds new rows of data for each UFO sighting. var table = d3.select('tbody') function tableCreate(data) { table.ht...
sap.ui.define([ "com/delfi/salesprocessing/controller/BaseController" ], function (BaseController) { "use strict"; return BaseController.extend("com.delfi.salesprocessing.controller.StockUpdate", { onInit: function () { var oThisController = this; // oThisController.fnInitializeView(); oThisController.g...
const parser = require('@typescript-eslint/parser'); module.exports = { * extractRegexesFromSource(content, filename) { // options https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/types/src/parser-options.ts const tree = parser.parse(content, { ecmaFeatures: {...
import React from "react" import styled from "styled-components" import Img from "gatsby-image" const Container = styled.div` padding: 3rem; border-radius: 10px; height: 100%; background-color: rgba(19, 20, 24, 0.75); display: flex; flex-direction: column; align-items: center; position: relative; ove...
var audio = document.getElementById("my_audio"); var song_list = [] var no = -1; var list = document.getElementById("song_list"); var table = document.getElementById("my_order"); function main() { audio.addEventListener("ended", function() { next_song(); }); init_song_list(); make_list(); song_list =...
// Filename: views/bound-view define([ 'jquery', 'underscore', 'backbone', 'rivets', 'marionette', 'views/bound-view', 'adapters', 'formatters' ], function($, _, Backbone, rivets, Marionette, BoundView){ var BoundView = Marionette.LayoutView.extend({ binding: null, // used for rivets ...
function toDash(string) { return string.replace(/([A-Z])/g, function(char) { return "-" + char.toLowerCase(); }); } function stringify(object) { var array = Object.keys(object).map(function(cssAttribute) { if (typeof object[cssAttribute] === "object") { return ( toDash(cssAttribute) + " { "...
var chance = 2; var status = "Waiting..."; var fail = true; var falhas = 0; var resourceCount = 0; var isEnglish = true; function simulate() { // se já deu sucesso, não simula mais. if (!fail) { return; } const n1 = Math.floor((Math.random() * 100) + 1); const n2 = Math.floor...
angular.module('alert-me', []) /** * At start check if element is * in the document body */ .run(function($log, $document, $templateCache, AlertMe) { var mainTmpl = '<div class="notify-container {{posV}} {{posH}}">'+ '<ul class="notify-nav" >'+ '<alert-mess...
Template.thanksForShare.onCreated(function helloOnCreated() { // counter starts at 0 // alert('hello world'); this.counter = new ReactiveVar(0); document.body.style.backgroundColor = '#fff'; //document.body.style.color = ' #00827f !important'; });
seajs.use(["template"], function(a) { var f, g, h, i, j, k, b = !1, c = "http://misc.360buyimg.com/vip/skin/2013/i/tks.jpg", d = "http://misc.360buyimg.com/vip/skin/2013/i/e-i2.png"; ! function() { var h, i, b = $(".item .p-img a").children(), e = { list: [] }, ...
import React, { useContext } from 'react'; import { Button, Container, FormControl, FormHelperText, Grid, Input, InputLabel, makeStyles, TextField } from '@material-ui/core'; import { useState } from 'react'; import firebase from "firebase/app"; import "firebase/auth"; import firebaseConfig from '../../firebaseConfig';...
import { combineReducers } from "redux"; import { articleReducer } from "./slices/articleSlice"; import { boardReducer } from "./slices/boardSlice"; import { commentReducer } from "./slices/commentSlice"; import { codeReducer } from "./slices/codeSlice"; const rootReducer = combineReducers({ articleReducer, boardReduc...
import React from 'react'; import ReactDOM from 'react-dom'; import FileBase64 from 'react-file-base64'; class App extends React.Component { constructor() { super() this.state = { files: [] } } // Callback~ getFiles(files){ this.setState({ files: files }) } render() { return (...
/* * blz模块声明 */ ;(function(fn){ 'use strict'; /* jshint ignore:start */ if (typeof define === 'function' && define.amd) { define(['jQuery'],function () { return fn(window.Zepto||window.jQuery); }); } else if (typeof module !== 'undefined' && module.exports) { module.exports = fn(window.Zepto||window.jQ...
var latexit = "http://latex.codecogs.com/svg.latex?"; var arr; $(document).ready(function () { "use strict"; var variables = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var jsav = new JSAV("av"); var arrow = String.fromCharCode(8594), lastRow, // index of the last visible row (the empty row) ...
/* Description: Given a text, for example: const inputText = "Michael, how are you? - Cool, how is John Williamns and Michael Jordan? I don't know but Michael Johnson is fine. Michael do you still score points with LeBron James, Michael Green AKA Star and Michael Wood?"; get an array of last names of people named Mi...
export function reduceValueAction(state, action) { return { ...state, [action.id]: action.value }; } /* eslint func-names:0 */ export function valueReducer(actionType, initialState) { return function (state = initialState, action) { switch (action.type) { case actionType: return reduceV...
import Phaser from 'phaser'; import ScrollingBackground from './entityScrollingBackground'; import localScore from './localScore'; import api from './apiController'; import display from './domController'; class SceneMainMenu extends Phaser.Scene { constructor() { super({ key: 'SceneMainMenu' }); } preload()...
import React from 'react'; import { StyleSheet, TouchableHighlight, View, Text } from 'react-native'; import Icon from 'react-native-vector-icons/Entypo'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import ModalDropdown from 'react-native-modal-dropdown'; import { connect } from 'react-redux'; ...
'use strict' const dao = require('../model/dao'); const validation = require('../validation'); const github = require('../model/github'); const Promise = require('promise'); exports.addParticipateConfig = function(participateConfig){ validation.repository.checkParticipateConfig(participateConfig); return dao.partic...
var searchData= [ ['waitforclosing',['waitForClosing',['../classDCCTransfer.html#aeab6ad8d6c904dfdd559c4ae756e2dae',1,'DCCTransfer']]] ];
import Vue from 'vue' import VueRouter from 'vue-router' import CadastrarUsuario from '../views/Usuarios/Cadastrar.vue' import Postagens from '../views/Usuarios/Postagens.vue' import Login from '../views/Login.vue' import Home from '../views/Home.vue' Vue.use(VueRouter) const routes = [ { path: '/', ...
import React, { useContext } from "react"; import { ErrorContext } from "../../context/error/ErrorContext"; import { StyledError } from "./StyledError"; const Error = () => { const { errorMessage } = useContext(ErrorContext); return errorMessage !== null && <StyledError>{errorMessage}</StyledError>; }; export def...
const investorsController = require("./investors.controller"); const router = require("express").Router(); router.post("/login",investorsController.login); router.post("/change-password",investorsController.changePassword); router.post("/create",investorsController.create); router.post("/get",investorsController.get);...
$(document).ready(function() { "use strict"; var empty = []; empty.length = 10; var av = new JSAV("hashIntroCON"); // Create an array object under control of JSAV library var arr = av.ds.array(empty, {indexed: true}); av.umsg("We will demonstrate the simplest hash function, storing records in an array of ...
import React, { Component } from 'react'; import {View, Image, StyleSheet, Keyboard} from 'react-native'; import { Card, Text } from 'react-native-elements'; import propTypes from 'prop-types'; import constants from '../../constant'; /** * * @component * */ class QuestHeader extends Component { constructor(props)...
import homeRoutes from './Home' export default homeRoutes
/// <reference path="../References/_references.js" /> describe('function isNullOrWhiteSpace()', function () { 'use strict'; describe('returns \'true\' when', function () { it('input is undefined', function () { expect(einstein.isNullOrWhiteSpace(undefined)).toBeTruthy(); }); ...
Meteor.publish('edges', function() { return Edges.find(); }); Meteor.publish('nodes', function() { return Nodes.find(); }); Meteor.publish('comments', function() { return Comments.find(); }); // Meteor.publish('singleItem', function(id,type) { // var current = ""; // if( type == "node") { // ...
const express = require("express"); const morgan = require("morgan"); const helmet = require("helmet"); const jwt = require("express-jwt"); var jwtAuthz = require('express-jwt-authz'); const jwksRsa = require("jwks-rsa"); const { join } = require("path"); const authConfig = require("./auth_config.json"); var axios = r...
// Entypo.ttf', 'EvilIcons.ttf', 'Feather.ttf', 'FontAwesome.ttf', 'Foundation.ttf', 'Ionicons.ttf', 'MaterialCommunityIcons.ttf', // 'MaterialIcons.ttf', 'Octicons.ttf', 'SimpleLineIcons.ttf', 'Zocial.ttf' /** 配置 FONT 文件,方便导出 */ import EntypoIcon from 'react-native-vector-icons/Entypo'; import EvilIconsIcon from 'r...
var express = require('express'); var bodyParser = require('body-parser'); var port = process.env.PORT || 5000; var path = require('path'); // console.log(path.join(__dirname, 'views/index.html')); var app = express(); // Self instantiating constructor app.use(express.static(path.join(__dirname, 'public'))); app.us...
/** * Created by duyle on 4/1/17. */ $(document).ajaxStart(function () { $.LoadingOverlay("show"); }); $(document).ajaxComplete(function () { $.LoadingOverlay("hide"); }); function readURL(input) { var nimeType = input.files[0]['type']; if (nimeType.split('/')[0] == 'image') { if (input.files...
angular.module('sxroApp') .controller('UploadCtrl', ['$rootScope', '$scope', 'FileUploader', '$state', 'FilesFactory', 'users', 'utils', 'localStorageService', 'Upload', function($rootScope, $scope, FileUploader, $state, FilesFactory, users, utils, localStorageService, Upload) { $scope.uploader...
import { combineReducers } from 'redux' import docsReducer from './documents/reducer'; import procedureReducer from './procorgs/reducer'; import actorsReducer from './acteurs/reducer'; import procmetsReducer from './procmets/reducer'; import vueensReducer from './vueens/reducer'; import appReducer from './application/r...
(function(){ console.log('find2'); })();
var searchData= [ ['planarprojection',['PlanarProjection',['../classThreeDGraph__class.html#a38e1e26698241cdc5feb2337b061c997',1,'ThreeDGraph_class']]] ];
import React from 'react' import Select from 'react-select'; import { useQuery } from '@apollo/client'; import { QUERY_USER } from '../../utils/queries'; export default function DropDown({ tripsTitle = [] }) { const { data } = useQuery(QUERY_USER); const trips = data?.user.trips || []; console.log(data)...
import React from "react"; import { Navbar, Nav, NavDropdown } from "react-bootstrap"; import "./Navigation.css"; class Navigation extends React.Component { render() { if (window.location.pathname === '/') return null; return ( <Navbar collapseOnSelect expand="lg" fixed="top" bg="dark" variant="dark"> <N...
function showResult(data, id) { return { "jsonrpc": "2.0", "result": data || {}, "id": id || 1 }; } function showError(errorCode, id) { return { "jsonrpc": "2.0", "error": { "code": errorCode, "message": "error" }, "id": id || ...
import styled from 'styled-components' export const Container = styled.div` margin: 80px auto; display: block; width: 100%; @media screen and (min-width: 60em) { width: 941px; } ` export const Content = styled.div` display: flex; align-items: center; justify-content: space-between; padding: ${...
import styled from "styled-components"; export const StyledDiscordButton = styled.a` background: #6271c0; display: block; width: 100%; color: #fff; padding: 8px 15px; border-radius: 4px; border: none; font-size: 0.95rem; font-family: "Roboto Slab", serif; font-weight: 300; text-align: center; m...
const axios = require('axios'); const helpers = require('../helpers'); const Image = require('../../../database/models/image'); module.exports = { // selects the best fitting image out of an array of Spotify image results selectImage(imageArray) { const idealSize = 300; let bestImage; let bestScore; ...
//Retriving the Values for Both the Input Fields var x = document.getElementById("input1"); var input_2 = document.getElementById("input_2"); //Retrieving the Button Elements by Id btn_2 = document.getElementById("btn_2"); btn_1 = document.getElementById("btn_1"); btn_3 = document.getElementById("btn_3"); //disbling t...
import React from 'react'; import { Swiper, SwiperSlide } from "swiper/react"; import { Pagination } from "swiper"; const testimonial_contents = { subtitle: 'Testimonial', title: 'Customer', highlight_text: 'feedback', testimonial_data: [ { id: 1, ratings: [1, 2, 3, 4, 5], desc: 'Wow. Wha...
const contacts = require('../data/contacts'); const list = (req, res) => { res.json(contacts); }; const show = (req, res) => { let contact = contacts.find(item => item._id == req.params.id); if (contact) res.json(contact); else res.status(400).send(`There is no contact with id: ${req.params.id}`); }; c...
exports.do = function (url, path, datas, callback) { var options = { host: url, port: 80, path: '/resource?id=foo&bar=baz', method: 'POST' }; http.request(options, function(res) { //console.log('STATUS: ' + res.statusCode); //console.log('HEADERS: ' + JSON.stringify(res.headers))...
import './Site.scss'; import 'bootstrap'; import 'prismjs/components/prism-ruby'; import Site from './modules/site'; import Lazy from 'jquery-lazy'; (function( $ ) { console.log('Jquery version ' + $.fn.jquery); $(document).ready(function($) { Site.bootstrap(); }); })(jQuery);
export function getSongAudio(id) { return `https://music.163.com/song/media/outer/url?id=${id}.mp3` } /** [00:00.000] 作词 : 许嵩 [00:01.000] 作曲 : 许嵩 [00:22.240]天空好想下雨 [00:24.380]我好想住你隔壁 */ export function parseLyric(lyricStr) { const reg = /\[(\d{2}):(\d{2})\.(\d{3})\]/; const lines = lyricStr.split('\n'); const ...
//mode determine black list or whitelist mode //0 is black 1 is white var mode=0; //urls contain urls for each tab. var urls=new Object(); //blocking set contains url for current blocked origin var blocking=new Object(); //white contain white list origin if in white list mode var white=new Object(); init(); /*backgr...
export { default as UserController } from "../../../modules/user/controller"; export { default as BusController } from "../../../modules/bus/controller"; export { default as PassajeiroController } from "../../../modules/passajeiros/controller"; export { default as AvatarController } from "../../../modules/avatar/contro...
import React, { Component } from 'react'; import Navigator from './src/navigator'; import newsReducer from './src/store/news'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; const reducers = combineReducers({ news: new...
import request from 'request' export default function(msg){ request({ method: 'POST', uri: 'https://notify-api.line.me/api/notify', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, auth: { 'bearer': process.env.LINE_token }, ...
import React from 'react'; import {mount} from 'react-mounter'; // load Layout and Welcome React components import {Layout, Welcome} from './app.jsx'; import Home from './components/Home.jsx'; import Instructions from './components/Instructions.jsx'; import CardListContainer from './containers/CardListContainer.jsx'; i...
angular.module('app') .controller('ResetController', function ($scope) { $scope.hideConfirm = true; });
/** * Created by Lee on 1/29/2016. */ Ext.define('AdvUtils.view.main.image.ImageController', { extend: 'Ext.app.ViewController', alias: 'controller.image', requires: [ 'AdvUtils.view.main.image.ImageInfoWindow' ], /** * Called when the view is created */ init: function () {...
const assert = require('assert'); function Obj() { this.foo = function (x) { return x + 1; }; } const o = new Obj(); assert.equal(o['foo'](7), 8);
Charts.innerHTML=[ "<div id='chartObj_wrapper' style='background-color:white;'><div id='chartObj'></div></div>", NSB.HeaderBar_jqm14('chartsTitle', 'Charts', '', 'arrow-l', 'left', '', 'false', 'right', ' style="" class=" "'), ].join('');
const express = require("express"); const app = express(); const mongoose = require("mongoose"); const session = require("express-session"); const bodyParser = require("body-parser"); const bcrypt = require("bcrypt"); app.use(session({ secret: "swordfish", resave: false, saveUninitialized: true, cookie:...