text stringlengths 7 3.69M |
|---|
ON_DAED["3D"].NuvemMolecular = function (scene) {
var o = new THREE.Object3D();
var particulas = [];
var numParticulas = 1000;
var countVisible = numParticulas;
var escalaSol = 0.225;
var tamanhoSol = 90;
var estrela = new THREE.Object3D();
var sol = ON_DAED['3D'].criarSol(estrela);
... |
module.exports = {
projects: [
{
title: "Punctually",
subtitle: "a schedule generator app demo",
image: "/assets/projects/punctually.jpg",
technologies: ["NextJS", "Sass"],
url: "https://punctually.vercel.app",
},
{
title: "Styled",
subtitle: "a full stack ecommer... |
import React from 'react'
import { StyleSheet } from 'quantum'
import { connect, hover as hoverState } from 'bypass/ui/state'
import { Tooltip } from '../../tooltip'
import Content from './Content'
const styles = StyleSheet.create({
self: {
height: '100%',
display: 'flex',
alignItems: 'center',
fontS... |
var pop_8c =
[
[ "HC_FNAME", "pop_8c.html#a33dd225b4dd2d3c29644e01b60cf4723", null ],
[ "HC_FEXT", "pop_8c.html#ab0029aa20b987416bdcd51e73e7091b5", null ],
[ "cache_id", "pop_8c.html#a371c7306913dedd360a4b5c7d3e8ffa7", null ],
[ "pop_adata_free", "pop_8c.html#a25c7eb318029948e41fa95b8158434ef", null ],
... |
ddp_conn = DDP.connect("http://localhost:3000")
ddp_conn.subscribe("data");
Data = new Meteor.Collection("data", { connection: ddp_conn});
Meteor.publish("data", function() {
//Uncomment to trigger Bug 1, sorting isn't too relevant to DDP but it is needed to use 'limit'
//return Data.find({}, {sort: {number: -... |
var germany = document.getElementById('germany')
var france = document.getElementById('france')
var spain = document.getElementById('spain')
window.onscroll = function(event){
window.requestAnimationFrame(onScroll)
console.log(event)
// console.log('hi')
}
window.onload = function(){
setTimeout(function(){
... |
module.exports = '0.0.0.0'
|
$(document).ready(function(){
// $("#main-nav-container").load("nav.html");
// Proper way to load the htmls with jquery load method - from tuts+
// $(".page-links").on('click', function( e ) {
// var href = $(this).attr('href');
// $('.content-row').load(href + ' .content-container');
// e.preventDefault();... |
/**
* ๋ ๋ ์ง ์ฐจ์ด ๋น๊ต
*/
exports.DateDiff = {
Second: function(d1, d2) {
var t2 = d2.getTime();
var t1 = d1.getTime();
return parseInt((t2-t1)/1000);
},
Minute: function(d1, d2) {
var t2 = d2.getTime();
var t1 = d1.getTime();
return parseInt((t2-t1)/1000/60);
},
Day: function(d1, d2... |
var findKthPositive = function(arr, k) {
let missing = [];
let i=1;
while(missing.length<k){
if(arr.indexOf(i)===-1){
missing.push(i)
}
i++
}
return missing[k-1]
}; |
import { StatusBar } from 'expo-status-bar';
import React, { useState, useEffect } from 'react';
import { StyleSheet, Text, View,ScrollView,Dimensions, FlatList,Modal} from 'react-native';
import Header from '../header'
import { Entypo,Octicons,FontAwesome,MaterialCommunityIcons } from '@expo/vector-icons';
import Card... |
var cfg = require("../../utils/cfg.js");
var config = require("../../utils/config.js");
var regeneratorRuntime = require("../../utils/runtime.js");
var event = require("../../utils/event.js");
var app = getApp();
Component({
options: {
addGlobalClass: true,
},
data: {
projects: [],
nodata: '',
sho... |
import { createAction } from 'redux-actions';
export const GET_TAGS = "GET_TAGS";
export const BUILD_CLOUD = "BUILD_CLOUD";
const getTagsAction = createAction(GET_TAGS);
const buildCloudAction = createAction(BUILD_CLOUD);
export {
getTagsAction,
buildCloudAction
}; |
import {combineReducers, createStore} from 'redux';
import Watcher, {
ADD_EVENT,
CHANGE_EVENT,
UNLINK_EVENT,
ADD_DIR_EVENT,
UNLINK_DIR_EVENT,
ERROR_EVENT,
READY_EVENT,
RAW_EVENT,
} from './services/watcher'
import File, {
addFile,
removeFile,
updateFile,
} from './models/file';
import path from 'p... |
$(function(){
$('.login-btn button').click(function(event) {
window.location.href='index.html';
});
})
|
({
onFocus : function(component, event, helper){
var forOpen = component.find("searchRes");
$A.util.addClass(forOpen, "slds-is-open");
$A.util.removeClass(forOpen, "slds-is-close");
var getInputkeyWord = '';
helper.searchHelper(component, event, helper, getI... |
var a;
function showHideAdd () {
if (a == 1) {
document.getElementById ("inputAdd").style.visibility = "visible";
return a = 0;
} else {
document.getElementById ("inputAdd").style.visibility = "hidden";
return a = 1;
}
}
var b;
function showHideRe... |
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
concat = require('gulp-concat'),
connect = require('gulp-connect');
gulp.task('sass', function () {
gulp.src('./scss/*.scss')
.pipe(sass({errLogToConsole: true}))
.pipe(gulp.dest('./css/tmp/'))
});
gulp.task('con... |
import React, { Component, PropTypes } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { Snackbar } from 'material-ui';
import { Navbar } from 'containers';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as SettingActionCreators from ... |
import SendEmail from '../component/SendEmail/SendEmail'
const Email = () => (
<div className="main-div">
<h2>Send email to one's, who refered the shop</h2>
<SendEmail />
<style>{`
.main-div {
display: flex;
justify-content: center;
... |
const request = require('request')
//Return the run as user ID to be used in the bot deployment API
const bot = (crURL, token, botName, callback) => {
const url = crURL + '/v2/repository/workspaces/public/files/list'
request({
url : url,
method :"POST",
headers : {
"content-t... |
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import axios from "axios";
import { CloudinaryContext, Image } from "cloudinary-react";
import Navbar from "./Navbar";
import Title from "./Title";
class Photos extends Component {
constructor(props) {
super(props);
this.... |
18 gid=1329781531
17 uid=183816338
20 ctime=1441138964
20 atime=1441138971
23 SCHILY.dev=16777221
23 SCHILY.ino=32546048
18 SCHILY.nlink=1
|
// import axios from 'axios';
export const finance = () => true;
|
import React from 'react'
const Person = ({ person, handleDeletePerson }) => (
<tr>
<td>{person && person.name}</td>
<td>{person && person.number}</td>
<td>{person &&
<button onClick={(e) => handleDeletePerson(e, person._id)}>delete</button>
}</td>
</tr>
)... |
require('../../connections');
const { graphql, setup, teardown } = require('./utils');
const { CursorType } = require('@limit0/graphql-custom-types');
const PlacementRepo = require('../../../src/repositories/placement');
const PublisherRepo = require('../../../src/repositories/publisher');
const createPublisher = asyn... |
import React from 'react'
import PropTypes from 'prop-types'
// redux
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
// module
import { ActionCreators as AppActions } from '../../modules/app/actions'
import { ActionCreators as ClientActions } from '../../modules/clients/actions'
impor... |
// This file is loading model
//var vertexPositionBuffer;
var vertexNormalBuffer;
var vertexTextureCoordBuffer;
var vertexIndexBuffer;
var vertexColorBuffer;
var model;
function handleLoadedCornellbox(modelData) {
console.log("LoadModel");
/*vertexNormalBuffer = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_... |
'use strict';
const passport = require("passport");
const jwt = require('jsonwebtoken');
const User = require('../models/user');
const config = require('../utils/config');
class AuthRoutes{
constructor(app){
this.app = app;
}
routes(){
// Register via username and password
this.app.post('/register', function ... |
import firebase from '@/api/firebase'
import axios from '@/api/axios'
/*
* Firebase Authentication
* */
const login = credentials => {
return firebase
.auth()
.signInWithEmailAndPassword(credentials.email, credentials.password)
.then(response => response.user)
}
const register = credentials => {
r... |
// latest.js
var Api = require('../../utils/api.js');
Page({
data: {
groupList: [],
activeHoverIndex: undefined
},
getCartInfo: function (callback) {
var callback = callback;
var that = this;
getApp().doRequest({
url: getApp().config.host + '/cart_item_list',
method: 'GET',
... |
import React from 'react';
import styled from 'styled-components';
const CardBody = styled.div`
background-color: #fff;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
width: 100%;
margin-top: 2rem;
`;
const CardTitle = styled.h2`
color: #c1c1c1;
font-size: 2rem;
font-weight: '800';
margin-left: 2rem;
`;
cons... |
import React, { Component } from 'react';
import axios from '../../axios-emails';
import { Parallax } from 'react-spring';
class Form extends Component {
state={
name: '',
lastname: '',
email: '',
sended: false,
}
handleUserInput = (e) => {
const name = e.target.n... |
const { emailService, organizationService, issueService } = require('../services');
module.exports = async function (job) {
const { orgId, issueId } = job.data;
const org = await organizationService.getOrganizationById(orgId);
if (!org) {
return Promise.reject(
new Error(`Error sending email for issu... |
'use strict';
const pkg = require( '../package' );
const Config = require( '../utils/config' )( pkg.name ).current;
const Session = require( '../models/v0/session' );
const jwt = require( 'jsonwebtoken' );
module.exports = {
express: express
};
function express() {
return function ( req, res, next ) {
req.i... |
module.exports = class ApiFeatures {
constructor(mongooseQuery, queryString) {
this.mongooseQuery = mongooseQuery;
this.queryString = queryString;
}
filter() {
let queryObj = { ...this.queryString };
let excludedArrays = ["sort", "limit", "page", "fields"];
for (let key in queryObj) {
if... |
๏ปฟ(function () {
'use strict';
var app = angular
.module('controllersModule')
.controller('EditCatController', CatCtrl);
CatCtrl.$inject = ['$location', '$window', '$rootScope', '$scope', '$timeout', '$modal', '$log', 'FlashService', 'CatSrvc'];
function CatCtrl($location, $window, $roo... |
Ext.define('dlmsprint2a.view.Main', {
extend: 'Ext.container.Container',
requires:[
'Ext.tab.Panel',
'Ext.layout.container.Border'
],
xtype: 'app-main',
layout: {
type: 'border'
},
items: [{
region : 'north',
xtype : 'toolbar',
items : ... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "e00917d94d8ad51d0fb1",
"url": "/css/app.a59bd7b2.css"
},
{
"revision": "4992f01c4a52c1fc0c29",
"url": "/css/chunk-vendors.3446c5ff.css"
},
{
"revision": "6acc66a317d8a1dc54b54cecee3ba2e1",
"url": "/img/co... |
// server.js
// where your node app starts
// init project
var express = require('express');
var app = express();
var mongo = require('mongodb');
var mongoose = require('mongoose');
var port =process.env.PORT || 3000
let bodyParser = require('body-parser')
let multer = require('multer')
var apiRoutes = require... |
/**
* This is where all the logic for the Special Attribute Component
* @author s753601
* @version 2.12.0
*/
(function () {
angular.module('productMaintenanceUiApp').component('productSpecialAttribute', {
// isolated scope binding
bindings: {
productMaster: '<'
},
scope: '=',
// Inline template which... |
var helper = require('./testcafeHtmlHelper.js');
module.exports = function htmlContent(reportObject) {
return `
<!DOCTYPE html>
<html>
<head>
<title>My Account Test Report</title>
<link rel="stylesheet" href="./testcafeReport.css">
</head>
<body>
... |
var mongoose = require('mongoose');
var q = require('q');
var bcrypt = require('bcryptjs');
mongoose.connect('mongodb://conde:1234@ds013290.mlab.com:13290/mydatabase', function(err) {
if (err) {
throw err;
} else {
console.log('Connected to database');
}
});
var UserSchema = mongoose.Sche... |
function prepareSlideShow(){
if(!yc.isCompatible()) return false;
if(!yc.$("alltabs")) return false;
if(!yc.$("preview")) return false;
var preview=yc.$("preview");
preview.style.position="absolute";
preview.style.left="0px";
preview.style.top="0px";
var list=yc.$("alltabs");
var links=list.getElementsByTagNam... |
import React, { Component } from 'react'
import SliderPort from './SliderPort';
class PortfolioSection extends Component {
render() {
return (
<div className="portfolio-section">
<h3>Get To Know Us a Little Better!</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
... |
#! /usr/local/bin/jjs
// ใใใใพใใ
function pipe () {
var pb = new java.lang.ProcessBuilder
var args = []
for each (var arg in arguments) {
args.push(arg)
}
pb.command(['/bin/sh','-c',args.join("|")])
var p = pb.start()
var br = new java.io.BufferedReader(new java.io.InputStreamReader(p.getInputStream(... |
import '../../../../scripts/common/app'
import View from './index.vue'
new Vue({
el: '#app',
components: {
},
render:function(h){
const v = h(View);
return v
}
})
|
import { TESTAPPID, APPID } from './constants'
import storage from './storage-lite'
import session from './session-lite'
import router from '../router'
import Tools from './tools'
import api from '@/api/login'
import Bridge from '@/utils/bridge'
const AUTH_DATA = 'authData'
export default {
name: 'auth',
isWx: (/... |
import React, {useState, useEffect, useRef} from 'react';
import Results from '../Results/Results';
import TopButton from '../TopButton/TopButton';
import {FaSearch} from 'react-icons/fa';
import '../global.css';
import * as styles from './searchBar.module.css';
const Search = (props) => {
const [searchTerm, setSea... |
var m = require('mithril');
var icons = ( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-_=+[{]};:'" + '"' + "|,<.>/?" ).split('');
var rand = ( min, max ) => min + Math.floor( Math.random() * ( max - min ) );
var sample = ( arr, n = 1 ) => {
if ( n === 1 ) return arr[ rand( 0, arr.length )... |
'use strict';
const path = require('path');
//export plugin registration function
exports.register = (server, options, next) => {
const clientDistPath = path.join(__dirname, '../../../dist/client/dist');
server.route({
path: '/client/{param*}',
method: 'GET',
config: {
auth... |
const BrowserWaits = require('../../../support/customWaits');
const exuiErrorMessage = require('../common/exuiErrorMessage');
class DescribeExclusionPage {
constructor() {
this.container = $('exui-describe-exclusion');
this.headerCaption = this.container.$('h1 span');
this.header = this.container.$('h1... |
/**
* @author Bruce
* created on 2018.06.08
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.emergency')
.controller('fireAlertPageCtrl', fireAlertPageCtrl);
/** @ngInject */
function fireAlertPageCtrl($scope, $filter, editableOptions, editableThemes, $uibModal, baProgressMod... |
var maxPathSum = function(root) {
let localmax = -Infinity
function dfs(node) {
if (!node) {return 0}
let leftmax = Math.max(0, dfs(node.left))
let rightmax = Math.max(0, dfs(node.right))
localmax = Math.max(localmax, leftmax + rightmax + node.val)
return Math.max(leftma... |
'use strict';
var makeComposition = require('./composition').makeComposition;
var regex = /(.*?)(\s+?)(extends\s+?)((?:.|\n)*?){(?:(?:.|\n)*?)}/g;
module.exports = function extractExtends(css, hashed) {
var found, matches = [];
while (found = regex.exec(css)) {
matches.unshift(found);
}
function extract... |
import Immutable from 'immutable';
import ActionTypes from '../redux-actions/ActionTypes';
const initialState = Immutable.Map({
branchStatePage: false
});
export default function dismissedBetaNotifications(state = initialState, action) {
switch (action.type) {
case ActionTypes.DISMISS_BRANCH_STATE_PAGE_BETA_N... |
//a for loop and display the numbers from 1 to 100, 2 by 2
for(var x=0;x<=100;x+=2){
document.write("Line"+ x + "</br>");
} |
/*
* imageInfoComponent.js
*
* Copyright (c) 2016 HEB
* All rights reserved.
*
* This software is the confidential and proprietary information
* of HEB.
*/
'use strict';
/**
* Selling Unit -> Image Info component.
*
* @author s753601
* @since 2.13.0
*/
(function () {
angular.module('pro... |
import React, { useState } from "react";
import { useHistory } from "react-router";
import axios from "axios";
import MarkEmailReadIcon from '@mui/icons-material/MarkEmailRead';
import SecurityIcon from '@mui/icons-material/Security';
import AddReactionTwoToneIcon from '@mui/icons-material/AddReactionTwoTone';
i... |
import Gulp from 'gulp';
import istanbul from 'gulp-istanbul';
import mocha from 'gulp-mocha';
import {instrumenterConfig} from '@kpdecker/linoleum/src/cover';
import plumber from '@kpdecker/linoleum/src/plumber';
import {SOURCE_FILES, COVERAGE_TARGET, MOCHA_TIMEOUT, testFiles} from '@kpdecker/linoleum/config';
func... |
// ROOMS : Let user create rooms
// SOCIALIZING :
var app = {
//this function makes a new chat application for us
init : function(){
//the new app will need to wait until the rest of the page is loaded
$(document).ready(function() {
// first thing: see previous messages & refresh every 3 seconds
setInterval(app.... |
import { combineReducers, createStore, compose, applyMiddleware } from 'redux';
import {createLogger} from 'redux-logger';
import photos from './containers/Photos/reducer';
var finalCreateStore = compose(
applyMiddleware(
createLogger({
collapsed: true
})
),
!!window.devToolsExt... |
import React from 'react'
import styles from './styles.module.scss'
export const GUITAR = 'guitar'
export const PIANO = 'piano'
export default
({ type, open, layers }) => (
<instrument className={ [styles[type], open ? styles.open : ''].join(' ') }>
{ layers.map((strings, key) => (
<layer class... |
module.exports = require('./src');
/**
* @readme-quick-run
*
* ## test tar=js r_c=KabaneryFlow env=browser
*
* let {mount} = require('kabanery');
* let {m, RawInput} = KabaneryFlow;
*
* mount(m('div', {
* value: {
* name: 'abc'
* },
*
* onchange: (v) => {
* console.log(v); // {name: '... |
var RecipeTrackerServices = angular.module('recipeservices', ['ngResource']);
RecipeTrackerServices.factory('Recipe', function($resource){
return $resource('/api/recipes/:id');
})
RecipeTrackerServices.factory('Week', function($resource){
return $resource('/api/week/:id', { id: '@_id' }, {
update: {
m... |
๏ปฟfunction importModels () {
ds.Model.all().remove(); // delete all existing records
var lines = loadText(ds.getModelFolder().path + "Imports/models_table_export_data.txt").split("\n");
lines.splice(0,1) // remove the header
lines.forEach( function(oneLine) {
var columns = oneLine.split("\t");
var theMod... |
import React, {useEffect, useState} from 'react'
import {useDispatch, useSelector} from 'react-redux'
import {fetchDetails} from '../actions/venueActions'
import Map from './Map'
import {Link} from 'react-router-dom'
import '../App.css';
//font awesome
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
im... |
import React, { Component } from 'react';
import { Modal, ModalHeader, ModalBody, ListGroup, ListGroupItem } from 'reactstrap';
const PlaylistSelect = ({ playlists, onPlaylistSelect, closePlaylistSelect, statePlaylistSelect }) => {
if (!statePlaylistSelect) return <></>
return (
<div className="modal is-act... |
'use strict';
/**
* @ngdoc service
* @name laoshiListApp.subjects
* @description
* # subjects
* Constant in the laoshiListApp.
*/
// change to a variable
angular.module('laoshiListApp')
.constant('subjects', [
'Algebra',
'AP Chemistry',
'AP Psychology',
'AP US History',
'Art',
'Basic Math',
'Ba... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("../common");
function createLuluProviders(options) {
return {
provide: common_1.LULU_TOKEN,
useValue: common_1.createLuluClient(options)
};
}
exports.createLuluProviders = createLuluProviders;
|
var EmployerProfile = {
init: function () {
this.cacheElements();
this.bindEvents();
this.addWidgets();
},
cacheElements: function () {
this.$rating = $('select#rating');
this.$initialRating = $('input#initial-rating');
this.$rateButton = $('button#rate');
this.$yourRatingPoint = $('spa... |
const cleanLoadableTags = (tags, stats, original) => {
let parsed = original;
tags.forEach(tag => {
let chunk = stats.namedChunkGroups[tag];
chunk.assets.forEach(asset => {
var re = new RegExp(`<script.*?${asset}.*?$`, 'mg');
parsed = parsed.replace(re, '');
});... |
$(document).ready(function(){/* jQuery toggle layout */
$('#btnToggle').click(function(){
if ($(this).hasClass('on')) {
$('#main .col-md-6').addClass('col-md-4').removeClass('col-md-6');
$(this).removeClass('on');
}
else {
$('#main .col-md-4').addClass('col-md-6').removeClass('col-md-4');
$(this)... |
import {
SOCKET_DID_CONNECT,
SOCKET_DID_MOUNT,
} from './action-types'
export const socketDidConnect = socket => ({
payload: socket,
type: SOCKET_DID_CONNECT,
})
export const socketDidMount = socket => ({
payload: socket,
type: SOCKET_DID_MOUNT,
})
|
const md5 = require('md5')
const moment = require('moment-timezone')
const client = require("@mailchimp/mailchimp_marketing");
client.setConfig({
apiKey: MAILCHIMP_API_KEY,
server: "us4",
})
module.exports = {
//email, first, last, tel, course.name, course.start_date, course.end_date
studentData: (em... |
import React from 'react'
import ReactDOM from 'react-dom'
import { JounalApp } from './JounalApp';
import './styles/style.scss'
ReactDOM.render(
<JounalApp />,
document.getElementById('root')
);
|
// convert python list to json array (this is done in a preceding script on the HTML page)
// render amplitude
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
var width = canvas.width;
var height = canvas.height;
var bar_width = 4;
var bar_plus_space = 2*bar_width;
for (let x=0; ... |
const dbProducts = require("../db/models")
class productsController {
static async getProducts(req, res) {
const products = await dbProducts.Products.findAll()
res.status(200).json(products);
}
static async postProducts(req, res) {
const products = await req.body
const resu... |
var connection = require('./db');
var path = require('path');
var dateFormat = require('dateformat');
var mydate = require('current-date');
module.exports = function(paymentRouter){
//API For Payment On Customer Module
paymentRouter.post('/payment_details',function(req,res){
var booking_id = req.b... |
import mongoose from 'mongoose';
/*
Interactions are a catch-all object for meetings, calls, emails, virtual convenings, etc.
Interactions allow us to connect materials that companies send or present as part of the process
of trying to raise money from us, as well as any assessment or comments of those companies.
Savin... |
export function currentPageState(currentPage, contactsPerPage, data) {
const indexOfLastPost = currentPage * contactsPerPage
const indexOfFirstPost = indexOfLastPost - contactsPerPage
const currentContacts = data.slice(indexOfFirstPost, indexOfLastPost)
const totalPage = Math.ceil(data.length / contactsPerPage)... |
import React, { PropTypes, PureComponent } from 'react';
import Navigation from './Navigation';
import { Container } from 'components/Containers';
import Drawer from 'components/Drawer';
import styles from '../styles.scss';
export class NavigationDrawer extends PureComponent {
static propTypes = {
drawerCompon... |
import React from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import Select from 'react-select';
import './App.css';
const Q1 = [
{ value: 1, label: 'Chocolate' },
{ value: 2, label: 'Strawberry' },
{ value: 3, label: 'Vanilla' },
{ value: 4, label: 'Vanilla' },
];
const Q2 = [
{ value: 'chocolate'... |
import React from 'react'
import { Title } from 'bypass/ui/title'
import { Wrapper, Container } from 'bypass/ui/page'
import { ColumnLayout, RowLayout, Layout } from 'bypass/ui/layout'
import { Bitcoin, Trouble } from './blocks'
const Desktop = ({ btc, onBtcTopup, onCheckPayment, onTryCreateTicket }) => (
<Wrapper>
... |
'use strict';
angular.module('ligabaloncestoApp')
.controller('EntrenadorController', function ($scope, $state, Entrenador) {
$scope.entrenadors = [];
$scope.loadAll = function() {
Entrenador.query(function(result) {
$scope.entrenadors = result;
});
}... |
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
isLoading: true,
brgrMnuOpn: false,
currency: "EUR",
currencies: ["EUR", "USD", "BTC", "CAD", "CHF", "GBP", "HKD", "RSD"],
BPI_rate: 0,
BPI_time: 0,
chart_Data: [],
c... |
import React, { useContext, useState } from 'react';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import Link from '@material-ui/core/Link';
import Box from '@material-ui/core/Box';
import Typography from '@m... |
app.controller('HorseController', function($scope, $timeout, $q, GiveMeHorse) {
//set up all the variables for the race
$scope.numberOfHorses = 4 //default value of horses
$scope.whichHorse = ""
var horsesFinished = 0
var colourArray = []
$scope.howMuch = 0
//start money is 100
$scope.w... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
{"siteTitle":"Testing","email":"test@auth.com"} |
import React from 'react';
import PropTypes from 'prop-types';
import Img from 'react-image';
import ListItem from '@material-ui/core/ListItem';
import Typography from '@material-ui/core/Typography';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemAvatar from '@material-ui/core/ListItemAvatar'... |
import express from 'express';
import https from "https";
// import {getReq} from './utils';
let router = express.Router();
let API_KEY = "&key=AIzaSyDrZk_oulORJtXOG2L87a2OVfH9e10JvCU";
let GEOCODING_URL = "https://maps.googleapis.com/maps/api/geocode/json?address=";
let NEARBY_URL = "https://maps.googleapis.com/maps... |
/*
* Copyright 2016 michael.
*
* 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 i... |
const webpack = require("webpack");
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
devtool: "eval-cheap-module-source-map",
resolve: {
extensions: [".ts", ".tsx", ".js", ".jsx"],
alias: {
"@": path.join(__dirname, "../../src"),
},... |
viewport = [-3, -3, 3, 3];
var objects;
function init() {
objects = please.access('objects.jta').instance();
graph.add(objects);
theta = 5;
}
function new_game() {
// The play function will run the named action. This will change the
// location of the bones (which are nodes in M.GRL). If you want to
// combi... |
/*
// exercรญcio 1
const minhaFuncao = (quantidade) => {
const array = []
for(let i = 0; i < quantidade; i+=2) {
for(let j = 0; j < i; j++) {
array.push(j)
}
}
return array
}
// a. Indique qual serรก o resultado da funรงรฃo caso ela seja chamada como `minhaFuncao(2)`
//[0]
// b. Indique qual serรก o res... |
const express = require('express')
const router = express.Router()
const gcm = require('node-gcm')
router.post('/register-device' , (req , res) => {
})
router.get('/send-notification' , (req , res) => {
})
module.exports = router |
import React from "react";
import "./styles/stats.css";
import PlatformStats from "./stats/platformStats";
import MoneyStats from "./stats/moneyStats";
function Stats(props) {
function moneyValue(items, priceType) {
var money = 0;
for(let i of items) {
if(priceType === 1) {
money += i.... |
import "../Style/GoneFishing.css"
export default function GoneFishing(){
console.log("hello world");
return (
<div>
<p>hello world</p>
</div>
)
} |
define(function(require, exports, module) {
var PowerTextarea = require('modules/widget/textarea/powertextarea');
var AjaxForm = require('ajaxform');
var alertify = require('alertify');
var Dialog = require('dialog');
var juicer = require('juicer');
var user = require('user');
var template = [
'<form class="p_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.