text stringlengths 7 3.69M |
|---|
import React from 'react'
import {Checkbox as Muicheckbox, FormControl, FormControlLabel} from "@material-ui/core";
export default function checkbox(props) {
const {label,name,onChange,value} = props;
const convertTodefaultEventPara = (name, value)=>({
target:{
name,value
}
})
... |
import React, {useReducer} from 'react'
import { BrowserRouter as Router,Route,Switch} from 'react-router-dom';
import Statspage from './components/Statspage.js';
import App from './App';
import {AnimatePresence} from 'framer-motion'
import photos from './components/images/game1.jpg'
import {StateContext} from './con... |
var quad = [-1.0,-1.0,
1.0,-1.0,
-1.0,1.0,
-1.0,1.0,
1.0,-1.0,
1.0,1.0];
function createShader(gl,type,source){
var shader = gl.createShader(type);
gl.shaderSource(shader,source);
gl.compileShader(shader);
sucess = gl.getShaderParameter(shader,gl.COMPILE_STATUS);
if(sucess)... |
let building1;
let building2;
let building3;
let building4;
let building5;
let zoomOutX = 0;
let zoomOutY = 0;
let zoomOutW = 150;
let zoomOutH = 300;
let moveCloudsX = 0;
let moveCloudsY = 0;
let cloudSize = 0;
let starSize = 0;
let earthSize = 0;
let earthX = 0;
let earthY = 0;
let angle = 0;
let sunAngle = 0;
l... |
import React from 'react';
export const Medium = () => (
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
viewBox="0 0 24 24"
>
<path d="M16 19.1l-5.2-8.5-.8-1.3v6.8l6 3m1.2-2L23.9 6l-7.2-3.6c-.4-.2-.8 0-1.1.3l-3.7 6 5.3 8.4zm.6 2.9l4.9 2.4c.7.4 1.3.1 1.3-.6V9.7L17.8 20zM8 6.1s0-.... |
//@ts-check
/**
* @template StateType
* @typedef {import("./createReducer").InitStateType<StateType>} InitStateType
*/
/**
* @template StateType
* @template ActionType
* @typedef {import("./createReducer").ReducerType<StateType, ActionType>} ReducerType
*/
/**
* @template StateType
* @template ActionType
*... |
define('app/exts/erobot/erobot', [
'jquery',
'underscore',
'magix',
'brix/base',
'brix/event',
'app/exts/erobot/erobot.tpl',
'css!app/exts/erobot/erobot.css'
], function ($, _, Magix, Brick, EventManager, template) {
var pathmap = {
'default': 464,
'/': 463,
'/promo/search/index.htm': 472,
... |
'use strict';
module.exports = {
name: 'smoothscroll'
};
|
export { Table } from './Table'
export { TableHead } from './TableHead'
export { TableBody } from './TableBody'
export { TableRow } from './TableRow'
export { TableCell } from './TableCell'
export { TableHeader } from './TableHeader'
|
const schoty = (frame) => +frame.map((x) => x.split('---')[0].replace(/^O*/g, (y) => y.length)).join('');
const result = schoty([
'OO---OOOOOOOO',
'O---OOOOOOOOO',
'OOOOO---OOOOO',
'---OOOOOOOOOO',
'---OOOOOOOOOO',
'---OOOOOOOOOO',
'---OOOOOOOOOO',
]);
console.log(result);
// const schoty = frame => Nu... |
// while (условие) {
// // код, тело цикла
// }
let i = 0;
while (i < 150) {
if (i % 2 == 0)
console.log("Hello World");
else
console.log("Hello everybody");
i += 1;
}
// Удобен тем, что дает гибкость условию
|
// These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
import {getAsyncInjectors} from './utils/asyncInjectors';
const errorLoading = (e... |
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/personal_package/feedback/main" ], {
"11c2": function(t, e, n) {
n.r(e);
var r = n("d866"), o = n.n(r);
for (var a in r) [ "default" ].indexOf(a) < 0 && function(t) {
n.d(e, t, funct... |
export const IS_REGISTER_OR_LOGIN = "IS_REGISTER_OR_LOGIN";
export const REGISTRATION = "REGISTRATION";
export const LOGIN = "LOGIN";
export const LOGOUT = "LOGOUT";
export const DELETE_ERR_MESSGE = "DELETE_ERR_MESSGE";
|
angular.module('ExternalDataServices', [])
.factory('ParseAbstractService', ['ParseQueryAngular',
function(ParseQueryAngular) {
/********
This service provides an enhanced Parse.Object and Parse.Collection
So we can call load and saveParse from any extending Class and have that wrapped
within ParseQu... |
import React from 'react';
import fakeData from '../fakeData/fakeData';
import { useState } from 'react';
import './Courses.css';
import Enrollments from '../Enrollments/Enrollments';
import Cart from '../Cart/Cart';
import SelectedCourses from '../ SelectedCourses/SelectedCourses';
import { addToDatabaseCart, getDatab... |
/*global alert: true, console: true, ODSA */
// Written by Bailey Spell and Jesse Terrazas
$(document).ready(function() {
"use strict";
function setMessage() {
localStorage.secretMsg = $("#inputSecretMsg").val();
}
$("#inputSecretMsg").keyup(setMessage);
});
|
const assert = require('assert');
function foo() {
return {
bar() {
let a = 7;
return 2*a;
}
};
}
assert.equal(foo().bar(), 14);
|
(function(swiperContainer){
if(!swiperContainer.length) {
return;
}
Array.prototype.forEach.call(swiperContainer, function(swipe){
var mySwipe,
resizeTimeout = null,
windowWidthOLd = null,
toggleSwipe = null,
resetSwipe = null,
swipeNav = document.createElement('div'),
swipeNext = document... |
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { check } from 'meteor/check';
/*
* 1. We able to get collection module from here.
*/
export const Warehouses = new Mongo.Collection('warehouses');
/*
* 2. Publication of collection will be declared overhere.
*/
if (... |
import React from 'react';
import {languageHelper} from '../../../../tool/language-helper';
import {withRouter} from 'react-router-dom';
import PropTypes from 'prop-types';
import {
MDBBtn,
MDBRow,
MDBCol,
MDBView,
MDBMask,
MDBIcon
} from 'mdbreact';
import ArticleEditInit from '../articleEditInit';
import ... |
const Discord = require("discord.js");
module.exports.run = async (bot, message, args) => {
let msg = await message.channel.send("Me he cargado el bot jeje...");
let target = message.mentions.users.first() || message.author;
//await message.channel.send("There is " + message.mentions.users.first... |
import { Meteor } from 'meteor/meteor';
import { Products } from '../Collections/Products.js';
import { Carts } from '../Collections/Carts.js';
Meteor.startup(() => {
// code to run on server at startup
});
Meteor.publish('products', function() {
return Products.find();
});
Meteor.publish('carts', function() {
r... |
/*
File that contains help functions for passport interaction.
*/
var mongoose = require('mongoose');
var user = mongoose.model('User');
var userCtrl = require("../controllers/user");
var passport = require('passport');
exports.localHandler = function(username, password, done){
//console.log(username, password);
... |
var IndexPager=require('../views/indexPager');
var database=require('../database');
module.exports=function(req,res){
res.end(new IndexPager(database.list,req.session.isLogined).render());
}; |
import React from "react";
import AuthSystemWrapp from "../index";
import AuthSystemFormWrapp from "components/Forms/AuthSystemForms/index";
import SignInForm from "components/Forms/AuthSystemForms/SignIn";
const SignUp = (props) => {
return (
<AuthSystemWrapp>
<AuthSystemFormWrapp
title="sign in"... |
import BrowserLink from '../widget/browser-link.jsx'
import config from '../../app/config'
import Persistence from '../../util/persistence.jsx'
import React, {PureComponent} from 'react'
import {Grid, Image, Icon} from 'semantic-ui-react'
export default class Footer extends PureComponent {
name = 'Footer'
persist ... |
/**
* JSONP request.
*/
var Promise = require('./promise');
module.exports = function (_, options) {
var callback = '_jsonp' + Math.random().toString(36).substr(2), response = {}, script, body;
options.params[options.jsonp] = callback;
if (_.isFunction(options.beforeSend)) {
_.warn('beforeSe... |
/* eslint-env mocha */
const extendedEuclidean = require('../../../src').algorithms.math.extendedEuclidean;
const assert = require('assert');
describe('Extended Euclidean', () => {
it('should check for numbers as 0', () => {
assert.deepStrictEqual(extendedEuclidean(35, 0), { gcd: 35, x: 1, y: 0 });
assert.d... |
const express = require('express');
const router = express.Router();
const celebritiesController = require('../controllers/celebrities.controller');
router.get('/', celebritiesController.list)
router.get('/new', celebritiesController.create)
router.post('/new', celebritiesController.doCreate)
router.get('/:id', cel... |
const mongoose = require('mongoose');
mongoose.Promise = Promise;
const dbUri = process.env.DB_URI || 'mongodb://localhost:27017/dbSimsPDX';
module.exports = mongoose.connect(dbUri);
mongoose.connection.on('connected', () => {
console.log('connected to mongodb !!!');
}); |
import "./App.css";
import React from "react";
import { SearchTerm } from "../features/searchTerm/SearchTerm";
import { FavoriteRecipes } from "../features/favoriteRecipes/FavoriteRecipes";
import { AllRecipes } from "../features/allRecipes/AllRecipes";
const App = ({ state, dispatch }) => {
// Search recipes matchi... |
import magic from '@kuba/magic'
function render (node, element) {
node.append(element[render.flow]())
}
Object.assign(render, {
flow: magic.render_flow
})
export default render
|
function Data() {
this.comments = [
{
id: "1",
text: "Great welcoming experience to the Dominican. We used Otium for the airport transport- we were to the resort in 20 minutes. Ralphy has been our concierge for the first half of the stay, he been very helpful- always able to pull through for a... |
// module: services/file-contact-service.js
const fs = require('fs');
const path = require('path');
const filename = path.join(__dirname, 'contacts.json');
const requiredFields = ['firstname', 'email', 'phone', 'city'];
let data = [];
if (fs.existsSync(filename)) {
data = JSON.parse(fs.readFileSync(filename, 'utf... |
$(document).ready(function() {
$('.tooltip').css('display', 'none') // End-Hide
$('#span').click(function() {
$('.tooltip').fadeToggle(350)
//End fade
})
$('#span').mouseenter(function() {
$('.tooltip').fadeIn(350)
//End fade
}) // mouseenter
$('.tool... |
'use strict';
const rootPath = process.cwd();
const multer = require('multer');
var upload = multer();
module.exports = function(app){
app.route('/').get(function(req, res){
res.sendFile(rootPath+'/public/index.html');
});
app.post('/getfilesize', upload.single('file'), function (req, res, next){
if(!req.fi... |
import React from "react";
const Section1 = () => {
return (
<div className="container text-center">
<h2 className="text-muted pb-3 nothingCall">Proficiencies</h2>
<div className="row">
<div className="col-md-4">
<img src="https://santhisrikh.github.io/images/react.png" alt="" />
... |
'use strict';
/**
* @ngdoc function
* @name cop21App.controller:UpdateCtrl
* @description
* # UpdateCtrl
* Controller of the cop21App
*/
angular.module('cop21App')
.controller('UpdateCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});... |
$(function() {
// getUser();
initButtons();
getPayPeriods("#pp_select");
initAddPayDetails();
initLoadPayrollBtn();
initFunctionBtns();
/* Admin Functions */
initAdminAddUser();
initAdminUpdateUser();
initAddPayPeriod();
initPayrollTabs();
initPendingApprovals();
initAddProject();
var amount = $("#am... |
import { useHistory } from "react-router-dom";
export const GetHistory = () => useHistory();
|
function setupcharts()
{
var charts = {}
charts.internalline = c3.generate({
bindto: ".internal-line",
data: {
columns: [
['rx'].concat(new Array(100).fill(0)),
['tx'].concat(new Array(100).fill(0)),
]
},
point: {
show: false
},
axis: {
y: { show: false },
x: { show: false }
},
... |
import React from 'react';
import Header from "./Header";
import * as axios from "axios";
import { setUsersDataAC } from "../reducer";
import {connect} from "react-redux";
class HeaderContainer extends React.Component {
componentDidMount() {
axios.get(`https://social-network.samuraijs.com/api/1.0/auth/me`... |
const appKey="877057fae069a92c77cd2eeb169c6d46";
var map;
var position={
lat:19.0760, // Mumbai:
lng:72.8777 //Lat Lng by default.
}
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition((res)=>{
const pos=res.coords;
setPosition(pos);
});
}
function initMap(){
... |
var Game = {
Char: {},
Equipment: {},
Units: {},
Map: {
Data: {}
},
ShowingThrobber: 0,
rendering: false,
Player: {},
Character: {},
DIRECTIONS: {
NONE: -1,
NORTH: 0,
WEST: 1,
SOUTH: 2,
EAST: 3
},
MAP: {
TILES: {
... |
$.get('data/page2/2-4.csv', function(csv) {
$('#container2-4').highcharts({
chart:{
type:'bubble', /* グラフの種類を指定します。bubbleはバブルチャートです。。 */
backgroundColor:'#f5f5f5'
},
data:{
csv:csv
},
title:{
text:'グラフ2−4'
},
xAxis:{
title:{
text : 'A'
}
},
yAxis:{
title:{
text : 'B'
... |
import React, { useEffect } from "react";
import { connect } from "react-redux";
import { authorize } from "../store/actions";
import MyProfile from "./MyProfile/MyProfile";
const mapStateToProps = state => ({
login: state.login,
passw: state.passw
});
const mapDispatchToProps = {
authorize
};
let MyProfileCon... |
import React from 'react';
import s from './SearchPeople.module.css';
import User from '../User/User';
import { getPeople } from '../../../api/peopleApi';
let firstVisit = true; // StrictMode * 2
function onShoWMoreButtonClick(token, showMore, page=1, firstName="", lastName="", country="", city="") {
if(page ===... |
import React from 'react';
import { Field, reduxForm, clearFields } from 'redux-form';
import { validate, validators } from 'validate-redux-form';
import { api } from "api";
import { renderField, renderNumber, AsyncSelectField } from '../Utils/renderField';
import CreateModal from '../Utils/renderField/createModal';
im... |
const NotFound = () => {
return <div> 404 Not Found</div>;
};
export default NotFound;
|
var searchData=
[
['can_5fmsg_5fbuffer_5flist_5ft_88',['can_msg_buffer_list_t',['../structcan__msg__buffer__list__t.html',1,'']]],
['can_5frx_5fmsg_89',['Can_rx_msg',['../structCan__rx__msg.html',1,'']]],
['can_5ftx_5fmsg_90',['Can_tx_msg',['../structCan__tx__msg.html',1,'Can_tx_msg'],['../structcan__tx__msg.html... |
import React from 'react';
import { Row, Col, Icon } from 'react-materialize';
import { contactInfoStyles } from './../styles/styles.js';
function ContactInfo(){
return (
<Row>
<style jsx>{contactInfoStyles}</style>
<Row id="contactspy" className="center">
<Col s={4} m={4} l={4}>
<a... |
import { Schema } from 'mongoose';
const role = new Schema({
name: String,
});
export default role;
|
"use strict";
var Hapi = require('hapi');
var spark = require('../spark');
/**
* Spark.io functions
*/
module.exports = function(server) {
function getLightColor(req, reply) {
var lightId = req.params.id;
spark.getLightColor(lightId).then(function(data) {
reply(data);
}, function(error) {
... |
import React from 'react';
const GroceryItem = (props) => (
<div className={props.completed ? 'strike groceryItem ' : 'groceryItem'} onClick={props.completeCallback} >
<span className = 'col'>{props.groceryItem}</span>
<span className = 'col'>{props.groceryQuantity}</span></div>
)
export default GroceryItem... |
/*
CLRS Section 23.3, p. 634
*/
class PrimMinPQ {
constructor(G, Q = [], length = 0) {
this.Q = Q;
this.length = length;
this.buildMinPQ(G);
}
// Min PQ Operations
// N.B. These approximate the behavior of a min PQ, as by
// perfoming a sort with respect to key, the min... |
import React, {Component} from 'react';
import { Provider } from 'react-redux';
import store from './src/store';
import SearchTvShowsView from './src/components/views/SearchTvShowsView';
import TrailerView from './src/components/views/TrailerView';
function WrappedComponent (Component) {
return function inject (pr... |
import React, { Component } from "react";
import { View, Button, Text, Alert } from "react-native";
import TextBox from "./TextBox";
import { TouchableOpacity } from "react-native-gesture-handler";
import { global } from "../style/global";
export default class User extends Component {
constructor(props) {
super(p... |
export default function(app) {
console.log(456, app)
} |
import './calendar.css';
import React, { useState, useEffect, useRef } from 'react'
import { connect } from "react-redux"
import { Calendar, momentLocalizer } from 'react-big-calendar'
import Timer from 'react-compound-timer'
import moment from 'moment'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
... |
/**
* Make the following POST request with either axios or node-fetch:
POST url: http://ambush-api.inyourarea.co.uk/ambush/intercept
BODY: {
"url": "https://api.npms.io/v2/search/suggestions?q=react",
"method": "GET",
"return_payload": true
axios.get('https://api.npms.io/v2/search/suggestions?q=react... |
var path = require('path'),
webpack = require('webpack'),
root = path.resolve(__dirname, './sayll_void'); // 项目目录
var user_config = {
entry : {
'main' : path.join(root, './index'),
'common': [],// 公共模块
}
,
script : ['common', 'main',],// 按顺序引入JS.PS:common公共文件必须放置最前
... |
import * as React from 'react';
import './index.scss';
const Cell = (props) => {
const { cellInfo, flagCell, lostGame, revealAdjacent, revealCell } = props;
const getCellValue = () => {
if (cellInfo.revealed) {
if (cellInfo.isHitMine || cellInfo.value === 'X') {
return <span>💣</span>
... |
$(document).ready(function() {
var modal3 = $("#myModal3");
var btn3 = document.getElementById('myBtn3');
var span3 = document.getElementsByClassName("close3")[0];
btn3.onclick = function() {
modal3.show();
};
span3.onclick = function() {
modal3.hide();
};
$(".m... |
import { shallowMount } from '@vue/test-utils'
import PageForm from '@/components/PageForm.vue'
import {TestHelper, AjaxHelper, StateHelper} from './../helpers/Helpers.js'
let stateHelper = new StateHelper();
let localVue = stateHelper.localVue;
describe('PageForm.vue', () => {
let wrapper;
let ui;
let ajaxHelper;... |
const {mysql} = require('../qcloud');
module.exports = async ctx => {
const {bookid, openid} = ctx.request.query;
const mysqlSelect = mysql('comments').select('comments.*', 'cSessionInfo.user_info').join('cSessionInfo', 'comments.openid', 'cSessionInfo.open_id');
let commentList = [];
if (bookid) {
comment... |
exports.up = function(knex, Promise) {
return knex.schema.table('models', function (table) {
table.decimal('ordersFrom');
table.decimal('ordersTo');
table.decimal('conversionRateFrom');
table.decimal('conversionRateTo');
});
};
exports.down = function(knex, Promise) {
return knex.schema.table('models', fun... |
//Ripples js
$(home).ripples({
resolution: 512,
dropRadius: 15,
perturbance: 0.01,
}); |
function Person(name,age) {
this.name = name
this.age = age
}
Person.prototype = {
constructor:Person,
sayName:function () {
console.log(this.name)
}
}
var person1 = new Person('yang',20)
var person2 = new Person('he',23)
|
// CANVAS //
var canvas;
var ctx;
// METRICS //
var width = 0;
var height = 0;
var ratio = 1;
var scale = 1;
var TAU = 2 * Math.PI;
//INTERACTION
var mouseX = 0;
var mouseY = 0;
var mousePosition;
var mouseIsDown = false;
// ECO SYSTEM //
var visuals = [];
var spores = [];
var org1 = [];
var org2 = [];
var org3 =... |
$(document).ready(function() {
var mylib = MyLibrary();
var text = $("#someitemtext");
var butt = $(":button");
var prior = $("#priority");
butt.on("click", function() {
var txtinput = text.val();
var txt = document.createElement('p');
txt.innerHTML = txtinput;
var txt2 = $(txt);
var p = prior.val()... |
export const highlightsDefault = [
{
_id:"hl-1503413757154",
betweenArray:[],
color:"pink",
colorCode:"#FF4081",
colorHighlight: "#FF80AB",
endId:"pr-4",
endPos:323,
note:"Wow! What a tug!",
selectedText:"The strap broke with the single tug",
startId:"pr-4",
startPos:288,
... |
import { CardData } from "../classes/CardData";
const allCards = [
"C01",
"C02",
"C03",
"C04",
"C05",
"C06",
"C07",
"C11",
"C12",
"C13",
"B01",
"B02",
"B03",
"B04",
"B05",
"B06",
"B07",
"B11",
"B12",
"B13",
"S01",
"S02",
"S03",
"S04",
"S05",
"S06",
"S07",
"S11",
... |
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";
import Button from '@material-ui/core/Button';
import CardContent from '@material-ui/core/CardContent';
import { Card } from '@material-ui/core';
import ISPIRITHALEI from "../../../assets/2.png";
import { Link } from "reac... |
import React from 'react';
import ReactDOM from 'react-dom';
import Enzyme, {mount} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
import App from './App';
import InstantPiCamera from './components/InstantPiCamera';
import TempAndHumidity from './component... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import { Link } from "react-router-dom";
import MockAdapter from 'axios-mock-adapter';
import Login from '../../components/Auth/Login';
describe( "Login Component", () => {
const wrapper = shallow(<Login />);
it("renders without crashing", (... |
const User = require('../models/user')
const verify = async (req, res, next)=>{
try {
const user = await User.findOne({name:req.body.name, designation:req.body.designation})
if(user){
return res.send(user._id)
}
next()
} catch (error) {
res.status(400).send()... |
// pages/report/2020/steps/main.js
Page({data: {}}) |
export default function debug (strings, ...values) {
return strings
.reduce((memo, string, index) => {
memo.push(string);
memo.push((values[index] || '').toString());
return memo;
}, [])
.join('');
}
|
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const fs = require(... |
var chatView = (function($){
var addMessage = function(data){
var content = $('.messages');
var template = '<li data-id="' + data.id + '"><div class="msg">' + data.message + '</div><div class="tick"></div><div class="doubletick"></div></li>';
content.append(template);
};
var receiveMessage = function(data){
... |
import React from "react";
import MovieCards from "./MovieCards";
import Moviecards2 from "./Moviecards2";
import { useState } from "react";
const Barre = (props) => {
const [film, setFilm] = useState("");
return (
<div>
<input
onChange={(e) => {
setFilm(e.target.value);
}}
... |
import React, { useEffect, useState, useCallback } from "react";
import { useAppState } from "../AppState";
import uniq from "lodash/uniq";
import debounce from "lodash/debounce";
let currentNotes = [];
let midiInputs;
const ProvideMidi = ({ children }) => {
const { midi } = useAppState("config");
con... |
import axios from 'axios'
export function fetchProjects(){
return function(dispatch){
axios.get('http://localhost:8080/api/getprojects').then((response)=>{
dispatch({type:"FETCH_PROJECTS",payload:response.data.data})
})
}
}
export function closeModal(item){
return functio... |
var express = require('express'),
app = express(),
socket = require('socket.io'),
path = require('path'),
hbs = require('express-handlebars'),
bodyparser = require('body-parser'),
pg = require('pg'),
Handlebars = require('handlebars'),
expressValidator = require('express-validator'),
... |
// no rigid, only soft bodies!!!
class Collider2D { // hollow colliders as cavity points??? like points[point[x,y]] then cavities[cavity[points[point[x,y]]]]
constructor(pts = f.geometry.shape.square(),circles = [], rigidbody = null) {
this.rigidbody = rigidbody;
// points can either be outer points as in pts[poin... |
../../../../../shared/src/App/Home/actions.js |
//Controle das abas de Cadastro
$('#inserir_transportadora').click(function () {
$("#tabs_transportadora").tabs();
});
|
import React from 'react';
import createAbsoluteGrid from 'react-absolute-grid';
import Card from './Card';
import './Gallery.css'
// Pass your display component to create a new grid
const AbsoluteGrid = createAbsoluteGrid(Card);
class Gallery extends React.Component {
constructor(props) {
super(props);
}
... |
const express = require("express");
const db = require("../../models/index");
const { countries,userLanguages } = require("../../constants");
const mail = require('../../utils/mail');
var auth = require('../../utils/authentication');
var moment = require('moment-timezone');
const router = express.Router();
const User =... |
/**
* Created by chrisgregory on 6/13/17.
*/
|
const DirectoryMapper = require("./SequelizeDirectoryMapper");
const fs = require("fs");
const path = require("path");
class SequelizeDirectoriesRepository {
constructor({ DirectoryModel }) {
this.DirectoryModel = DirectoryModel;
}
async findOne(...args) {
const data = await this.DirectoryModel.findOne(... |
import { ArcSlider, Img, Txt } from 'rendition';
import React from 'react';
import styled from 'styled-components';
const Brightness = styled.h1`
color: white;
span {
font-size: 50%;
}
`;
const ImgContainer = styled.div`
text-align: center;
img {
width: 24px;
display: inline-block;
}
`;
ex... |
var util = require('util');
var fs = require('fs');
var yeoman = require('yeoman-generator');
var _ = require('lodash-node');
var _s = require('underscore.string');
_.mixin(_s.exports());
var ModuleGenerator = module.exports = function ModuleGenerator(args, options, config) {
// By calling `NamedBase` here, we get t... |
import { add, differenceInDays, eachDayOfInterval } from 'date-fns'
export const state = () => ({
current_level: 1,
current_missing: 0,
act: [],
total_xp: 0,
total_days: 0,
})
export const getters = {
daysLeft: state => differenceInDays(new Date(), new Date(state.act.start)),
myXp: state => {
const level = s... |
const escola = "Cod3r"
// O indece inicia apartir do 0, entaõ o Indice(4) vai ser o "R"
console.log(escola.charAt(4)) // Ele traz a letra que esta no indice informado
console.log(escola.charAt(5)) // Retorna um valor vazio, pois não não existe um char
// Serve para busca o valor ASC ou UNICODE do valor
console.log(e... |
$(function(){
var page=0;
var start=true;
function Tab(){
// if(start){
$(".silde").animate({
"left":-840*page+'px'
},300,function(){
if($(".silde").position().left==-4*840+'px'){
$(".silde").css('left',-840)
}
});
$(".list li").removeClass('active');
$(".list li").eq(page).addClass(... |
(function()
{
return function()
{
if (!this._is_form)
return;
var obj = null;
this.on_create = function()
{
this.set_name("insertStudent");
this.set_titletext("New Form");
if (Form == this.constructor)
... |
(function(){
angular.module('openmuc.channelaccesstool', []);
})(); |
const path = require('path');
// server
const port = 8000;
var express = require('express');
const app = express();
// bodyParser
const bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
// view engine
app.set('views', path.join(__dirname, './views')... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.