text
stringlengths
7
3.69M
import React, { useState, useEffect } from "react"; import styled from "styled-components"; import { node, bool } from "prop-types"; import { whiteBackground } from "../themes"; const HeaderContainer = styled.header``; const FakeHeader = styled.div` height: 106px; `; const Header = styled.div` position: fixed; t...
var cloud_names=["beta","zs1","zs2","zs3","zsnet","zsc"]; var current_cloud_for_second_page; function create_buttons_cloud_wise(master_div_element) { for(var cloud_indexer=0;cloud_indexer<cloud_names.length;cloud_indexer++) { var button_object=document.createElement("button"); button_object.innerHTML=cloud_names[...
const axenda = { title: "Axenda", events: { event1: { name: "cultureEvento 1", image: "/images/cultureEvent1.jpg", date: "2018-01-15", visible: true, desc: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Odit, excepturi?", ubicación: "", tipo: "" ...
import React from "react"; const LandingPage = () => { return ( <div className="landing__page__body"> <h1 className="company__title">Generation Diamond</h1> <p className="company__slogan">By working together we can help our youth obtain a better future!</p> </di...
import React from "react"; const Button = () => { return <div className="btn">request demo</div>; }; export default Button;
var requireDir = require('require-dir'); var dir = requireDir('./node_modules/@meltmedia/meltmail-builder/_gulp-tasks');
(window.player || (window.player = {})).blurImg = function(t, e) { var r = document.createElement("canvas"); e = e || document.body, r.width = 100, r.height = 100; var o = r.getContext("2d"), h = new Image; h.src = t, h.onload = function() { o.drawImage(h, 0, 0, h.width, h.height, 0, 0, r.width, r.heigh...
var core = require('./core'); var SqliteDB = require('./sqlite').SqliteDB; var db = new SqliteDB(core.datapath); //无数据库user则新建 // var createUser = "create table if not exists user(id INTEGER primary key autoincrement, name TEXT, password TEXT, email TEXT, time TIMESTAMP default (datetime('now', 'localtime')), cti...
const NUM_COUPON_SECTIONS = 2; const MAX_SUGGESTED_RESTAURANTS = 5; // The maximum number of restaurants that can be suggested in a search at one time var circles = []; // Circles.length = NUM_COUPON_SECTIONS var couponSection = 1; var curCouponSection = 0; window.onload = function () { circleSetup(); ...
import { REQUEST_CURRENT_USER, RECEIVE_CURRENT_USER, AUTHENTICATION_ERROR, NO_TOKEN, LOGOUT } from '../actions/actionTypes'; const currentUser = (state = { loading: true }, action) => { switch (action.type) { case NO_TOKEN: return { loading: false }; case REQUEST_CURRENT_USER: return { ...
const express = require('express'); const router = express.Router(); const { createTeam, getOneTeam, getAllTeams, updateTeam, addMember, removeMember, deleteTeam, } = require('../controllers/equipo.controller') // Ruta para crear un equipo router.post('/', createTeam); // Ruta para obtener todos los eq...
import React, { Component } from 'react' import '../../App.css' import '../../asserts/css/resume.min.css' import Menu from './Menu' import About from './About' import Experience from './Experience' import Education from './Education' import Skills from './Skills' import Interests from './Interests' import Certification...
import React, { Component } from 'react'; class ErrorPage extends Component { render() { return ( <section id="error" className="first-section col-md-12 text-center"> <h1><strong>Error {this.props.code}</strong></h1> <p className="lead">{this.props.message}</p> </section> ); } } ...
TQ.smsMessageMarkList = function (dfop){ $(document).ready(function(){ $("#smsMessageMarkList").jqGridFunction({ url:PATH+"/smsMessageMarkManage/findSmsMessageMarks.action", datatype: "json", colNames:['id','operationtType','dealType','操作类型','摸版'], colModel:[ {name:"id",index:"id",hidden:tru...
const Nightcrawler = require('@coreycollins/nightcrawler') const Stream = require('stream') const readable = new Stream.Readable({ objectMode: true }) let nc = new Nightcrawler() let qStream = nc.createStream({ sendErrors: false }) // Pipe to standard out readable.pipe(qStream).toArray((err, resp) => { if (err) { ...
'use strict'; angular.module('vk').factory('vkontakte', function($q) { var URL_VARS; // Public API here return { GID: 48475446, AID: 183475108, SUBSCRIBE_GID: 48475446, WIDTH: 720, getAlbums: function(params, callback) { return VK.api('photos.getAlbums', params, callback); }, ge...
import { combineReducers } from 'redux'; import gameState from './slices/gameinit'; import quizState from './slices/game'; export default combineReducers( { gameState, quizState } );
import React from "react"; import { FormControl, InputLabel, MenuItem, Paper, Link, Button, RadioGroup, Select, makeStyles, TextField } from "@material-ui/core/"; import { Link as RouterLink } from "react-router-dom"; import { isMobile } from "react-device-detect"; const useStyles = makeStyles(them...
var setup = { options:{ getFunction:function(functions,parameters,callback){ // var parameters = ''; events.ajax({ "url":suite.get().url+'_component/setup/gui/getfunction', 'data':{'function':functions,'parameters':parameters}, success:function(response){ ...
/* jshint node: true */ 'use strict'; let babel = require('rollup-plugin-babel'), includePaths = require('rollup-plugin-includepaths'), js_ignores = [ '!pages/static/js/build/**', '!pages/static/js/temp/**', '!pages/static/js/vendor/**', ], js_apps = [ 'pages/static/js',...
define([ 'AppView', 'text!./AdvancedForm.html', 'text!./SimpleInputFieldView.html', 'text!./ButtonView.html', 'text!./DropDownView.html', 'text!./SliderInputFieldView.html', 'text!./DateInputFieldView.html', 'text!./RadioButtonView.html', 'text!./C...
const Rem = (() => { let iScale = 1 / window.devicePixelRatio document.querySelectorAll('meta')[1].setAttribute('content', `width=device-width, user-scalable=no, initial-scale=${iScale}, minimum-scale=${iScale}, maximum-scale=${iScale}`) let iWidth = document.documentElement.clientWidth let rootStyle rootSty...
const fs = require('fs'); var files = fs.readdirSync("./lib"); console.log (files) fs.readdir("./lib/spawn", function(err, document) { if (err) { throw err; }; console.log(document); }); console.log("Reading files in 'lib' directory.");
define([ 'Backbone', 'jquery', 'exercises/1/ItemView' ], function( Backbone, $, ItemView ) { var PageView = Backbone.View.extend({ /** * Template function for create HTML from this view * * @type {function} */ template: _.template($('#page-template').html()), /** * ...
export const SIGNUP_ERROR = 'SIGNUP_ERROR'; export const SIGNUP_SUCCESS = 'SIGNUP_SUCCESS';
import React from 'react'; // eslint-disable-line no-unused-vars import { ParagraphEditor as ParagraphEditorComponent } from '../../../components/paragraph/components/paragraph-editor'; export const ParagraphEditor = ({ attributes, actions }) => { const { blockClass, paragraph, } = attributes; const { ...
/* eslint-env node, mocha */ 'use strict'; var chai = require('chai'), sinonChai = require('sinon-chai'), path = require('path'), architect = require('../pipe/architect'), expect = chai.expect; chai.use(sinonChai); describe('pipe architect', function () { it('should resolve the default buildDir c...
var t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }; (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/...
describe('DatabaseConnection', function() { var databaseConnection beforeEach(function() { databaseConnection = new DatabaseConnection() }) describe('It connects to the database', function() { databaseConnection.setup(); var dbo; expect(dbo = db.db("mydb")).not.toThrowError }) })
const postData = require('../src/server/server'); test("Test if postData id defined", () => { expect(postData).toBeDefined(); });
import React, { Component, PropTypes } from 'react' import { Link } from "react-router"; export default class HomeFooter extends Component { render() { return ( <footer className="home-footer"> <div className="homepage-section homepage-section-social"> <div className="homepage-section-...
const chai = require('chai') const should = chai.should() const expect = chai.expect const chaiHttp = require('chai-http') const app = require('../app.js') const Destination = require('../models/Destination') chai.use(chaiHttp) var newDestination = { destination_code: 'd0001', list_of_destination: ['blok_m','mona...
var CreationController = { $container: undefined, questionCount: 0, questionsArray: [], newQuiz: function($container) { this.questionCount = 0, this.questionsArray = [], this.$container = $container; $container.html(''); var newQuizView = new NewQuizView($container); }, addQuestion: fu...
import { createPromise } from '../../src/index' import { expect } from 'chai' describe('createPromise ()', () => { beforeEach(() => { const MockBrowser = require('mock-browser').mocks.MockBrowser global.document = new MockBrowser().getDocument() }) afterEach(() => { global.document = {} }) it(...
$(document).ready(function() { console.log("Lets Eat!"); }); // Search Parameters var title = null; var thumbnailURL = null; var ingredient = null; var credits = null; var measurements = null; //Functions var settings = { "async": true, "crossDomain": true, "url": "https://tasty.p.rapidapi.com/recipes/lis...
import React from 'react'; import Data from './Data' const ACME_App = () => { console.log(Data.customers); const MappedNames = Data.customers.map(function(customer, index) { return ( <div key={index} className="acme-customers"> <h3>{customer.name}</h3> <p>{customer.email}</p> ...
import React from 'react' import {useDrop} from 'react-dnd' import {Timetable} from './timetable' const FirstPick = ({timetable, _seeDetails, _changeFirstPick}) => { const [, drop] = useDrop({ accept: "timetable", drop: (item) =>{_changeFirstPick(item.timetable)}, }) return( <...
(function($) { /** * 按比例缩放图片 * @param ImgD * @param FitWidth * @param FitHeight */ $.scaleImage = function(ImgD,FitWidth,FitHeight){ var image=new Image(); image.src= $(ImgD).attr('src'); if(image.width>0 && image.height>0){ if(image.width/image.height>=...
/** * NaN => Not a Number * IEEE 754-2008 - Padrão de precisão de casas decimais seguido pelo javascript */ let num1 = 0.7; let num2 = 0.1; num1 += num2; //0.8 num1 += num2; //0.9 num1 += num2; //1.0 num1 += num2; //1.1 num1 += num2; //1.2 num1 += num2; //1.3 num1 += num2; //1.4 num1 += num2; //1.5 /...
const axios = require('axios'); const getAllAvatars = () => { const apiKey = process.env.CLOUDINARY_API_KEY; const apiSecret = process.env.CLOUDINARY_API_SECRET; const url = `https://${apiKey}:${apiSecret}@api.cloudinary.com/v1_1/dvdmubcjl/resources/image/upload?prefix=av`; return axios(url); }; const getOn...
import { InboxOutlined } from "@ant-design/icons"; import { Button } from "antd"; import Dragger from "antd/lib/upload/Dragger"; import React from "react"; const ALLOWED_FILE_EXTENSIONS = [".mp4", ".avi", ".mpg", ".m4v"]; const Uploader = (props) => { const { loading, handleUpload } = props; const [inputFile, set...
import React, {Component} from 'react'; import Chart from 'chart.js'; class ChartUsers extends Component { componentDidMount() { var ctx = document.getElementById("ChartUsers"); var myChart = new Chart(ctx, { type: 'bar', data: { labels: ["Ene", "Feb", "Mar", "Abr",...
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsRemoveFromQueue = { name: 'remove_from_queue', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 002 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 00-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"...
// Instantiate a new graph var Graph = function() { this.nodes = {}; this.edges = {}; }; // Add a node to the graph, passing in the node's value. Graph.prototype.addNode = function(node) { this.nodes[node] = node; }; // Return a boolean value indicating if the value passed to contains is represented in the grap...
import { useContext, useState } from 'react' import { Link,useHistory } from "react-router-dom" import { motion } from 'framer-motion' import { Context } from '../../../utils/context' import api from '../../../utils/api' import { PageAnimation } from '../../../utils/PageAnimation' import PasswordInput from '../Componen...
const fs = require('fs'); let moduleName = process.env.MODULE_NAME; if (moduleName) { moduleName = moduleName.trim(); let pascalName = moduleName.substr(0, 1).toLowerCase() + moduleName.substr(1); let camelName = moduleName.substr(0, 1).toUpperCase() + moduleName.substr(1); let schemaPath = `${__dirna...
var util = require('util') function UnexpectedType (arg) { // name and message this.name = this.constructor.name this.message = util.format('Unexpected type: "%s"', arg.constructor.name) // V8's stack trace Error.captureStackTrace && Error.captureStackTrace(this, this.constructor) } // inheriting Error ...
function brainDump() { var left = document.getElementById('left'); var containers = $(".brain-dump-category-list").toArray(); containers.push(left) dragula(containers) .on('move', function (el, source, handle, sibling) { if(!el.hasClass("brain-dump-category")) { return false } else { return true }...
export const MessageDirection = { OUTGOING : 'outgoing', INCOMING : 'incoming' }
/** * Created by Lorenzo on 03/08/15. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var enumOrgano = ['TAR Lazio','Consiglio di Stato','Altro']; var fascicoloSchema = new Schema({ organo:{ type: String, required: true, enum: enumOrgano }, numeroRG:{ ...
function onSubmit(){ if(getGrade() !== "please enter percentages that add up too 100") { document.getElementById("grade").innerHTML = "you have a " + getGrade() + "% in this class, you need a ..."; } else { document.getElementById("grade").innerHTML = getGrade(); } } function getGrade() { ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import classnames from "classnames"; import { Link } from "react-router-dom"; import Moment from "react-moment"; export class DogItem extends Component { render() { const { dog } = this.props; return ( <div className="col s12...
//const webSocketServer = require('./config'); const messageHandler = require('./handler/messageHandler'); const closeHandler = require('./handler/closeHandler'); //const data = require ('../gameData/data'); const sqlUtils = require ('../sql/utils'); const initialize = require ('./initialize'); const Request = require...
/** * Linear Search * * Given an array and a value, return the first index at which * the value appears. If the array does not contain the value, * return -1. * * Time complexity: O(n) average and worst cases, O(1) best case * Space complexity: O(1) */ const linearSearch = (arr, val) => { for (let i = 0; i ...
import Vue from "vue"; import VueCompositionAPI, { ref, reactive } from '@vue/composition-api' import VueRouter from "vue-router"; import Vuex, { mapState } from "vuex"; import createLogger from "vuex/dist/logger"; import VueMeta from 'vue-meta'; // Vuetify internally imports vue, so we need to include it here. import...
/*jslint nomen: true, debug: true, evil: true, vars: true, browser: true, devel: true */ /*global Backbone: true, _: true, $: true, Autor: true */ var SelectAutoresView = Backbone.View.extend({ el: '#autores_selector_modal', initialize: function(router){ this.router = router; this.template =...
// SVG Dimensions var svgWidth = 960; var svgHeight = 500; var margin = { top: 20, right: 40, bottom: 80, left: 100 }; // Plot Dimensions var plotWidth = svgWidth - margin.left - margin.right; var plotHeight = svgHeight - margin.top - margin.bottom; // Create SVG wrapper var svg = d3.select("#scatt...
// Taken from the event tickets excercise at https://github.com/ConsenSys-Academy/event-ticket-exercise const errorString = 'VM Exception while processing transaction: '; async function tryCatch(promise, reason) { try { await promise; throw null; } catch (error) { assert(error, 'Expected a VM exception...
/** * */ $(document).ready(function() {menu.getMenu(0); menu.getListBody();}); var font = "系统设置"; var valids = ["网站名称", "网址", "优化标题", "关键词", "描述", "最后修改时间", "最后修改人"]; var sizes = [100, 100, 100, 100, 100, 100, 100]; var contents = ["网站名称", "网址", "优化标题", "关键词", "描述", "最后修改时间", "最后修改人"]; var keys = ["websi...
const app = getApp() Page({ data: { date:'2018-7-20', clothesSelect:[0,0,0,0,0,0,0], selectImg: '../../image/select1.png', selectCount:0, selectAll: 0, clothes_color: 0, clothesColor: ['../../image/lv2.png','../../image/lan1.png'], clothes: ['../../image/w1.png', '../../image/d1.png', ...
import * as types from 'kitsu/store/types'; const initialState = {}; export const usersReducer = (state = initialState, action) => { switch (action.type) { case types.CAPTURE_USERS_DATA: { const users = {}; action.payload.filter(u => u.type !== 'user').map(u => (users[u.id] = u)); return { ...
window.LGMaps.maps.algeria = { "config": { "mapWidth": 700.400, "mapHeight": 678.200, "displayAbbreviations": false, "defaultText": "<h1>Algeria</h1><br /><p>Algeria is a North African country with a Mediterranean coastline and a Saharan desert interior. Many empires have left legacies here, such as the ancien...
/** * Does a AJAX request for obtaining questions. * @param {type} param AJAX parameters. */ $.ajax({ type: "GET", url: "test.xml", dataType: "xml", success: function(data) { saveAnswers($(data)[0]); renderQuestions($(data)[0]); }, error: function() { alert("error"); } }); /** * Renders form with q...
import React from 'react'; import { shallow } from 'enzyme'; import DashboardLanding from '../../components/dashboard/DashboardLanding'; describe('Dashboard Landing Page', () => { it('should render correctly in "debug" mode', () => { const component = shallow(<DashboardLanding />); expect(component...
var variables________________6________8js____8js__8js_8js = [ [ "variables________6____8js__8js_8js", "variables________________6________8js____8js__8js_8js.html#ab18fa3b83e8f3d4e162b02e58cc08566", null ] ];
import React, { Component } from "react"; import { Button, Row, Col, FormGroup, Label, Input } from 'reactstrap'; import { fetchTemplate } from "../util/util"; // Redux import { connect } from "react-redux"; import { addElement } from "../Redux/actions"; class Reason extends Component { constructor(props) { ...
import React, { useState } from "react"; import { useForm } from 'react-hook-form'; import Form from 'react-bootstrap/Form'; import { Button , Row,Container,Alert} from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import { Link, Redirect } from 'react-router-dom' import axios from 'axios'; export...
const Discord = require('discord.js'); const client = new Discord.Client(); const { token, default_prefix } = require('./config.json') const fetch = require('node-fetch') const { CanvasSenpai } = require("canvas-senpai") const axios = require("axios") const canva = new CanvasSenpai(); bot.commands = new Discord...
/*config */ myApp.config(['$routeProvider', '$httpProvider', function ($rp, $hp) { $rp.when('/', { templateUrl: 'tpl/layout.html', controller: 'LayoutCtrl', }).when('/alert/', { templateUrl: 'tpl/alert_demo.html', controller: 'AlertDemoCt...
import React from 'react'; import ResponseViewContextUtil from './ResponseViewContextUtil.jsx'; import ImageListResponse from './ImageListResponse.jsx'; import ShortTextResponse from './ShortTextResponse.jsx'; export default class ResponseHandler extends React.Component { constructor() { super(); ...
import React from 'react'; import 'typeface-roboto'; import CityInfo from './CityInfo'; export default { title: "City Info", component: CityInfo, } export const CityExample = () => (<CityInfo city={"Alajuela"} country={"Costa Rica"}></CityInfo>);
exports.up = function(knex, Promise) { return knex.schema.table('campaigns_log', function (table) { table.integer('state'); }); }; exports.down = function(knex, Promise) { return knex.schema.table('campaigns_log', function (table) { table.dropColumn('state'); }); };
import * as types from '../constants/contries'; const INITIAL_STATE = { requesting: false, success: false, error: null, countries: [], }; const countries = (state = INITIAL_STATE, action) => { switch (action.type) { case types.GET_COUNTRIES_REQUEST: return Object.assign({}, stat...
import React, { useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import { Container, Content, Form, Textarea, Text, Item, Input, Button, Spinner } from 'native-base'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { useDispatch } from 'react-redux'; import * as actions ...
import query from 'query-string'; import { useLocation } from 'react-router-dom'; // eslint-disable-next-line import/prefer-default-export export const useQueryParams = () => { const { search } = useLocation(); if (!search) { return null; } return query.parse(search, { ignoreQueryPrefix: true...
var tokki = angular.module("excelController", []); tokki.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){ $stateProvider .state('system.excel', { url: "/excel", templateUrl: "pages/excel/excel.html", controller: 'Excel', data: { ...
const mongoose = require('mongoose') const validator = require('validator') const bcrypt = require('bcryptjs') const taskSchema = new mongoose.Schema({ description: { type: String }, completed: { type: Boolean } }) // task don't have password field // taskSchema.pre('save', async func...
(function() { 'use strict'; angular.module('veegam-trials').component('createProject', { controller: CreateProjectController, controllerAs: 'vm', templateUrl: 'app/components/createProject/createProject.html', }); /** @ngInject */ function CreateProjectController($scope, $...
// 导入 const fs = require('fs') const path = require('path') const http = require('http') // 使用 // 创建web服务器 const server = http.createServer() // 启动 server.listen(3000,()=>{ console.log('server is running at port 3000') }) // 监听 server.on('request',(req,res)=>{ console.log('come') // res....
function valida(e){ tecla = (document.all) ? e.keyCode : e.which; // Patron de entrada, en este caso solo acepta numeros patron =/[0-9]/; tecla_final = String.fromCharCode(tecla); if(patron.test(tecla_final)<=0){ swal("Advertencia!", "No se permiten letras en este campo!", "warning"); } return patron.test...
(function(){ // numlayout(); //alert(1) /* ----------------- 事件 ----------------- */ $('.red.loy_num').click(function(){ // 红色区域 var cls = $(this).attr('class').indexOf('on'); if(cls>0){ $(this).removeClass('on'); add_Loy('red',$(this).text(),false); }else{ if(red_num('.red_round')>=6) { retur...
import React, {Component, Fragment} from 'react' import "./Thing.css" class Thing extends Component{ render(){ const thing = { position:'absolute', overflow:'hidden', height:100 * this.props.size +'px', width:100 * this.props.size+'px', top : this.props.position.top + "%", left : this.props.posit...
import { DEFAULT_VIDEO_CONSTRAINTS, SELECTED_AUDIO_INPUT_KEY, SELECTED_VIDEO_INPUT_KEY, } from "../../constants"; import { getDeviceInfo, isPermissionDenied } from "../../utils"; import { useCallback, useState } from "react"; import Video from "twilio-video"; export default function useLocalTracks() { const [a...
import React from "react"; //import myimage from "../../assets/images/nice-piccy3.jpg"; import { withFirebase } from "../Firebase"; import { compose } from "recompose"; import { withRouter } from "react-router-dom"; import { AuthUserContext } from "../Session"; class ListItem1 extends React.Component { constructor...
app.controller("LoginController",function($rootScope,$scope,$window,$location,$http){ $scope.submitCustomer = function(){ var user = $scope.username; var pass = $scope.password; $http.post("http://iligtas.ph/smartd/login.php",{username:user,password:pass}).then(onUserCompleteUser, onError); }; $scope.submitDe...
import React, { useState, useEffect } from "react"; import { Container } from "@material-ui/core"; import Typography from "@material-ui/core/Typography"; import CardContent from "@material-ui/core/CardContent"; import { Card } from "@material-ui/core"; import ISPIRITHALEI from "../../../assets/2.png"; import "../../../...
App.Views.Index = (function (_super) { __extends(Index, _super); function Index() { return Index.__super__.constructor.apply(this, arguments); } Index.prototype.template = window['JST']['templates/index']; Index.prototype.initialize = function () { Index.__super__.initialize.apply(this, arguments);...
import React, { useState, useEffect } from 'react'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { isRequired } from 'calidators'; import Index from '../Index/index'; import TextInput from '../../components/TextInput'; import TextArea from '../../components/TextArea'; im...
Backbone.Context = Backbone.Model.extend({ initialize: function(attributes, options) { } }) var UsersController = Backbone.Controller.extend({ routes: { "": "index", "users": "index", "users/:id": "show" }, initialize: function(options) { this.context = new Backbone.Context(); ...
export const AddToDo = async(data)=>{ const bearer = 'Bearer '+ localStorage.getItem('token'); const response = await fetch("http://localhost:5000/user/addTodo",{ method:'post', headers:{ 'Content-Type':'application/json', 'Authorization':bearer }, body:J...
var request = require('request'); var checksum = require('../../model/checksum'); var config = require('../../config/config'); var index = require('../../index'); var session = require('express-session'); module.exports = function (app) { app.use(session({ secret: 'secretBIT', cookie: { maxAge: 1200000 }})) app.get('/...
function drawMultiLineChart(Data, DivID, RevenueName) { var margin = { top: 10, right: 80, bottom: 30, left: 90 }, width = 630 - margin.left - margin.right, height = 260 - margin.top - margin.bottom; // var parseDate = d3.time.format("%d-...
const loader = require('bozoid-command-loader') exports.eventGroup = 'onMessage' exports.command = 'listmodules' exports.description = 'List all modules & status' function makeString(inStr, text){ let addStr = '`' + text + '` ' /*let split = inStr.split('\n') console.log(split[split.length-1].length) if(addStr...
self.__precacheManifest = [ { "revision": "fa3b3379364551d9100a544850f1bf70", "url": "/lol-builds/static/media/jesusGirando.fa3b3379.gif" }, { "revision": "ea683c0c38e54716a743", "url": "/lol-builds/static/js/runtime~main.84e1de9c.js" }, { "revision": "d951ad7de2ffa91d477c", "url": "/l...
const inputEl = document.querySelector("#validation-input"); let lengthValue = Number(inputEl.dataset.length); // console.log(typeOf validLength); inputEl.addEventListener("blur", lengthInput); function lengthInput(event) { const inputValue = event.target.value; if (inputValue.length !== lengthValue) { ...
import React from 'react' import "../styles/Python.css" function Csharp() { return ( <div> {/* cSharp Header, with title and caption START */} <header className="jumbotron jumbotron-fluid bg-dark"> <div className="container-fluid text-center"> <h1 className="display-3">C# </h1> ...
var async = require('async'); var census = require('./../census'); var db = require('./../database'); module.exports.lookupOutfitsByName = function (name, limit, callback) { var findParams = { where: { $or: [ { alias: name }, { name: { ...
import {hello} from './logic/greet'; import {reduceFunc} from './logic/reduce'; // console.log(hello()); // console.log(reduceFunc([1,2,3]));
export default { fontRegular: 'Roboto-Regular', fontBold: 'Roboto-Bold', fontLight: 'Roboto-Light', colors: { today: '#B13B44', tommorow: '#C9742E', week: '#15721E', month: '#1631BE', primary: '#222', secondary: '#fff', mainText: '#222', su...
document.addEventListener("DOMContentLoaded", function(event) { //mobile menu let menuOptions=document.querySelector('.nav_buttons') if (window.matchMedia("(max-width: 768px)").matches) { menuOptions.classList.add('hidden'); }else { menuOptions.classList.remove('hidden'); } let ...