text stringlengths 7 3.69M |
|---|
// adapted from https://github.com/nunof07/markdown-it-fontawesome/blob/master/index.js
import Plugin from 'markdown-it-regexp';
export default function(md, options) {
md.use(Plugin(/\:(fa[srb])-([\w\-]*\w)\:/, (m, utils) => `<%= ${m[1]}('${m[2]}') %>`));
} |
var files_dup =
[
[ "block_cluster.cpp", "block__cluster_8cpp.html", "block__cluster_8cpp" ],
[ "block_cluster.h", "block__cluster_8h_source.html", null ],
[ "graph_cluster.cpp", "graph__cluster_8cpp.html", "graph__cluster_8cpp" ],
[ "graph_cluster.h", "graph__cluster_8h_source.html", null ],
[ "h_m... |
$(window).scroll(function(){
if($('.navbar').offset().top > 50){
$('.navbar-fixed-top').addClass('top-nav-collapse');
} else{
$('.navbar-fixed-top').removeClass('top-nav-collapse');
}
})
$(function(){
$('.page-scroll a').bind('click', function(){
var $anchor = $(this);
... |
/**
* Implementation of Factory pattern to create various objects required
* for eskin model construction
**/
//TODO figure out how to unit test factory pattern
var SBMLFactory = d3scomos.SBMLFactory = function SBMLFactory (){
/** return this **/
var factory = {};
var factoryProto = factory.prototype;
/**
* ... |
import React from 'react'
import {
HashRouter as Router,
Switch,
Route,
Redirect,
Link
} from 'react-router-dom';
import Counter from '../components/Counter';
import { Login } from '../components/Login';
import Navbar from '../components/Navbar';
const AppRouters = () => {
return (
<Rou... |
// Support for plotting non-standard functions
// Written by Jieun Chon, Cliff Shaffer, and Ville Karavirta
(function() {
"use strict";
var Plot = {
// Create and return a set of points used to draw a dashed line.
// func: The function for the line being drawn
drawDash: function(func, xStart, yStart, ... |
var texture = THREE.ImageUtils.loadTexture('../assets/smb3.png',THREE.UVMapping, function() {
//var texture = THREE.ImageUtils.loadTexture('../assets/contra.png', THREE.UVMapping, function () {
gpu.init(256, 240);
// 60 fps
requestAnimationFrame(function () {
gpu.render(texture);
});
});... |
"use strict";
function diamond(n) {
for (let index = 1; index <= n; index += 2) {
let stars = '*'.repeat(index);
let margin = ' '.repeat((n - index) / 2);
console.log(margin + stars);
}
for (let index = n - 2; index >= 1; index -= 2) {
let stars = '*'.repeat(index);
let margin = ' '.repeat((n... |
import React from "react";
import { Star, StarBorder } from "@material-ui/icons";
import { withAuth } from "../../../hoc/withAuth";
function FavoriteIcon({
auth: { favorites },
authActions: { toggleFavoriteMovies },
id,
}) {
let isFavorite = false;
if (favorites.length > 0) {
let favoriteIDs = favorites... |
import React, { useState } from 'react'
import Aux from '../aux/Aux'
import classes from './Layout.css'
import Toolbar from '../../components/navigation/toolbar/Toolbar'
import SideDrawer from '../../components/navigation/SideDrawer/SideDrawer'
const Layout = (props) => {
const [show, setShow] = useState(false)
... |
export { default as Internal } from './internal'
export { default as requireText } from './requireText'
// Useful for nested strings that should be evaluated
export const escape = (str, quote) => {
str = str.replace(/\\/g, '\\\\')
switch (quote) {
case "'": return str.replace(/'/g, "\\'")
case '"': return... |
const { GraphQLString, GraphQLObjectType } = require('graphql')
const TimestampType = require('./timestamp.type')
const MessageType = new GraphQLObjectType({
name: 'Message',
description: 'SMS Message',
fields: () => {
return {
id: {
type: GraphQLString,
description: 'The identifier of ... |
TQ.bayonetList = function (dfop){
function bayonetOperatorFormatter(el,options,rowData){
return (dfop.hasUpdateBayonet == 'true' ? "<a href='javascript:bayonetUpdateOperator("+rowData.id+")'><span>修改</span></a> "+
" | " : '' )+
(dfop.hasDeleteBayonet == 'true' ? "<a href='javascript:bayonetD... |
module.exports = {
// test: {
// bind (el, binding, vnode, oldVnode) {
// },
// inserted (el, binding, vnode, oldVnode) {
// },
// update (el, binding, vnode, oldVnode) {
// },
// componentUpdated (el, binding, vnode, oldVnode) {
// },
// unbind (el, binding, vnode, oldVnode) {... |
import React from 'react';
import './Player.css';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faPlusSquare } from '@fortawesome/free-solid-svg-icons'
import 'bootstrap/dist/css/bootstrap.min.css';
const Player = (props) => {
const { name, salary, country, image } = props.player;
r... |
module.exports = function () {
// determine user id
var id = require('cookie').parse(document.cookie)['user-id'];
console.info("User ID:", id);
_.model.UserId.set(id);
}
|
import React, { Component } from 'react';
import queryString from 'query-string';
import fetchJsonp from 'fetch-jsonp';
import search from './img/search.svg';
export default class Search extends Component {
static defaultProps = {
meetup: '',
coords: {
latitude: 40.7259114,
longitude: -73.99591... |
define(["DataURL"],function (DataURL){
var Contents={
convert: function (src, destType, options) {
// options:{encoding: , contentType: }
// src: String|DataURL|ArrayBuffer|OutputStream|Writer
// destType: String|DataURL|ArrayBuffer|InputStream|Reader
var srcType;
i... |
define(['jquery', 'QDP'], function ($, QDP) {
"use strict";
let isFullScreen = false;
/** 当前登录状态是否超时 */
let isLoginTimeout = false;
var fullScreen = () => {
var docElm = document.documentElement;
//W3C
if (docElm.requestFullscreen) {
isFullScreen = true;
docElm.requestFullscreen();
... |
//const { SlashCommand } = require("gcommands")
module.exports = {
name: "test",
aliases: ["ccc"],
description: "Test",
//expectedArgs: '<enable:6:description> <test>',
/*expectedArgs: [
{
name: "list",
type: 3,//SlashCommand.STRING,
description: "helllo",
required: true,
choices: [
{
na... |
const chai=require('chai');
const chaiHttp=require('chai-http');
const should=chai.should();
const server=require('../app');
chai.use(chaiHttp);
let token,directorId;
describe('api/directory tests',()=>{
before((done)=>{
chai.request(server)
.post('/authenticate')
.send({username:'metin1... |
import { createStore } from 'redux';
const initialState = {
Prop1: 'test'
// Props2: []
// ...
};
const reducer = (state = initialState, action) => {
// The .dispatcher() will trigger reducer()
// Add if/then statements for how to resolve actions
//
// ===================================================... |
#!/usr/bin/env node
var fs = require('fs')
var nunjucks = require('nunjucks')
var argv = process.argv; //返回命令行脚本的各个参数组成的数组。
var filePath = __dirname;
var currentPath = process.cwd(); //返回运行当前脚本的工作目录的路径。_
//
// console.log(filePath)
// console.log(currentPath)
// cli parse
argv.shift()
argv.shift()
console.log(argv)
... |
'use strict';
module.exports = function(app) {
var express = require('express');
var atms = require('../../app/controllers/atms.server.controller');
var router = express.Router();
app.use('/api/v1/atms', router);
// router.use();
router.route('/search')
.get(atms.queryATM);
router.route('/state... |
import React from 'react';
import useWindowDimensions from './windowdimensions';
import './wordcloud.css';
export default function WordCloud(props) {
let words = props.data;
let data = [];
for (const word in words) {
data.push({ word: word, weight: words[word] });
}
/* returned input is too large. The s... |
const add = function (x, y) {
const total = x + y;
console.log("Сумма = ", total);
return total;
};
add(5, 6);
console.log("Сумма = ", add(3, 2));
const result = add(4, 5);
console.log("Результат суммы ", result);
add(1, 4);
const fnA = function (val) {
return val >= 50 ? "More than 50" : "Less than 50";
};
co... |
import React from 'react'
function Page3(props) {
return (
<div>
<h2> 我是Page33页</h2>
<h2> 我是Page33页</h2>
</div>
)
}
export default Page3 |
#!/usr/bin/env node
"use strict"
require('./helper')
let ls = require('./ls')
let fs = require('fs').promise
let co = require('co')
let path = require('path')
let dir = process.argv[2]
let rm = co.wrap(function*(dir) {
let stat = yield fs.stat(dir)
if (stat) {
let fileNames = yield fs.readdir(dir)
... |
const { Event } = require("klasa");
const AudioManager = require("../utils/music/AudioManager.js");
const Website = require("../utils/Website.js");
class KlasaReady extends Event {
async run() {
this.client.user.setActivity(`${this.client.guilds.size} guilds! | r.help | v2`, { type: "WATCHING" });
... |
/**
* Using POST params update or save a boss to the database
* If res.locals.boss is there, it's an update otherwise this middleware creates an entity
* Redirects to / after success
*/
const requireOption = require('../requireOption');
module.exports = function (objectrepository) {
const BossModel = requireOp... |
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { ReactiveDict } from 'meteor/reactive-dict';
import { Template } from 'meteor/templating';
import './nav.js';
import './footer.html';
import './homeLayout.html';
import './layout.html';
import './footer.css';
|
'use strict';
var app=angular.module('loginApp', ['ngRoute']);
app.config(['$routeProvider', function($routeProvider){
$routeProvider.when('/login', {templateUrl: 'partials/login.html', controller:'loginCtrl'});
$routeProvider.when('/home', {templateUrl: 'partials/home.html', controller:'homeCtrl'});
... |
/*!
* @copyright 2012-2014 SAP SE. All rights reserved@
*/
jQuery.sap.declare("sap.landvisz.internal.ModelingStatusRenderer");
/**
* @class ModelingStatusRenderer renderer.
* @static
*/
sap.landvisz.internal.ModelingStatusRenderer = {};
/**
* Renders the HTML for the given control, using the provided
* {@lin... |
{
"blog.title": "Blogen"
}
|
var timedata;
var td_norm;
$(document).ready(function() {
// Stuff to do as soon as the DOM is ready
$.getJSON("./data_int.json",function(data){
timedata = data.slice()
console.log("data loaded");
//$("#play-btn").prop("disabled", false);
});
$.getJSON("./data_int.json",function(data_in... |
//Load all the function at the beginning, for scroll and for resize
$(document).ready(function(){
$(".parallax-noSnap").timGuignardParallax({
snapEffect : false
});
$(".parallax-intro").timGuignardParallax({
heightForSnap : 50
});
$(".parallax").timGuignardParallax();
/*$(".paralla... |
const toTopArrow = () => {
const toTop = document.getElementById('totop'),
headerMain = document.querySelector('.header-main');
document.addEventListener('scroll', () => toTop.style.display = (window.scrollY > headerMain.clientHeight - 100) ? 'block' : 'none');
};
export default toTopArrow; |
#!/usr/bin/env node
/**
* Module dependencies.
***/
var program = require('commander');
var pack = require('./package.json');
var shell = require('shelljs');
function list(val) {
return val.split(',');
}
program
.version(pack.version)
.description('Limits processes CPU usage')
.option('-t, --time <n>', 'Ti... |
$(document).ready(function(){
$('.search').bind('keyup', function(e){
if (e.keyCode === 13){
var query = $(this).val();
window.location = "search.php?query=" + query;
}
});
}); |
import { renderString } from '../../src/index';
describe(`Escape strings for use in URLs (uses UTF-8 encoding). It accepts both dictionaries and regular strings as well as pairwise iterables.`, () => {
it(`unnamed case 0`, () => {
const html = renderString(`{{ "Escape & URL encode this string"|urlencode }}`);
... |
import React, {Component} from 'react';
import Form from "./Form";
class Index extends Component {
// This State Declaration
state = {
userControl: '',
fatherControl: '',
emailControl: '',
birthControl: '',
phoneControl: '',
}
//This is handChange Method
handl... |
module.exports = {
env: {
browser: true,
es6: true
},
extends: 'eslint:recommended',
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: 'module'
},
plugins: ['react'],
rules: {
'no-console': 0,
'no... |
var Result = React.createClass({
render: function() {
var tab;
var block;
if(this.props.chem){
tab;
switch(this.props.tabs['result']){
case 'raw':
tab = <ResultRaw chem={this.props.chem}/>
break;
case 'vis':
tab = <Vis chem={this.props.chem}
... |
$(function () {
var maiorLinha = 0;
$(".container .linha").each(function () {
var larguraLinha = 0;
$(this).children(".tile").each(function () {
larguraLinha += $(this).width();
larguraLinha += 2*parseInt($(this).css("margin-right").toString().replace("px", ""));
... |
import catalogService from './catalogService';
import customerLocationService from './customerLocationService';
export { catalogService, customerLocationService };
|
import React, { Component } from 'react';
import { Table } from 'react-bootstrap';
import Barca from '../../Assets/barca.png'
import chelsea from '../../Assets/chelsea.png'
import juvey from "../../Assets/juvey.png";
import napoli from '../../Assets/napoli.png';
import manu from '../../Assets/mancity.png';
import './Ma... |
window.onload = function(){
document.getElementById("cpwd").style.display = "none";
document.getElementById("name").style.display = "none";
document.getElementById("verf").style.display = "none";
}
function newaccount(){
document.getElementById("new").style.width = "300px";
document.getElementB... |
const fs = require('fs')
var data = [
{
question:'Who was the first congress prcident',
optionA:'Mahatma Gandhi',
optionB:'Jawaharlal Neheru',
optionC:'Netaji Subash Chandra Bose',
optionD:'Indira Gandhi'
}
]
data.push({
question:'Name the animal bird of India',
optionA:'Peacock',
... |
/*jshint esversion: 6 */
var fs = require('fs');
var shell = require('shelljs');
var path = require('path');
var config = require('./defaultWebdriverConfig');
var newLine = '\n';
var public = {};
public.getTestScriptPath = function (test) {
return `tests/bdd/${test.application}/features/${test._id}.feature`;
}... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Zia;
(function (Zia) {
var Texture2D = (function (_super) {
__extends(Texture2D, _supe... |
/**
* Created by andycall on 15/5/4.
*/
var express = require('express'),
loggerController = require('../controllers/logger'),
loggerRouter = express.Router();
loggerRouter.all('/api/:plugin', loggerController.increase, loggerController.index);
module.exports = loggerRouter;
|
import React from 'react'
const {format} = require('date-fns')
const hu = require('date-fns/locale/hu')
function getToday () {
return format(new Date(), 'YYYY.MM.DD. dddd', {locale: hu})
}
export default function Day ({day}) {
return (
<div className="calendar">
<p>{getToday(new Date())}</p>
<p>{d... |
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
Button,
ScrollView,
TextInput,
KeyboardAvoidingView,
Picker,
TouchableOpacity,
Dimensions,
} from 'react-native';
import {connect} from 'react-redux';
import {bindActionCreators } from 'redux... |
import React, { Component } from 'react'
import './assets/css/App.scss'
import { Layout, Menu } from 'antd'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import routes from './modal/router.js'
const { Header, Sider, Content } = Layout
const SubMenu = Menu.SubMenu
class App extends Component ... |
import React, { useEffect, useState } from 'react';
import { FlatList, StyleSheet, Text, View, Pressable } from 'react-native';
import { constantstyles } from '../../constants/constanstStyles';
import { theme } from '../../theme';
import { Card, Title, Paragraph } from 'react-native-paper';
import ButtonComponent from ... |
module.exports = {
onInput: function(input) {
var height = input.height;
var width = input.width;
var className = input['class'];
this.state = {
width: width,
height: height,
lat: input.lat,
lng: input.lng,
className: class... |
import React from "react";
export function Snippet(props){
return (
<p dangerouslySetInnerHTML={{__html:props.snippet}}></p>
)
} |
import React, { Component } from 'react';
export default class CustomerListGroupItem extends Component {
constructor(props) {
super(props)
this.onDoneClick = this.onDoneClick.bind(this);
}
onDoneClick(id) {
return (e) => {this.props.onDoneClick(id)}
}
render() {
let data = this.props.data;
... |
import Incorrect from './Incorrect'
export default Incorrect |
// Load required modules...
var mongoose = require('mongoose');
// Define the schema for our abbreviation model
var abbreviationSchema = mongoose.Schema({
uid: String,
abbr: String,
full: String
});
// Create the model for abbreviations and expose it to our app
module.exports = mongoose.model('Abbreviati... |
var ViveControls = function() {
// Constants
var CONTROLLER_PATH = '/models/';
var CONTROLLER_OBJ_FILE = 'vr_controller_vive_1_5.obj';
var CONTROLLER_TEXTURE_FILE = 'onepointfive_texture.png';
var CONTROLLER_SPEC_FILE = 'onepointfive_spec.png';
var UP_VECTOR = new THREE.Vector3( 0, 1, 0 );
// Globals
var... |
// If you ever had to get the maxiumum number from an array then you are probably familiar with the good ole' Math.max.apply() function that takes a this argument and an array. A typical implementation would look like this:
//
// var myArray = [1, 42, 112, 32, 21]
// var max = Math.max.apply(null, myArray) //= 112
// T... |
// @flow
import * as React from 'react';
import { Dimensions, Platform, StatusBar, KeyboardAvoidingView } from 'react-native';
import GradientBackground from '../../elements/GradientBackground';
import NextFloatingButton from '../../elements/NextFloatingButton';
import Input from '../../elements/Input';
import IconButt... |
/*$(document).ready(function(){
var selectedCountry = $('select#location').children("option:selected").val();
if(selectedCountry=="Select a Location"){
//$('select#location').addClass("errorValidation");
$('.requestRefillbtn').prop("disabled",true);
}
$('select#location').change(funct... |
// 公共接口集合
import {onGet, onPost} from './main'
// 获取菜单数据
export const getMenuData = params => {
return onGet('sso/main/menuData', params)
}
// 获取用户信息
export const getUserInfo = params => {
return onGet('sso/queryUserInfo', params)
}
// 注销
export const logout = params => {
return onPost('', params)
}
// 解锁
exp... |
/**
* @file 路径分割
* @author mengke01(kekee000@gmail.com)
*/
define(
function (require) {
var bezierQ2Split = require('math/bezierQ2Split');
var getBezierQ2T = require('math/getBezierQ2T');
/**
* 按索引号排序相交点,这里需要处理曲线段上有多个交点的问题
*
* @param {Array} path 路径
... |
import {getConstants} from '../shared/utils'
export default getConstants(
[
'SOME_ACTION'
]
)
|
const express = require("express");
const router = express.Router();
const User = require("../models/user");
const Profile = require("../models/profile");
const http = require("follow-redirects").http;
const logger = require("../util/logger");
const bcrypt = require("bcryptjs");
const { adminRequired, authRequired } = ... |
document.getElementById("new-folder").addEventListener("blur", request);
document.getElementById("upload-file").addEventListener("change", upload);
var divOrders = document.querySelectorAll("div[order]");
var clickOrders = document.querySelectorAll(".click");
divOrders.forEach(element => {
let margingLeft = elem... |
const _dateToString = (date) => {
try {
const string = new Intl.DateTimeFormat([], {
weekday: "long",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
}).format(new Date(date));
return string;... |
import React from 'react'
const Movie = (props) => {
return (
<div className="col s12 m6 l3">
<div className="card">
<div className="card-image waves-effect">
{
props.image != null
? <img src={`https://image.tm... |
var util=require('util');
var qs=require('querystring');
var https=require('https');
var Resource=require('deployd/lib/resource');
function ElasticEmail(){
Resource.apply(this, arguments);
}
util.inherits(ElasticEmail,Resource);
ElasticEmail.prototype.clientGeneration=true;
ElasticEmail.basicDashboard={
s... |
import React from 'react';
import * as Components from '../components';
import { HeroContent } from '../content';
import { Container, Row, Col, Button } from 'react-bootstrap';
import bgleft from '../assets/bgleft.png';
import bgright from '../assets/bgright.png';
const containerStyle = {
'padding-top': '10vh',
... |
const express = require('express');
const app = express();
app.use(express.json());
const port = 3000;
app.get('/ping', (req, res) => {
res.send("<h1>Pong</h1>");
});
app.get('/json', (req, res) => {
res.status(200).json({nome: "Paulo Ricardo", Idade: 27, EstadoCivil: "Casado"});
});
app.get('/funcionario/:id/... |
'use strict';
import Base from '../base.js';
export default class extends Base {
/**
* index action
* 获取视频列表
* @return {Promise} []
*/
async indexAction() {
let class_id = this.post('class_id');//分类id
let is_group = this.post('is_group');//分组or内容
let orderType = Num... |
/**
* @param {Array<number>} A
* @return {Array<Array<number>>}
*/
const threeSum = (A) => {
// [-3, -1, 1, 0, 2, 10, -2, 8]
// sort
// [-3, -2, -1, 1, 0, 2, 8, 10]
// [-20 ,-3, -2, -1, 1, 0, 2, 8, 10]
// left, middle, right pointers
// for each left
// if l + m + r is zero then add it into result
//... |
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
namespace: 'api',
host:'http://ember-node-blog-miauwi.c9users.io',
session: Ember.inject.service(),
headers: Ember.computed('session.token', function () {
if (this.get('session.token') !== null) {
return {
'Authorization': `Bearer ${this.g... |
"use strict";
import { NavbarTop } from "./navbarTop.js";
import { NavbarBottom } from "./navbarBottom.js";
import {
localeString,
localeStringArray,
Locale,
navbarButtons,
} from "./locale.js";
import { Setting } from "./setting.js";
import { setContentHeight } from "./pattern.js";
const divOutlaySettings = ... |
'use strict';
/* 判断字符是否在之前出现过 */
function hasResults(results, char){
for (var i in results){
if(results[i]["name"] == char){
return true;
}
}
return false;
}
/* 计数 */
function countResults(results, char){
for (var i in results){
if(results[i]["name"] == char){
results[i]["summary"] += 1;
}
}
return... |
angular.module('app.component1')
.controller('DatepickerDemoCtrl', ['$scope', function($scope) {
'use strict';
$scope.today = function() {
if ($scope.data.book.year === '') {
$scope.data.book.year = new Date();
}
};
$scope.data.book.year = ne... |
"use strict";
/********************************************************************
Exercise 1 - Pixel Painter Pro
Original code by Pippin Bar
Edited by Amanda Clement
*********************************************************************/
// Constants
const NUM_PIXELS = 1000;
const DELAY = 1000;
const DEFAULT_COLOR... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import Link from 'next/link'
import {connect} from 'react-redux';
import { do_search_listings, do_display_listings } from '../redux/search-actions'
import propserv from '../services/property-services';
import { SliderResultListing } from './Slid... |
import { setButtonColor } from "../../utils/htmlUtils";
import * as Registry from "../../core/registry";
import * as Colors from "../colors";
const inactiveButtonBackground = Colors.GREY_200;
const inactiveButtonText = Colors.BLACK;
const activeButtonText = Colors.WHITE;
export default class LayerToolBar {
constr... |
export async function getSearchResult(searchUrl, searchItem) {
try {
let result = await fetch(searchUrl + searchItem)
return result.json();
} catch (error) {
throw error.toString();
};
} |
function openOvermoreg() {
document.getElementById("fiscalMoreg").style.visibility = "visible";
document.getElementById("mainFiscal2").style.height = "450px";
document.getElementById("bottomOver2").style.height = "5rem";
}
function closeOvermo() {
document.getElementById("fiscalMoreg").styl... |
import React from "react";
import "./ControlContainer.css";
const ControlContainer = ({ name, handleClick }) => (
<div className="control-container" onClick={handleClick}>
<h2>{name}</h2>
</div>
);
export default React.memo(ControlContainer);
|
class Event {
constructor(options) {
let {
error,
message,
data
} = options
this.error = error;
this.message = message;
this.data = data;
}
toString() {
if (this.error) {
return "ERROR: " + this.message;
... |
/**
* Copyright (c) Benjamin Ansbach - all rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const Abstract = require('./Abstract');
const BC = require('@pascalcoin-sbx/common').BC;
const NetProtocol = require('./NetP... |
$(function() {
$('.delete-image').click(function(e) {
e.preventDefault();
var
fileLink = $(this).prev('a');
console.log(fileLink);
// $(this).remove();
});
}); |
import React, { Fragment, useContext, useEffect } from 'react';
import { Route, Redirect } from 'react-router-dom';
import { AppContext } from '../../context/appContext';
import FeedNav from '../../components/FeedNav';
import ProfilePrivate from '../../containers/ProfilePrivate';
import ProfilePublic from '../../cont... |
const express = require("express");
const router = express.Router();
const {Bills} = require("../models/billModel");
//return all bills
router.get("/",(req,res) => {
return Bills.find({}).limit(20)
.then(bills => {
console.log("Length: ",bills.length);
return res.json({
status:200,
data:bills.map(bill => b... |
$(document).ready(function() {
//Set options
var fadeSpeed = 500;
var autoSlider = false;
var autoSliderSpeed = 1000;
var currentSlide = 1;
var maxSlide = 5;
$("#slider > .slide:first-child").toggleClass("active");
$("#slider > .slide:gt(0)").hide();
//Add event handlers for next a... |
import React from 'react';
import { Link } from 'react-router'
import { connect } from 'react-redux'
import * as actionCreators from '../../action_creators';
import jIf from '../../util/jsx-if';
var VelocityComponent = require('velocity-react/velocity-component');
require('velocity-animate/velocity.ui');
class Landin... |
const Task = require('../models/task')
const SubTask = require('../models/subtask')
const Project = require('../models/project')
const _ = require('lodash')
const ResponseService = require('../../helpers/responseService')
const moment = require('moment')
class TaskController {
getTasks (req, res) {
var query = {... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import Module1 from "./Module1.js";
import Module2 from "./Module2.js";
export default class HuyHoang extends React.Component{
constructor(props){
super(props);
console.log("Hello contructor HuyHoang");
... |
const mongoose = require('mongoose');
const User = require('./models/User');
mongoose.connect('mongodb://localhost:27017/teashop');
User.find({}, (err, datos) => {
datos.forEach(usuario => {
console.log("-------------------")
console.log(`nombre ${usuario.nombre}`)
console.log(`sabores ${... |
import {citiesCopy} from "./CityDataProvider.js"
import {citiesHTML} from "./CityHTMLConverter.js"
const contentElement = document.querySelector(".content--left")
export const citiesList = () => {
let citiesHTMLRepresentation = ""
const citiesArray= citiesCopy()
for (const citiesObj of citiesArray) {
... |
/**
* Created by xuwusheng on 15/12/18.
*/
define(['../../../app','../../../services/platform/integral-mall/giftTransfersConfirmService'], function (app) {
var app = angular.module('app');
app.controller('giftTransfersConfirmCtrl', ['$rootScope', '$scope', '$state', '$sce', '$filter', 'HOST', '$window','gift... |
import React from 'react';
export const PeopleContext = React.createContext({}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.