text stringlengths 7 3.69M |
|---|
/**
* SearchStatsTable generates a table of stats given a list of countries.
*
*/
class SearchStatsTable
{
constructor(countries)
{
this.table = this.getSearchStatsAsTable(countries);
}
getTable()
{
return this.table;
}
getSearchStatsAsTable(countries)
{
var ... |
import styled from "styled-components";
export default styled.nav`
position: fixed;
z-index: 1;
top: 0;
width: 100%;
border-bottom: 1px solid rgba(0, 0, 0, 0.0975);
background-color: #fff;
`;
|
'use strict';
const { saveNote,
editNote,
getNote,
deleteNote,
changeNoteState,
findNotes } = require('./controllers/note');
const { getList, clearList, editList } = require('./controllers/list');
module.exports = app => {
app.get('/find', findNotes);
app.route('/list')
.patch(ed... |
const { EventEmitter } = require('events');
const Debug = require('debug');
// const { Asset } = require('parcel-bundler');
const JSAsset = require('parcel-bundler/src/assets/JSAsset');
const { compiler } = require('vueify-bolt');
const Vue = require('vue');
let ownDebugger = Debug('parcel-plugin-vue:MyAsset');
let ... |
import React from "react";
import axios from "axios";
import styled from "styled-components";
const CLOUDNAME = process.env.REACT_APP_CLOUDINARY_CLOUDNAME;
const PRESET = process.env.REACT_APP_CLOUDINARY_PRESET;
const StyledInput = styled.input`
width: 100%;
border-color: black;
padding: 5px;
`;
const Sty... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Fonction pour calculer la prime distance
* @param {integer} platFond
* @param {float} nbKilometres
* @returns {float}
*/
... |
//會員群組Model
Ext.define("gigade.VipGroup", {
extend: 'Ext.data.Model',
fields: [
{ name: "group_id", type: "string" },
{ name: "group_name", type: "string" }]
});
//會員群組store
var VipGroupStore = Ext.create('Ext.data.Store', {
model: 'gigade.VipGroup',
autoLoad: true,
proxy: {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const DataAccess_1 = require("../DataAccess");
class ReportSchema {
static get schema() {
let schemaDefinition = {
name: {
type: String,
required: true,
trim: true,
... |
import { createSelector } from 'reselect';
export const getSelectedVillage = (state) =>({ village: state.villageStore[state.selectedVillage] });
export const getVillages = ({ villages }) => ({ villages });
export const getUserProfile = ({ resources, username }) => ({ resources, username }); |
var fs = require("fs"),
path = require("path"),
async = require("async"),
expect = require("expect.js"),
wrench = require("wrench"),
Backup = require("../lib/Backup"),
src = path.join(__dirname, "src"),
dest = path.join(__dirname, "dest");
function initializeSourceFiles(backup, ... |
function Vis(canvas) {
this._canvas = canvas;
this._ctx = canvas.getContext('2d');
this._colorFeed = undefined;
// Initialize the color grid.
this.grid = new Array(Vis.GRID_HEIGHT);
for (var r = 0; r < this.grid.length; r++) {
this.grid[r] = new Array(Vis.GRID_WIDTH);
for (var c = 0; c < this.grid[r].length... |
import './index.scss';
import React from 'react';
import {
TextField,
RaisedButton,
Divider
} from 'material-ui';
export default function RegistrationForm(props){
const {
fields: {email, password, passwordConfirmation},
handleSubmit,
submitting
} = props;
return <main>
<div className... |
const mongoose = require("mongoose");
const course = mongoose.Schema({
courseNumber: {
type: String,
require: true
},
courseName: {
type: String,
require: true
},
year: {
type: Number,
require: true
},
semester:{
type: String,
... |
import React from 'react';
import { DatePicker, Form } from 'antd';
import moment from 'moment';
import styles from './index.less';
@Form.create()
class ConDate extends React.Component {
onChange = (date) => {
const {
onChange,
otherSelectData,
ruleDate = 'YYYY-MM-DD HH:mm:ss',
} = thi... |
const { StringValue } = require('ddd-js')
class LocationName extends StringValue {
constructor (value) {
super(value, false)
}
}
module.exports = LocationName
|
// 'use strict';
// angular.module('beerMeApp')
// .controller('searchCtrl',function($scope,$http,searchResultsService,$location){
// $scope.submitSearch = function(beerName){
// $location.path('/searchResults/'+beerName);
// }
// }) |
/*
Class Tree: GameObject
COMPLETE: no
TODO: renderer
EXTRA: audio manager
*/
// dont forget (a ?? b)
class GameObject{ // with rudimentary physics & colliders
constructor(id = Math.round(1000000000 * Math.random()) ,type = "gameobject", quickIndex=0, transform=undefined,rigidbody=undefined,collider=undefined,rendere... |
/**
* pfBrowser.js
*
* Este é o arquivo que contém as funções Java para
* controle do Browser
*
* @author Ubaldo H. Mattos
*/
//=======================================================================================================
// Tronks: Esta função fecha a aba do navegador onde está sendo executad... |
import Layout from './layout/Layout'
import QfUploadIcon from './common/qf-upload-icon'
export {
Layout,
QfUploadIcon
}
|
import { Component } from "./../component.component";
import { default as template } from "./pollution.component.html";
/**
* @type {Pollution}
*/
export class Pollution extends Component {
/**
* @constructor
* @param {City} city
* @param {Waqi} api
* @param {Hydrator} hydrator
*/
c... |
import axios from 'axios';
//方法一
// export function request(config, success, fail) {
// //创建axios实例
// const instance1 = axios.create({
// baseURL: 'http://123.207.32.32:8000',
// timeout: 5000
// })
// instance1(config)
// .then(res => {
// success(res)
// })
// .catch(err => {
// ... |
const request = require('request')
var getWeather = (lat, lng, callback) => {
request({
url: `https://api.darksky.net/forecast/1ba788b0f660699885450cbc6dba44e5/${lat},${lng}?exclude=hourly,daily&units=auto`,
json: true
}, (error, response, body) => {
if (!error && response.statusCode === 200) {
c... |
'use strict'
const superagent = require('superagent')
const Discord = require('discord.js')
const bot = new Discord.Client()
const _TOKEN = INSERTYOURTOKEN
const _PREFIX = "+RS"
bot.on('ready', () => {
console.log('RuneStats Bot ready!')
})
bot.on('message', msg => {
//The bot ignores messages that don't start ... |
import React, { useState, useEffect } from 'react'
import CardDatabase from './CardDatabase.js'
import DeckList from './DeckList.js'
const cardDB = [
{ id: 'd4k-001', name: 'Firat', type: 'seal',
pictureUrl: 'https://firebasestorage.googleapis.com/v0/b/smn-react.appspot.com/o/card_database%2Fs001%2F1.jpg... |
import React from "react";
import fireApp from "../fire.js";
export function updateCharacter(characterObj) {
const ref = fireApp
.firestore()
.collection("games")
.doc(characterObj.gameId)
.collection("character");
let gameRef = ref
.doc(characterObj.characterId)
.update(characterObj)
.... |
import {
ADD_MOVIE,
EDIT_MOVIE,
DELETE_MOVIE,
ADD_INIT_MOVIES
} from '../actionTypes'
const database = (state = {}, action) => {
switch (action.type) {
case ADD_MOVIE:
if (state.movies.some(movie => movie.imdbID === action.movie.imdbID)) {
return state
}
return { ...state, movie... |
/********************************/
/**** template definitions ****/
/********************************/
Vue.component(
'pokedex-entry',
{
props: [
'entry'
],
template: `
<li class="list-group-item list-group-item-action">
<a :href="entry.detailsUrl... |
import Ember from 'ember';
export default Ember.Controller.extend({
projects: Ember.inject.service(),
actions: {
kubernetesReady() {
this.get('projects').updateOrchestrationState().then(() => {
this.transitionToRoute('k8s-tab.index');
});
},
}
});
|
Clients = new Mongo.Collection("clients");
Clients.attachSchema(new SimpleSchema({
cli_name : {
type: String,
optional : true,
},
cli_desc : {
type: String,
optional : true
},
cli_contact_name : {
type: String
},
cli_contact_phone : {
type: Number
},
cli_status: {
type: String,
autoform: {
type: "se... |
var searchData=
[
['zdepth_5fdecoder_2ecc',['zdepth_decoder.cc',['../zdepth__decoder_8cc.html',1,'']]],
['zdepth_5fdecoder_2eh',['zdepth_decoder.h',['../zdepth__decoder_8h.html',1,'']]],
['zdepth_5fencoder_2ecc',['zdepth_encoder.cc',['../zdepth__encoder_8cc.html',1,'']]],
['zdepth_5fencoder_2eh',['zdepth_encode... |
var x = (a, b) => {
return a + b;
}
console.log(x(7,78)); |
const { DEFAULT_DIR } = require('./constants')
const ARG_KEYS = [
/**
* the directory with env files
*/
'dir',
/**
* the file that be used as startup for the generator
*/
'target',
/**
* the path of the file that be generated.
*/
'output'
]
const REQUIRED_ARG_KE... |
$(document).ready(function(){
$.ajax({
url:'/erp/rest/managermode/getaddmenu',
type:'get',
datatype:'json',
success:function(data){
console.log(data);
var str="";
for(var i in data.mList){
str+="<li><a id="+data.mList[i].f_functions+" onclick=menu('"+data.mList[i].f_functions+"')>"+dat... |
import Buttons from './Buttons'
import ButtonsSub from './ButtonsSub'
import React, { useState, useEffect } from 'react'
function SideBar() {
const [categorias, setCategorias] = useState([]);
const [open, setOpen] = useState(false)
const showSubMenu = () => setOpen(!open)
useEffect ( () => {... |
import React from 'react';
import './Footer.css';
const Footer = () => {
return (
<div id="footer" className="navbar navbar-dark" style={{backgroundColor: 'rgba(220, 36, 36, 0.9)'}}>
<div>
<i className="fab fa-facebook fa-2x"></i>
<i className="fab fa-instagram fa-2x"></i>
<i classN... |
$(document).ready(function(){
$("#btn1").click(function() {
navigator.notification.confirm(
'Please select one', // message
onConfirm, // callback to invoke with index of button pressed
'Hi', // title
['Beep','Vibrate'] // buttonLabel... |
import React from "react";
import { Alert } from "reactstrap";
const NotFound = (props) => {
return (
<div>
<Alert color="danger">
<h5>Page Not Found 404 !</h5>
</Alert>
</div>
);
};
export { NotFound };
|
var group___avg_settings =
[
[ "HMC_AVG1", "group___avg_settings.html#ga0188f97ebf00a8af1cdaa587478d2a90", null ],
[ "HMC_AVG2", "group___avg_settings.html#ga2e2164befd111796e1a3bc17823600c5", null ],
[ "HMC_AVG4", "group___avg_settings.html#ga07c22d471bceae506c6fbef0d7400dbd", null ],
[ "HMC_AVG8", "gr... |
const Session = require('./Session');
class SessionMananger {
constructor() {
this.sessions = {};
}
createSession(type) {
let session = new Session(type);
this.sessions[session.ID] = session;
return session;
}
joinSession(sessionID, wsClient) {
let session = this.getSession(sessionID);
session.cli... |
import { connect } from 'react-redux';
import {Action} from '../../../../action-reducer/action';
import {getPathValue} from '../../../../action-reducer/helper';
import helper from '../../../../common/common';
import {fetchDictionary2, setDictionary2} from '../../../../common/dictionary';
import ChangeDialog from './Cha... |
/**
* PurgeEditTally.js
* @file For whatever reason, the Oasis user page masthead edit count tally
* (try saying that quickly) does not update itself quickly the way the
* contribs page tally does. This script forces a purge upon navigating to
* a user page in Oasis.
* @author Eizen <dev.wikia.c... |
var express = require('express');
var bodyParser = require('body-parser');
var eventRouter = express.Router();
var SocialEventModel = require('../models/social-event');
var UserModel = require('../models/users');
eventRouter.use(bodyParser.json());
eventRouter.route('/events')
// Get all the Upcoming Eventsto popul... |
Ext.application({
extend: 'MyCVApp.Application',
name: 'MyCVApp'
}) |
import React, { Component } from 'react';
import Comment from './Comment.js';
export default class CommentsSection extends Component {
render() {
//map the comments into an array of elements to display
let{comments} = this.props;
let renderedComments = [];
console.log("comment-section");
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import List, { ListItem } from 'material-ui/List';
const styleSheet = createStyleSheet('InstituteResults', theme => ({
bg... |
import React from "react";
import { connect } from "react-redux";
/*
Loading component to show loading message to indicate user that images are currently loading and it will render
on loading set to true or false condition that is again coming from reducer as it receives the action the condition
will be set to true ... |
//jshint esversion:6
const express = require("express") ;
const app = express() ;
app.get("/",(request,response)=>{
response.header("plain/text");
response.send("Hello!") ;
});
app.get("/contact",(request,response)=>{
response.header("plain/text");
response.send("Contact me!") ;
});
app.get("/hobbies",(req... |
function insert(item, user, request) {
request.execute();
switch (item.ClientType) {
case 0:
// apple push
push.apns.send(item.Identifier, {
alert: item.Message,
payload: {
inAppMessage: item.Message
}
... |
let master_text = "";
let words = ["Smart", "Kind", "Amazing", "Bold", "Strong", "Confident",
"Ambitious", "Brave", "Cool", "Funny"];
let input, button, greeting;
let submit_remove = 0;
let canvas;
let gifLength = 5;
let started = 0;
function setup() {
var p5Canvas = createCanvas(windowWidth, windowHeight);... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {saveAs} from 'file-saver'
import XLSX from 'xlsx'
function s2ab (s) {
var buf = new ArrayBuffer(s.length)
var view = new Uint8Array(buf)
for (var i=0; i!=s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF
return buf
}
function date... |
function runTest()
{
FBTest.progress("using baseLocalPath: " + baseLocalPath);
// Compute relative path and construct module loader.
var baseUrl = baseLocalPath + "loader/paths/";
var config = {
context: baseUrl + Math.random(), // to give each test its own loader,
baseUrl: baseUrl,
... |
import Apify from 'apify';
import { inspect } from 'util';
import { handleFailedRequest } from './lib/handleFailedRequest.js';
import { handlePage } from './lib/handlePage.js';
import { convertDetailedOutputToSimplified } from './lib/utils.js';
const { log } = Apify.utils;
const env = Apify.getEnv();
Apify.main(async... |
export const FETCH_USER = 'fetch_user';
export const FETCH_USERSD = 'fetch_usersd';
export const FETCH_USERD = 'fetch_userd';
export const DELETE_USER = 'delete_user'
|
import TRAINING from "../mode/training.mode";
import VERSUS from "../mode/versus.mode";
import SELECTING_CHARACTER from "../sideState/selectingCharacter.state";
import SELECTING_COLOR from "../sideState/selectingColor.state";
import SELECTED from "../sideState/selected.state";
import TRAINING_SELECTING_CHARACTER_TWO fr... |
import Crater from './crater';
export const batchActions = (...actions) => ({
type: 'BATCH_ACTIONS',
payload: actions,
});
export const subscribe = (name, params) => dispatch => new Promise((resolve, reject) => {
let subId = Crater.subscribe(name, params, (error) => {
error && reject(error);
!error && r... |
import React from 'react'
import "./contactDetail.css"
import {FaWhatsapp,FaMobile,FaMailBulk} from "react-icons/fa"
import Contact from './Contact'
const Card =(props)=>{
return (
<div className="contactDet_cardContainer">
<div className="contactDet_icon">
... |
import '../styles/style.scss';
// getting all the specific ids and storing in variable
const mensOutwearElement = document.querySelectorAll(
'#mens-outwear-tab, #mens-outwear-btn'
);
const ladiesOutwearElement = document.querySelectorAll(
'#ladies-outwear-tab, #ladies-outwear-btn'
);
const mensTshirtElement = docu... |
function redirect() {
if(document.getElementById('team').value === 'yes'){
window.location = '../../07week/Checkpoint2/index.html';
} else if(document.getElementById('team').value === 'no') {
window.location = 'https://www.niaaa.nih.gov/alcohol-health/special-populations-co-occurring-disorders/underage-d... |
const fs = require('fs');
const path = require('path');
const express = require('express');
const multer = require('multer');
const upload = multer({ dest: 'uploads/' });
const axios = require('axios');
const bodyParser = require('body-parser');
const app = express();
app.set('port', (process.env.PORT || 3001));
// p... |
export default {
name: 'artwork',
type: 'document',
fields: [
{
name: 'visible',
type: 'boolean',
},
{
name: 'title',
type: 'string',
},
{
name: 'price',
type: 'number',
},
{
name: 'artist',
type: 'reference',
to: [{ type: 'artist' ... |
import React from 'react';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import CloseIcon from './';
Enzyme.configure({ adapter: new Adapter() });
function setup() {
const props = {
closeWidget: jest.fn(),
visible: true,
};
const wrapper = mount(<CloseIcon {...p... |
import React, { Component } from "react";
import { Modal, Alert, Button } from "react-bootstrap";
import { Link } from "react-router-dom";
import { base } from "config/base";
import FirestoreServices from 'services/FirestoreServices'
import Loading from "commons/Loading";
import styled from 'styled-components'
import P... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var Users = require('../models/user');
var path = require('path');
router.post('/registerUser', function(req, res, next) {
Users.create(req.body, function(err, post) {
if(err) {
res.redirect('/... |
import React, { useState, useEffect } from "react";
import {
StyleSheet,
Text,
View,
ScrollView,
Button,
Image,
Alert,
ActivityIndicator,
} from "react-native";
import { useDispatch } from "react-redux";
import * as ImagePicker from "expo-image-picker";
import * as Permissions from "expo-permissions";
i... |
var _ = require('lodash');
var dig = require('dig-it');
// very sophisticated: basically add an s on the end of a string if there
// isn't one already
function pluralize (str) {
return !!str.match(/s$/i) ? str : str + 's';
}
function sideload (data, path, opts) {
opts = opts || {};
data = _.cloneDeep(data);
v... |
import { storiesOf } from '@storybook/vue';
import Hero1 from './Hero1';
storiesOf('Design System|Molecules/Hero1', module)
.add('default', () => {
return {
components: { Hero1 },
template: `<Hero1 />`,
data: () => ({ }),
};
}); |
// Set the start URL
var startUrl = 'http://www.cowboytoyota.com';
// URL variables
var visitedUrls = [], pendingUrls = [];
// Create instances
var casper = require('casper').create({ /*verbose: true, logLevel: 'debug'*/ });
var utils = require('utils');
var helpers = require('./helpers');
// Spider from the given U... |
var True = "*"; True = True.fontcolor ("#3df544"); //green
var halfTrue = "*"; halfTrue = halfTrue.fontcolor("#ffff00"); //orange
var False = "*"; False = False.fontcolor ("#ff3333");//red
var target = (Math.round(Math.random()*10000)).toString();
var lengthInputMax = target.length;
var attempt = 15;
var enteredWord;... |
/*
* Copyright 2017 PhenixP2P Inc. Confidential and Proprietary. All Rights Reserved.
* Please see the LICENSE file included with this distribution for details.
*/
import React from 'react';
import PropTypes from 'prop-types';
const Gravatar = ({url}) => (
<img src={url} />
);
Gravatar.propTypes = {url: PropTyp... |
import React from 'react'
const ProductInfo = () => {
return (
<div className="m-20">
<input type="file" name="" id="" />
</div>
)
}
export default ProductInfo
|
var securitygroup_url = 'http://127.0.0.1:8181/controller/nb/v2/neutron/security-groups';
var securitygroup_post_json = {
"security_group": {
"tenant_id": "1dfe7dffa0624ae882cdbda397d1d276",
"description": "",
"id": "521e29d6-67b8-4b3c-8633-"+"#{INDEX}",
"security_group_rules": [
... |
import React, { Component, createRef } from 'react';
import FileButton from './components/FileButton';
import MessagesBox from './components/MessagesBox';
import './style.css';
class App extends Component {
state = {
buttonCounter: 1,
sizeSum: 0,
sizes: [], // For displaying total size of files
but... |
$(document).ready(testCaesarCipher );
function CaesarCipher(input, shiftNum ){
var alphabet = window.alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
var output = '';
for (var i=0; i<input.length; i++ ){
var foundIndex = alphabet.indexOf(input[i].toLowerCase());
if(foundIndex !== -1 ){
if( input[i] ==... |
import { StyleSheet } from 'react-native';
import * as colors from 'kitsu/constants/colors';
export const styles = StyleSheet.create({
wrapper: {
flex: 1,
backgroundColor: colors.listBackPurple,
paddingTop: 77,
},
webView: {
flex: 1,
},
errorText: {
fontSize: 16,
color: colors.white,
... |
total();
$(document).ready(function () {
$(".cart_quantity_up").click(function () {
var parent = $(this).parent();
var parentCha = $(this).closest("tr");
var thisTotal = parentCha.find("td")[4];
var thisPrice = $(parentCha.find("td")[2]).find("p").text().slice(1);
var thisCar... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$("#registro").click(function(){
var dato = $("#genre").val();
var route = "/genero";
var toke = $("#token").val();
$... |
app.factory('resourceSvc', function ($http, $q) {
return {
url: '/api/Resources/',
addResource: function (resource) {
var deferred = $q.defer();
$http({ method: 'post', url: this.url, data: resource })
.success(function (data) {
deferred.... |
import React from 'react';
import { mount } from 'enzyme';
import ReactRouterEnzymeContext from 'react-router-enzyme-context';
import Tags from '../Tags';
const options = new ReactRouterEnzymeContext();
const wrapper = mount(
<Tags
items={['name']}
/>,
options.get(),
);
describe('<Profiles />', () => {
it(... |
// closures
function x() {
const a = 10;
const b = 50;
return function y() {
console.log(a);
};
}
const z = x();
z();
|
const axios = require('axios');
require('dotenv').config();
// Change to env var
const DARKSKY_KEY = process.env.DARKSKY_KEY;
const GOOGLE_KEY = process.env.GOOGLE_KEY;
exports.processAddress = async (addressInput) => {
// return await this.getWeather();
try {
const encodedAddress = encodeURIComponent(addres... |
const express = require("express");
const RateLimit = require("express-rate-limit");
const mysql = require("mysql");
require("dotenv").config();
const db = mysql.createConnection({
host: process.env.MYSQL_HOST,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
user: process.en... |
import React, { PureComponent } from "react";
import "./style.css";
class Timer extends PureComponent {
state = {
count: 0,
};
intervalid = null;
starthandelet = () => {
if (this.state.count > 0 && !this.intervalid) {
this.intervalid = setInterval(() => {
this.setState({ count: this.state... |
/* fileselector.js - Menu to select tile for placing */
// currentTile = currently selected tile
export class TileSelector {
constructor(_game) {
this.game = _game
// Our tile picker menu
let tileSelector = this.game.add.group();
let tileSelectorBackground = this.game.make.graphics();
tileSel... |
var class_otter_1_1_component =
[
[ "Added", "class_otter_1_1_component.html#a896ba54fa65a3208621eaa06e23ac042", null ],
[ "Removed", "class_otter_1_1_component.html#a36bfe8aa7c9d8e9a71d0265ed3118e81", null ],
[ "RemoveSelf", "class_otter_1_1_component.html#ac0ab335d5603e5f09268e360a0710d09", null ],
[ ... |
"use strict";
var enzyme_1 = require('enzyme');
var React = require('react');
var index_1 = require('./index');
describe('Counter Component', function () {
var onIncrement = jasmine.createSpy('onIncrement');
var onDecrement = jasmine.createSpy('onDecrement');
it('should create a counter', function () {
... |
var searchData=
[
['open_5ffile',['open_file',['../util_8c.html#ae84bfdae0ec7b73cf580228efa76178e',1,'util.c']]],
['operator_20bool',['operator bool',['../class_sndfile_handle.html#a7f99c56f1af1f6d74c1312a05aaf1a12',1,'SndfileHandle']]],
['operator_3d',['operator=',['../class_sndfile_handle.html#af7f77c3dbd655dae... |
export default (namespace, fn) => (ev, update) => {
update(`${namespace}.loading`)
fn()(
(json) => update(`${namespace}.success`, json),
(r) => update(`${namespace}.failure`, r.statusText || r.message)
)
}
|
const shapes = [
{ type: 'rect' },
{ type: 'triangle', up: true, left: false },
{ type: 'triangle', up: false, left: true },
{ type: 'triangle', up: true, left: true },
{ type: 'triangle', up: false, left: false },
{ type: 'triangleBoundary', up: true, left: true },
{ type: 'empty' },
{ type: 'triangleB... |
import React, {Component} from 'react';
import {Parser} from 'html-to-react';
class PreviewView extends Component {
render() {
var htmlToReactParser = new Parser();
var reactElement = htmlToReactParser.parse(this.props.value);
return (
<div className='previewView'>
{react... |
// JavaScript Document
jQuery(document).ready(function ($) {
"use strict";
$(function () {
$('.dropdown').hover(function () {
$(this).addClass('open');
}, function () {
$(this).removeClass('open');
});
});
// jPages paginated blocks
var $holder = $... |
var page = 1;
var backButton = document.getElementById("element1");
var forwardButton = document.getElementById("element2");
var mainPage = document.getElementById("mainPage");
var pages = ["PAGE 0","<p id='page1'>September 10, 1984,<br><br>I guess I could consider this another “stereotypical” diary that translates my ... |
$(document).ready(function(){
$(".conteudo").load("buscaros");
});
$("#clientes").click(function() {
$(".conteudo").load("clientes");
});
$("#buscarOS").click(function() {
$(".conteudo").load("buscaros");
});
$("#aberturaDeOs").click(function() {
$(".conteudo").load("aberturadeos");
});
$("#ordemDeServ... |
import './styles.css';
import '@pnotify/core/dist/BrightTheme.css';
import '@pnotify/mobile/dist/PNotifyMobile.css';
import { debounce } from 'lodash';
import {
alert,
defaultModules,
} from '../node_modules/@pnotify/core/dist/PNotify.js';
import * as PNotifyMobile from '../node_modules/@pnotify/mobile/dist/PNotif... |
const User = require('../models/User')
module.exports = {
created: async (req, res) =>{
const params = req.body
const user = await User.create(params)
res.status(200).json(user)
}
} |
/*
A non-empty array A consisting of N integers is given. Array A represents numbers on a tape.
Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ..., A[N − 1].
The difference between the two parts is the value of: |(A[0] + A[1] + ... + A[P − ... |
// Instructions:
// Write a function, persistence, that takes in a positive parameter num and returns
// its multiplicative persistence, which is the number of times you must multiply the
// digits in num until you reach a single digit.
// Solution:
function persistence(n) {
let count = -1;
doTheThing = ((n)=>{
... |
import { Component } from 'react';
import { Display } from '@react-demo/web-react-calculator-ui-display';
import { ButtonPanel } from '@react-demo/web-react-calculator-ui-button-panel'
import { calculate } from '@react-demo/web-react-calculator-util-logic'
import styles from './app.module.css';
export class App exten... |
var app = require('../app/app'); //Here you get to require the app and put it in a variable. This app is the actual app object you created in app.js
var port = process.env.PORT || 3000;
var server = app.listen(port, function() {
console.log('Express server is running on port ' + port);
}); |
'use strict'
import {
StyleSheet,
View,
Text,
FlatList,
TouchableHighlight
} from 'react-native';
import React , {Component} from 'react';
import moment from 'moment-timezone'
import { connect } from 'react-redux';
import Modal from 'react-native-modal';
import {
RkText,
RkStyleSheet,
} from 'react-nativ... |
import React from 'react';
const Prime = () => (
<div className="spacing-small" >
<i className="icon icon-prime primeUpsellIcon" />
|
<a>Try Fast, Free Shipping</a>
<i className="icon icon-popover" />
</div>
);
export default Prime;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.