text stringlengths 7 3.69M |
|---|
import React, { Fragment } from 'react';
const MostrarProyectos = ({proyecto}) => {
const {nombre, url, imagen, tecnologias, descripcion} = proyecto;
return (
// animate__animated animate__slideInLeft
<Fragment>
<div className="proyectos animar ">
<div classN... |
import "./src/styles/global.scss"
import "@fontsource/montserrat"
import "@fontsource/roboto" |
/* global angular */
//Score controller
angular.module('musicBattleApp').controller('ScoreController',['$scope','scoreService',function($scope,scoreService){
//Scope properties
$scope.scores = {};
scoreService.initScores();
$scope.$watch(function(scope) { return scoreService.scores },
function(newValue... |
function printReverse(array) {
array.forEach(function(item) {
console.log(item);
});
}
function isUniform(array) {
var firstElement = array[0];
var isIdentical = true;
for (var index = 1; index < array.length; index++) {
if (array[index] !== firstElement) {
isIdentical =... |
/**
* Copyright 2018 Google Inc. All Rights Reserved.
* 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 ... |
export const GET_LIST_REQUESTED = "businesses/GET_LIST_REQUESTED"
export const GET_LIST_SUCCESS = "businesses/GET_LIST_SUCCESS"
export const GET_LIST_FAILED = "businesses/GET_LIST_FAILED"
|
export const publicUrl = new URL(process.env.PUBLIC_URL, window.location); |
function request(requestUrl, method, data, requestHeaders, success, fail) {
var app = getApp()
var headers = new Object()
if (app.globalData.sessionId) {
headers['Cookie'] = app.globalData.sessionId
}
headers['content-type'] = 'application/x-www-form-urlencoded'
if (requestHeade... |
import React from 'react';
import PropTypes from 'prop-types';
import { Typography } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
VerticalTimeline,
VerticalTimelineElement,
} from 'react-vertical-timeli... |
/**
*description:weixin
*author:fanwei
*date:2014/4/16
*/
define(function(require, exports, module){
var timer = null;
$('[sc = weixinlogo]').hover(function(){
clearTimeout( timer );
$('[sc = weixinbig]').show();
}, function(){
timer = setTimeout(function()... |
export default class Lawn {
constructor(x, y) {
this.x = x
this.y = y
}
moveMower(mower) {
switch (mower.orientation) {
case 'N':
if (mower.y < this.y)
mower.y += 1
break
case 'E':
if (mower.... |
'use strict'
//////////////////////////////// --- Part 1 --- ////////////////////////////////
class Profile {
constructor({username, name: {firstName, lastName}, password}) {
this.username = username;
this.name = {firstName, lastName}
this.password = password;
}
// Реализуйте метод... |
import React from 'react'
import { storiesOf } from '@storybook/react'
import CardBody from './CardBody'
storiesOf('Atoms/Typography/CardBody', module)
.add('short text', () => <CardBody>Hello World</CardBody>)
.add('long text', () => (
<CardBody>
asdfjasdfj;alkjfkajs;dlfkajsdlkfj;ljeih
oasdpjfio ... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsAssignmentLate = {
name: 'assignment_late',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm... |
export default function isDefined(thing) {
return typeof thing !== 'undefined'
}
|
import React from "react";
import "../../App.css";
import "./style.css";
const SubcategoryList = props => {
return (
<div className="layout-row content-item">
<p className="content-item-title">
Categories
<span className="green">
{props.categoryTitle && `"${props.categoryTitle}"`}... |
import styled from 'styled-components'
let Input = styled.input `
&.inputfile{
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
${ props => props.theme && props.theme.div}
`
let Label = styled.label `
font-size: 20px;
font-weight: bold;
text-align: center;
... |
import "./SingleCar.css";
import ModalContent from "../ModalContent/ModalContent";
function SingleCar({ id, name, image, description }) {
return (
<div className='single-car col-md-4 col-sm-9 mx-auto my-2'>
<ModalContent id={id}>
<div className='card'>
<img
src={image}
alt=''
className... |
import React from "react";
import { FlatList, StatusBar } from "react-native";
import { useSelector } from "react-redux";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { Button, View, useToast } from "native-base";
import Loader from "../components/Loader";
import AlbumCard from "../comp... |
import React from "react";
import Filter from "./Filter";
const FilterLabels = (props) => {
const filterValues = [
{ label: "Jan", value: 0 },
{ label: "Feb", value: 0 },
{ label: "Mar", value: 0 },
{ label: "Apr", value: 0 },
{ label: "May", value: 0 },
{ label: "Jun", value: 0 },
{ label... |
import React, { useRef, useState } from 'react';
import ReactToPrint from 'react-to-print';
import './style.css';
import left from './img/left.svg';
import right from './img/right.svg';
import printer from './../Print/img/printer.svg';
import logoPrint from './../Print/img/logoPrint.svg';
export const AnnuityCalculat... |
$(function () {
getUserInfoByCookie()
})
//从cookie中找是否有登陆状态
function getUserInfoByCookie() {
if ($.cookie("loginState") == 1) {
console.log(typeof($.cookie("loginState")));
// alert("已登录" + $.cookie("user_account"))
$("#userInfo").empty()
$("#userInfo").append("<li><a href='#'>"... |
'use strict';
angular.module('shoprApp')
.config(function ($routeProvider) {
$routeProvider
.when('/lists', {
templateUrl: 'app/lists/lists.html',
controller: 'ListsCtrl'
});
});
|
import React ,{useState}from 'react';
import {PayMethodWrap} from './Order.styled'
import ZhiFuBao from '@a/images/iconku/zhifubao.png'
import Weixin from '@a/images/iconku/weixin.png'
import NoCheck from '@a/images/iconku/nocheck.png'
import Checked from '@a/images/iconku/checked.png'
const PayMethod = () => {
let... |
var duration = 500;
Momentum.registerPlugin('fade2', function(options) {
return {
insertElement: function(node, next) {
$(node)
.hide()
.insertBefore(next)
.velocity('fadeIn',{
duration: options.duration || 200
});
},
removeElement: function(node) {
... |
'use strict';
angular.module('Registration')
.controller('RegistrationController',
['$scope', '$rootScope', '$location', 'AuthenticationService', 'RegistrationService',
function ($scope, $rootScope, $location, AuthenticationService, RegistrationService) {
$scope.register = function () {
... |
import React, { Component } from 'react';
import { node } from 'prop-types';
export default class Menu extends Component {
static propTypes = {
trigger: node,
content: node
}
render() {
return (
<div>
{this.props.trigger}
{this.props.content}
</div>
);
}
} |
self.__precacheManifest = [
{
"revision": "229c360febb4351a89df",
"url": "/static/js/runtime~main.229c360f.js"
},
{
"revision": "b12181a3af3ae03ddcd7",
"url": "/static/js/main.b12181a3.chunk.js"
},
{
"revision": "0819933371659f1d906c",
"url": "/static/js/1.08199333.chunk.js"
},
{
... |
import React from "react";
import { Link } from "react-router-dom";
const Header = () => (
<div className="ui pointing menu">
<Link className="active item" to="/">
Priorites
</Link>
<Link className="active item" to="/members">
Members
</Link>
</div>
);
export default Header;
|
import React from "react";
import {Card, Radio} from "antd";
const Basic = () => {
return (
<Card className="gx-card" title="Basic">
<Radio>Radio</Radio>
</Card>
);
};
export default Basic;
|
for(var i = 0; i < 44; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }
$axure.eventManager.pageLoad(
function (e) {
});
document.getElementById('u27_img').tabIndex = 0;
u27.style.cursor = 'pointer';
$axure.eventManager.click('u27', function(e) {
if (true) {
self.location.hr... |
/**
* Created by jiayi.hu on 10/14/17.
*/
import React, {Component} from 'react'
import NaviBar from '../components/NaviBar'
import Footer from '../components/Footer'
import SlidersWraper from "../components/SlidersWraper";
const innerText1 = [
{
iconXPosition:'45',
iconPhoneXPosition:'77',
... |
import React, { Component } from 'react';
import './App.css';
import Index from "./pages/Default/default";
import Knowledge from "./pages/Knowledge/knowledge";
import Wheelhouse from "./pages/Wheelhouse/wheelhouse";
import NoMatch from "./pages/NoMatch";
import { BrowserRouter, Route, Switch } from 'react-router-dom'... |
'use strict';
import timeago from './timeago.min'
import dateFormat from './dateformat'
import distance from './distance'
import QQMapWX from './qqmap-wx-jssdk.min'
import {
gcj02tobd09
} from './coordtransform'
import {
host,
qqmapKey
} from '../config'
const qqmap = new QQMapWX({
key: qqmapKey
});
function ... |
const logFolder = '/logs';
const fs = require('fs');
if (!__dirname + logFolder) {
fs.mkdir(logFolder, { recursive: true }, (err) => {
if (err) throw err;
});
}
process.chdir(logFolder);
for (i = 0; i < 10; i++) {
fs.appendFile('log' + i + '.txt', i, (err) => {
if (err) { throw err }
}... |
var palindromePerm = function(string) {
var characterCount = {};
var numOdd = 0;
for (var i = 0; i < string.length; i++) {
characterCount[string[i]] = characterCount[string[i]] + 1 || 1;
}
for (var word in characterCount) {
if (characterCount[word]%2 !== 0) {
numOdd ++;
}
if (numOdd > 1)... |
var staff = function (date, username) {
$('.dropdown-menu[data-timestamp="' + date + '"] ul').append('<li class="bannear">Bannear</li>');
$('.bannear').on('click', function () {
socket.emit('bannear', username, user.name);
});
} |
angular.module('ngApp.common')
.directive('preventEnterSubmit', function () {
return {
link: function (scope, element, attrs) {
$(element).keypress(function (e) {
if (e.keyCode == 13) {
console.log("Enter ... |
import React from 'react'
// import GetReminderComponent from '../components/getReminderComponent';
import DashboardComponent from '../components/dashboardComponent';
import GetTrashNotesComponent from '../components/getTrashNotesComponent';
import { withRouter } from 'react-router-dom';
class TrashPage e... |
import { combineReducers } from "redux";
import appState from "./appState/reducer";
import user from "./user/reducer";
import home from './home/reducer';
import stories from './stories/reducer';
import homeDetails from './homeDetails/reducer';
export default combineReducers({
appState,
user,
home,
stories,
h... |
// begin screener code
const returnValues = [
"Hakuna",
"Matata",
"It means",
"No worries",
"For the rest of your days"
].sort(() => (Math.random() > 0.5 ? 1 : -1));
const createService = (retVal, index) => () =>
new Promise(resolve =>
setTimeout(() => {
console.log(`${index}. ${retVal}`);
... |
import React, { useState } from "react";
import Grid from "@material-ui/core/Grid";
import Paper from "@material-ui/core/Paper";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import Alert from "@material-ui/lab/Alert";
import { style } from "../styles";
import { cre... |
import $ from 'jquery';
var respond = {
query() {
var rate = $(window).width() / 1242;
// font-size以100像素为基准线
$('html').css('font-size', rate * 48);
}
};
export default respond; |
let num = document.querySelector("#fnum")
let lista = document.querySelector("#flista")
let res = document.querySelector("#res")
let valores = []
//verificar números entre 1 e 100
const isNumero = (n) => Number(n) >= 1 && Number(n) <= 100 ? true : false
//verificar se já existe o número solicitado na lista
const inL... |
/* eslint-disable no-undef */
const express = require("express");
const router = new express.Router();
var ObjectID = require("mongodb").ObjectID;
router.post("/login", async (req, res) => {
const user = req.body;
console.log(user);
try {
const isExist = await db.collection("users").findOne(user);
consol... |
Element.prototype.called = function(id) {
if (id != null) {
this.id = id;
}else {
return this.id;
}
return this;
}
Element.prototype.is = function() {
for (var i in arguments) {
this.classList.add(arguments[i]);
}
return this;
};
Element.prototype.isnt = function() {
for (var i in argument... |
// Author: Joshua Reed
// Assignment: 03 Prove : Assignment - PHP Shopping Cart
/**** Varables ******/
// valdate that one box is checked for purches.
function valdate() {
var checkBox = document.querySelectorAll("[type = 'checkbox']");
for (var i = 0; i < checkBox.length; i++) {
if (checkBox[i].val... |
const express = require('express');
const bodyParser = require('body-parser');
const authenticate = require('../authenticate');
const IncomingForm = require('formidable').IncomingForm;
const fs = require('fs-extra');
const dxfparsing = require('dxf-parsing');
const loadJsonFile = require('load-json-file');
const dxf = ... |
describe('standard.hook', () => {
test.todo('Retorna uma class com o component decorado')
test.todo('A class retornado deve ter o props para repassar os valores')
test.todo('Liga as esculta baseado nas keys')
})
|
// app.states.js
"use strict";
const appBlog = {
name: "blog",
url: "/blog",
component: "blogComponent",
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
const blogModule = () => import(/* webpackChunkName: "blog.module" */ "./pages/blog/blog.module");
... |
$(document).off('click',"#posts-bubble").on('click',"#posts-bubble.notclick", function() {
if(!$(this).hasClass("disabled-feature")){
$("#posts-bubble-container").removeClass("invisible");
data={};
if($(this).hasClass("dev")){
data['dev']=$(this).attr("type");
data['edit']=$(this).attr("edit")
}
$.post("/ShareO... |
import mockNaja from './setup/mockNaja';
import fakeXhr from './setup/fakeXhr';
import {assert} from 'chai';
import sinon from 'sinon';
import ScriptLoader from '../src/core/ScriptLoader';
describe('ScriptLoader', function () {
fakeXhr();
it('constructor()', function () {
const naja = mockNaja();
const mock =... |
steal(
'can/control/control.js',
'can/view/ejs',
'jquery/dom/form_params',
'sigma/common.js'
).then(
function($){ // A este steal le agrego una pantalla ejs o algo asi
can.Control('Select',
{
defaults : {
model: undefined,
label: ... |
$(function() {
var key = getCookie('key');
if (!key) {
window.location.href = WapSiteUrl + '/tmpl/member_system/login.html';
return;
}
var ref = getQueryString('ref');
$.ajax({
type: 'post',
url: ApiUrl + '/index.php?act=member_bank&op=memberBankList',
data: {... |
/**
* Created by silverhawk on 02/12/2016.
*/
$('#mu-latest-course-slide').carousel({
interval: 1000 * 10
});
|
import BaseResponse from "../../middleware/base-response";
import RequestService from "./service"
export default class RequestController extends BaseResponse {
getPendingRequests = async (req, res) => {
try {
const { user_id } = req
const data = await RequestService.getPendingReques... |
"use strict";
const Jsony = require('../index.js');
const test = require('ava');
test('verify plugin export', async t => {
t.truthy(!!Jsony);
t.notThrows( () => new Jsony());
t.is(Jsony.prototype.brunchPlugin, true);
t.is(Jsony.prototype.extension, 'json');
t.is(Jsony.prototype.type, 'javascript... |
require('dotenv').config();
module.exports = {
host: {
port: process.env.PORT || 80
},
routing: {
api: {
location: 'api',
path: ''
}
}
} |
var fs = require('fs'),
Canvas = require('Canvas');
function spriter(directory) {
var files = fs.readdirSync(directory),
rowData = {},
//Load all the images
join = loadImages(directory, files, rowData);
// Wait for all the images to load
join.when(function() {
// Get the dimensions of the output sprite m... |
module.exports = function check(str, bracketsConfig) {
let blocks = [];
for (let i = 0; i < bracketsConfig.length; i++) {
blocks = bracketsConfig.map(function (bracket) {
return bracket[0] + bracket[1];
})
}
let result
while (result !== str) {
result = str;
blocks.forEach(function (block... |
const path = require("path");
/* eslint-disable no-unused-vars */
const webpack = require("webpack");
/* eslint-enable no-unused-vars */
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
library: "@... |
var ck;
var now;
var remaining;
var minutes;
var seconds;
var d;
var i;
var left;
var right;
var line=[];
var slice;
var pauseTime;
var pauseLength;
var start;
var length;
var end;
var x;
$(document).ready(function (){
ck = 25;
$('#display').html('25:00');});
fu... |
function rollDice() {
const dice = [...document.querySelectorAll(".die-list")];
dice.forEach(die => {
toggleClasses(die);
var c = die.dataset.roll = getRandomNumber(1, 6);
call(c);
});
}
function call(e)
{
z=z+1;
if(z==3||z==4)
{
d=d+e;
f=f+1;}
... |
var floorUnitRoomNum = [];
var chooseId = "";
var buildInfo = {
}
buildInfo.showHouseInfo = function (floornum,unitcount) {
var count = 0;
var floorHouse = [];
var juge = true;
var $toFloor = $("td[floornum='"+floornum+"'][unitcount='"+unitcount+"']");
$.each(house,function (i,item) {
if(... |
import {HttpClient, json} from 'aurelia-fetch-client';
let httpClient = new HttpClient();
import $ from 'jquery';
import Util from 'util';
//@inject(HttpClient)
export class Welcome {
heading = 'Welcome to Aurelia!';
firstName = 'John';
lastName = 'Doe';
get fullName() {
return `${this.firstName} ${this.lastNa... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { Jumbotron, Row, Col, Collapse } from 'reactstrap';
import { imagePath, detectMobile } from '../../utils/assetUtils';
import { Link } from 'react-route... |
import React from "react";
import { Flex, Box, Label, Heading } from "@primer/components";
import { StarFillIcon } from "@primer/octicons-react";
import styles from "./bestPlayerRow.module.scss";
export const BestPlayerRow = ({ sequence, row }) => {
return (
<Heading className={styles.container} mb={2}>
<F... |
'use strict';
import React from 'react';
import {
SafeAreaView,
StatusBar,
Text,
View,
TouchableOpacity,
Button,
Image,
} from 'react-native';
import { Card } from 'react-native-shadow-cards';
import COLOR from '../styles/Color';
import COLOR_SCHEME from '../styles/ColorScheme';
import styles from '../... |
import fetch from 'isomorphic-unfetch'
import React from 'react'
import {makeStyles} from '@material-ui/core/styles'
import Container from '@material-ui/core/Container'
import Grid from '@material-ui/core/Grid'
import ProfileCard from '../../components/profile/card'
import Feed from '../../components/feed'
import FeedI... |
const express = require('express');
const { check } = require("express-validator");
const { verifyToken, isAdmin } = require('../../middleware');
const webPush = require('web-push');
const router = express.Router();
const ordersController = require('../../controllers/orders');
router.get('/orders',[verifyToken],order... |
import styled from 'styled-components/native';
export const Container = styled.View`
flex: 1;
background-color: #36393f;
`;
export const ButtonPost = styled.TouchableOpacity`
background-color: #202225;
width: 60px;
height: 60px;
align-items: center;
justify-content: center;
position: absolute;
botto... |
'use strict';
const snowflake = require('node-snowflake').Snowflake;
snowflake.init({ worker_id: 1, data_center_id: 1, sequence: 0 });
module.exports = () => {
return snowflake.nextId();
};
|
const formidable = require("formidable");
const fs = require("fs");
const express = require("express");
const expressRouter = express.Router();
const auth = require("../middleware/auth");
const ProductModel = require('../models/product');
expressRouter.get("/", async (req, res) => {
let productModel = new ProductM... |
import React from 'react'
import PropTypes from 'prop-types'
import RadioCheckboxBase from '../../base/RadioCheckboxBase'
import checkboxBaseSvg from '../../assets/checkboxBase.svg'
import checkboxSelectedSvg from '../../assets/checkboxSelected.svg'
import checkboxIndeterminateSvg from '../../assets/checkboxIndetermina... |
/**
* 责任链模式
* 使多个对象都有机会处理请求,从而避免了请求的发送者和接受者之间的耦合关系。
* 将这些对象那个连成一条链,并沿着这条链传递该请求,直到有对象处理它为止。
* */
var BORROW_LEVEL = {
LOW_LEVEL:0, //借款1w以下
MEDIUM_LEVEL:1, //借款1w-10w
HIGH_LEVEL:2 //10w以上
};
//借款人
function Borrower(level,request,age) {
this.level = level;
this.request = request;
this.age ... |
var appRoot = "../../app/";
var should = require("should");
var Layer = require(appRoot + "core/layer");
var Feature = require(appRoot + "core/feature");
var Parameters = require(appRoot + "core/parameters");
var FloatValue = Parameters.FloatValue;
var StringValue = Parameters.StringValue;
var BooleanValue = Parameter... |
import WebSocket from 'ws';
import knex from '../db/connection';
export default async function websocketApi( server ) {
const wss = new WebSocket.Server( { server } );
wss.on( 'connection', async ( socket, req ) => {
socket.on( 'message', async message => {
const { hash, vote } = JSON.parse( message );
cons... |
/**
* +====================================
| Project: Training
+====================================
| > Date started: 27/09/2013 (dd/mm/yyyy)
| > Author: HoangPT
| > Last modified: 27/09/2013
| > Modified By: HoangPT
| > Version : 1.0.0
| > Function : Customer Search
+====================================
*... |
// // CREATING THE BOARD
// // property: constructor(name,price,poh,rents,color,pos
// // railroad: constructor(name,position)
// var board = [];
// var colors = [];
// colors.push(new Color("Purple"));
// colors.push(new Color("Light Blue"));
// colors.push(new Color("Pink"));
// colors.push(new Color("Orange"));
// ... |
var ArchivedDeletedMenuView = Backbone.View.extend({
initialize: function (options) {
_.bindAll(this, "render");
this.criteria = options.criteria;
this.criteria.bind('change', this.render);
},
template: Handlebars.compile($("#archived-deleted-menu-template").html()),
events: ... |
/**
* @file detail router
* @author windwithfo
*/
import controller from '../controller/detail';
const routes = [
{
method: 'GET',
path: '/detail/{path*}',
handler: controller.handler
}
];
export default routes;
|
import Menu from "../components/menu";
import Sidebar from "../components/sidebar";
// Hooks
import {useAuthListener} from "../hooks"
export function SidebarContainer() {
const { user } = useAuthListener()
return (
<Sidebar >
<Sidebar.Top>
<Sidebar.Holder>
<Sidebar.Icon src={user.phot... |
import React, { useReducer } from 'react';
import propTypes from 'prop-types';
import snackbarReducer from './snackbarReducer';
import { SnackbarContext } from './snackbarContext';
const initialState = { severity: '', message: '', open: false };
export default function SnackbarProvider({ children }) {
const [snackb... |
$(function(){
var modal1 = new myModal({
overlay : '.overlay',
modal : '.modal'
});
$('.modal-first').on('click', function(){
modal1.open($('.hello').html());
});
});
function myModal(obj){
this.overlay = $(obj.overlay);
this.modal = $(obj.modal);
var myModal = this;
var stopModal = fals... |
import React from "react"
import SEO from "../../components/seo"
import Layout from "../../components/layout"
import Footer from "../../components/footer"
import typography from "../../utils/typography"
import { itemListAbout } from "../../utils/sidebar/item-list"
import { rhythm } from "../../utils/typography"
... |
import React, { Component } from 'react';
import Link from 'react-router/lib/Link';
import _ from 'lodash';
class MetricNavButtons extends Component {
constructor(props){
super(props);
this.state = {
metrics: [],
metricsObj: {},
statType: props.statType
}
}
componentWillReceiveProps... |
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const cors = require('cors')()
const sequelize = require('./models').sequelize
const notice = require('./api/notice')
const auth = require('./api/auth')
const upload = require('./api/upload')
require('dotenv').config()
c... |
import React, {useState} from 'react';
import {
Alert,
Modal,
StyleSheet,
Text,
ScrollView,
Image,
View,
FlatList,
} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { useNavigation } from '@react-navigation/native';
import {AppButton} from '../commons/AppButton';
... |
/**
* Created by Administrator on 2015/11/2.
*/
$(function(){
$('.more-list').hover(function(){
var hei = $(this).height();
var wid = $(this).width();
var iwid = $('img',$(this)).width()-2;
var ihei = $('img',$(this)).height()-2;
$('img',$(this)).width(iwid);
$('img',$(thi... |
const fetch = require('node-fetch');
class HttpClient
{
constructor(config)
{
this.host = config.host;
this.port = config.port;
}
getNewVoted = (bp) =>
{
var url = 'http://' + this.host + ':' + this.port +
'/api/voters/new_voted?bp_account=' + bp;
return fetch(url,
{
method: 'GET',
mode: '... |
(function(global){
var isArray = Array.isArray || function(obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
};
function filterJSON(json, selector, results) {
results = results || [];
var currentSelector,
len,
i,
key;
// Make sure the selector is an array
if... |
'use strict';
var Terms = require("../models/terms.js");
require('dotenv').load();
var appKey = process.env.API_KEY //bing api key
var Bing = require('node-bing-api')({ accKey: appKey });
function ClickHandler () {
this.print = function (req, res) {
var searchTxt = req.params.text,
offset = req.query.offse... |
/**
*
*/
function Excluirs(controller,id){
var codigo = $("#codigoid"+id).val();
var excluirs = "excluirs";
var control = '../controller/'+controller+'Controller.php';
bootbox.confirm({
locale: 'br',
size: 'small',
message: "Deseja Realmente Excluir?",
callback: functio... |
import React, {PropTypes} from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Area.less';
import {SuperTab2, SuperTable, SuperTab, Search, Indent} from '../../../components/index';
import DistrictContainer from './DistrictContainer';
import {Tree} from 'antd';
const TreeNode ... |
export const LOAD_GRAPHS = 'LOAD_GRAPHS';
export const LOAD_GRAPHS_SUCCESS = 'LOAD_GRAPHS_SUCCESS';
export const LOAD_GRAPHS_FAILURE = 'LOAD_GRAPHS_FAILURE';
export const LOAD_TABLES = 'LOAD_TABLES';
export const LOAD_TABLES_SUCCESS = 'LOAD_TABLES_SUCCESS';
export const LOAD_TABLES_FAILURE = 'LOAD_TABLES_FAILURE';
ex... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import { Link } from 'react-router-dom';
import logo from '../assets/images/logoWhite.svg';
import SocialIcons from '../components/SocialIcons';
const Footer = () => {
return (
<div className="footer-container">
<div className="footer-container__cont... |
http = require('http');
var buffer=[];
function main()
{
var url = [];
for(var i=2;i<process.argv.length;i++)
{
url[i-2]=process.argv[i];
}
for(var i=0; i < url.length; i++)
{
buffer[i] = '';
}
readingFiles(url)
}
var count=0;
var completeString='';
var test;
function readingFiles(url)
{
for(var i=0;i<url.le... |
/* eslint-disable no-use-before-define, no-undef, no-restricted-globals, no-console */
import globalFeatures from './global-features.js';
function render(element, hostGlobalFeatures, sandboxGlobalFeatures, filter) {
element.innerHTML = Object.entries(hostGlobalFeatures)
.filter(([name]) => filter(name))
.ma... |
import React from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
const mapStateToProps = state => {
return {
onlineUsers: state.online
};
};
class OnlineUsers extends React.Component {
constructor(props) {
super(props);
this.state = {};
... |
var intervalId;
/*****************************************************************************/
/* Chat: Subscriptions */
/*****************************************************************************/
Meteor.subscribe('conversations');
/*****************************************************************************/
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.