text stringlengths 7 3.69M |
|---|
module.exports = (sequelize, DataTypes) => {
const Newposition = sequelize.define('Newposition', {
place: DataTypes.STRING,
time: DataTypes.STRING,
placeEn: DataTypes.STRING,
timeEn: DataTypes.STRING,
})
return Newposition
}
|
import React, { useState } from 'react';
import Loader from "react-loader-spinner";
import { Logo, Container, LinkLoginAndRegister, LargeButton } from "../../../styles/styles";
import { postRegister } from '../../../service/trackit';
import { useHistory } from 'react-router';
const Register = () => {
const [values... |
/**
* File Description: Router to handle non-functional requirements
*/
const express = require('express');
const jwtValidation = require('../middlewares/jwt_validation');
const tokenManager = require('../managers/token_manager');
const router = express.Router();
/**
* Get the list of the token
* @param {*} token ... |
let a = [1,2,3,4,5];
function f() {
a.forEach((_,idx) => {
console.log(`index is ${idx}`);
return idx;
});
}
let b = f();
console.log(`b is ${b}`);
//=================================================
// let a = 10;
//
// function f() {
// console.log(`a inside f() ${a}`);
// }
// // f();
//
// function g... |
export const subscribe = {
'@context': 'http://schema.org',
'@type': 'SubscribeAction',
'name': 'subscribe'
}
export const unsubscribe = {
'@context': 'http://schema.org',
'@type': 'UnRegisterAction',
'name': 'unsubscribe'
}
|
describe('$.fn', function () {
describe('hasModifier method', function () {
it('should return false if none of the set of blocks has all modifiers from a string of modifiers', function () {
// Arrange.
setFixtures('\
<div class="product product_is-selected product_siz... |
(function(angular) {
// resource: we will be doing db calls, so we need resource
angular.module('nameApp').factory('pageService', ['$resource', pageService]);
function pageService($resource) {
return {
getPage: getPage
};
// query vs get
// ------------
// query = you get an array back [...... |
import { applyMiddleware, createStore } from 'redux';
import thunk from "redux-thunk";
import handleTodos from './reducers/Todo.reducer';
export default createStore(handleTodos, applyMiddleware(thunk)) |
class Form
{
constructor() {}
display()
{
var title = createElement(' ')
title.html(" ");
title.position( , );
var input = createInput(" ");
var button = createButton(' ');
input.position( ... |
const Image = require("../models/Image");
const Op = require('sequelize').Op;
async function eagerLoadHospital(hospitals) {
const ids = hospitals.map(x => x.id);
const images = await Image.findAll({
where: {
table_name: 'hospitals',
table_id: {
[Op.in] : ids
... |
var express_lang = require(__dirname + '../../express-lang.js');
var opts = {
method : 'body',
name : 'lang',
supported_lang : ['es','en','gr'],
getStrings : function(req,res,cb){
console.log('It works?');
console.log(req);
cb();
}
}
var middleware = express_lang(opts);
middleware({cookies : {'lang' : 'en','... |
import api from '../../../Api/Django'
export const GET_DISPOSICIONES_SUCCESS = 'GET_DISPOSICIONES_SUCCESS'
export const getDisposicionesSuccess=(items)=>{
return {
type:GET_DISPOSICIONES_SUCCESS, items
}
}
export const getDisposiciones = () => (dispatch, getState)=>{
return api.getDisposiciones(... |
const path = require('path');
const HtmlWeebpackPlugins = require('html-webpack-plugins');
module.exports = {
mode: 'development',
entry: path.resolve(__dirname, 'src', 'index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js'
},
devServer: {
host: 'localhost',
port: ... |
import singleActionsReducer from '../utils/single-actions-reducer';
import { UPDATE_TOURNAMENTS } from '../constants/action-types';
const reducers = {
[UPDATE_TOURNAMENTS](state, payload) {
return payload;
}
};
const reducer = singleActionsReducer([], reducers);
export default reducer;
|
/**
* Create Restangular service pre populated with access token for making authorized requests
*/
trackerOwlsApp.factory('TokenRestangular', function (Restangular, Auth) {
var getAccessToken = function () {
return 'Bearer ' + Auth.getAccessToken();
};
return Restangular.withConfig(function (Rest... |
import React from 'react';
import Groups from './Groups';
import fetch from '../../core/fetch';
export default {
path: '/',
async action({ path }) { // eslint-disable-line react/prop-types
const resp = await fetch('/graphql', {
method: 'post',
headers: {
Accept: 'application/json',
... |
angular.module('dataCoffeeAluno').controller('createForm', createForm);
createForm.$inject = ['$scope', '$http', '$rootScope'];
function createForm($scope, $http, $rootScope){
$rootScope.painel = true;
$http({
method: 'GET',
url: $rootScope.baseUrl + '/data/periodos.json',
headers: {
... |
$(function () {
$('.button-checkbox').each(function () {
// Settings
var $widget = $(this),
$button = $widget.find('button'),
$checkbox = $widget.find('input:checkbox'),
color = $button.data('color'),
settings = {
on: {
... |
import Reflux from 'reflux';
const RepoBuildActions = Reflux.createActions([
'loadRepoBuild',
'loadRepoBuildById',
'loadModuleBuilds',
'loadModuleBuildsById',
'startPolling',
'stopPolling',
'cancelBuild'
]);
export default RepoBuildActions;
|
import * as ActionType from "../constants/ActionType";
var initialState = {
isLoading: true,
isSearch: false,
icon: "",
main:'',
// temperature: true,
temperatureC: '',
temperatureK:'',
city: "Ho Chi Minh",
country: "VN",
humidity: '',
description: '',
// error: '',
... |
// @flow
// $FlowFixMe
import { Mark, Data } from 'slate';
// $FlowFixMe
import Prism from 'prismjs';
import 'prismjs/components/prism-markdown';
type Options = {
strict?: boolean,
};
const defaultOptions = {
strict: true,
};
function getDecorator({ strict = true }: Options) {
if (strict) {
// Delete all hig... |
import styled from "styled-components";
export const UserInfoContainer = styled.div`
display: flex;
flex-flow: column;
padding: 20px 0 10px;
label {
max-width: 230px;
margin: 5px 0;
display: flex;
justify-content: space-between;
text-transform: capitalize;
input {
}
}
`;
|
//
// By Hosuke Huang Geyang
// 2 Oct 2014
//
//
// CS 105: MP3
// Use this file to program the code associated with the tictactoe.html file.
// - Read the PDF file on the CS 105 website to know how to get started!
// - The PDF will walk you through most of the MP, make sure to read the
// _FULL_ file and no... |
var pdf = require('pdfkit');
var fs = require('fs');
var myDoc = new pdf;
myDoc.pipe(fs.createWriteStream('app/pago.pdf'));
doc.image('app/corporativo.jpg', 0, 15, width: 300)
.text('Proportional to width', 0, 0)
myDoc.font('fonts/PalatinoBold.ttf')
.fontSize(48)
.text('Pago Correspondiente a Emplead... |
import React from 'react';
import AddEditPerson from './AddEditPerson';
import PersonRow from './PersonRow';
import axios from 'axios';
import { produce } from 'immer';
class PeopleTable extends React.Component {
state = {
people: [],
person: {
id:'',
firstName: '',
... |
return chart;
}
|
import { expect } from 'chai'
import reducer from './recipes'
import freeze from 'deep-freeze-node'
import recipes from '../fixtures/recipes'
import { UPDATE_RECIPE } from '../actions/recipes/update'
describe('Recipes Reducer', () => {
const actualState = reducer()
const initialState = freeze(recipes)
it('the i... |
'use strict';
var assert = require('assert');
var uuid = require('uuid');
var helpers = require('./helpers');
var Account = require('../../lib/resource/Account');
var CustomData = require('../../lib/resource/CustomData');
describe('Account', function() {
var client, directory, account, creationResult;
before(... |
const url = 'http://localhost:8080/person';
const updateConfig = (person) => {
return {
method: 'put',
headers: {
"Content-type": "application/json"
},
body: JSON.stringify(person)
}
};
const personService = {
listAll: (callback) => {
fetch(url)
... |
import {createAppContainer, createSwitchNavigator} from 'react-navigation';
import { View, Text } from 'react-native';
import React from 'react';
import {createStackNavigator} from 'react-navigation-stack';
import Profile from './Profile';
const NavigationProfile = createStackNavigator({
Profile: {screen: Profile}... |
var searchData=
[
['pyxag_19',['pyxag',['../namespacepyxag.html',1,'']]],
['setup_20',['setup',['../namespacepyxag_1_1setup.html',1,'pyxag']]]
];
|
function getStyle(element,attr){
return parseInt(element.currentStyle?element.currentStyle[attr]:getComputedStyle(element,null)[attr])
}
function doMove(obj,iTarget,callBack){
clearInterval(obj.timer);
obj.timer = setInterval(function(){
var iCur = getStyle(obj,"height");
var iSpeed = (iTarget - iCur) / 5... |
import { Observable } from 'rxjs/Observable';
// import { ajax } from 'rxjs/observable/dom/ajax';
const today = new Date();
const year = today.getFullYear();
const day = today.getDate();
const month = today.getMonth()+1;
const TIMEOUT = 100;
const session = {
currentSession: year,
currentMonth: month,
c... |
//Entry mongoose model
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var entrySchema = new Schema({
title: String,
headline: String,
post: String,
blurb: String,
date: {
year: String,
month: String,
day: String
},
tags: Array,
comments: Array... |
app.controller('CreateTaskCtrl', ['$scope', '$filter', function($scope, $filter) {
// $scope.name;
// $scope.description;
$scope.tasks = [
{ 'name': 'Révisions', 'description': 'Se remettre à Angular' },
{ 'name': 'Test', 'description': 'Une autre tâche juste pour voir ce que ça donne' }
... |
import React ,{PureComponent}from 'react';
import { Animated, Easing } from 'react-native';
import LottieView from 'lottie-react-native';
export default class LottiePage extends PureComponent {
constructor(props) {
super(props);
this.state = {
progress: new Animated.Value(0),
}... |
'use strict';
const aliDaYu = require('../index');
const app = new aliDaYu('appKey', 'appSecret');
describe('alidayu module', function() {
it('sendSms',function(done){
app.smsSend({
sms_free_sign_name: "注册验证",
rec_num: "13810000000",
sms_template_code: "SMS_4410774",
... |
const { createStore, applyMiddleware } = require('redux');
const { handleActions } = require('redux-actions');
const createSagaMiddleware = require('redux-saga').default;
const actions = require('../src/actions');
const reducers = require('./reducers');
const sagas = require('./sagas');
const createSocketMiddleware = ... |
/**
* Created by shuxy on 2016/4/20
*/
+function($, window, undefined){
"use strict";
var EC = {};
EC.version = '1.0.0';
var slice = Array.prototype.slice,
toString = Object.prototype.toString,
isDefined = function(obj){
return typeof obj !== 'undefined';
},
... |
const async = require("async");
const fetch = require("node-fetch");
const getMovieTitle = async url => {
try {
const response = await fetch(url);
const json = await response.json();
return json.Title;
} catch (err) {
return next(err);
}
};
const getMoviePlot = async url => {
try {
const r... |
import React from "react";
import ReactDOM from "react-dom";
import classNames from "classnames";
import LoginComponent from "./loginComponent";
import RegisterComponent from "./registerComponent";
import LoginNavComponent from "./loginNavComponent";
import RegisterNavComponent from "./registerNavComponent";
import ".... |
import React from "react";
import Link from "next/link";
import { CardContainer } from "./style";
import Header from "./Header";
import Images from "./Images";
import Content from "./Content";
import ManagementOptions from "./ManagementOptions";
const index = ({ postData, isManagementView, directToPostPage = false })... |
var isPowerfulInteger = function(x, y, num) {
while (num % x === 0 || num % y === 0) {
if (num % x === 0) {
num = num / x;
} else {
num = num / y;
}
}
if (num === 1 || num === 2) {return true}
return false;
}
var powerfulIntegers = function(x, y, bound) {... |
import Vue from './vue.js'
const vm = new Vue({
el: '#app',
data: {
msg: 'hello mini-vue2',
testHtml: '<ul><li>哈哈哈</li></ul>',
count: '100',
},
methods: {
handler() {
alert(111)
},
},
})
console.log(vm)
|
//fields
//retreival of all needed elements
const form = document.querySelector("form");
const select_design = document.querySelector("#design");
const select_color = document.querySelector("#color");
const select_jobRole = document.querySelector("#title");
const select_payment = document.querySelector("#payment");
... |
/*
* Licensed under the Apache License, Version 2.0
* See accompanying LICENSE file.
*/
'use strict';
angular.module('dashboard.apps.appmaster')
.controller('AppProcessorCtrl', ['$scope', '$interval', 'conf', function ($scope, $interval, conf) {
if ($scope.activeProcessorId === undefined) {
return;
... |
export const initialState = {
isFetching: false,
error: '',
data: []
};
export const handleFetchSuccess = (state, action) => ({
...state,
isFetching: false,
error: initialState.error,
data: action.data
});
export const handleFetchFailure = (state, action) => ({
...state,
isFetching: false,
error: action.err... |
module.exports = {
extends: ['airbnb'],
env: {
browser: true,
node: true,
jest: true,
},
parser: 'babel-eslint',
rules: {
'react/no-multi-comp': 0,
'react/forbid-prop-types': 0,
'react/prop-types': 0,
'react/jsx-filename-extension': 0,
'react/react-in-jsx-scope': 0,
'class-... |
const Pendaftaran = {
BASE_URL : '',
CreateSelect : (setting)=>{
let test = $(setting.el).selectize({
valueField: 'id_product',
labelField: 'nama_product',
searchField: 'nama_product',
placeholder: setting.label,
options: [],
create: false,... |
import React, { useState, useEffect } from 'react'
import { Repeat } from '@material-ui/icons'
import TableItem from './tableItem'
import data from './images'
import Alert from './Alert'
const TableShow = () => {
const [dataImages, setDataImages] = useState(data)
const [noOfMatched, setNoOfMatched] = useState... |
import {UPDATE_TILE, TOGGLE_LOCK_TILE, GET_TILES} from './../constants/action-types';
export function addTileElement(payload) {
return {type: GET_TILES, payload}
}
export function toggleLockTile(payload) {
return {type: TOGGLE_LOCK_TILE, payload}
}
export function updateTile(payload) {
return {type: UPDA... |
function _chunk(arr, size){
var dupArray = arr;
if(typeof arr == "string"){
var stringArray = [];
for(var k =0; k< arr.length;k++){
stringArray.push(arr.charAt(k));
}
dupArray =stringArray;
}
var chunkedArray = [];
var totalArray = [];
var count = 0, flag = 0, loopcount = 0;
for(va... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Platform, View } from 'react-native';
import { UIStyle, UIController, UINavigator, UIBackgroundView } from '../../services/UIKit/UIKit';
import { showController } from '../../actions/ControllerActions';
imp... |
import React from "react";
import ColorChip from "./ColorChip";
const colors = [
{
name: "Plaza Aqua",
code: "#00B097",
id: 1
},
{
name: "Plaza Green",
code: "#81BC00",
id: 2
},
{
name: "Plaza Gray",
code: "#707271",
id: 3
}
];
const highlights = [
{
name: "Plaza Te... |
import * as React from 'react'
import {template} from '@retool/app'
export default class ListPage extends React.Component {
render(){
var header = this.props.Header ? this.props.Header() : null;
var body = this.props.Body ? this.props.Body() : null;
return <div style={{padding:"25px"}}>
... |
import React from "react";
import Avatar from "./Avatar";
const ChirpStyle = (props) => {
let listChirps = props.chirps.map((chirp) => {
return (
<div key={chirp.key} className="card mt-1 mb-1">
<div className="text-left mt-2">
<div className="media ml-2">
<div className="d... |
import Vue from 'vue'
import App from './App'
import '@mand-mobile/shared/lib/style/global.styl'
// #ifdef H5
// import webPlugin from './platform/web'
// Vue.use(webPlugin)
// #endif
// #ifdef MP
import uniPlugin from '@mand-mobile/platform-runtime/lib'
Vue.use(uniPlugin)
// #endif
Vue.config.pro... |
'use strict';
/**
* @ngdoc function
* @name seedApp.controller:AdminDesignCtrl
* @description
* # AdminDesignCtrl
* Controller of the seedApp
*/
angular.module('seedApp')
.controller('AdminDesignCtrl', function ($scope, $timeout, $location, $window) {
var height = $window.innerHeight;
$scope.sidebarSt... |
import React from 'react'
import PropTypes from 'prop-types'
import './index.css'
export default function PerPage ({ changePerPage, currentPerPage }) {
const threshold = [100, 500, 1000]
return (
<div className="perPage">
<ul className="perPage-list">
<li className="perPage-list-header">Pe... |
var searchData=
[
['mtllib',['MTLLib',['../classMaterial.html#aa4d43ed50061aeb4600daf1e3f7706ac',1,'Material']]]
];
|
const socket = io("https://project61342020.herokuapp.com/");
// const socket = io("http://localhost:3006");
$('#videos').hide();
socket.on('hien_thi',() =>{
$('#videos').show();
$('#signup').hide();
});
socket.on('add_user',function (data) {
$('#ulUser').append("<li id= " + data.peerId + " cla... |
import React from 'react';
import {connect} from 'react-redux';
import actionCreator from '../actions';
import Emoji from './Emoji';
function Component({initWorld, emojiMap}) {
const [isMounted, setIsMounted] = React.useState(false);
React.useEffect(() => {
if(isMounted) {
return;
}
initWorld()... |
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, Image, TouchableOpacity, Button} from 'react-native';
import firebase from 'firebase'
export default class Artista extends Component {
constructor(props){
super(props)
this.state = {
artista: [],
artistaId... |
exports.getUserCoinsList = {
id: {
in: ['params'],
isInt: true,
toInt: true,
custom: {
options: (value, { req }) => value === req.session.id,
errorMessage: 'Auhtenticated user can only list their own coins'
},
errorMessage: 'Please enter a valid numeric id'
}
};
exports.getUserT... |
const getCompiledComponents = require('../getCompiledComponents');
module.exports = function isNativeComponent(path, platform) {
const {
node: { name: tagName }
} = path.parentPath.get('name');
return !!getCompiledComponents(platform)[tagName];
};
|
import React from 'react';
import { render } from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
const HealthBar = ({ hp }) => (
<div className="HealthBar">
<div className="HealthBar__bar" style={{ width: `${hp}%` }}></div>
<div className="HealthBar__number">{hp}%</div>
... |
import React, { useState, useEffect } from 'react'
import {
View,
Text,
TouchableOpacity,
ActivityIndicator,
FlatList,
TextInput
} from 'react-native'
import { theme } from "../../constants"
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from "react-native-responsive-screen"
im... |
/*
* @akoenig/website
*
* Copyright(c) 2017 André König <andre.koenig@gmail.com>
* MIT Licensed
*
*/
/**
* @author André König <andre.koenig@gmail.com>
*
*/
import styled, { keyframes } from 'styled-components'
const blink = keyframes`
0% {
opacity: 0;
}
50% {
opacity: 0.6;
}
100% {
op... |
const fs = require('fs')
const filePath = String(__dirname + '/input.txt')
const input = fs.readFileSync(filePath).toString().split('\n').map(value => parseInt(value))
const calculateStaticFuelRequirement = function(mass){
return Math.floor(mass/3) - 2
}
const calculateDynamicFuelRequirement = function(mass){
... |
OC.L10N.register(
"settings",
{
"No user supplied" : "Heç bir istifadəçiyə mənimsədilmir",
"Authentication error" : "Təyinat metodikası",
"Wrong admin recovery password. Please check the password and try again." : "İnzibatçı geriyə qayıdış şifrəsi yalnışdır. Xahiş olunur şifrəni yoxlayıb yenidən tək... |
import "./App.css";
import * as React from "react";
import * as cheerio from "cheerio";
import { useState } from "react";
import Bar from "./components/bar";
import Table from "./components/table";
import { ThemeProvider, createTheme } from "@mui/material/styles";
import CssBaseline from "@mui/material/CssBaseline";
im... |
;require(['modules/common/cookies']);
define(function () {
var itemHtml;
$(".js-contact").on("click", function () {
$(".js-contact-panel").toggleClass("active")
itemHtml = $(".icon-ContactLine").parent().parent().find(".colGreen");
if (itemHtml) {
itemHtml.removeClass("colGre... |
import styled, { css } from 'styled-components';
import { H1, H2, H3, H4, H5 } from '../../../../theme/typography';
const baseHeading = css`
color: ${({ headingColor, theme }) => theme.colors.primary[headingColor]};
padding-bottom: ${({ paddingBottom }) =>
paddingBottom ? `${paddingBottom}rem` : null};
paddi... |
// If there aren't any filters active, hide the filter container:
function renderFilterContainer() {
if (filterContainer.childElementCount > 0) {
searchBar.style.display = "flex";
} else {
searchBar.style.display = "none";
}
}
|
'use strict';
describe('Async Injector', function() {
var asyncQueue;
function GasEngine() {
this.toString = function() { return 'gasEngine'};
}
function AsyncGasEngine($q) {
var deferred = $q.defer();
asyncQueue(function() {
deferred.resolve(new GasEngine);
});
return deferred.p... |
import React from 'react'
import { StyleSheet } from 'quantum'
import './Column.css'
const styles = StyleSheet.create({
self: {
width: '20px',
height: '230px',
background: '#546e7a',
position: 'relative',
overflow: 'hidden',
'& span': {
position: 'absolute',
top: 0,
left: 0,... |
const express = require('express')
const router = express.Router()
const PatientsSchema = require('../models/oncologico')
router.get('/', (req, res)=>{
res.render('oncologico/home')
})
router.post('bibi',(req,res)=>{
res.render('oncologico/bibi')
})
router.patch('foy',(req,res)=>{
res.render('oncologico... |
import React, { useState } from "react";
import MenuItem from "@material-ui/core/MenuItem";
import Menu from "@material-ui/core/Menu";
import Button from "@material-ui/core/Button";
import Icon from "@material-ui/core/Icon";
import TriangleIcon from "../../assets/drop_down_triangle.svg";
const options = ["Options", "D... |
var primitive = {};
/**
Note: all primitives in this file should be written so that it's easy
to syntactically pull out all of the implemented primitives. Make
sure that any new primitive is written as:
PRIMITIVES[name-of-primitive] = ...
That way, we can do a simple grep.
*/
(function() {
var CALL = typ... |
import React,{Component} from 'react';
import store from './store/store2';
import {addStateNum,minusStateNum} from "./store/number"
class App extends Component {
constructor (props){
super(props)
this.state = {
num : store.getState()
}
store.subscribe( ()=>{
this.setState({
num :... |
export const POLY_SYM_OF_B = 'B';
export const POLY_SYM_OF_C = 'C';
export const POLY_SYM_OF_D = 'D';
export const POLY_SYM_OF_E = 'E';
export const POLY_WORD_FOUND = 'POLY_WORD_FOUND';
export const POLY_WORD_NOT_FOUND = 'POLY_WORD_NOT_FOUND';
|
/* eslint-disable new-cap */
import { describe, Try } from "riteway"
import { split } from "./split"
describe("split", async assert => {
assert({
given: "string that contains one ',', splitting by it",
should: "return array with 2 strings",
actual: split(",")("lorem,ipsum"),
expected: ["lorem", "ips... |
({
getUserListByStatus : function(component) {
var queueId = component.get("v.queueId");
if (queueId){
var aprwAction = component.get("c.getUserPresenceStatus");
aprwAction.setParams({
"queueId" : queueId,
... |
export default class extends think.logic.base {
addAction(){
}
testAction(){
}
} |
function lookupStudent(studentID) {
return function nobody(){
var msg = "Nobody's here yet.";
console.log(msg);
};
}
var student = lookupStudent(112);
student();
// Nobody's here yet. |
var gulp = require("gulp");
var server = require("gulp-server-livereload");
gulp.task("webserver", function(){
gulp.src("public").pipe(server({
livereload:true,
open:true,
port:3000
}));
}); |
import React from "react";
import ReactDOM from "react-dom";
import PropTypes from "prop-types";
import styled, { withTheme } from "styled-components";
import Icon from "./icon";
import {
ZoomIn,
ZoomOut,
FadeIn,
FadeOut
} from "animate-css-styled-components";
import { isBrowser } from "../functions";
... |
import styled from 'styled-components'
const Title = styled.div`
font-size: calc(3vmin + 12px);
color: white;
font-family: EBGaramond;
user-select: none;
margin-top: 32px;
text-align: center;
text-shadow: 0 0 2px rgba(0, 0, 0, 1);
`;
export default Title; |
const jwt = require('jsonwebtoken');
const SEED = require('../config/seed').SEED
exports.VerifyToken = function (req,res,next) {
token = req.query.token;
jwt.verify(token,SEED,(err, decoded)=>{
if (err) {
return res.status(401).json({
ok: false,
mensaje... |
/*global jQuery:true, intershop:true */
'use strict';
!function (global, utils, $) {
var ui = utils.namespace('intershop.propertygroups.ui'),
container = utils.namespace('intershop.propertygroups.ui.container'),
template = '' +
'<div class="propertygroup-property form-group">' +
... |
Shadowmap.prototype = Object.create(Shadowmap.prototype);
Shadowmap.prototype.constructor = Cubemap;
function Shadowmap(scene) {
this.scene = scene;
this.size = 256;
this.buffer = this.scene.gl.createFramebuffer();
this.depthExt = this.scene.gl.getExtension("WEBGL_depth_texture");
}
Shadowmap.prot... |
import { GraphQLID } from 'graphql';
import { SchemaDirectiveVisitor } from 'graphql-tools';
import { createHash } from 'crypto';
class UniqueIdDirective extends SchemaDirectiveVisitor {
visitObject(type) {
// @TODO: implement directive declaratin
const { name = 'uid', from } = this.args;
const fields =... |
import CertClient, { getClientFromState, clientWithoutAccount } from "../client"
import { getTextOnIpfs, postText, fileInputToDataURL, createBlobFromImageDataURI, postCertificate, getImageOnIpfs } from "../image-upload";
import { copyText, getGoogleUid } from "../util";
const getMyProfile = () => async (dispatch, getS... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
import CxltToastr from 'cxlt-vue2-toastr';
import 'cxlt-vue2-toastr/dist/css/cxlt-vue2-toastr.css';
const toastrConfigs = {
position: 'top right',
showDuration: 500,
hide... |
import React from "react";
import PropTypes from "prop-types";
const SearchField = ({ onSearch }) => (
<div>
<label>Search by Name or Surname</label>
<input
type="text"
onChange={event => onSearch(event.target.value.toLowerCase())}
/>
</div>
);
SearchField.propTypes = {
onSearch: PropTyp... |
const express = require('express')
const bcrypt = require('bcryptjs')
const jwt = require('jsonwebtoken')
const router = express.Router()
const verify = require('./verifyToken')
const {loginValidation} = require('../validation')
const db = require('../models')
const models = db.sequelize.models
router.post('/login', a... |
const auth = require("./Auth.js");
const express = require("express");
const bodyParser = require("body-parser");
const nodemailer = require("nodemailer");
const mysql = require("mysql");
const appMail = express();
const appFetch = express();
appFetch.post("/api/fetch", (req, res) => {
const con = mysql.createConnec... |
/**
* Copyright 2016 Google Inc.
*
* 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... |
const unsplashApi = 'https://api.unsplash.com/search/photos?page=1&query=office&client_id=d1463f432cce4150640ff56ee13c1f94ec0b2993db4395bcb8913f34daeb0d48';
const thumbParent = document.querySelector(".thumbs");
const photoParent = document.querySelector(".photo");
const fullSize = [];
const photographerArr = [];
const... |
var curDate = new Date()
var curHour = curDate.get()
console.log(`Agora são exatamente ${curHour} horas`)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.