text
stringlengths
7
3.69M
function updateSGN() { var el = document.getElementById('changeData'); var nets = el.querySelectorAll('td'); for (var i=0;i<7;i++) { itemSpends[i]=spendPerPerson[i]*nPeople itemGets[i]=0 for (var ii=0;ii<9;ii++) { itemSpends[i]+=existingPlots[ii]*spendPerThing[i][ii] itemGets[i]+=existingPlots[ii]*itemPerThing[i][ii] if (ii+1 == selectedButton){ itemSpends[i]+=spendPerThing[i][ii] itemGets[i]+=itemPerThing[i][ii] } } if (i>0){ nets[i-1].textContent = itemGets[i] - itemSpends[i]; } } if (nYears%bpy[1] == 0){ nets[6].textContent = bpy[0]; } else { nets[6].textContent = 0; } } function updateTotals(save) { var el = document.getElementById('newData'); var ts = el.querySelectorAll('td'); for (var i=0;i<7;i++) { if (!save && selectedButton >0){ if (i>0){ ts[i-1].textContent = totals[i] + itemGets[i] - itemSpends[i]; } } else if (!save){ if (i>0){ ts[i-1].textContent = totals[i]; } } else { totals[i] += itemGets[i]; totals[i] -= itemSpends[i]; if (i>0){ ts[i-1].textContent = totals[i]; } } } ts[6].textContent = nPeople; for (var ii=0;ii<9;ii++) { if (existingPlots[ii] == 9){ var el = document.getElementById('buttonRow').querySelectorAll('span')[ii]; el.classList.add('finished'); el.classList.remove('selected'); if (selectedButton == ii+1){ selectedButton = 0; } } } } function chgButton(evt) { var el = evt.target; while (el && el.tagName && el.tagName != 'SPAN'){ el = el.parentElement; } if (selectedButton != parseInt(el.id.split('-')[1])){ selectedButton = parseInt(el.id.split('-')[1]); el.classList.add('selected'); } else { selectedButton = 0; el.classList.remove('selected'); } var ell = document.getElementById('buttonRow'); var buttons = ell.querySelectorAll('span'); for (var i=0;i<buttons.length;i++){ if (buttons[i].id != el.id){ buttons[i].classList.remove('selected'); } } updateSGN(); //updateTotals(false); } function notPossible(type){ alert('Already a '+selectedButton+' in that '+type); } function updateCell(evt){ if (selectedButton == 0){return} var el = evt.target; while (el && el.tagName && el.tagName != 'SPAN'){ el = el.parentElement; } //check if has image already var cellId = [parseInt(el.id.split('-')[1]),parseInt(el.id.split('-')[2])]; var cellValue = parseInt(puzzle[cellId[0]][cellId[1]]); if (cellValue == 0){ //check possible for (var i=0;i<puzzle.length;i++){ if (puzzle[i][cellId[1]] == selectedButton){ notPossible('col'); return; } } for (var i=0;i<puzzle[cellId[0]].length;i++){ if (puzzle[cellId[0]][i] == selectedButton){ notPossible('row'); return; } } for (var i=Math.floor(cellId[0]/3)*3;i<Math.floor(cellId[0]/3)*3+3;i++){ for (var ii=Math.floor(cellId[1]/3)*3;ii<Math.floor(cellId[1]/3)*3+3;ii++){ if (puzzle[i][ii] == selectedButton){ notPossible('block'); return; } } } //add image el.innerHTML = ''; var img = document.createElement('img'); img.setAttribute('src','../sfarm/'+imgList[selectedButton]+'.png'); el.appendChild(img); //Update puzzle puzzle[cellId[0]][cellId[1]] = selectedButton; //Update supplies existingPlots[selectedButton-1]++; updateTotals(true); updateSGN(); if (nYears%bpy[1] == 0) { nPeople+=bpy[0]; } nYears+=1 updateSGN(); //updateTotals(false); } } var selectedButton = 0; var itemSpends = [0,0,0,0,0,0,0]; var itemGets = [0,0,0,0,0,0,0]; updateSGN(); var el = document.getElementById('buttonRow'); var buttons = el.querySelectorAll('span'); for (var i=0;i<buttons.length;i++){ buttons[i].addEventListener('click',chgButton); } var el = document.getElementById('sudokuTable'); var cells = el.querySelectorAll('span'); for (var i=0;i<cells.length;i++){ cells[i].addEventListener('click',updateCell); }
import React from 'react'; import s from './ProfileInfo.module.css'; const ProfileInfo = (props) => { return ( <div className={s.content}> <img className={s.item} src='https://helpx.adobe.com/content/dam/help/en/stock/how-to/visual-reverse-image-search/jcr_content/main-pars/image/visual-reverse-image-search-v2_intro.jpg' /> <div></div> <img className={s.item_img} src='http://webresizer.com/images2/bird1_before.jpg' /> </div> ) } export default ProfileInfo;
const content = document.getElementById('content'), expandedMenu = document.getElementById('expanded-menu'), expandIcon = document.getElementById('expand-icon'); expandIcon.onclick = function (e) { e.preventDefault(); expandedMenu.classList.toggle('active'); content.classList.toggle('active'); };
"use strict"; const fastify = require('fastify')({ logger: true }); /* cabecera que usan los navegadores web , compartir recursos a traves de curso de dominio, entre navegadores el backend proteje sus recursos,(proteccion simple) Generalmente se hace cors para todos, */ fastify.register(require('fastify-cors'), { origin: '*' // put your options here }); fastify.register(require('../src/infraestructure/http/index')); //fastify.register(require('../src/infraestructure/db/index')) fastify.listen(3000, function (err, address) { if (err) { fastify.log.error(err); process.exit(1); } fastify.log.info(`server listening on ${address}`); });
import React, { Component } from 'react'; import { StyleSheet, View, Text, ScrollView, Dimensions, TouchableOpacity, StatusBar, Image, Platform } from 'react-native'; var { height, width } = Dimensions.get('window'); const BACKICON = require('../img/btn_titel_back.png'); const TITLELOG = require('../img/title_logo.png'); const FAVORITEICON = require('../img/btn_title_favorite.png'); const SHAREICON = require('../img/btn_title_share.png'); import CustomBtn from '../view/CustomButton'; import NetUitl from '../utils/netUitl'; import LoadView from '../view/loading'; import StringBufferUtils from '../utils/StringBufferUtil'; import stringUtil from '../utils/StringUtil'; const BASEURL = 'http://121.42.238.246:8080/unitrip_bookstore/bookstore/bookInfo'; const FAVORITESURL = 'http://121.42.238.246:8080/unitrip_bookstore/bookstore/change_favorite'; var menus = ['电子书', '纸质书']; import { CachedImage } from "react-native-img-cache"; const HIDDENICON = require('../img/book_detail_intro_close.png'); const SHOWICON = require('../img/book_detail_intro_open.png'); const MOREICON = require('../img/bookstore_lead_sign.png'); const BOTTOMICON = require('../img/tab_menu_selected.png'); const LABLENOICON = require('../img/null_image.png'); import { toastShort } from '../utils/ToastUtil'; var bookIds; import Global from '../utils/global'; import DeviceStorage from '../utils/deviceStorage'; import RNFS from 'react-native-fs'; export default class BookDetail extends Component { static navigationOptions = ({ navigation, screenProps }) => ({ // 这里面的属性和App.js的navigationOptions是一样的。 header: null, }); constructor(props) { super(props); this.state = { bookId: '', show: false, menuList: [], detailEntity: {}, elePage: true, showIcon: false, showLine: 3, showEleBook: false, showPaperBook: false }; } getData(bookId) { this.setState({ show: true }); StringBufferUtils.init(); StringBufferUtils.append('book_id=' + bookId); let params = StringBufferUtils.toString(); this.fetchData(params); } componentDidMount() { bookIds = this.props.navigation.state.params.book_id; this.getData(bookIds); } /** * 初始化排序 * */ initMenu() { var topMenu = []; for (var i = 0; i < menus.length; i++) { var obj = new Object(); obj.name = menus[i]; obj.id = i; if (i == 0) { obj.select = true; } else { obj.select = false; } obj.type = this.state.detailEntity.type; topMenu.push(obj); } this.setState({ menuList: topMenu }) } _menuClickListener(item, j) { if (j == 0) { if (item.type == '0' || item.type == '2') { var menu_list = this.state.menuList; for (var i = 0; i < menu_list.length; i++) { menu_list[i].select = false; } menu_list[j].select = true; var flag = j == 0 ? true : false; this.setState({ menuList: menu_list, elePage: flag }) } } else { if (item.type == '1' || item.type == '2') { var menu_list = this.state.menuList; for (var i = 0; i < menu_list.length; i++) { menu_list[i].select = false; } menu_list[j].select = true; var flag = j == 0 ? true : false; this.setState({ menuList: menu_list, elePage: flag }) } } } _downLoadMethord(item) { var that = this; that.setState({ show: true, }); var DownloadFileOptions = { fromUrl: item.freeread_url, // URL to download file from toFile: RNFS.DocumentDirectoryPath + '/' + item.book_id + '.pdf', // Local filesystem path to save the file to begin: function (val) { toastShort('开始下载'); }, progress: function (val) { tempLength = parseInt(val.bytesWritten); totalSize = parseInt(val.contentLength); percents = (tempLength / totalSize).toFixed(2); if ((percents * 100) > 99) { that.setState({ show: false }); var obj = new Object(); obj.isDownLoad = true; toastShort('下载完成'); const { navigate } = that.props.navigation; navigate('PdfReadView', { book_id: item.book_id }); DeviceStorage.save(item.book_id + '.pdf', obj); } }, } var result = RNFS.downloadFile(DownloadFileOptions); } renderMenuseItem(item, i) { return <View > <TouchableOpacity onPress={() => this._menuClickListener(item, i)}> {this._getSelectText(i, item)} </TouchableOpacity> </View>; } _getSelectText(i, item) { if (i == 0) { return <View > <View style={{ height: 38, backgroundColor: '#dedede', width: width / 2, alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }}> <View style={{ alignItems: 'center', justifyContent: 'center' }}> <View style={i == 0 ? styles.leftSelectBtn : styles.leftUnSelectBtn} > <Text style={item.select == true ? styles.select_txt : styles.unselect_txt} >{item.name}</Text> </View> <View style={{ alignItems: 'center' }}> <Image style={{ height: 8, width: width / 3 - 40 }} source={item.select == true ? BOTTOMICON : LABLENOICON} /> </View> {this._renderEleLine(item)} </View> <View style={{ width: 2, backgroundColor: '#f3f3f3', height: 38, marginLeft: 1 }}></View> </View> </View> } else { return <View > <View style={{ height: 38, backgroundColor: '#dedede', width: width / 2, alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }}> <View style={{ alignItems: 'center', justifyContent: 'center' }}> <View style={i == 0 ? styles.leftSelectBtn : styles.leftUnSelectBtn} > <Text style={item.select == true ? styles.select_txt : styles.unselect_txt} >{item.name}</Text> </View> <View style={{ alignItems: 'center' }}> <Image style={{ height: 8, width: width / 3 - 40 }} source={item.select == true ? BOTTOMICON : LABLENOICON} /> </View> {this._renderParperLine(item)} </View> </View> </View> } } _renderEleLine(item) { if (item.type == '0' || item.type == '2') { return <View style={{ width: width / 2, backgroundColor: '#1CA831', height: 2 }} /> } else { return <View style={{ width: width / 2, backgroundColor: '#e2e2e2', height: 2 }} /> } } _renderParperLine(item) { if (item.type == '1' || item.type == '2') { return <View style={{ width: width / 2, backgroundColor: '#1CA831', height: 2 }} /> } else { return <View style={{ width: width / 2, backgroundColor: '#e2e2e2', height: 2 }} /> } } goCommentActivity() { const { navigate } = this.props.navigation; navigate('BookCommentView', { book_id: this.state.detailEntity.book_id }); } // 数据请求 fetchData(params) { var that = this; console.log(BASEURL + params); NetUitl.post(BASEURL, params, '', function (responseData) { //下面的就是请求来的数据 if (null != responseData && responseData.return_code == '0') { that.setState({ detailEntity: responseData, show: false }) that.initMenu(); } else { that.setState({ show: false }); } }) } getFavoritesData(bookId, operation) { this.setState({ show: true }); StringBufferUtils.init(); StringBufferUtils.append('user_id=' + Global.userName); StringBufferUtils.append('&&book_id=' + bookId); StringBufferUtils.append('&&type=' + 'android'); StringBufferUtils.append('&&operation=' + operation); let params = StringBufferUtils.toString(); this.fetchFavoritesData(params, operation); } // 数据请求 fetchFavoritesData(params, operation) { var that = this; console.log(FAVORITESURL + params); NetUitl.post(FAVORITESURL, params, '', function (responseData) { console.log(responseData); //下面的就是请求来的数据 if (null != responseData && responseData.return_code == '0') { if ('0' == operation) { toastShort('收藏成功'); } else { toastShort('取消收藏成功'); } that.setState({ show: false }) } else { if (null != responseData && responseData.return_code == '1') { if ('0' == operation) { toastShort('该书已加入收藏夹!'); } else { toastShort('取消收藏失败'); } } else if (null != responseData && responseData.return_code == '400') { const { navigate } = this.props.navigation; navigate('LoginView', { }); } that.setState({ show: false }); } }) } backOnclik = () => { const { goBack } = this.props.navigation; goBack(); } favoriteOnlcik() { if (Global.isLogin != null && Global.isLogin != undefined && Global.isLogin == true) { this.getFavoritesData(bookIds, '0'); } else { const { navigate } = this.props.navigation; navigate('LoginView', { }); } } shareOnlcik() { alert('shareOnlcik'); } onClick(flag, item) { switch (flag) { case '0'://电子书价格 this._addBookInShelf(); break; case '1'://电子书阅读 this._readerBook(item); break; case '2'://纸质书价格 toastShort('支付功能暂未开放'); break; case '3'://加入购物车 this._addGoodsCart(); break; case '4'://纸质书阅读 this._readerBook(item); break; } } _readerBook(item) { var that = this; DeviceStorage.get(item.book_id + '.pdf', function (jsonValue) { if (jsonValue != null) { var isDownLoad = jsonValue.isDownLoad; if (!isDownLoad) { that._downLoadMethord(item); } else { const { navigate } = that.props.navigation; navigate('PdfReadView', { book_id: item.book_id }); } } else { that._downLoadMethord(item); } }); } /** * 免费图书加入书架 */ _addBookInShelf() { var bookEntity = this.state.detailEntity; var isAdd = false; var that = this; if (null != bookEntity && bookEntity.isfree == '1') { DeviceStorage.get(bookEntity.book_id, function (jsonValue) { console.log('jsonValue=' + jsonValue); if (jsonValue != null) { isAdd = jsonValue.isAdd; if (!isAdd) { that._getBookInfo(bookEntity); } else { toastShort('已经加入书架了!'); } } else { that._getBookInfo(bookEntity); } }); } else { const { navigate } = this.props.navigation; navigate('CountCenterView', { bookInfos: bookEntity, }); } } /** * 加入购物车 */ _addGoodsCart() { var bookEntity = this.state.detailEntity; var isAdd = false; var that = this; if (null != bookEntity) { DeviceStorage.get('goodscart_' + bookEntity.book_id, function (jsonValue) { console.log('jsonValue=' + jsonValue); if (jsonValue != null) { isAdd = jsonValue.isAdd; if (!isAdd) { that._getBookGoodsList(bookEntity); } else { toastShort('已加入购物车!'); } } else { that._getBookGoodsList(bookEntity); } }); } } _getBookInfo(books) { var bookList = []; var obj = new Object(); obj.isAdd = true; DeviceStorage.get('book_shelf_key', function (jsonValue) { if (null != jsonValue) { bookList = jsonValue; console.log(jsonValue); bookList.push(books); DeviceStorage.save('book_shelf_key', bookList); DeviceStorage.save(books.book_id, obj); } else { bookList.push(books); DeviceStorage.save('book_shelf_key', bookList); DeviceStorage.save(books.book_id, obj); } toastShort('加入书架成功!'); }); } _getBookGoodsList(books) { var bookList = []; var obj = new Object(); obj.isAdd = true; DeviceStorage.get('book_goodscart_key', function (jsonValue) { if (null != jsonValue) { bookList = jsonValue; console.log(jsonValue); bookList.push(books); DeviceStorage.save('book_goodscart_key', bookList); DeviceStorage.save('goodscart_' + books.book_id, obj); } else { bookList.push(books); DeviceStorage.save('book_goodscart_key', bookList); DeviceStorage.save('goodscart_' + books.book_id, obj); } toastShort('加入购物车成功!'); }); } // 返回国内法规Item _renderBook = (detail) => { return ( <View style={{ height: 170, justifyContent: 'center', backgroundColor: '#DEDEDE' }}> <View style={{ flexDirection: 'row', alignItems: 'center' }}> <CachedImage style={{ height: 100, width: 80, marginLeft: 10 }} source={{ uri: detail.book_icon }} /> <View style={{ height: 160, flexDirection: 'column', justifyContent: 'center', marginLeft: 10 }}> <Text style={styles.news_item_title} numberOfLines={2}>{detail.book_name}</Text> <Text style={styles.rule_item_time}>作者:{detail.book_author}</Text> <Text style={styles.rule_item_time}>分类:{(detail.classify_name == '' || detail.classify_name == undefined) ? '未知' : detail.classify_name}</Text> <Text style={styles.rule_item_time}>字数:{detail.text_count}字</Text> {this._renderItem(detail)} <Text style={styles.rule_item_time}>出版社:{detail.publisher_name}</Text> <Text style={styles.rule_item_time}>时间:{detail.press_datetime}</Text> <Text style={styles.rule_item_time}>ISBN号:{detail.ISBN}</Text> </View> </View> </View> ); } _renderItem(detail) { if (this.state.elePage == true) { return <Text style={styles.rule_item_time}>大小:{(detail.size == '' || detail.size == undefined) ? '未知' : detail.size}</Text> } } _renderButton(detail) { var elePrice = '¥:' + detail.e_price; var paperPrice = '¥:' + detail.p_price; if (this.state.elePage) { return <View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', marginTop: 10, backgroundColor: '#DEDEDE', }}> <CustomBtn textColor='white' textSize={14} btnTxt={elePrice} _BtnOnlcik={() => this.onClick('0', detail)} bgColor='#EBAA00' btnWidth={80} btnHeight={30} /> <CustomBtn textColor='white' textSize={14} btnTxt='免费试读' _BtnOnlcik={() => this.onClick('1', detail)} bgColor='#25BE00' btnWidth={80} btnHeight={30} /> </View> } else { return <View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', marginTop: 10, backgroundColor: '#DEDEDE', }}> <CustomBtn textColor='white' textSize={14} btnTxt={paperPrice} _BtnOnlcik={() => this.onClick('2', detail)} bgColor='#C5C5C5' btnWidth={80} btnHeight={30} /> <CustomBtn textColor='white' textSize={14} btnTxt='加入购物车' _BtnOnlcik={() => this.onClick('3', detail)} bgColor='#DF4A0C' btnWidth={80} btnHeight={30} /> <CustomBtn textColor='white' textSize={14} btnTxt='免费试读' _BtnOnlcik={() => this.onClick('4', detail)} bgColor='#23BD00' btnWidth={80} btnHeight={30} /> </View> } } _separator = () => { return <View style={{ height: 1, backgroundColor: '#e2e2e2', marginTop: 5 }} />; } _iconClick() { var flag = this.state.showIcon; var line = flag == true ? 3 : 30; this.setState({ showIcon: !flag, showLine: line }) } renderIosBar() { if (Platform.OS === 'ios') { return <View style={{height: 20, backgroundColor: '#E1E7E3',}}></View> } } render() { var menuLists = this.state.menuList; // this._renderDevice(this.state.detailEntity); return ( <ScrollView> <View state={styles.page}> {this.state.show == true ? (<LoadView size={10} color="#FFF" />) : (null)} <View > <StatusBar animated={true} hidden={false} backgroundColor={'#E1E7E3'} barStyle={'default'} networkActivityIndicatorVisible={true} /> {this.renderIosBar()} <View style={styles.container}> <View style={styles.left_view} > <TouchableOpacity onPress={() => this.backOnclik()} > <Image style={styles.left_icon} source={BACKICON}></Image> </TouchableOpacity> </View> <View style={styles.textview}> <Image source={TITLELOG} style={{ height: 32, width: 32 }} /> <Text style={styles.textstyle} numberOfLines={1}>书籍详情</Text> </View> <View style={{ flexDirection: 'row', justifyContent: 'flex-end', alignItems: 'center', flex: 1 }}> <View style={styles.right_view} > <TouchableOpacity onPress={() => this.favoriteOnlcik()} > <Image style={styles.right_icon} source={FAVORITEICON}></Image> </TouchableOpacity> </View> <View style={styles.right_view} > <TouchableOpacity onPress={() => this.shareOnlcik()} > <Image style={styles.right_icon} source={SHAREICON}></Image> </TouchableOpacity> </View> </View> </View> </View> {/*<View style={{ height: 1, width: width, backgroundColor: '#1CA831' }} />*/} <View style={{ flexDirection: 'row', alignItems: 'center', backgroundColor: '#DEDEDE', justifyContent: 'center' }}> { menuLists.map((item, i) => this.renderMenuseItem(item, i)) } </View> <View style={{ backgroundColor: '#DEDEDE' }} > {this._renderBook(this.state.detailEntity)} {this._renderButton(this.state.detailEntity)} {this._separator()} </View> <View style={{ backgroundColor: '#DEDEDE', }}> <View style={{ flexDirection: 'row', height: 45, justifyContent: 'space-between', width: width, alignItems: 'center', marginTop: 10 }}> <Text style={{ fontSize: 15, color: '#000000', textAlign: 'center', marginLeft: 10 }}>简介</Text> <TouchableOpacity onPress={() => this._iconClick()} activeOpacity={0.8}> <View style={{ height: 30, width: 30, alignItems: 'center', justifyContent: 'center' }}> <Image style={{ height: 12, width: 11, marginRight: 20 }} source={this.state.showIcon == true ? HIDDENICON : SHOWICON} /> </View> </TouchableOpacity> </View> <Text numberOfLines={this.state.showLine} style={{ paddingLeft: 5, paddingRight: 5 }}>{this.state.detailEntity.intro}</Text> <TouchableOpacity activeOpacity={0.8} onPress={() => this.goCommentActivity()}> <View style={{ flexDirection: 'row', width: width, height: 45, justifyContent: 'space-between', alignItems: 'center', backgroundColor: 'white', marginTop: 10 }}> <View style={{ flexDirection: 'row', width: 140, alignItems: 'center' }}> <Text style={{ fontSize: 15, color: '#000000', textAlign: 'center', marginLeft: 10 }}>评论</Text> <Text style={{ fontSize: 13, color: '#999999', textAlign: 'center', marginLeft: 5 }}>共{this.state.detailEntity.comment_count}条</Text> </View> <View style={{ marginRight: 20 }}> <Image source={MOREICON} style={{ height: 14, width: 9 }} /> </View> </View> </TouchableOpacity> </View> </View> </ScrollView> ) } } const styles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', height: 45, alignSelf: 'stretch', backgroundColor: '#E1E7E3', justifyContent: 'space-between', width: width }, page: { height: height, backgroundColor: '#DEDEDE' }, textview: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', flex: 1 }, textstyle: { fontSize: 18, color: '#1FA82D', textAlign: 'center', paddingLeft: 10, }, right_view: { flexDirection: 'row', alignItems: 'center', }, right_icon: { width: 39, height: 30, marginRight: 10, justifyContent: 'center' }, left_view: { justifyContent: 'flex-start', alignItems: 'flex-start', width: 30, flex: 1, }, left_icon: { width: 39, height: 30, marginLeft: 10, justifyContent: 'center' }, leftSelectBtn: { width: width / 2 - 2, backgroundColor: '#dedede', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', height: 30, }, leftUnSelectBtn: { width: width / 2 - 5, backgroundColor: '#dedede', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', height: 30, }, rightSelectBtn: { width: width / 2 - 5, backgroundColor: '#F3F3F3', alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }, rightUnSelectBtn: { width: width / 2 - 5, height: 40, backgroundColor: '#F3F3F3', alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }, normalselectBtn: { width: (width - 40) / 4, padding: 5, backgroundColor: '#009C18', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', borderRightWidth: 1, borderRightColor: '#e2e2e2', borderLeftWidth: 1, borderLeftColor: '#e2e2e2' } , normalBtn: { width: (width - 40) / 4, padding: 5, backgroundColor: 'white', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', borderRightWidth: 1, borderRightColor: '#e2e2e2', borderLeftWidth: 1, borderLeftColor: '#e2e2e2' }, normaloneBtn: { width: (width - 40) / 4, padding: 5, backgroundColor: 'white', alignItems: 'center', justifyContent: 'center', flexDirection: 'row', borderLeftWidth: 1, borderLeftColor: '#e2e2e2' }, select_txt: { fontSize: 14, paddingTop: 5, paddingBottom: 5, color: '#00B11D', width: width / 2, textAlign: 'center', }, unselect_txt: { fontSize: 14, paddingTop: 5, paddingBottom: 5, color: '#666666', width: width / 2, textAlign: 'center', }, rule_item_title: { flexDirection: 'column', justifyContent: 'flex-start', paddingLeft: 20, fontSize: 13, color: '#000000', marginTop: 5 }, rule_item_time: { flexDirection: 'column', justifyContent: 'flex-start', paddingLeft: 20, fontSize: 12, color: '#999999', marginTop: 2 }, news_item_title: { flexDirection: 'column', justifyContent: 'flex-start', paddingLeft: 20, fontSize: 15, color: '#000000', marginTop: 5 }, });
'use strict'; module.exports = { name: "Node Knockout project", port: 8080, verbose: false, mongodb: { url: "apollo.modulusmongo.net:27017/qas2Omon", user: "Neablis", password: "NodeKnockout" } };
let arr=[1,2,3,4,5,6,7,8,9,10] //Reverse Manually let temp=0; for(let i=0; i<(arr.length/2); i++){ temp=arr[i] arr[i]=arr[arr.length-1-i] arr[arr.length-1-i]=temp } console.log(arr) let arr2=[1,2,3,4,5,6,7,8,9,10] //Reverse with Builtin function console.log(arr2.reverse())
express = require('express'); var router = express.Router(); const execQuery = require('../db.js') /* #54 getFrineds*/ router.get('/api/friend/:midx', async (req, res) => { const sql = ` select A.*, B.nickname, B.idx AS midx, B.email, B.reg_date, B.profile_message, B.profile_img, B.place, B.lat, B.lng FROM friend A JOIN member B ON A.friend = B.idx WHERE friend in ( SELECT f2.midx FROM friend f1 JOIN friend f2 ON f1.friend = f2.midx where f1.midx = ${req.params.midx} and f2.friend = ${req.params.midx} ) ORDER BY B.nickname ASC ` const resultJSON = { success: true, data: [] } try { const res = await execQuery(sql) resultJSON.data = res } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #132 deleteFriend */ router.delete('/api/friend/:midx/:friend', async (req, res) => { const sql1 = `DELETE FROM friend WHERE midx = ? and friend = ?` const resultJSON = { success: true } try { resultJSON.data = await execQuery(sql1, [req.params.midx, req.params.friend]) resultJSON.data = await execQuery(sql1, [req.params.friend, req.params.midx]) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #59 setFavorite */ router.put('/api/friend/favorite/:midx/:friend', async (req, res) => { const sql = `UPDATE friend SET favorite = ? WHERE midx =? and friend = ?` const resultJSON = { success: true } try { await execQuery(sql, [req.body.favorite, req.params.midx, req.params.friend]) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #158 get member-friend relation */ router.get('/api/friend/:midx/:friend', async (req, res) => { // 나 -> 친구 const sql1 = `SELECT * FROM friend where midx = ? and friend = ?` // 친구 -> 나 const sql2 = `SELECT * FROM friend where midx = ? and friend = ?` const resultJSON = { success: true, message: '', state: null} try { const values = await Promise.all([ execQuery(sql1, [req.params.midx, req.params.friend]), execQuery(sql2, [req.params.friend, req.params.midx]) ]) const result1 = values[0][0] const result2 = values[1][0] if (!result1 && !result2) { // 서로 아무 관계가 없을 때 resultJSON.message = '친구 요청' resultJSON.state = 0 } else if (result1 && result2) { // 서로 친구 관계 일 때 resultJSON.message = '친구 삭제' resultJSON.state = 1 } else if (result1 && !result2) { resultJSON.message = '친구 요청 취소' resultJSON.state = 2 } else if (!result1 && result2) { resultJSON.message = '나에게 친구 요청을 보냈습니다' resultJSON.state = 3 } } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #158 insert member-friend request active relation*/ router.post('/api/friend/:midx/:friend', async (req, res) => { const sql = `INSERT INTO friend (midx, friend) values(?, ?)` const resultJSON = { success: true } try { await execQuery(sql, [req.params.midx, req.params.friend]) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #158 cancel member-friend request active relation */ router.delete('/api/friend-cancel/:midx/:friend', async (req, res) => { const sql = `DELETE FROM friend WHERE midx = ? and friend =?` const resultJSON = { success: true } try { await execQuery(sql, [req.params.midx, req.params.friend]) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #162 get Friend Requested received */ router.get('/api/friend-received/:midx', async (req, res) => { const sql = ` select B.idx AS midx, B.nickname, B.profile_message, B.profile_img, B.reg_date FROM member B WHERE B.idx in ( select midx from friend where friend = ${req.params.midx} and midx not in (SELECT friend from friend where midx = ${req.params.midx}) ) ORDER BY B.nickname ASC ` const resultJSON = { success: true, data: [] } try { resultJSON.data = await execQuery(sql) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) /* #162 get Friend Requested send */ router.get('/api/friend-send/:midx', async (req, res) => { const sql = ` SELECT B.idx AS midx, B.nickname, B.profile_message, B.profile_img, B.reg_date FROM member B WHERE B.idx in ( select friend from friend where midx = ${req.params.midx} and friend not in (SELECT midx from friend where friend = ${req.params.midx}) ) ORDER BY B.nickname ASC ` const resultJSON = { success: true, data: [] } try { resultJSON.data = await execQuery(sql) } catch (err) { resultJSON.success = false resultJSON.err = err.stack } res.json(resultJSON) }) module.exports = router;
//arrays aren't primitives; they're examples of what's called a reference type typeof [1, 2, 3] // object var arr = [1,2,3]; arr.unshift(0); // returns the new length, i.e. 4 arr; // [0,1,2,3] //One (not common) way to remove elements is to manually set the length //of the array to a number smaller than its current length. var arr = [1,2,3]; arr.length = 2; // returns the new length arr; // [1,2] //shift(), unshift(), pop(), push() var arr = [1,2,3]; arr.shift(); // returns 1 arr; // [2,3] //When you use this keyword, the value at the index where you delete will //simply be replaced by undefined. var arr = [5, 4, 3, 2]; delete arr[1]; arr; // [5, undefined, 3, 2] //splice //The splice method accepts at least two arguments. The first argument is //the starting index, indicating where values will be removed or added. //The second parameter is the number of values to remove. //The splice method always returns an array of the removed elements. var arr = [1,2,3,4]; arr.splice(0,1); // returns [1] arr; // [2,3,4] var arr = [1,2,3,4]; arr.splice(0,1,5); // returns [1] arr; // [5,2,3,4] var arr = ["a","b","c","d"]; arr.splice(1,2,"x","y","z"); // ["b", "c"] arr; // ["a", "x", "y", "z", "d"] var arr = ["a","b","c","d"]; arr.splice(4,0,"x","y","z"); // [] arr; // ["a", "b", "c", "d", "x", "y", "z"] var faveFoods = ["steak", "fries", "cheese", "popcorn", "pizza"]; faveFoods[1]; //fries faveFoods[4] = "hamburgers"; faveFoods; //["steak", "fries", "cheese", "popcorn", "hamburgers"] var formerFave = faveFoods.splice(0,1); faveFoods.push("burritos"); faveFoods.unshift("filet mignon"); faveFoods; [].pop(); //undefined var arr = [2, 3, 4, 5]; arr.splice(1,1); //[3] arr; //[2, 4, 5] var arr2 = ["alpha", "gamma", "delta"]; arr2.splice(1, 0, "beta"); //[] arr2; //["alpha", "beta", "gamma", "delta"] var arr3 = [10,-10,-5,-3,2,1]; arr3.splice(0, 4, 10, 9, 8, 7, 6, 5, 4, 3); //[10, -10, -5, -3] arr3; // [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] //Array Methods //length returns how many elements are in the array. This is a property, NOT a function //slice makes a copy of an array. We can use it to copy the entire array, // or create a copy of a subarray. If we just invoke slice() with no arguments, we'll create a copy: var arr = [1,2,3,4]; var copy = arr.slice(); copy; // [1,2,3,4]; // The subarray you get will consist of all the values starting from // the starting index and going up to (but not including) the ending index var arr = [7, 6, 5, 4, 3, 2]; arr.slice(1, 2); // [6] arr.slice(1, 1); // [] arr.slice(2, 5); // [5, 4, 3] arr.slice(2, 1); // [] //concat joins two arrays together. var arr1 = [1,2,3]; var arr2 = [4,5,6]; var combined = arr1.concat(arr2); combined; // [1,2,3,4,5,6] // you can pass in multiple arrays var arr1 = ["a","b","c"]; var arr2 = ["d","e","f"]; var arr3 = ["g","h","i"]; var combined = arr1.concat(arr2,arr3); combined; // ["a","b","c","d","e","f","g","h","i"]; //Any comma-separated list of values can be concatenated with the original array: var openingWords = ["It","was","a"]; var moreOpeningWords = openingWords.concat("dark","and","stormy","night"); moreOpeningWords; // ["It", "was", "a", "dark", "and", "stormy", "night"] // join - the argument is frequently referred to as a delimiter. var arr = ["Hello", "World"]; arr.join(" "); // "Hello World" var arr2 = ["I", "have", "a", "big", "announcement"]; arr2.join("! ") + "!"; // "I! have! a! big! announcement!" // indexOf finds the first index of the element passed in (starting from // the left). If the element is not found, it returns -1. var arr = [1,2,3,4,5,4,4]; arr.indexOf(2); // 1 arr.indexOf(3); // 2 arr.indexOf(1); // 0 arr.indexOf(4); // 3 - indexOf stops once it finds the first 4. arr.indexOf(10); // -1 var moviesIKnow = [ "Wayne's World", "The Matrix", "Anchorman", "Bridesmaids" ]; var yourFavoriteMovie = prompt("What's your favorite movie?"); if (moviesIKnow.indexOf(yourFavoriteMovie) > -1) { alert("Oh, cool, I've heard of " + yourFavoriteMovie + "!"); } else { alert("I haven't heard of " + yourFavoriteMovie + ". I'll check it out."); } // lastIndexOf works just like indexOf, but starts searching from the end // of the array rather than the beginning. var arr = [1,2,3,4,5,4,4]; arr.indexOf(4); // 3 arr.lastIndexOf(4); // 6 - this one is different now as it starts from the end! arr.lastIndexOf(10); // -1 - still returns -1 if the value is not found in the array //Reference vs Value var instructor = "Elie"; var anotherInstructor = instructor; anotherInstructor // "Elie"; // Let's assign a new value to anotherInstructor: anotherInstructor = "Matt"; instructor; // "Elie" anotherInstructor; // "Matt" var instructors = ["Elie", "Matt"]; var instructorCopy = instructors; instructorCopy.push("Tim"); instructorCopy; // ["Elie", "Matt", "Tim"] instructors; // ["Elie", "Matt", "Tim"] // This is because the instructorCopy did not create a new array, it just // created a reference (or pointer) to the instructors array. In other // words, unlike with our previous example, setting instructorCopy equal // to instructors doesn't creat a copy of the instructors array in JavaScript. // Instead, both variable names refer to the exact same array! function f(a,b,c) { a = 3; b.push("foo"); c.first = false; } var x = 4; var y = ["eeny", "miny", "mo"]; var z = {first: true}; f(x,y,z); x; //4 y; //["eeny", "miny", "mo", "foo"] z; //{first: false} // ////////////////////////////////////////////////////////////////////// //Exericses part 1 var arr = []; arr.push("Mark"); arr.push("Noizumi"); arr.unshift("green"); arr; //["green", "Mark", "Noizumi"] arr.shift(); //green var arr2 = []; arr2.push(25); arr2.push("JavaScript"); arr2; //[25, "JavaScript"] arr2.indexOf(42); // -1 var combinedArray = arr.concat(arr2); combinedArray; //["Mark", "Noizumi", 25, "JavaScript"] //Exercises part 2 var arr = ["JavaScript", "Python", "Ruby", "Java"]; arr.slice(1, 3); //["Python", "Ruby"] arr.concat(["Haskell", "Clojure"]); ////["JavaScript", "Python", "Ruby", "Java", "Haskell", "Clojure"] arr.join(" "); //"JavaScript Python Ruby Java" // Array Iteration var decimals = [1.1, 1.6, 2.8, 0.4, 3.5, 1.6]; var i = 0; while(i < decimals.length) { decimals[i] = Math.round(decimals[i]); i++; } // The main difference between a while loop and a do...while loop is // that the code inside of a do...while loop is guaranteed to execute at least once. var i = 0; do { console.log(i); i++; } while(i < 5) //############## var i = 0; while(i < 0) { console.log(i); i++; } // nothing is logged, since 0 < 0 is false var j = 0; do { console.log(j); j++; } while(j < 0) // 0 gets logged, since the code inside the block runs once // before the while condition is checked //break for(var i = 0; i<5; i++){ if(Math.random() > 0.5){ console.log("Breaking out of the loop when i is " + i); break; } else { console.log(i); } } //continue for(var i = 0; i<5; i++){ if(Math.random() > 0.5){ console.log("Skipping the console.log when i is " + i); continue; } console.log(i); } // However, unlike with arrays, you can't reassign the value of a character // in a string. If you try, JavaScript will simply ignore you: (but it works in Ruby) var name = "Matt"; name[0] = "m"; name; // "Matt", not "matt"! // We say that arrays in JavaScript are mutable, since you can change any // element inside of them via a simple reassignment. However, strings are // immutable, as you cannot change the characters within them in the same // way that you do with arrays. In fact, any operation which changes // characters in a string actually produces a new string, rather than // mutating the original string. var arr = []; var v2 = arr.push(2); arr; // [2] v2; // 1 - the length of the array is returned from push - in ruby you get the array //ImmutableArray type var arr = new ImmutableArray([1, 2, 3, 4]); var v2 = arr.push(5); arr.toArray(); // [1, 2, 3, 4] v2.toArray(); // [1, 2, 3, 4, 5] //ImmutableMap var person = new ImmutableMap({name: "Chris", age: 32}); var olderPerson = person.set("age", 33); person.toObject(); // {name: "Chris", age: 32} olderPerson.toObject(); // {name: "Chris", age: 33}var person = new ImmutableMap({name: "Chris", age: 32}); var olderPerson = person.set("age", 33); person.toObject(); // {name: "Chris", age: 32} olderPerson.toObject(); // {name: "Chris", age: 33} //////////////////////////////////////////////////////////////////////////////////////////// //Exercises var people = ["Greg", "Mary", "Devon", "James"]; for(let i = 0; i < people.length; i++){ console.log(people[i]); } people.shift(); people.pop(); people.unshift("Matt"); people.push("Mark"); for(let i = 0; i < people.length; i++){ console.log(people[i]); if (people[i] === "Mary"){ break } } var copy = people.slice(2,4); // var copy = people.slice(2); //same people.indexOf("Mary"); people.indexOf("Foo"); //-1 var people = ["Greg", "Mary", "Devon", "James"]; people.splice(2, 1, "Elizabeth", "Artie"); people; // ["Greg", "Mary", "Elizabeth", "Artie", "James"] var withBob = people.concat("Bob"); //["Greg", "Mary", "Elizabeth", "Artie", "James", "Bob"] //
'use strict'; const uuid = require('node-uuid'); const Chat = module.exports = function(socket) { this.socket = socket; this.user = user; this.id = uuid.v4(); }
function getRandomHexColor() { return `#${Math.floor(Math.random() * 16777215).toString(16)}`; } function hexToRgb(hex) { let result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? { r: parseInt(result[1], 16), g: parseInt(result[2], 16), b: parseInt(result[3], 16), } : null; } const buttonChangeColor = document.querySelector('.change-color'); const spanColor = document.querySelector('.color'); const handleClick = () => { const randomColor = getRandomHexColor(); document.body.style.backgroundColor = randomColor; spanColor.textContent = `rgb(${Object.values(hexToRgb(randomColor))})`; }; buttonChangeColor.addEventListener('click', handleClick);
import FadeIn from "../FadeIn"; import Link from "next/link"; export default function ClementineOS() { return ( <> <FadeIn> <hr className="mt-4" /> <div> <div> <h6 className="middle-underline d-inline">Clementine OS</h6> </div> <p className="mt-2"> Clementine OS is a super light Ubuntu based Linux distribution built using the LFS project. Clementine OS was designed to run enterprise servers to power MixSpace services. </p> <h6 className="mt-4">Releases</h6> <div id="tech-badges"> <Link passHref href={"https://clementineos.mixspace.xyz/"}> <a className="grey-to-white text-decoration-none">v1 (latest)</a> </Link> </div> <h6 className="mt-4">Technologies</h6> <div id="tech-badges"> <span className="badge rounded-pill bg-green">Shell</span> <span className="badge rounded-pill bg-green">Linux</span> <span className="badge rounded-pill bg-green">ESXi</span> <span className="badge rounded-pill bg-green">Git</span> </div> </div> </FadeIn> </> ); }
"use strict"; var OrderAPI = { } module.exports = OrderAPI;
export default class BSSelectionSet { constructor() { this.selectedUnits = null; } getSelectedUnits() { return this.selectedUnits; } addToSelection(unit) { if (this.selectedUnits == null) { this.selectedUnits = new Array(); } this.selectedUnits.push(unit); } clear() { this.selectedUnits = null; } //DEPRECATE THIS getTopSelection() { return this.top(); } top() { if (this.selectedUnits != null && this.selectedUnits.length > 0) return this.selectedUnits[0]; return null; } }
/** * Users access and update. */ var db = require('./database'); // database connection and collection cursors var utilityDao = require('./utility.js'); var config = db.config; var log = config.log; var util = config.utility; var hash = require(util+'hash.js'); var thisModule = 'dao/users.js'; log.debug('initializing',thisModule); var readFields = {fName:1, lName:1, email:1 } ; var userUpdateFields = [ {header: 'First Name', name: 'fName', type: 'text', editable: true, required: true}, {header: 'Last Name', name: 'lName', type: 'text', editable: true, required: true}, {header: 'New Email', name: 'email', type: 'email', editable: true, required: true}, {header: 'New Password', name: 'password', type: 'password', editable: true, required: true} ]; // Add a new user exports.addUser = function(data,callback){ log.debug('add user',thisModule); // TODO: edit new user fields before adding data.email = data.email.toLowerCase(); // Make sure email not already used var query = {email:data.email}; db.users.findOne(query,function(err,user){ if (user){ return callback(null,'user already exists',null); } data.password = hash.generatePassword(data.password); db.users.insert(data,function(err){ callback(err,null,data); }); }); }; // Verify user signon password exports.verifyUserSignon = function(email,password,callback){ log.debug('verify users signon',thisModule); // get user var query = {email:email}; db.users.findOne(query,function(err,user){ if (err || user === null){ return callback(err,user); } if (!hash.comparePassword(password,user.password)){ return callback(null,null); } exports.getUser(user._id.toString(),callback); }); }; // Get user for a given id exports.getUser = function(userId,callback){ log.debug('getting user',thisModule); userId = utilityDao.parseObjectId(userId); var query = {_id:userId}; var options = {fields : readFields}; db.users.findOne(query,options,callback); }; // update user exports.updateUserProfile = function(data,callback){ log.debug('update user profile',thisModule); // if password changed, hash it if (data.password){ data.password = hash.generatePassword(data.password); } // if email changed, verify that it is not already used if (data.email){ var objectId = utilityDao.parseObjectId(data._id); var query = {email:data.email, _id :{'$ne': objectId}}; db.users.findOne(query,function(err,user){ if (err) return callback(err); if (user) return callback(null,'email address already used'); completeUserUpdate(data,callback); }); } else { completeUserUpdate(data,callback); } }; var completeUserUpdate = function(data,callback){ var result = utilityDao.buildUpdateParams(data,userUpdateFields); if (result.errors.length > 0) return callback(null, result.errors[0],0); if (!result.dataUpdated) return callback(null, 'no data updated', 0); var id = utilityDao.parseObjectId(data._id); db.users.update({_id: id},result.updateParams, function(err, count){ callback(err, null, count); }) };
//Inicializa el formulario function EliminarTrayecto() { var popupEliminar = $(".popupEliminar"); var popupNoEliminar = $(".popupNoEliminar"); if (nextId > 1) { var id = localStorage.getItem("TrayectoIndex"); var detalles = []; for (var i = 1; i <= nextId; i++) { if (id != i) { if (i == nextId && comprobante) { detalles.push({ CategoriaId: 1, Salida: $("#salida" + i + "").val(), Llegada: $("#llegada" + i + "").val(), Descripcion: "Comprobante" }); } else { detalles.push({ CategoriaId: $("#categoria" + i + "").find(":selected").val(), Salida: $("#salida" + i + "").val(), Llegada: $("#llegada" + i + "").val(), Descripcion: $("#descripcion" + i + "").val() }); } } } if (detalles.length == 1 && detalles[0].CategoriaId == 1) { popupNoEliminar.attr("style", "display: inline"); popupEliminar.attr("style", "display: none"); } else { //Inicializa $("#set").html("").collapsibleset("refresh"); nextId = 0; comprobante = false; $("#comprobante").attr("style", "display: inline"); $("#add").attr("style", "display: inline"); for (var i = 0; i < detalles.length; i++) { //Crea los items nextId++; var content = ""; if (detalles[i].CategoriaId == 1) { comprobante = true; content = "<div data-role='collapsible' id='set" + nextId + "' data-collapsed='false'><h3>Trayecto " + nextId + "</h3>" + "<div>" + "<label for='salida'>Salida</label>" + "<input type='text' name='salida' id='salida" + nextId + "' disabled='true' value='" + detalles[i].Salida + "' style='width: 180px;' />" + "<label for='llegada'>Llegada</label>" + "<input type='text' name='llegada' id='llegada" + nextId + "' disabled='true' value='" + detalles[i].Llegada + "' style='width: 180px;' />" + "</br>" + "<a href='#popupEliminarTrayecto' data-rel='popup' data-shadow='false' data-iconshadow='false' data-position-to='window' style='text-decoration: none;'><button type='button' data-icon='gear' data-iconpos='left' data-mini='false' data-inline='false' id='cambiarpass' onclick='SetTrayectoIndex(" + nextId + ")'>Eliminar trayecto</button></a>" + "</div>" + "</br>" + "</div>"; $("#set").append(content).collapsibleset("refresh"); } else { //Content //Si nextId == 1 Agrega mapa en salida //Sino omite el mapa en salida if (nextId == 1) { content = "<div data-role='collapsible' id='set" + nextId + "' data-collapsed='false'><h3>Trayecto " + nextId + "</h3>" + "<div>" + "<table>" + "<tr>" + "<td colspan='2'>" + "Categoria" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "<select name='categoria' id='categoria" + nextId + "' data-mini='true' style='width: 220px;'>" + "</select>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "Salida" + "</td>" + "<td rowspan='2' style='position:relative; top:12px;'>" + "<a href='#popupMap' class='ui-btn ui-icon-location ui-btn-icon-notext' data-icon='location' data-rel='popup' data-iconpos='notext' data-shadow='false' data-iconshadow='false' data-position-to='window' data-transition='slidedown' style='-webkit-border-radius: .3125em; border-radius: .3125em;' onclick=\"SetLocationIndex('salida', " + nextId + ");\">Map</a>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "<input type='text' name='salida' id='salida" + nextId + "' value='" + detalles[i].Salida + "' onchange='cargarSalidas();' style='width: 180px;' />" + "</td>" + "</tr>" + "<tr>" + "<td>" + "Llegada" + "</td>" + "<td rowspan='2' style='position:relative; top:12px;'>" + "<a href='#popupMap' class='ui-btn ui-icon-location ui-btn-icon-notext' data-icon='location' data-rel='popup' data-iconpos='notext' data-shadow='false' data-iconshadow='false' data-position-to='window' data-transition='slidedown' style='-webkit-border-radius: .3125em; border-radius: .3125em;' onclick=\"SetLocationIndex('llegada', " + nextId + ");\">Map</a>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "<input type='text' name='llegada' id='llegada" + nextId + "' value='" + detalles[i].Llegada + "' onchange='cargarSalidas();' style='width: 180px;' />" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "Descripción" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "<textarea cols=26 rows='4' name='descripcion' id='descripcion" + nextId + "' style='width: 220px;'>" + detalles[i].Descripcion + "</textarea>" + "</td>" + "</tr>" + "</table>" + "<a href='#popupEliminarTrayecto' data-rel='popup' data-shadow='false' data-iconshadow='false' data-position-to='window' style='text-decoration: none;'><button type='button' data-icon='gear' data-iconpos='left' data-mini='false' data-inline='false' id='cambiarpass' onclick='SetTrayectoIndex(" + nextId + ")'>Eliminar trayecto</button></a>" + "</div>" + "</div>"; } else { content = "<div data-role='collapsible' id='set" + nextId + "' data-collapsed='false'><h3>Trayecto " + nextId + "</h3>" + "<div>" + "<table>" + "<tr>" + "<td colspan='2'>" + "Categoria" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "<select name='categoria' id='categoria" + nextId + "' data-mini='true' style='width: 220px;'>" + "</select>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "Salida" + "</td>" + "<td rowspan='2' style='position:relative; top:12px;'>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "<input type='text' name='salida' id='salida" + nextId + "' value='" + detalles[i].Salida + "' onchange='cargarSalidas();' style='width: 180px;' />" + "</td>" + "</tr>" + "<tr>" + "<td>" + "Llegada" + "</td>" + "<td rowspan='2' style='position:relative; top:12px;'>" + "<a href='#popupMap' class='ui-btn ui-icon-location ui-btn-icon-notext' data-icon='location' data-rel='popup' data-iconpos='notext' data-shadow='false' data-iconshadow='false' data-position-to='window' data-transition='slidedown' style='-webkit-border-radius: .3125em; border-radius: .3125em;' onclick=\"SetLocationIndex('llegada', " + nextId + ");\">Map</a>" + "</td>" + "</tr>" + "<tr>" + "<td>" + "<input type='text' name='llegada' id='llegada" + nextId + "' value='" + detalles[i].Llegada + "' onchange='cargarSalidas();' style='width: 180px;' />" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "Descripción" + "</td>" + "</tr>" + "<tr>" + "<td colspan='2'>" + "<textarea cols=26 rows='4' name='descripcion' id='descripcion" + nextId + "' style='width: 220px;'>" + detalles[i].Descripcion + "</textarea>" + "</td>" + "</tr>" + "</table>" + "<a href='#popupEliminarTrayecto' data-rel='popup' data-shadow='false' data-iconshadow='false' data-position-to='window' style='text-decoration: none;'><button type='button' data-icon='gear' data-iconpos='left' data-mini='false' data-inline='false' id='cambiarpass' onclick='SetTrayectoIndex(" + nextId + ")'>Eliminar trayecto</button></a>" + "</div>" + "</div>"; } $("#set").append(content).collapsibleset("refresh"); //Carga las categorias var concat = ""; for (var j = 0; j < categorias.length; j++) { concat += "<option value='" + categorias[j].Id + "'>" + categorias[j].Nombre + "</option>"; } $("#categoria" + nextId + "").append(concat); } } cargarSalidas(); //Cierra el popup $("#popupEliminarTrayecto").popup("close"); } } else { popupNoEliminar.attr("style", "display: inline"); popupEliminar.attr("style", "display: none"); } } function SetTrayectoIndex(id) { localStorage.setItem("TrayectoIndex", id); } function DevolverCambios() { var popupEliminar = $(".popupEliminar"); var popupNoEliminar = $(".popupNoEliminar"); popupNoEliminar.attr("style", "display: none"); popupEliminar.attr("style", "display: inline"); //Limpiar(); }
// require form-generator const generateForm = require('./form-generator'); // list of Form Item Objects const formItems = [ { type: 'label', id: 'label-select-type', display: 'Account Type', target: 'select-type', }, { type: 'select', id: 'select-type', options: [ { value: 'person', display: 'Person', }, { value: 'company', display: 'Company', }, ], }, { type: 'label', id: 'label-input-username', display: 'Username', target: 'input-username', }, { type: 'text', id: 'input-username', display: 'Enter a username', }, { type: 'submit', id: 'input-submit', display: 'Submit Form', }, ]; // call form generator and log responses generateForm(formItems) .then(console.log) .catch(console.error);
module.exports = (Sucursal) => { Sucursal.despachador = (options, next) => { var ds = Sucursal.dataSource; const valores = options && options.accessToken; const token = valores && valores.id; const userId = valores && valores.userId; Promise.resolve() .then(()=> { return new Promise(function(resolve, reject) { Sucursal.app.models.user.findById( userId,{}, (err,data)=>{ if(err){ reject(err); }else{ if(!data){ reject("No se encontraron operadores para ud."); }else{ resolve(data.suc_id); } } } ) }) }) .then((suc_id)=>{ return new Promise(function(resolve, reject) { var sql = "SELECT id des_id, name ||coalesce(' ' ||surname,'') des_nombre FROM seguridad.user where suc_id=$1 order by 2"; ds.connector.execute(sql, [suc_id], function(err, data) { if (err){ reject(err); } else{ next(null,data); } }); }) }) .catch(function(err){ console.log(err); next("Ocurrio un error al cargar Despachador."); }); }; Sucursal.remoteMethod('despachador', { accepts: [ {arg: "options", type: "object", 'http': "optionsFromRequest"} ], returns: { arg: 'response', type: 'object', root: true }, http: { verb: 'GET', path: '/despachador' } }); }
"use strict"; let monto = document.getElementById("monto"); let consultar = document.getElementById("btnConsultar"); //array con los valores para despues pasarlos por child //TNA let cuotas = [1,1,1.0942,2,1.1288,3,1.2384,6,1.5216,12,1,1,1.0965,2,1.057,1,1.3234,12]; function dotcomma(n) { n = n.replace(".", ""); n = n.replace(",", "."); return n; } function financial(x) { return Number.parseFloat(x).toFixed(2); } consultar.addEventListener("click", () => { let numero = financial(dotcomma(monto.value)); document.querySelector(".una-cuota").innerHTML += "$" + numero; document.querySelector(".cada-una").innerHTML = "$" + financial(numero); document.querySelector(".dos-cuota").innerHTML += "$" + financial(numero * 1.0942); document.querySelector(".cada-dos").innerHTML = "$" + financial((numero * 1.0942) / 2); document.querySelector(".tres-cuota").innerHTML += "$" + financial(numero * 1.1288); document.querySelector(".cada-tres").innerHTML = "$" + financial((numero * 1.1288) / 3); document.querySelector(".seis-cuota").innerHTML += "$" + financial(numero * 1.2384); document.querySelector(".cada-seis").innerHTML = "$" + financial((numero * 1.2384) / 6); document.querySelector(".doce-cuota").innerHTML += "$" + financial(numero * 1.5216); document.querySelector(".cada-doce").innerHTML = "$" + financial((numero * 1.5216) / 12); document.querySelector(".una-cuota-naranja").innerHTML += "$" + financial(numero); document.querySelector(".cada-una-naranja").innerHTML = "$" + financial(numero); document.querySelector(".dos-cuota-naranja").innerHTML += "$" + financial(numero * 1.0965); document.querySelector(".cada-dos-naranja").innerHTML = "$" + financial((numero * 1.0965) / 2); document.querySelector(".zeta-cuota-naranja").innerHTML += "$" + financial(numero * 1.057); document.querySelector(".cada-zeta-naranja").innerHTML = "$" + financial(numero * 1.057); document.querySelector(".doce-cuota-naranja").innerHTML += "$" + financial(numero * 1.3234); document.querySelector(".cada-doce-naranja").innerHTML = "$" + financial((numero * 1.3234) / 12); });
import {LOGOUT_START} from "../../const/actionTypes"; const logoutStart = () => { return { type: LOGOUT_START } } export default logoutStart;
let a = 1; let b = 2; let c = 3; let s1 = {username:"xuesheg"} // console.log(s1) //系统默认 设置exports = module.exports; //使用exports的时候 只能单个设置属性 exports.a = a; //使用module.exports 可以单个设计属性,也可以整个赋 exports.a = a; module.exports.c = c; exports = module.exports; // module.exports = {user: 'xiaomin'}
exports.up = function(knex) { return knex.schema.alterTable('users', function(table) { table.string('twoFactorToken').nullable().default(null); table.boolean('twoFactorConfigured').default(false); }); }; exports.down = function(knex) { return knex.schema.table('users', function(table) { table.dropColumn('twoFactorToken'); table.dropColumn('twoFactorConfigured'); }); };
import crypto from 'crypto'; /** * Used by serialize to handle literal values. * @param {function} recurse The serialize function. * @param {string} key The key for the current value (if one exists). * @param {string|number|boolean|null} value The literal to parse. * @param {function|undefined} replacer The replacer function. * @param {function} done A callback for completion. * @returns {string} The JSON.stringified literal value. */ function handleLiteral(recurse, value, done) { let error = null; let results; // Attempt to JSON parse literal value try { results = JSON.stringify(value); } catch (e) { error = e; } return done(error, results); } /** * Used by serialize to array and plain object values. * @param {object|Array} object The object to process. * @param {function} recurse The serialize function. * @param {function|undefined} replacer The replacer function. * @param {function} done A callback for completion. * @returns {string} The JSON.stringified object value. */ function handleObject(recurse, obj, replacer, done) { const keys = Object.keys(obj); const isArray = obj instanceof Array; let handledError = null; let complete = 0; const values = []; const onComplete = () => done(null, isArray ? `[${values.map(v => (v === null ? 'null' : v)).join(',')}]` : `{${values.sort().filter(Boolean).join(',')}}`); // When an object key is serialized, it calls this method as its callback. const onSerialized = (e, value, index) => { if (handledError) { return null; } else if (e) { handledError = e; return done(e); } values[index] = typeof value === 'undefined' ? null : value; if (++complete !== keys.length) return null; return onComplete(); }; // Serializes each item in an array. const mapArray = (key, index) => recurse(typeof obj[key] === 'undefined' ? null : obj[key], replacer, (e, val) => onSerialized(e, val, index), key); // Serializes each item in an object. const mapObject = (key, index) => (typeof obj[key] === 'undefined' ? onSerialized(null, null) : recurse(obj[key], replacer, (e, val) => onSerialized(e, typeof val === 'undefined' ? null : `"${key}":${val}`, index), key)); // Map the object's keys to its respective object type function return keys.length === 0 ? onComplete() : keys.map(isArray ? mapArray : mapObject); } /** * Handles calling the "replacer" argument to both the "serialize" and "serializeSync" methods. * @param {any} val The value to pass to the replacer function. * @param {string} key The key argument to pass to the replacer function. * @param {function|undefined} replacer The replacer function to call. * @returns {object} An object containing the new value, and "new" replacer function to pass along * in regard to recursion. */ function handleReplacer(val, key, replacer) { let value = val; let onValue = replacer; if (typeof onValue === 'function') { value = onValue(key, value); onValue = typeof value === 'object' ? onValue : undefined; } else if (typeof value === 'function') { value = undefined; } return { value, onValue }; } /** * Seralizes an object into "normalized json", which can be used as a key, etc. * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @param {function} complete A callback for completion. * @param {string|undefined} key The parent key, used in recursion by "handleObject" and passed * to the replacer function. * @returns {undefined} */ function serialize(obj, replacer, complete, key) { let replacerFunction = replacer; let done = complete; // Rearrange arguements for replacer/complete parameters based on value if (typeof done === 'undefined' && typeof replacerFunction === 'function') { replacerFunction = undefined; done = replacer; } // No reason to continue, no callback was provided. if (typeof done !== 'function') return; // Simulates the JSON.stringify replacer function const { value, onValue } = handleReplacer(obj, key, replacerFunction); process.nextTick(() => (!value || typeof value !== 'object' ? handleLiteral(serialize, value, done) : handleObject(serialize, value, onValue, done))); } /** * Syncronously seralizes an object into "normalized json", which can be used as a key, etc. * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @returns {string} A "normalized JSON string", which always returns the same string, if passed * the same object, regardless of key order. */ function serializeSync(obj, replacer, complete, key) { let done = complete; let results; // Create a callback for when stringification is complete if (typeof done !== 'function') done = (err, value) => { results = value; }; // Simulates the JSON.stringify replacer function const { value, onValue } = handleReplacer(obj, key, replacer); if (!value || typeof value !== 'object') { handleLiteral(serializeSync, value, done); } else { handleObject(serializeSync, value, onValue, done); } return results; } /** * Exported wrapper around the serialize function. * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @param {function} complete A callback for completion. * @returns {undefined} */ export function normalize(obj, replacer, complete) { return serialize(obj, replacer, complete); } /** * Exported wrapper around the serializeSync function. * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @returns {string} A "normalized JSON string", which always returns the same string, if passed * the same object, regardless of key order. */ export function normalizeSync(obj, replacer) { return serializeSync(obj, replacer); } /** * Alias for "normalize". * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @param {function} complete A callback for completion. * @returns {undefined} */ export function stringify(...args) { return normalize(...args); } /** * Alias for "normalizeSync". * @param {object} obj The object to serialize. * @param {function=} replacer A function that's called for each item, like the replacer * function passed to JSON.stringify. * @returns {string} A "normalized JSON string", which always returns the same string, if passed * the same object, regardless of key order. */ export function stringifySync(...args) { return normalizeSync(...args); } /** * Returns a hash for the given string. * @param {string} input The string to get the hash of. * @param {string} algorithm The algorithm to use to perform the hash. * @returns {string} The hash for the given string/alogrithm. */ export function hash(input, algorithm = 'md5') { return crypto.createHash(algorithm).update(input).digest('hex'); } /** * Returns the md5 hash for the JSON normalized object passed in. * @param {any} input The input to get the md5 hash for. * @param {function} done A callback for completion. * @returns {undefined} */ export function md5(input, done) { if (typeof done !== 'function') return; serialize(input, (e, serialized) => done(e || null, e ? undefined : hash(serialized, 'md5'))); } /** * Returns the sha256 hash for the JSON normalized object passed in. * @param {any} input The input to get the sha256 hash for. * @param {function} done A callback for completion. * @returns {undefined} */ export function sha256(input, done) { if (typeof done !== 'function') return; serialize(input, (e, serialized) => done(e || null, e ? undefined : hash(serialized, 'sha256'))); } /** * Returns the sha512 hash for the JSON normalized object passed in. * @param {any} input The input to get the sha512 hash for. * @param {function} done A callback for completion. * @returns {undefined} */ export function sha512(input, done) { if (typeof done !== 'function') return; serialize(input, (e, serialized) => done(e || null, e ? undefined : hash(serialized, 'sha512'))); } /** * Returns the md5 hash for the JSON normalized object passed in. * @param {any} input The input to get the md5 hash for. * @param {function} done A callback for completion. * @returns {string} An md5 hash representing the given object. */ export function md5Sync(input) { return hash(serializeSync(input), 'md5'); } /** * Returns the sha256 hash for the JSON normalized object passed in. * @param {any} input The input to get the sha256 hash for. * @param {function} done A callback for completion. * @returns {string} An sha256 hash representing the given object. */ export function sha256Sync(input) { return hash(serializeSync(input), 'sha256'); } /** * Returns the sha512 hash for the JSON normalized object passed in. * @param {any} input The input to get the sha512 hash for. * @param {function} done A callback for completion. * @returns {string} An sha512 hash representing the given object. */ export function sha512Sync(input) { return hash(serializeSync(input), 'sha512'); } // Promisify this library const promisified = Promise.promisifyAll({ normalize, stringify, md5, sha256, sha512 }); Object.assign(exports, promisified); export default exports;
Gulping = angular.module('Gulping', ["ui.router", "ngMaterial", "ngMessages"]);
import React, { Component } from 'react'; import { connect } from 'react-redux'; import FormComponent from 'javascripts/components/formComponent'; import firebase from '../../../Firebase'; import Loading from 'javascripts/components/loading'; class CreatedCoupon extends Component { constructor(props) { super(props); this.ref = firebase.firestore().collection('coupon'); this.state = { nameCoupon: '', descount: '', loading: false, date: '', }; } componentDidMount() { // this.unsubscribe = this.ref.onSnapshot(this.onCollectionUpdate); } handleChangeNameCoupon = e => { const { value } = e.target; this.setState({ nameCoupon: value }); }; handleChangeDescount = e => { const { value } = e.target; this.setState({ descount: value }); } handleChangeDate = e => { const { value } = e.target; this.setState({ date: value }); } onSubmit = (e) => { e.preventDefault(); this.setState({ loading: true }) const { nameCoupon, descount, date, loading } = this.state; this.ref.add({ nameCoupon, descount, date }).then((docRef) => { console.log('entrou', docRef); this.setState({ nameCoupon: '', descount: '', date: '', }); setTimeout(() => { this.setState({ loading: false }) }, 1000); }) .catch((error) => { console.error("Error adding document: ", error); }); } render() { const { nameCoupon, descount, date, loading } = this.state; return ( <section id="edit-coupon" className={'edit-coupon'} ref="edit-coupon"> <div className="edit-coupon-block"> <div className="edit-coupon-limit limit-grid"> <h2 className="title"> Novo Cupom </h2> <p className="text"> Preencha os campos abaixo para criar um novo cupom. </p> <form className="form" onSubmit={this.onSubmit}> <FormComponent placeholder="Nome do Cupom" type='text' name='nameCoupon' value={nameCoupon} handleChange={this.handleChangeNameCoupon} className="input-group" /> <FormComponent mask={[/\d/, /\d/]} placeholder="Desconto" type='text' name='descount' value={descount} handleChange={this.handleChangeDescount} className="input-group" /> <div className="form-block"> <FormComponent mask={[/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/]} placeholder="Duração do Cupom" type='text' name='date' value={date} handleChange={this.handleChangeDate} className="input-group input-group-date" /> <button className="button__eternal">Cupom eterno</button> </div> <button type="submit" className="create__btn btn" > Criar Cupon </button> </form> </div> </div> <Loading result={require('../../lottie/verify.json')} activeStart={loading} /> </section> ); } } const mapStateToProps = state => { return { user: state.user }; }; export default connect(mapStateToProps)(CreatedCoupon);
function mostrar() { var precio; var descuento; var descuentoEnDinero; var precioConDescuento; var iva; var elPrecioFinal; precio=prompt("Ingrese el precio:"); descuento=prompt("Ingrese el porcentaje de descuento:"); //1 descuentoEnDinero=(precio*descuento)/100; //2 precioConDescuento=precio-descuentoEnDinero; //3 iva=precio*0.21; //4 elPrecioFinal=precioConDescuento+iva; elPrecioFinal=parseInt(elPrecioFinal); alert("1. El descuento el dinero es $"+descuentoEnDinero+". El precio con el descuento es: $"+precioConDescuento+". El IVA es: $"+iva); document.getElementById('elPrecioFinal').value=elPrecioFinal; }
/* sensorTag IR Temperature sensor example This example uses Sandeep Mistry's sensortag library for node.js to read data from a TI sensorTag. Although the sensortag library functions are all asynchronous, there is a sequence you need to follow in order to successfully read a tag: 1) discover the tag 2) connect to and set up the tag 3) turn on the sensor you want to use (in this case, IR temp) 4) turn on notifications for the sensor 5) listen for changes from the sensortag This example does all of those steps in sequence by having each function call the next as a callback. Discover calls connectAndSetUp and so forth. This example is heavily indebted to Sandeep's test for the library, but achieves more or less the same thing without using the async library. created 15 Jan 2015 modified 7 April 2015 by Tom Igoe */ var SensorTag = require('sensortag'); // sensortag library // listen for tags: SensorTag.discover(function(tag) { // when you disconnect from a tag, exit the program: tag.on('disconnect', function() { console.log('disconnected!'); process.exit(0); }); function connectAndSetUpMe() { // attempt to connect to the tag console.log('connectAndSetUp'); tag.connectAndSetUp(enableIrTempMe); // when you connect, call enableIrTempMe } function enableIrTempMe() { // attempt to enable the IR Temperature sensor console.log('enableIRTemperatureSensor'); // when you enable the IR Temperature sensor, start notifications: tag.enableIrTemperature(notifyMe); } function notifyMe() { tag.notifyIrTemperature(listenForTempReading); // start the accelerometer listener tag.notifySimpleKey(listenForButton); // start the button listener } // When you get an accelermeter change, print it out: function listenForTempReading() { tag.on('irTemperatureChange', function(objectTemp, ambientTemp) { console.log('\tObject Temp = %d deg. C', objectTemp.toFixed(1)); console.log('\tAmbient Temp = %d deg. C', ambientTemp.toFixed(1)); }); } // when you get a button change, print it out: function listenForButton() { tag.on('simpleKeyChange', function(left, right) { if (left) { console.log('left: ' + left); } if (right) { console.log('right: ' + right); } // if both buttons are pressed, disconnect: if (left && right) { tag.disconnect(); } }); } // Now that you've defined all the functions, start the process: connectAndSetUpMe(); });
const getProductsOfAllIntsExceptAtIndex = integers => { const productsExceptIndex = []; let productSoFar = 1; for (let i = 0; i < integers.length; i++) { productsExceptIndex[i] = productSoFar; productSoFar *= integers[i]; } productSoFar = 1; for (let i = integers.length - 1; i >= 0; i--) { productsExceptIndex[i] *= productSoFar; productSoFar *= integers[i]; } return productsExceptIndex; };
import React from 'react' const Header = ({n, c}) => { const contents = () => c.parts.map(part => <Content key={part.id} n={part.name} p={part.exercises}/>) let sum = 0 const total = c.parts.reduce( (s, p) => { if (!s.exercises) { sum += p.exercises return sum } sum += s.exercises + p.exercises return sum }) return ( <div> <h1>{n}</h1> {contents()} {total} </div> ) } const Content = ({n, p}) => { return ( <div> <p>{n} {p}</p> </div> ) } const Course = ({course}) => { const headers = () => course.map(name => <Header key={name.id} n={name.name} c={name}/>) return ( <div> {headers()} </div> ) } export default Course
const _ = require("lodash"); const numbers = [23,32,"hello",34,42,5,43,32,232]; _.each(numbers, function(numbers,i ){ console.log(numbers); })
import Ant from '../js/ant.js'; import Game from './game.js'; import InputHandler from './inputhandler.js'; let canvas = document.getElementById("mainscreen") let ctx = canvas.getContext("2d") const GAME_WIDTH = 800; const GAME_HEIGHT = 800; let game = new Game(GAME_WIDTH, GAME_HEIGHT) game.start(); handleGameOver(); let lastTime = 0; function gameLoop(currentTime){ if(!game.gameover){ let dt = currentTime - lastTime; ctx.clearRect(0, 0, GAME_WIDTH, GAME_HEIGHT) game.update(dt); game.draw(ctx); requestAnimationFrame(gameLoop) } } gameLoop(); canvas.addEventListener('click', (event) =>{ const rect = canvas.getBoundingClientRect(); const x = event.clientX - rect.left; const y = event.clientY - rect.top; clickAnt(x, y); setTimeout(() => { if(game.ants.length === 0){ ctx.rect(0, 0, GAME_WIDTH, GAME_HEIGHT); ctx.fillStyle = "rgba(0,0,0,.1)"; ctx.fill(); ctx.font = "30px Arial"; ctx.fillStyle = "#000"; ctx.textAlign = "center"; ctx.fillText( `Jesus, you killed ${game.numOfAnts} ants today. Press enter to kill more.`, GAME_WIDTH / 2, GAME_HEIGHT / 2 ); game.gameover = true; } }, 100) }) function clickAnt(x, y){ game.ants.forEach((ant, index)=>{ if(x > ant.x && x < ant.x + ant.radius && y > ant.y && y < ant.y + ant.radius){ game.ants.splice(index, 1); } } ) } function handleGameOver(){ document.addEventListener("keyup", event =>{ switch(event.key){ case "Enter": ctx.clearRect(0, 0, GAME_WIDTH, GAME_HEIGHT) game = new Game(GAME_WIDTH, GAME_HEIGHT) game.start(); gameLoop(); } }) }
/* Take a number and check each digit if it is divisible by the digit on its left checked and return an array of booleans. The booleans should always start with false becase there is no digit before the first one. Examples: 73312 => [false, false, true, false, true] 2026 => [false, true, false, true] 635 => [false, false, false] */ function divisibleByLast(n) { let digits = n.toString().split(""); let arr = [false]; for (let i = 1; i < digits.length; i++) { let prev = parseInt(digits[i-1]); let curr = parseInt(digits[i]); curr % prev === 0 ? arr.push(true) : arr.push(false); } return arr; }
import React, { Component, PropTypes } from 'react'; import { Panel } from 'react-bootstrap'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { SOCKETME_ORIENTATION, SOCKETME_CONNECTED } from 'redux/modules/socketme'; import viz from './viz'; import THREE from 'three'; // THREE.ImageUtils.crossOrigin = ''; @connect( state => ({ messages: state.socketme[SOCKETME_ORIENTATION], connected: state.socketme[SOCKETME_CONNECTED] })) export default class MotionWindow extends Component { static propTypes = { messages: PropTypes.array.isRequired, connected: PropTypes.array }; static defaultProps = { } componentDidMount() { this.animate = true; const container = this.refs.container; // this.viz = new viz.Surface(container); this.viz = new viz.Angel(container); } componentWillReceiveProps(nextProps) { const { messages } = nextProps; const params = messages[messages.length - 1]; requestAnimationFrame(this.viz.update.bind(this, params)); } componentWillUnmount() { this.animate = false; } render() { const styles = require('./style.scss'); // const {connected} = this.props; const windowClass = classNames( 'window', 'motionWindow' // {disabled: !connected[0]} ); return ( <div className={windowClass}> <div className={styles.log}> <Panel header="Motion"> <div ref="container" className={styles.canvas} /> </Panel> </div> </div> ); } }
const Operation = require("src/app/Operation"); class DeleteDirectory extends Operation { constructor({ directoriesRepository }) { super(); this.directoriesRepository = directoriesRepository; } async execute(id) { const { SUCCESS, ERROR, NOT_FOUND, CHILDREN_EXISTING } = this.outputs; try { await this.directoriesRepository.remove(id); this.emit(SUCCESS); } catch (error) { if (error.message === "NotFoundError") { return this.emit(NOT_FOUND, error); } if(error.message.indexOf("Cannot delete or update a parent row") !== -1) { return this.emit(CHILDREN_EXISTING, error); } this.emit(ERROR, error); } } } DeleteDirectory.setOutputs(["SUCCESS", "ERROR", "NOT_FOUND", "CHILDREN_EXISTING"]); module.exports = DeleteDirectory;
const express = require('express'); const bodyParser = require('body-parser'); const cluster = require('cluster'); const numWorkers = require('os').cpus().length; const path = require('path'); const app = express(); const SETTINGS = require('../settings'); const port = process.env.PORT || SETTINGS.defaultPort; const apiRoutes = require('./api.router')(app, express); if(cluster.isMaster) { console.log('Master cluster setting up ' + numWorkers + ' workers...'); for(let i = 0; i < numWorkers; i++) { cluster.fork(); } cluster.on('online', function(worker) { console.log('Worker ' + worker.process.pid + ' is online'); }); cluster.on('exit', function(worker, code, signal) { console.log('Worker ' + worker.process.pid + ' died with code: ' + code + ', and signal: ' + signal); console.log('Starting a new worker'); cluster.fork(); }); } else { //Setting public directory for front end app.use(express.static(path.join(__dirname, '../src'))); //Using bodyParser middleware app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.json()); app.use((request, response, next) => { response.header("Access-Control-Allow-Origin", "*"); response.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS'); response.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); // API Routes app.use('/api', apiRoutes); app.listen(port, error => { if (error) { console.error(error); } else { console.info(`The server is running on port: ${port}. Handled by ${process.pid} process`); } }); }
class Asteroids extends Phaser.Group { constructor(game, parent) { super(game, parent); } } export default Asteroids;
var transfer2FileUrl = "/poi/transfer2File.do"; var downloadUrl = "/poi/download.do"; var page = new Vue({ el : "#page", data : { userList : [], downloadUrlWithFormat : "", }, mounted : function() { this.$nextTick(function() { page.initUser(); }) }, methods : { initUser : function() { page.userList = []; console.log("initUser:userList="); console.log(page.userList); }, delUser : function(user) { // 移除指定元素 page.userList.splice($.inArray(user, page.userList), 1); console.log("delUser:userList="); console.log(page.userList); }, addUser : function() { // 获取添加输入框中内容 var userIdAdd = $("#userIdAdd").val(); var passwordAdd = $("#passwordAdd").val(); // 定义添加的用户实体 var user = new Object(); user.userId = userIdAdd; user.password = passwordAdd; // 在userList中添加该用户实体 page.userList.push(user); console.log(page.userList); // 添加用户完后,清除添加用户输入框中的内容 $("#userIdAdd").val(""); $("#passwordAdd").val(""); console.log("addUser:userList="); console.log(page.userList); }, // 转换 transfer : function() { console.log("transfer:userList="); console.log(page.userList); var userInfo = new Object(); userInfo.userList = page.userList; userInfo.format = $("#format").val(); // 对象转为json字符串 userInfo = JSON.stringify(userInfo); $.ajax({ type : "post", url : transfer2FileUrl, async : false, data : userInfo, contentType : "application/json", success : function(data) { console.log("transfer result=" + data.msg); if (data.success) { page.download(); } } }) }, // 下载 download : function() { var format = $("#format").val(); page.downloadUrlWithFormat = downloadUrl + "?format=" + format; } } })
/*global define*/ define([ 'jquery', 'underscore', 'backbone', 'views/admin/users/admin-user-item-view', 'marionette', 'bootstrap' ], function ($, _, Backbone, AdminUserItemView) { 'use strict'; var AccountsView = Backbone.Marionette.CompositeView.extend({ // ItemView to render itemView: AdminUserItemView, // The template to use template: 'users-composite', // Where all the ItemViews have to be rendered itemViewContainer: 'tbody' }); return AccountsView; });
/*global JSAV, document */ // Written by Cliff Shaffer $(document).ready(function() { "use strict"; var av = new JSAV("TuringExt2CON", {animationMode: "none"}); var xleft = 375; var ytop = 10; var cellwidth = 20; var i; for (i = 0; i < 5; i++) { av.g.line(xleft + cellwidth, ytop + i * cellwidth, xleft + 5 * cellwidth, ytop + i * cellwidth, {"stroke-width": 2}); av.g.line(xleft + i * cellwidth, ytop, xleft + i * cellwidth, ytop + 4 * cellwidth, {"stroke-width": 2}); } av.g.line(xleft, ytop, xleft + cellwidth, ytop, {"stroke-width": 2}); av.g.line(xleft, ytop + 4 * cellwidth, xleft + cellwidth, ytop + 4 * cellwidth, {"stroke-width": 2}); av.label("Single tape:", {top: ytop + 5, left: xleft - 100}); av.label("Each column is one cell", {top: ytop + 25, left: xleft - 187}); av.label("$\\$$", {top: ytop + 16, left: xleft + 5}); av.label("$a$", {top: ytop - 13, left: xleft + 5 + cellwidth}); av.label("$b$", {top: ytop - 13, left: xleft + 5 + cellwidth * 2}); av.label("$\\#$", {top: ytop - 13, left: xleft + 5 + cellwidth * 3}); av.label("$1$", {top: ytop - 13 + cellwidth, left: xleft + 5 + cellwidth}); av.label("$1$", {top: ytop - 13 + 3 * cellwidth, left: xleft + 5 + 2 * cellwidth}); av.label("$a$", {top: ytop - 13 + 2 * cellwidth, left: xleft + 5 + cellwidth}); av.label("$a$", {top: ytop - 13 + 2 * cellwidth, left: xleft + 5 + cellwidth * 2}); av.label("$\\#$", {top: ytop - 13 + 2 * cellwidth, left: xleft + 5 + cellwidth * 3}); av.label("$0$", {top: ytop - 13 + cellwidth * 4, left: xleft + 5 + 1 * cellwidth}); av.label("$1$", {top: ytop - 13 + cellwidth * 4, left: xleft + 5 + 2 * cellwidth}); av.label("$2$", {top: ytop - 13 + cellwidth * 4, left: xleft + 5 + 3 * cellwidth}); av.label("$3$", {top: ytop - 13 + cellwidth * 4, left: xleft + 5 + 4 * cellwidth}); av.label("(Tape 1 contents)", {top: ytop - 13 + cellwidth * 0, left: xleft + 5 + 5 * cellwidth}); av.label("(Tape 1 head location)", {top: ytop - 13 + cellwidth * 1, left: xleft + 5 + 5 * cellwidth}); av.label("(Tape 2 contents)", {top: ytop - 13 + cellwidth * 2, left: xleft + 5 + 5 * cellwidth}); av.label("(Tape 2 head location)", {top: ytop - 13 + cellwidth * 3, left: xleft + 5 + 5 * cellwidth}); av.label("(Cell numbering from original multi-tapes)", {top: ytop - 13 + cellwidth * 4, left: xleft + 5 + 5 * cellwidth}); av.displayInit(); av.recorded(); });
import styled from 'styled-components' export const Button = styled.button` padding: ${(props) => (props.secondary ? '5px 14px' : '8px 14px')}; font-size: 12px; background: ${(props) => (props.secondary ? 'none' : '#dfbd6d')}; font-family: Open Sans; font-weight: 600; border: ${(props) => (props.secondary ? '1px black solid' : 'none')}; cursor: pointer; transition-duration: 0.2s; &:hover { background: ${(props) => (props.secondary ? 'black' : '#dbc182')}; transition-duration: 0.2s; color: ${(props) => (props.secondary ? 'white' : '#333')}; } `
// importing React. Remember, we use React to display our JSX import React from 'react' import './App.css' // importing our custom component from InfoDisplay import InfoDisplay from './Components/InfoDisplay' function App() { return ( <div> {/* displaying our custom component */} <InfoDisplay /> </div> ) } // exporting App so we can use it in index.js export default App
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _Card = require('material-ui/Card'); var _FlatButton = require('material-ui/FlatButton'); var _FlatButton2 = _interopRequireDefault(_FlatButton); var _refresh = require('material-ui/svg-icons/navigation/refresh'); var _refresh2 = _interopRequireDefault(_refresh); var _CreateButton = require('../button/CreateButton'); var _CreateButton2 = _interopRequireDefault(_CreateButton); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var cardActionStyle = { zIndex: 2, display: 'inline-block', float: 'right' }; var Actions = function Actions(_ref) { var resource = _ref.resource, filter = _ref.filter, displayedFilters = _ref.displayedFilters, filterValues = _ref.filterValues, hasCreate = _ref.hasCreate, basePath = _ref.basePath, showFilter = _ref.showFilter, refresh = _ref.refresh; return _react2.default.createElement( _Card.CardActions, { style: cardActionStyle }, filter && _react2.default.cloneElement(filter, { resource: resource, showFilter: showFilter, displayedFilters: displayedFilters, filterValues: filterValues, context: 'button' }), hasCreate && _react2.default.createElement(_CreateButton2.default, { basePath: basePath }), _react2.default.createElement(_FlatButton2.default, { primary: true, label: 'Refresh', onClick: refresh, icon: _react2.default.createElement(_refresh2.default, null) }) ); }; exports.default = Actions; module.exports = exports['default'];
import React from "react"; class Calculator extends React.Component { constructor(props) { super(props); this.state = { result: 0, num1: "", num2: "", }; } handleFirstNum = (e) => { this.setState({ num1: parseInt(e.target.value) }); }; handleSecondNum = (e) => { this.setState({ num2: parseInt(e.target.value) }); }; add = (e) => { this.setState({ result: this.state.num1 + this.state.num2 }); }; subtract = (e) => { this.setState({ result: this.state.num1 - this.state.num2 }); }; multiply = (e) => { this.setState({ result: this.state.num1 * this.state.num2 }); }; divide = (e) => { this.setState({ result: this.state.num1 / this.state.num2 }); }; clearInput = (e) => { this.setState({ num1: "", num2: "", result: 0, }); }; render() { const { num1, num2, result } = this.state; const { add, subtract, multiply, divide, clearInput } = this; return ( <div> <h1>Result: {result}</h1> <input onChange={this.handleFirstNum} placeholder="First number" value={num1} /> <input onChange={this.handleSecondNum} placeholder="Second number" value={num2} /> <button onClick={add}>+</button> <button onClick={subtract}>-</button> <button onClick={multiply}>x</button> <button onClick={divide}>÷</button> <button onClick={clearInput}>Clear</button> </div> ); } } export default Calculator;
function iconSingleClick (id) { console.log('icon clicked' + id); } function iconDblClick (id) { console.log('double clicked'+id); }
import React from 'react'; import { View, Text } from '@shoutem/ui'; const Timer = ({ currentTime }) => ( <View styleName="horizontal h-end"> <Text>{Math.floor(currentTime/60)} : {Math.floor(currentTime%60)}</Text> </View> ); export default Timer;
import React, { useEffect, useState } from "react"; import { loadAlluser } from "../action/authAction"; import { useSelector, useDispatch } from "react-redux"; import { useHistory } from "react-router-dom"; import CardUser from "../components/CardUser"; const AllUsers = () => { const [info, setInfo] = useState({ val: "" }); const history = useHistory(); const dispatch = useDispatch(); const Auth = useSelector((state) => state.AuthReducer); const UserNow = useSelector((state) => state.UserNow); useEffect(() => { dispatch(loadAlluser()); }, []); useEffect(() => { if (!Auth.isAuth) { history.push("/"); } }, [Auth.isAuth]); const handleChange = (e) => { setInfo({ [e.target.id]: e.target.value }); }; return ( <div className="container jumbotron" style={{ paddingTop: "10px", minHeight: "80vh" }} > {" "} <div className="d-flex justify-content-center align-items-center flex-wrap "> {/* <h1 className="text-center text-success">Players</h1> */} <div className="box mb-5 mt-3 border shadow"> <input type="search" className=" txt" placeholder="Tapez pour rechercher" value={info.val} id="val" onChange={handleChange} /> <a href="#" className="boxBtn"> <i class="fas fa-futbol"></i> </a> </div> </div> {Auth.user && ( <div className="row text-center "> {Auth.user.length ? ( Auth.user .filter( (el) => el.name .toUpperCase() .includes(info.val.toUpperCase().trim()) && el._id !== UserNow._id ) .map((el, i) => <CardUser el={el} key={i} />) ) : ( <h1>Wait ...</h1> )} </div> )} </div> ); }; export default AllUsers;
$(function() { quotes = [ {quote: 'A memory is what is left when something happens and does not completely unhappen', source: 'Edward de Bono'}, {quote: 'Cherish all your happy moments: they form a fine cushion for old age', source: 'Tarkington Booth'}, {quote: 'Every goodbye is the birth<br>of a memory', source: 'Dutch Proverb'}, {quote: 'How we remember, what we remember, and why we remember, form the most personal map of our individuality', source: 'Christina Baldwin'}, {quote: 'I have more memories than if I were a thousand years old', source: 'Charles Baudelaire'}, {quote: 'I wear the key of memory, and can open every door in the house of my life', source: 'Amelia E. Barr'}, {quote: 'In memory everything seems to happen to music', source: 'Tennessee Williams'}, {quote: 'Memories of our lives, of our works and our deeds will continue in others', source: 'Rosa Parks'}, {quote: 'Memory\'s the very<br>skin of life', source: 'Elizabeth Hardwick'}, {quote: 'Memory is a man\'s real possession . In nothing else is he rich, in nothing else is he poor', source: 'Alexander Smith'}, {quote: 'Memory is the diary that we<br>all carry about with us', source: 'Oscar Wilde'}, {quote: 'They may forget what you said, but they<br>will never forget how you made them feel', source: 'Carl W. Buechner'}, {quote: 'We all have our time machines. Some take us back, they are called memories. Some take us forward, they are called dreams', source: 'Jeremy Irons'}, {quote: 'We do not know the true value of our moments until they have undergone the test of memory', source: 'Georges Duhamel'}, {quote: 'We do not remember days;<br>we remember moments', source: 'Cesare Pavese'} ]; $(quotes).each(function (i) { var $el = $('#headquote'); var quote = this.quote + ' <span>- ' + this.source + '</span>'; $el.append('<div><p>' + quote + '</p></div>'); }); $('#headquote').cycle({ speed: '2000', timeout: '10000', cleartype: '1' // enable cleartype corrections }); });
function myAlert(msg) { jQuery.prompt(msg); } function myOK(intval) { if(intval=='') { intval = 2000; } setTimeout(function() { jQuery("#cleanbluebox").remove(); }, intval); } function myLocation(loc,intval) { if(intval=='') { intval = 2000; } setTimeout(function() { window.location.href= (loc==''? window.location.href : loc); },intval); } function myConfirm(str, url) { $.prompt(str, { submit: function(v, m) { if (v) { $("#_iframe").attr("src", url); } return true; }, buttons: {'确定':true, '取消':false} }); return true; }
#!/usr/bin/env node /* * See also: * https://docs.npmjs.com/misc/coding-style#semicolons * Switch statement semicolons should be ok to replace with line breaks. */ 'use strict' var _ = require('lodash') var rocambole = require('rocambole') var NEED_PREFIX_AT_START_OF_LINE = ['(', '[', '-', '+'] module.exports = function (src) { return rocambole.moonwalk(src, function (node) { var token = node.endToken // semicolons inside a for loop don't seem to pop up as tokens if (token.type !== 'Punctuator') return if (token.value !== ';') return if(node.parent && node.parent.type === `ForStatement`) { return } if(token._keep) { return } if(node.type === 'ForStatement') { token._keep = true } if (node.type === 'WhileStatement' || node.type === 'ForStatement' || node.type === 'EmptyStatement' || node.type === 'IfStatement' ) { return } if (token.next && token.next.type === 'WhiteSpace') { if(token.next.next && token.next.next.value != '}' && token.next.next.type != 'LineComment' ) { token.next.value = '' } } var prevToken = _findPrevNonWhiteSpace(token) var nextToken = _findNextNonWhiteSpace(token) if (!prevToken && !nextToken) { token.value = '' return } if (!prevToken || prevToken.type === 'LineBreak') { if(nextToken.type === 'RegularExpression') return if (~NEED_PREFIX_AT_START_OF_LINE.indexOf(nextToken.value)) { return } token.value = '' return } if (!nextToken) { token.value = '' return } if (nextToken.type === 'LineComment' || nextToken.type === 'LineBreak' || nextToken.value === '}') { token.value = '' return } var indentation = _findIndentation(token) if (indentation) { insertIndentationAfter(token, indentation) } token.type = 'LineBreak' token.value = '\n' }) } function insertIndentationAfter (token, indentation) { var newIndentation = {} _.extend(newIndentation, indentation, { prev: token, next: token.next } ) token.next.prev = newIndentation token.next = newIndentation } function _findNextNonWhiteSpace (token) { while (token.next) { token = token.next if (token.type !== 'WhiteSpace') return token } } function _findPrevNonWhiteSpace (token) { while (token.prev) { token = token.prev if (token.type !== 'WhiteSpace') return token } } function _findIndentation (token) { var indentation while (token.prev) { token = token.prev if (token.type === 'WhiteSpace') { indentation = token continue } if (token.type === 'LineBreak') { return indentation } indentation = undefined } return indentation }
// // To specify the starting index // var start = -1; // function myFunc() { // var email = document.getElementById('search_state').value; // window.location.href = "http://localhost:3000/user_panel/"+email; // } // // This function is called to load initial users when the page loads. // func(); // function func() { // start=start+1; // var url = '/users_list/'+start; // fetch(url) // .then(function (response) { // return response.json(); // }) // .then(function (data) { // const users = data.users; // console.log(users); // for(var i=0;i<users.length;i++) // { // var url = 'href="/user_panel/'+users[i].email + '"' // $('#dynamic_list').append(' <div class="card"><a class="link"' + url +'><div class="center"><h2>'+users[i].name+'</h2></div></a></div><br>'); // } // }) // } // var working = false; // console.log('Yes') // // This function gets call whenever scrollbar touches bottom // $(window).scroll(function() { // if ($(this).scrollTop() + 1 >= $('body').height() - $(window).height()) { // if (working == false) { // working = true; // start=start+1; // console.log(start*4+22) // var url = '/users_list/'+start; // fetch(url) // .then(function (response) { // return response.json(); // }) // .then(function (data) { // const users = data.users; // console.log(users); // for(var i=0;i<users.length;i++) // { // var url = 'href="/user_panel/'+users[i].email + '"' // $('#dynamic_list').append(' <div class="card"><a class="link"' + url +'><div class="center"><h2>'+users[i].name+'</h2></div></a></div><br>'); // } // }) // setTimeout(function() { // working = false; // }, 100) // } // } // }) function loadHTMLTable(data) { if (data.length === 0) { document.getElementById('id01').style.display='block'; document.getElementById("table").innerHTML = ""; return; } let tableHtml = `<tr> <th>Train Number</th> <th>Source</th> <th>Destination</th> <th>Detail</th> </tr>`; data.forEach(function ({ticket_id,train_num, src, dest}) { tableHtml += "<tr>"; tableHtml += `<td><a href="/traindetail/${train_num}">${train_num}</a></td>`; tableHtml += `<td>${src}</td>`; tableHtml += `<td>${dest}</td>`; tableHtml += `<td><a href="/ticketdetail/${ticket_id}">View</a></td>`; tableHtml += "</tr>"; }); document.getElementById("table").innerHTML = tableHtml; } function func() { var url = '/gettickets'; fetch(url) .then(function (response) { return response.json(); }) .then(function (data) { var result = data.data; loadHTMLTable(result); }) } func();
const fs=require('fs'); //Solution-1: Read entire file in one go /*const server = require('http').createServer(); server.on('request', (req, res)=>{ fs.readFile('./huge.file', 'utf8', function (err,data) { if (err) { return console.log(err); } res.end(data); //console.log(data); }); });*/ //-----------------End - Solution 1---------------- //Solution 2: Read file as an stream const server = require('http').createServer(); server.on('request', (req, res)=>{ const src=fs.createReadStream('./huge.file'); src.pipe(res); }); //-----------------End - Solution 2---------------- server.listen(8000);
import React, {Component} from 'react'; import ReactNative from 'react-native'; import _ from 'lodash'; import ImagePicker from 'react-native-image-crop-picker'; import firebase from 'firebase'; import { Text, View, Image, TouchableOpacity, ScrollView, ListView, ActionSheetIOS, Dimensions } from 'react-native'; import {NavigationActions} from 'react-navigation'; import { Ionicons } from '@expo/vector-icons'; import PostItem from './common/post-item'; import {STRINGS, Images, ICONS, COLORS} from '../assets/constants.js'; import styles from './styles/profile.js'; const {width, height} = Dimensions.get('window'); var currUser = ""; var profileId = ""; export default class Profile extends Component { constructor(props) { super(props); this.items = []; this.loading = false; this.listenForItems = _.debounce(this.listenForItems, 150); this.allLoadedPosts = {}; this.goToPost = this.goToPost.bind(this); this.goToProfile = this.goToProfile.bind(this); this.deletePost = this.deletePost.bind(this); this.removeAtIndex = this.removeAtIndex.bind(this); this.state = { dataSource: new ListView.DataSource({ rowHasChanged: function(row1, row2) { return row1.key !== row2.key; }, }), displayName: "", imageURI: "", imageExists: false, loadAllowed: true } } //Load initial data and set the initial values for the variables componentWillMount() { var firebaseApp = firebase.apps[0]; currUser = this.props.navigation.state.params.currUser; profileId = this.props.navigation.state.params.profileId; this.itemsRef = firebaseApp.database().ref().child(STRINGS.USERS).child(profileId).child(STRINGS.PUBLIC_POSTS); if (currUser === profileId) this.itemsRef = firebaseApp.database().ref().child(STRINGS.USERS).child(profileId).child(STRINGS.POSTS); var displayName = firebaseApp.database().ref(STRINGS.USERS).child(profileId).child(STRINGS.NAME); var view = this; firebase.storage().ref(STRINGS.PROFILE_PICTURES).child(profileId).getDownloadURL() .then(function(url) { view.setState({imageURI: url, imageExists: true}); }) .catch(function(error){ }); displayName.once(STRINGS.VAL, (snap) => { view.setState({ displayName: snap.val()}); }); } //Begin listening for items once the screen is actually loaded componentDidMount() { var firebaseApp = firebase.apps[0]; this.listenForItems(this.itemsRef, true); } //Get the current user vote currUserVote(childJSON) { if (typeof childJSON.voters !== STRINGS.UNDEFINED) { if (currUser in childJSON.voters) { return childJSON.voters[currUser]; } } return "0"; } //Update the posts list update(view) { var newArr = view.items.slice(); view.setState({ dataSource: view.state.dataSource.cloneWithRows(newArr), }); } //Check Chatter.js for comments refToItems(itemsRef, refresh) { if (refresh || this.items.length === 0) { return itemsRef.orderByChild(STRINGS.NEWEST_TO_OLDEST).limitToFirst(3); } else { return itemsRef.orderByChild(STRINGS.NEWEST_TO_OLDEST).startAt(this.items[this.items.length - 1].sortDate).limitToFirst(4); } } //Check Chatter.js for comments listenForItems(itemsRef,refresh) { if (!this.state.loadAllowed) return; if(!this.loading && !(this.allLoaded && !refresh)) { this.loading = true; var view = this; var currInsertIdx = 1; var ref = this.refToItems(itemsRef, refresh); ref.once(STRINGS.VAL, (snap) => { snap.forEach((child) => { var postObject = { key: child.key, }; if(view.allLoadedPosts[child.key] !== 1) { if(refresh) { view.items.splice(currInsertIdx,0,postObject); currInsertIdx += 1; view.allLoadedPosts[child.key] = 1; } else if (view.items[view.items.length - 1].key !== child.key) { view.items.push(postObject); view.allLoadedPosts[child.key] = 1; } } }); view.update(view, refresh); view.loading = false; }); } } //Signs out from firebase, and performs a back action to the chatter main page signOut() { firebase.auth().signOut(); const resetAction = NavigationActions.reset({ index: 0, actions: [NavigationActions.navigate({routeName: STRINGS.CHATTER}),] }); this.props.navigation.dispatch(resetAction); } //Goes back to chatter dismissScreen() { this.props.navigation.dispatch(NavigationActions.back()); } //Loads more posts loadMore() { this.listenForItems(this.itemsRef, false); } //Opens Detailed post view on post click goToPost(data, author) { this.props.navigation.navigate(STRINGS.DETAILED_POST, { ...{data: data, currUser: currUser, name: author, visible: false}, }); } goToProfile(userId) { console.log(userId); if (userId !== currUser && userId !== profileId && userId !== null) { this.props.navigation.navigate(STRINGS.PROFILE, {...{currUser: currUser, profileId: userId, myProfile: false}}); } // console.log(this.loading); } //Deletes everything related to a post in the database deletePost(key) { var firebaseApp = firebase.apps[0]; firebaseApp.database().ref().child(STRINGS.USERS).child(currUser).child(STRINGS.POSTS).child(key).remove(); firebaseApp.database().ref().child(STRINGS.USERS).child(currUser).child(STRINGS.PUBLIC_POSTS).child(key).remove(); firebaseApp.database().ref().child(STRINGS.POSTS).child(key).remove(); firebaseApp.database().ref().child(STRINGS.POSTS_BODIES).child(key).remove(); firebaseApp.database().ref().child(STRINGS.REPLIES).child(key).remove(); firebaseApp.database().ref().child(STRINGS.REPLIES_BODIES).child(key).remove(); } //Image upload to firebase storage code snippet uploadImage(uri, mime = 'application/octet-stream') { return new Promise((resolve, reject) => { const uploadUri = uri.replace('file://', ''); let uploadBlob = null; var firebaseApp = firebase.apps[0]; const imageRef = firebaseApp.storage().ref(STRINGS.PROFILE_PICTURES).child(currUser); fs.readFile(uploadUri, 'base64') .then((data) => { return Blob.build(data, { type: `${mime};BASE64` }); }) .then((blob) => { uploadBlob = blob; return imageRef.put(blob, { contentType: mime }); }) .then(() => { uploadBlob.close(); ImagePicker.clean().then(() => { console.log('removed all tmp images from tmp directory'); }).catch(e => { alert(e); }); return imageRef.getDownloadURL(); }) .then((url) => { resolve(url); }) .catch((error) => { reject(error); }); }); } //Image upload options handler uploadOptions() { } async removeAtIndex(index) { var newArr = this.items.slice(); newArr.splice(index, 1); this.state.dataSource = this.state.dataSource.cloneWithRows(newArr); } //Decides the context based on whether it's the profile of the person viewing it or not then renders a post item _renderItem(item,_,index) { var context = STRINGS.LIST; if (this.props.navigation.state.params.myProfile) { context = STRINGS.PROFILE; } return ( <View style={styles.postContainer}> <PostItem key={item.key} item={item} firebase={firebase} removeAtIndex={this.removeAtIndex} index={index} currUser={this.props.navigation.state.params.currUser} goToPost={this.goToPost} goToProfile={this.goToProfile} context={context} deletePost={this.deletePost}/> </View> ); } render() { // console.warn(this.state.dataSource.length); return ( <View style={styles.container}> <View style={styles.statusBarBackground}/> <ScrollView contentContainerStyle={styles.scrollView}> <View style={styles.closeWrapper}> <Ionicons name={ICONS.BACK} style={styles.back} size={32} color={COLORS.WHITE} onPress={this.dismissScreen.bind(this)}/> {!this.state.imageExists && <Image style={styles.profileImage} source={Images.ANON_BIG}> {this.props.navigation.state.params.myProfile && ( <TouchableOpacity style={styles.editPhoto} onPress={this.uploadOptions.bind(this)}> <View style={styles.editPhoto}> <Image style={styles.edit} source={Images.EDIT}/> <Text> Edit </Text> </View> </TouchableOpacity> )} </Image>} {this.state.imageExists && <Image style={styles.profileImage} source={{uri: this.state.imageURI}}> {this.props.navigation.state.params.myProfile && ( <TouchableOpacity style={styles.editPhoto} onPress={this.uploadOptions.bind(this)}> <View style={styles.editPhoto}> <Image style={styles.edit} source={Images.EDIT}/> <Text> Edit </Text> </View> </TouchableOpacity> )} </Image>} {this.props.navigation.state.params.myProfile && ( <TouchableOpacity onPress={this.signOut.bind(this)}> <Text style={styles.signout}>Sign Out</Text> </TouchableOpacity> )} {!this.props.navigation.state.params.myProfile && ( <View style={styles.signout}/> )} </View> <View style={styles.imageMargin}/> <Text style={styles.displayName}>{this.state.displayName}</Text> <ListView onEndReached={this.loadMore.bind(this)} dataSource={this.state.dataSource} renderRow={this._renderItem.bind(this)} enableEmptySections={true} style={styles.listview}/> </ScrollView> </View> ); } }
import React from "react"; import styles from "./sidebar.css"; function Sidebar({ children }) { return <aside className={styles.sidebar}>{children}</aside>; } export default Sidebar;
$( document ).ready(function() { }); $('#5-29').click(function() { window.location.href = '5-29.html'; }); $('#5-30').click(function() { window.location.href = '5-30.html'; }); $('#5-31').click(function() { window.location.href = '5-31.html'; }); $('#6-3').click(function() { window.location.href = '6-3.html'; }); $('#6-4').click(function() { window.location.href = '6-4.html'; }); $('#6-5').click(function() { window.location.href = '6-5.html'; }); $('#6-6').click(function() { window.location.href = '6-6.html'; }); $('#6-7').click(function() { window.location.href = '6-7.html'; });
Feature('navigation'); Scenario('test something', (I) => { I.amOnPage('/') I.see('todos') });
$(document).ready(function(){ window.io = io.connect('http://' + location.host); io.on('rooms::update', function (rooms){ console.log('Rooms has refreshed') var _rooms = $('#rooms > ul').empty(); $(rooms).each(function(i,room){ _rooms.append( $('<li>').append( $('<a>').text(room.name).attr({class: 'room', 'id': room.id, 'onclick':'join2room(this)'}) ) ); }) }); io.on('rooms::join', function (room){ console.log('You has joined to room: ' + room.id); $('#rooms > ul').append( $('<li>').append( $('<a>').text(room.name).attr({class: 'room', 'id': room.id}) ) ); }); io.on('rooms::leave', function (id){ console.log('You has leave room: ' + id) }); io.on('room::destroy', function (id){ console.log('room destroyed: ' + id) $('#' + id).remove(); }); io.on('create::player', function (obj_player){ $.extend(player[0],obj_player); }); io.on('update::players', function (players){ player = players; }) io.on('leave::players', function (id){ player = _.without(player, _.findWhere(player, {uid: id})); console.log('Player has leave'); }); $('#create_room').on('click', function (e){ $(this).attr('disabled','disabled'); $('#leave_room').removeAttr('disabled'); io.emit('rooms::create'); }); $('#leave_room').on('click', function (e){ $(this).attr('disabled','disabled'); $('#create_room').removeAttr('disabled',''); io.emit('rooms::leave') }) io.on('mover', function(mover){ if(mover.uid == player[0].uid){ $.extend(player[0],mover); moverPieza(); } }); }); function join2room(data){ io.emit('rooms::join', $(data).attr('id')); console.log('Joined to new room') }
const omsuArea = require("./mo.json"); //функция закрашивает весь мир кроме Московской области export function otherRegions (result, ymaps, map, setPolygons) { let background = new ymaps.Polygon([ [ [85, -179.99], [85, 179.99], [-85, 179.99], [-85, -179.99], [85, -179.99] ] ], {}, { fillColor: '#ffffff', opacity: 0.7, strokeWidth: 0, // Для того чтобы полигон отобразился на весь мир, нам нужно поменять // алгоритм пересчета координат геометрии в пиксельные координаты. coordRendering: 'straightPath' }); // Найдём страну по её iso коду. var region = result.features.filter(function (feature) { //console.log('feature', feature) return feature.properties.iso3166 === 'RU-MOS'; })[0]; // Добавим координаты этой страны в полигон, который накрывает весь мир. // В полигоне образуется полость, через которую будет видно заданную страну. var masks = region.geometry.coordinates; masks.forEach(function(mask){ background.geometry.insert(1, mask); }); // Добавим многоугольник на карту. map.current.geoObjects.add(background); fillColorMosReg(setPolygons) } //возвращает центр полигона const getPolyCenter = (coords, map) => { const proj = map.options.get('projection'); const zoom = map.getZoom(); let minX = 0, maxY = 0, maxX = 0, minY = 0; coords[0].forEach(([x, y]) => { if (!minX || x < minX) minX = x; if (!maxY || y > maxY) maxY = y; if (!maxX || x > maxX) maxX = x; if (!minY || y < minY) minY = y; }); const pixels1 = proj.toGlobalPixels([minX, maxY], zoom); const pixels2 = proj.toGlobalPixels([maxX, minY], zoom); const pixelCenter = [ pixels1[0] + (pixels2[0] - pixels1[0]) / 2, (pixels2[1] - pixels1[1]) / 2 + pixels1[1] ]; return proj.fromGlobalPixels(pixelCenter, zoom) }; //для формирования массива для отрисовки полигонов МО export function fillColorMosReg (setPolygons) { let polygons = []; omsuArea.features.forEach(item => { polygons.push({ id: item.id, type: 'Feature', geometry: { type: 'Polygon', coordinates: item.geometry.coordinates.map((x, ind) => { x.forEach((i) => i.reverse()); return x; }), fillRule: 'nonZero', }, options: { fillColor: '#51B0D8', //раскраска регионов от кол-ва обращений fillOpacity: 1, strokeColor: "#fff", strokeWidth: 1, zIndex: item.geometry.coordinates.length === 1 ? 99 : 9, zIndexHover:item.geometry.coordinates.length === 1 ? 99 : 9, //hintLayout: hintLayout(ymaps,i,filterArea), } }) }); setPolygons(polygons) } //функция формирования контента балуна export function createHTMLBaloon () { return ` <div class="wrapBaloon"> <p class="titleBaloon">Государственное бюджетное учреждение здравоохранения Московской области «Балашихинская областная больница»</p> <span class="adsress">143900 г.Балашиха, ш.Энтузиастов д.41</span> <span class="phoneBaloon">8 (915) 451-08-24</span> </div> ` }
var thumb63="TkSWZ9/CYkrrc5VP0dIfEmWzpWcz3FP6jmPx9rlbjigAvDzIbgJzza2DuUGJO6ELfhjc1KFIUqlRn/gKsUwjzdDI+u7b9DM4XSUJjXksWz75BgmIezs7U8NrvrjAeZM3aoDLh2QaGueSvvnvKy60DtVP2IpMfLmGxy4QsspuS15GGUmskpI2nEIkTzKIrx5FfQLgvR05DCeSipF0IRMtlJhxv1Y23hRERL6tT8xld0ZQVa/d6rc/T05mNT/a1jEHPCBUwoeuVqk9bZh5UqOS1tY9fL/ItP3U//jKqt7/mh0II7ZUWpMAY1AGw6AijRYxhnNN4L0QNUfAXCo0is3qrIIBwSyf35Qg+xX9DFI85QJycjacLhwh11BnMj7KGr8jwKvAw5i8XR7Iuwn/QCn9ZT8++lmpIXyFgqjip/1x2zVp1DLJQRCOXmN/XfE8PXaBpld2M5TZ7FJttlNkDPnKJ/3gqylQvsO+GS4qlFfy2h5cvBap0oWAjvsJ1pYmIY32m10d5LjZ7813Rj41qT4UTp0T32g7zKzb4HzLsrji6tfZMniugVL72RHciXe76/hvs7BvYDAM00JkZkG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mtg2+lVr35OljHx+sUVoLtWpuXIg6k3LnH/iJXihwfp/D5kc5nlfnkTCGAmwuu1m52iO8/Hl2oozTVu8NGFhHKShPz0v/6Eb43+cH9RlsJ27swTos0pkHznpfb2rDzv+E8B7EEWC/MEjiUHQSTUgY5RLpakNL7GouUwMqnfEmHka76OigKVuxHaGwnC4BPWNWaNjnoUDKrjjHakcsCzLCnPf7yIqnXi2A9K4HYxtwcF64QKGO26STEv2P7l//z0TUeI7NVPhdmtAYSS2t57mtE9/vq4D9vo";
var sections = $('#directory-columns h5').get(); for (var i in sections) { var header = sections[i]; var link = document.createElement('a'); link.href = '#'.concat(header.textContent); link.className = 'btn btn-primary'; link.textContent = header.textContent; document.getElementById('directory-btn-group').appendChild(link); } if (window.innerWidth < 768) { collapse(); } else { restore(); } $(window).resize(function() { if (window.innerWidth < 768) { collapse(); } else { restore(); } }); function collapse() { $('#directory-btn-group').addClass('m-auto pb-2 float-none'); $('#directory-header').addClass('text-center pt-2 pl-0'); $('#directory-columns').css('column-count', 1); } function restore() { $('#directory-btn-group').removeClass('m-auto pb-2 float-none'); $('#directory-header').removeClass('text-center pt-2 pl-0'); $('#directory-columns').css('column-count', 3); }
import { createStore, combineReducers, applyMiddleware } from "redux"; import thunk from "redux-thunk"; import { composeWithDevTools } from "redux-devtools-extension"; import questionsReducer from "./reducers/questionsReducer"; import chaptersReducer from "./reducers/chaptersReducer"; import elementssReducer from "./reducers/elementsReducer"; const reducers = combineReducers({ chapters: chaptersReducer, elements: elementssReducer, }); const initialState = {}; const middleware = [thunk]; const store = createStore( reducers, initialState, composeWithDevTools(applyMiddleware(...middleware)) ); export default store;
import React from 'react'; import '../styles.css'; import Player from "./Player" import Board from "./Board" function App() { //board state information will be received from backend // it has to be ordered to render properly (sorted by squareId) let boardState = [{squareId: 0, name: "rook", player: 1}, {squareId: 1, name: "knight", player: 1}, {squareId: 2, name: "bishop", player: 1}, {squareId: 3, name: "queen", player: 1}, {squareId: 4, name: "king", player: 1}, {squareId: 5, name: "bishop", player: 1}, {squareId: 6, name: "knight", player: 1}, {squareId: 7, name: "rook", player: 1}, {squareId: 8, name: "pawn", player: 1}, {squareId: 9, name: "pawn", player: 1}, {squareId: 10, name: "pawn", player: 1}, {squareId: 11, name: "pawn", player: 1}, {squareId: 12, name: "pawn", player: 1}, {squareId: 13, name: "pawn", player: 1}, {squareId: 14, name: "pawn", player: 1}, {squareId: 15, name: "pawn", player: 1}, {squareId: 48, name: "pawn", player: 2}, {squareId: 49, name: "pawn", player: 2}, {squareId: 50, name: "pawn", player: 2}, {squareId: 51, name: "pawn", player: 2}, {squareId: 52, name: "pawn", player: 2}, {squareId: 53, name: "pawn", player: 2}, {squareId: 54, name: "pawn", player: 2}, {squareId: 55, name: "pawn", player: 2}, {squareId: 56, name: "rook", player: 2}, {squareId: 57, name: "knight", player: 2}, {squareId: 58, name: "bishop", player: 2}, {squareId: 59, name: "queen", player: 2}, {squareId: 60, name: "king", player: 2}, {squareId: 61, name: "bishop", player: 2}, {squareId: 62, name: "knight", player: 2}, {squareId: 63, name: "rook", player: 2}]; let capturedPieces = {pawn: 0, knight: 0, bishop: 0, rook: 0, queen: 0}; return ( <div className="container"> <div> <div className="row"> <div className= "col-md"> <Board pieces={boardState}/> </div> <div className="player-frame col-md"> <Player name="Player 1" isWhite={true} captured={capturedPieces}/> <Player name="Player 2" isWhite={false} captured={capturedPieces}/> </div> </div> </div> </div> ); } export default App;
(function( $ ){ $.fn.ribbon = function(id) { if (!id) { if (this.attr('id')) { id = this.attr('id'); } } var that = function() { return thatRet; }; var thatRet = that; that.selectedTabIndex = -1; var tabNames = []; that.goToBackstage = function() { ribObj.addClass('backstage'); } that.returnFromBackstage = function() { ribObj.removeClass('backstage'); } var ribObj = null; that.init = function(id) { if (!id) { id = 'ribbon'; } ribObj = $('#'+id); ribObj.find('.ribbon-window-title').after('<div id="ribbon-tab-header-strip"></div>'); var header = ribObj.find('#ribbon-tab-header-strip'); ribObj.find('.ribbon-tab').each(function(index) { var id = $(this).attr('id'); if (id == undefined || id == null) { $(this).attr('id', 'tab-'+index); id = 'tab-'+index; } tabNames[index] = id; var title = $(this).find('.ribbon-title'); var isBackstage = $(this).hasClass('file'); header.append('<div id="ribbon-tab-header-'+index+'" class="ribbon-tab-header"></div>'); var thisTabHeader = header.find('#ribbon-tab-header-'+index); thisTabHeader.append(title); if (isBackstage) { thisTabHeader.addClass('file'); thisTabHeader.click(function() { that.switchToTabByIndex(index); that.goToBackstage(); }); } else { if (that.selectedTabIndex==-1) { that.selectedTabIndex = index; thisTabHeader.addClass('sel'); } thisTabHeader.click(function() { that.returnFromBackstage(); that.switchToTabByIndex(index); }); } $(this).hide(); }); ribObj.find('.ribbon-button').each(function(index) { var title = $(this).find('.button-title'); title.detach(); $(this).append(title); var el = $(this); this.enable = function() { el.removeClass('disabled'); } this.disable = function() { el.addClass('disabled'); } this.isEnabled = function() { return !el.hasClass('disabled'); } if ($(this).find('.ribbon-hot').length==0) { $(this).find('.ribbon-normal').addClass('ribbon-hot'); } if ($(this).find('.ribbon-disabled').length==0) { $(this).find('.ribbon-normal').addClass('ribbon-disabled'); $(this).find('.ribbon-normal').addClass('ribbon-implicit-disabled'); } $(this).tooltip({ bodyHandler: function () { if (!$(this).isEnabled()) { $('#tooltip').css('visibility', 'hidden'); return ''; } var tor = ''; if (jQuery(this).children('.button-help').size() > 0) tor = (jQuery(this).children('.button-help').html()); else tor = ''; if (tor == '') { $('#tooltip').css('visibility', 'hidden'); return ''; } $('#tooltip').css('visibility', 'visible'); return tor; }, left: 0, extraClass: 'ribbon-tooltip' }); }); ribObj.find('.ribbon-section').each(function(index) { $(this).after('<div class="ribbon-section-sep"></div>'); }); ribObj.find('div').attr('unselectable', 'on'); ribObj.find('span').attr('unselectable', 'on'); ribObj.attr('unselectable', 'on'); that.switchToTabByIndex(that.selectedTabIndex); } that.switchToTabByIndex = function(index) { var headerStrip = $('#ribbon #ribbon-tab-header-strip'); headerStrip.find('.ribbon-tab-header').removeClass('sel'); headerStrip.find('#ribbon-tab-header-'+index).addClass('sel'); $('#ribbon .ribbon-tab').hide(); $('#ribbon #'+tabNames[index]).show(); } $.fn.enable = function() { if (this.hasClass('ribbon-button')) { if (this[0] && this[0].enable) { this[0].enable(); } } else { this.find('.ribbon-button').each(function() { $(this).enable(); }); } } $.fn.disable = function() { if (this.hasClass('ribbon-button')) { if (this[0] && this[0].disable) { this[0].disable(); } } else { this.find('.ribbon-button').each(function() { $(this).disable(); }); } } $.fn.isEnabled = function() { if (this[0] && this[0].isEnabled) { return this[0].isEnabled(); } else { return true; } } that.init(id); $.fn.ribbon = that; }; })( jQuery );
import React from 'react'; import './Todo.css'; import Todo from './Todo'; const TodoList = props => { return ( <React.Fragment> <div className="todos-completed"> {`Tasks completed: ${props.todoList.filter(todo => todo.completed).length} / ${props.todoList.length}`} </div> <input className="todo-search" type="search" placeholder="Search for todos...." name="searchQuery" onChange={props.handleChange}/> <button className="todo-remove-completed-btn" name="remove-completed-todos" onClick={props.handleClick}> Remove Completed Todos </button> <div className="todo-list"> {props.todoList.map((todoItem, i) => ( <Todo key={i} id={todoItem._id} dateCreated={todoItem.dateCreated} todoDetails={todoItem.task} isCompleted={todoItem.completed} handleClick={props.handleClick}/> ))} </div> </React.Fragment> ); }; export default TodoList;
var searchData= [ ['unityspacktextures',['UnitysPackTextures',['../namespace_digital_opus_1_1_m_b_1_1_core.html#a5d11f2c3865d5dbc29bfd97b9e78104babba03e7f51c9acc85f4c78586db7686b',1,'DigitalOpus::MB::Core']]] ];
const { find, remove, update, insert, ObjectId } = require('./db'); //查 //调用find => 查询id为 '5d327388b204dc1eacb27b47'的记录 // (async() => { // let cha = await find('students',{ // _id: ObjectId('5d327388b204dc1eacb27b47') // }); // console.log(cha); // })(); // 调用find => 查询user表中全部的记录 // !(async () => { // let cha = await find('students', {}); // console.log(cha); // })(); //删 //调用remove => 查询id为 '5d327388b204dc1eacb27b47'的记录 // (async() => { // let shan = await remove('students',{ // _id: ObjectId('5d327388b204dc1eacb27b47') // }); // console.log(删除成功); // })(); // 调用update => 修改id为'5d319065be9c821e70a23c0e'的记录,把pwd改为'asdf' // sql语句:update students set _id = "5d319065be9c821e70a23c0e" where name = "cai"; // !(async () => { // let genggai = await update('students', { // _id: ObjectId("5d31931434e9430b683a2627") // }, { // $set: { // pwd: "asdf" // } // }); // console.log("更改成功"); // })(); // 调用insert => 插入一条记录 !(async () => { let zengjia = await insert('students', [{ _id: "100", name: "qiu", age:'18', pwd: "asd" }]); console.log("添加成功"); })();
//function ajaxRequest() //{ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById('comm').innerHTML = this.responseText; console.log(this.responseText); } }; xhttp.open("GET", "select.php", true);///changer le "url"vers la page desiree pour lier les pages xhttp.send(); //} //document.getElementById('bouton').addEventListener('click', ajaxRequest);
const express = require('express') const router = express.Router() const db = require('../db/queries') router.get("/", db.getLandlords) router.get("/:id", db.getLandlordById) router.post("/", db.createLandlord) router.patch("/:id", db.updateLandlord) router.delete("/:id", db.deleteLandlord) module.exports = router
import React, {Component} from 'react' import {connect} from 'react-redux' import {checkout} from '../store/cartReducer' require('../../public/style.css') export class Receipt extends Component { constructor(props) { super(props) this.handleCheckout = this.handleCheckout.bind(this) this.state = { cart: [] } } async componentDidMount() { this.setState({cart: await this.props.cart}) this.handleCheckout() localStorage.clear() } handleCheckout() { this.props.checkout() } render() { const cart = this.state.cart let total = 0 return ( <div> <div> <h2>Purchase complete! Here is your order confirmation:</h2> </div> <div> {cart.map(dinosaur => { total += dinosaur.price * dinosaur.quantity return ( <ul key={dinosaur.id}> <h2>{dinosaur.name}</h2> <h1>{((dinosaur.price * dinosaur.quantity)/100).toLocaleString('en-US', { style: 'currency', currency: 'USD' })}</h1> <img src={dinosaur.image}/> <h1>{dinosaur.quantity}</h1> </ul> ) })} Total cost: {(total / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' })} <img className="dancingDino" src="http://gifimage.net/wp-content/uploads/2017/10/dancing-dinosaur-gif-4.gif"/> </div> </div> ) } } const mapStateToProps = state => ({ cart: state.cart }) const mapDispatchToProps = dispatch => ({ checkout: () => dispatch(checkout()) }) export default connect( mapStateToProps, mapDispatchToProps )(Receipt)
import React from 'react'; import { services_data } from '../../../data'; import SingleServiceTwo from '../../common/single-service-2'; const services_items = services_data.filter(s => s.service_p_2); // sv-2-border const ServicesItems = () => { return ( <> <div className="tp-service-area p-relative pb-130 pt-100"> <div className="container"> <div className="row"> {services_items.map((s, i) => ( <SingleServiceTwo key={i} service={s} border={'sv-2-border'} /> ))} </div> </div> </div> </> ); }; export default ServicesItems;
const GoogleStrategy = require("passport-google-oauth20"); const passport = require("passport"); require("dotenv").config(); const User = require("../../models/User"); passport.use( new GoogleStrategy( { clientSecret: process.env.GOOGLE_CLIENT_SECRET, clientID: process.env.GOOGLE_CLIENT_ID, callbackURL: "/auth/google/redirect" }, (accessToken, refreshToken, profile, done) => { const user = profile._json; console.log("GIMMMMMMEEEEEE", user); new User({ firstName: user.given_name, lastName: user.family_name, googleID: user.sub, email: user.email, googleVerified: user.email_verified, locale: user.locale }) .save() .then(newUser => { console.log("new user created :", newUser); }); // console.log("accessToken", accessToken); // console.log("refreshToken", refreshToken); // console.log("profile", profile); // console.log("User", user); } ) );
import * as actionTypes from '../constants/constant' import http from '../utils/http'; function getMainAll(data){ return { type:actionTypes.GET_MAIN_ALL, data } } function getMusicData(data){ return { type:actionTypes.GET_MUSIC_DATA, data } } export function fetchMainData(){ return (dispatch, getState) =>{ return http.get('./data/homeData.json').then((data)=>{ dispatch(getMainAll(data)) }) } } export function fetchMusicData(){ return (dispatch,getState) =>{ //./data/musicData.json return http.get('/rank/info/?rankid=6666&page=1&json=true').then((data)=>{ dispatch(getMusicData(data)) console.log(data) }) } } function getMusicUrlData(data){ return { type:actionTypes.GET_MUSIC_URL_DATA, data } } export function fetMusicUrlData(){ return (dispatch, getState) =>{ return http.get('./data/musicUrlData.json').then((data)=>{ dispatch(getMusicUrlData(data)) }) } }
$('.child_menu>li').click(function(){ var className = this.className; className = className.replace(' active',''); $('Form').text('这是'+className+'页面'); $('#page').text(className); $(this).siblings('li').each(function(){ if($(this).hasClass('active')){ $(this).removeClass('active'); } }) });
// @flow /* eslint-disable */ import * as React from 'react'; import TreePicker from './TreePicker'; const Tree = (props: any) => <TreePicker inline {...props} />; export default Tree;
class Base extends Entity { constructor(game, x, y) { super(game, x, y); game.base = this; this.spritesheet = ASSET_MANAGER.getAsset("./img/hill.png"); this.scale = 100; this.radius = 50; this.moving = false; this.start(); } update() { super.update(); if (this.game.click && pointToCircle(this.game.mousePos, this, this.radius)) { this.game.click = false; this.game.entities[LAYERS.PATH].forEach(function(elem) { elem.destroy() }); this.game.entities[LAYERS.BREADCRUMBS].forEach(function(elem) { elem.destroy() }); this.game.entities[LAYERS.ANTS].forEach(function(elem) { elem.destroy() }); this.moving = true; } if (this.moving) { if (this.game.clicking) { this.x = this.game.mouseX; this.y = this.game.mouseY; } else { this.moving = false; this.game.entities[LAYERS.PATH].forEach(function(elem) { elem.destroy() }); this.start(); } } } start() { let numOfAnts = document.getElementById("numOfAnts").value; if (isNaN(numOfAnts) || numOfAnts < 0) { numOfAnts = 1; } for (let i = 0; i < numOfAnts; i++) { this.spawn(); } } spawn() { this.game.addEntity(new Ant(this.game, this.x + this.scale / 2, this.y - 20), LAYERS.ANTS); } }
require(['./hello'],function(hello){ document.body.innerText = hello })
import Account from '@/views/Account/Account.vue' import Home from '@/views/Home/Home.vue' import Message from '@/views/Message/Message.vue' let tabBarLists = [{ path: 'Home', tabBar: '首页', target: 'home', component: Home, icon: 'icon-fire', activeIcon: 'icon-fire-fill' }, { path: 'Message', tabBar: '消息', target: 'message', component: Message, icon: 'icon-rocket', activeIcon: 'icon-rocket-fill' }, { path: 'Account', tabBar: '我的', target: 'account', component: Account, icon: 'icon-mobile', activeIcon: 'icon-mobile-fill' }]; let App = { tabBarLists, navigator: '兎走' } export default App;
(function(){ /* Schroeder.Object ------------------------- Defines a simple class that implements a classical inheritance pattern. */ function BaseClass(){} BaseClass.prototype.init = function(){}; BaseClass.__construct__ = function(key, fn, _super){ return function(){ var currentSuper = this._super; this._super = _super[key]; var ret = fn.apply(this, arguments); this._super = currentSuper; return ret; }; }; BaseClass.create = function(params){ params = params || {}; var object, key; var Class = function(){}; Class.prototype = this.prototype; object = new Class(); for(key in params){ if(params.hasOwnProperty(key)){ object[key] = params[key]; } } if(object.init){ object.init(); } return object; }; BaseClass.extend = function(params){ var _super = this.prototype; var proto = new this(BaseClass); var param; for(var key in params){ param = params[key]; if(param instanceof Function && _super[key] instanceof Function){ param = BaseClass.__construct__(key, param, _super); } proto[key] = param; } proto._super = _super; var Class = function(){ if(arguments[0] !== BaseClass && this.init){ this.init.apply(this, arguments); } }; Class.prototype = proto; Class.prototype.constructor = BaseClass; Class.extend = BaseClass.extend; Class.create = BaseClass.create; return Class; }; Schroeder.Object = BaseClass; })();
// @flow import * as React from "react"; import { readUploadedFileAsDataURL } from "../util/readFile.js"; import type { SingleFileContainerProps } from "./FileUpload.jsx"; type Props = { id: number, data: {}, file: File, filenameField: string, singleFileContainer: ( SingleFileContainerData ) => React.Node, filesLocationPrefix?: string, actionURL: string, autoupload: boolean, removeButton: React.Node, onChange: ( id: number, data: {} ) => void, onRemove: ( id: number ) => void, onUploadSuccess: ( id: number, uploadId: string ) => void, onUploadError: ( id: number, errorMessage: string ) => void }; export type SingleFileContainerData = { data: {}, onChange: ( number, {} ) => void, __file: string, __uploadId: string, __size: number, __progress: number, __isUploaded: boolean, __isError: boolean, __errorMessage: string | null, __removeButton: React.Node }; type State = { file: string, isUploaded: boolean, isError: boolean, errorMessage: string | null }; export class SingleFileContainer extends React.Component <Props, State> { constructor( props: Props ) { super( props ); // TODO: Перетащить эту кнопку в конструктор this.removeButton = React.cloneElement( this.props.removeButton, { onClick: this.onRemove } ); this.state = { file: props.data[ props.filenameField ], isUploaded: false, isError: false, errorMessage: null }; } componentDidMount() { if( this.props.file === null || typeof this.props.file !== "object" ) { // TODO: Тут еще надо проверять, нужно ли это делать this.setState( { file: this.props.filesLocationPrefix + "/" + this.state.file, isUploaded: true } ); return; } // Load image from local disk if possible this.readFileFromLocalSource( this.props.file ); this.uploadFile(); } readFileFromLocalSource = async ( file: File ): void => { try { const fileContents = await readUploadedFileAsDataURL( file ); this.setState( { file: fileContents } ); } catch ( exception ) { console.warn( exception.message ); } } uploadFile = async (): void => { try { const formData = new FormData(); formData.append( "file", this.props.file ); const params = { method: "POST", credentials: "include", body: formData }; const response = await fetch( this.props.actionURL, params ); const uploadId = await response.text(); if( Number( response.headers.get( "content-length" ) ) !== 32 ) throw "Response is not upload id"; this.setState( { isUploaded: true } ); // Upload successful, adding to data __uploadId field const newData = { ...this.props.data, __uploadId: uploadId }; this.props.onChange( this.props.id, newData ); } catch( error ) { console.log( "File uploading error: " + error ); this.setState( { isError: true, errorMessage: error } ); } }; onChange = ( data: {} ) => this.props.onChange( this.props.id, data ); onRemove = () => this.props.onRemove( this.props.id ); render() { const props: SingleFileContainerData = { data: this.props.data, __file: this.state.file, __size: 0, __progress: 0, __isUploaded: this.state.isUploaded, __isError: this.state.isError, __errorMessage: this.state.errorMessage, __removeButton: this.removeButton, __additionalProps: this.props.__additionalProps, onChange: this.onChange }; const CustomSingleFileContainer = this.props.singleFileContainer; return <CustomSingleFileContainer { ...props } />; } }
import { combineReducers } from 'redux' import geolocation from './geolocation/reducers' import incursions from './incursions/reducers' import zones from './zones/reducers' const rootReducer = combineReducers({ geolocation, incursions, zones }) export default rootReducer
window.onload=function(){ CKEDITOR.replace( 'homework_detail' ); if($('.homework').length<=0){ $('#info').hide(); $('#homework').html('您尚未布置任何作业'); }else{ $('#info').show(); } $('#relase').click(function(){ if($('#name').val()==''){ return false; } }) }
'use strict'; angular.module('AgentApp') .controller('DashboardController', function ($scope, $http, Agents, Students, Meterials, AgentTokens, $window){ var token = sessionStorage.token; AgentTokens.post({token:token},function(result){ if(result.status == "successed"){ var agent_id = result.data._id; Meterials.getMaterialByAgentId({id:agent_id},function(result){ if(result.status ="ok"){ $scope.materials = result.data; } }); Students.getStudentsByAgent({id:agent_id}, function(result){ if(result.status ="ok"){ $scope.students = result.data; } }); Students.getRegistrationsByAgent({id:agent_id}, function(result){ if(result.status ="ok"){ $scope.registrations = result.data; } }); } else { console.log("error"); } }); });
angular .module('altairApp') .controller("annualReportCtrlGov",[ '$scope', '$rootScope', '$state', 'utils', 'mainService', 'sweet', 'lic_type', 'app_status', 'officers', 'rep_type', function ($scope,$rootScope,$state,utils,mainService,sweet,lic_type,app_status,officers,rep_type) { $scope.loadOnCheck = function(item) { if(item.reporttype==3){ if(item.lictype==1){ $state.go('restricted.pages.GovPlanFormH',{param:item.id}); } else{ $state.go('restricted.pages.GovPlanFormA',{param:item.id}); } } else{ if(item.lictype==1){ $state.go('restricted.pages.GovReportFormH',{param:item.id, id:item.repstepid}); } else{ $state.go('restricted.pages.GovReportFormA',{param:item.id, id:item.repstepid}); } } /*if(item.reporttype==3){ $state.go('restricted.pages.GovPlanForm',{param:item.id}); } else{ $state.go('restricted.pages.GovReportForm',{param:item.id}); }*/ }; var xtype=[{text: "X - тайлан", value: 0}]; $scope.PlanExploration = { dataSource: { transport: { read: { url: "/user/angular/AnnualRegistration", contentType:"application/json; charset=UTF-8", type:"POST" }, parameterMap: function(options) { return JSON.stringify(options); } }, schema: { data:"data", total:"total", model: { id: "id" } }, pageSize: 10, serverPaging: true, serverFiltering: true, serverSorting: true }, filterable: { mode: "row" }, sortable: { mode: "multiple", allowUnsort: true }, resizable: true, pageable: { refresh:true, buttonCount: 3 }, columns: [ { field:"lpName", title: "<span data-translate='Company name'></span>" }, { field:"licensenum", title: "<span data-translate='License number'></span>" }, { field:"licenseXB", title: "<span data-translate='License number'></span>"}, { field:"reporttype", title: "<span data-translate='Report/Plan'></span>", values:rep_type }, { field:"xtype", title: "<span data-translate='Report type'></span>" ,values:xtype}, { field:"lictype", title: "<span data-translate='License type'></span>", values:lic_type }, { field:"reportyear", title: "<span data-translate='Report year'></span>" }, { field:"repstatusid", title: "<span data-translate='Status'></span>", values:app_status }, { field:"submissiondate", title: "<span data-translate='Submitted date'></span>" }, { field:"officerid", title: "<span data-translate='Officer name'></span>",values:officers }, { field:"approveddate", title: "<span data-translate='Received date'></span>" }, { template: kendo.template($("#main").html()), width: "120px" }], editable: "popup" }; } ]);
//Given a sorted array find a pair whose sum is 0; function sumZero(arr){ let result; let l = 0; let r = arr.length -1 ; while(l < r){ let sum = arr[r] + arr[l]; if(sum == 0) return [arr[l], arr[r]]; else if(sum > 0) --r; else ++l; } return result; } function countUniqueValues(arr){ let left =0; let right =1; while(right < arr.length){ if(arr[left] == arr[right]){ right++; } else{ arr[++left] = arr[right++]; } } return left + 1; } console.log(countUniqueValues([1,1,1,1,12])); console.log(countUniqueValues([1,2,3,4,4,4,7,7,12,12,13])); console.log(sumZero([-3,-1,0,3])); console.log(sumZero([-2,0, 1,3])); console.log(sumZero([1,2,3]));
import React, { Profiler } from 'react'; import './styles.css' function Rank(props) { const { position, area, content, topics } = props; return ( <div id="container-rank"> <p1>{position}. {area}</p1><br/> <p2>{content}</p2><br/> <p3>Tópicos sobre o assunto: {topics}</p3> </div> ) } export default Rank;
import {pageSize, pageSizeType, paginationConfig, searchConfig} from '../../globalConfig'; const options1 = [ {value:1,title:'是'}, {value:0,title:'否'} ] const filters =[ {key: 'sendType', title: '发送方式', type: 'select', options:[{value:0,title:'及时发送'},{value:1,title:'队列发送'},{value:2,title:'定时发送'}]}, {key: 'mobile', title: '手机号', type: 'text'}, {key: 'status', title: '发送状态', type: 'select', options:[{value:-1,title:'发送失败'},{value:0,title:'未发送'},{value:1,title:'已发送'},{value:2,title:'部分发送成功'}]}, {key: 'batchSend', title: '是否群发', type: 'select', options:[{value:0,title:'否'},{value:1,title:'是'}]}, {key: 'startTime', title: '开始时间' , type: 'date'}, {key: 'endTime', title: '至', type:'date'} ]; const tableCols =[ {key: 'mobile', title: '手机号'}, {key: 'content', title: '发送内容'}, {key: 'sendType', title:'发送方式',options:[{value:0,title:'及时发送'},{value:1,title:'队列发送'},{value:2,title:'定时发送'}]}, {key: 'sendDate' ,title:'发送时间'}, {key: 'status', title: '发送状态', options:[{value:-1,title:'发送失败'},{value:0,title:'未发送'},{value:1,title:'已发送'},{value:2,title:'部分发送成功'}]}, {key: 'resendNum', title: '重试次数'}, {key: 'batchSend', title: '是否群发',options:[{value:1,title:'是'},{value:0,title:'否'}]}, {key: 'insertUser', title: '创建人'}, {key: 'insertTime', title: '创建时间'} ]; const controls = [ {key: 'num', title: '流水号'}, {key: 'mobile', title: '手机号'}, {key: 'smsAccountId', title: '发送短信账号'}, {key: 'isSuccess', title: '是否发送成功',options: options1}, {key: 'sendResult', title: '发送结果'}, {key: 'isReceive', title: '是否接受成功',options: options1}, {key: 'insertUser', title: '创建人'}, {key: 'insertTime', title: '创建时间'} ] const index ={ filters, tableCols, pageSize, pageSizeType, paginationConfig, searchConfig, buttons:[] } const edit ={ controls, edit: '短信流水', add: '新增', config: {ok: '确定', cancel: '取消'} }; const config = { index, edit, dicNames: [] }; export default config;
import React, { Component } from 'react'; class Login extends Component { render() { return ( <div className="login-bg"> <div className="login-card"> <form action="#"> <input type="text" name="username" placeholder="Username" /> <input type="password" name="password" placeholder="Password" /> <input type="submit" name="login" value="Login" /> </form> </div> </div> ); } } export default Login;
import axios from 'axios' const isDev = process.env.NODE_ENV === 'development' const service = axios.create({ baseURL: isDev ? '/api/' : 'http://localhost:9000/api/', timeout: 5000 }) service.interceptors.response.use( response => { const res = response.data // if the err no is not 0, if(res.errNo !== 0) { return Promise.reject(new Error(res.message || 'Error')) } else { return res.data } }, error => { console.log('err: ' + error) return Promise.reject(error) } ) export default service
import Router from "koa-router"; var express = require('express') export const router = express.Router() import * as res from "express"; import SignUpAntrenor from "./sign-up-antrenor"; import Client from "../client/client"; import AntrenorSporturi from "../antrenor_sporturi/antrenor_sporturi"; import Antrenor from "../antrenor/antrenor"; const bodyParser = require('body-parser'); var express = require('express') const app = express(); var jsonParser = bodyParser.json() app.use(bodyParser.json()); // support json encoded bodies app.use(bodyParser.urlencoded({extended: false})); // support encoded bodies /*toti antrenorii*/ router.get('/', (req, res) => { SignUpAntrenor.findAll((err, antrenor) => { if (err) { res.send(err); } else { res.send(antrenor); } }); }); /*create*/ router.post('/create/antrenor-sporturi', (req, res) => { var id_sport = req.body["id_sport"]; var id_antrenor = req.body["id_antrenor"]; var experienta = req.body["experienta"]; var a = new AntrenorSporturi({ "id_sport": id_sport, "id_antrenor": id_antrenor, "experienta": experienta }) AntrenorSporturi.create(a, (err, result) => { if (err) { res.send(err); } else { res.sendStatus(200); } }); }); /*get by email*/ router.get('/email', (req, res) => { var email = req.headers["email"]; // se primeste de forma "email" trebuie eliminate ghilimelele var emaill = email.substring(1, email.length - 1) SignUpAntrenor.findByEmail(emaill, (err, antrenor) => { if (err) { res.send(err); } else { res.send(antrenor); } }); }); /*get by id*/ router.get('/id', (req, res) => { var id = req.headers["id"]; SignUpAntrenor.findById(id, (err, antrenor) => { if (err) { res.send(err); } else { res.send(antrenor); } }); }); /*get by email and password*/ router.get('/credidentials', (req, res) => { var email = req.headers["email"]; var password = req.headers["parola"]; SignUpAntrenor.findByEmailAndPassword(email, password, (err, antrenor) => { if (err) { res.send(err); } else { res.send(antrenor); } }); }); router.post('/create', async (req, res) => { var nume = req.body["nume"]; var prenume = req.body["prenume"]; var email = req.body["email"]; var password = req.body["parola"]; var varsta = req.body["varsta"]; var descriere = req.body["descriere"]; var poza = req.body["poza"]; var numar_telefon=req.body["numar_telefon"] var a = new SignUpAntrenor({ "id": 0, "nume": nume, "prenume": prenume, "email": email, "parola": password, "varsta": varsta, "nota": 0, "descriere": descriere, "poza": poza, "numar_telefon":numar_telefon }) await SignUpAntrenor.findByEmail(email, (err, user) => { if (err) { } else { if (user.length !== 0) { res.status(400).send({error: "Email already used"}); } else { SignUpAntrenor.findByTelephone(numar_telefon, (err, user) => { if (err) { } else { if (user.length !== 0) { res.status(400).send({error: "Phone number already used"}); } else { SignUpAntrenor.create(a, (err, user) => { res.sendStatus(200); }); } } }); } } }); }); router.put('/edit', (req, res) => { var nume = req.body["nume"]; var prenume = req.body["prenume"]; var email = req.body["email"]; var password = req.body["parola"]; var varsta = req.body["varsta"]; var descriere = req.body["descriere"]; var poza = req.body["poza"]; var a = new SignUpAntrenor({ "id": 0, "nume": nume, "prenume": prenume, "email": email, "parola": password, "varsta": varsta, "nota": 0, "descriere": descriere, "poza": poza }) SignUpAntrenor.update(a, (err, result) => { if (err) { res.send(err); } else { res.sendStatus(200); } }); });
//bar chart //getVizTotal(); function getVizTotal() { document.getElementById("viz3-footer-note").innerHTML="* Funding amount in millions"; var margin = {top: 40, right: 10, bottom: 60, left: 60}; var width = 560 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; var svg = d3.select("#viz3-chart").append("svg") .attr("id", "totalViz") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); var tip = d3.tip() .attr('class', 'd3-tip') .offset([30, 0]) .html(function (d) { var theAmount = d.value; return "<span class='tip-title'>Total Funding:</span> &nbsp;&nbsp;" + theAmount; }); svg.call(tip); // Scales var x = d3.scale.ordinal() .rangeRoundBands([0, width], .1); var y = d3.scale.linear() .range([height, 0]); var yAxis = d3.svg.axis() .scale(y) .orient("left"); var xAxis = d3.svg.axis() .scale(x) .orient("bottom"); var data3; d3.csv("data/global-funding.csv", function (data) { data.filter(function (d, i) { //d.percentage = +d.percentage; d["2005"] = +d["2005"].replace("$", "").trim(); d["2006"] = +d["2006"].replace("$", "").trim(); d["2007"] = +d["2007"].replace("$", "").trim(); d["2008"] = +d["2008"].replace("$", "").trim(); d["2009"] = +d["2009"].replace("$", "").trim(); d["2010"] = +d["2010"].replace("$", "").trim(); d["2011"] = +d["2011"].replace("$", "").trim(); d["2012"] = +d["2012"].replace("$", "").trim(); d["2013"] = +d["2013"].replace("$", "").trim(); console.log(d["Source"][0]); }) data3 = data; updateVis(); }); // Render visualization function updateVis() { document.getElementById("viz3-title").innerHTML = "<h3>Total Global Funding for Malaria (by Year)</h3>" x.domain(d3.keys(data3[0]).filter(function (key) { return key !== "Source"; })); var yrNames = d3.keys(data3[0]).filter(function (key) { return key !== "Source"; }); var myData = {}; data3.forEach(function (d) { d.ages = yrNames.map(function (name) { return {name: name, value: +d[name]}; }); myData = d.ages; }); console.log(myData) y.domain([0, d3.max(myData, function (d) { console.log(d); return d3.max(myData, function (d) { return d.value; }); })]) svg.append("g") .attr("class", "x axis") .attr("transform", "translate(0," + height + ")") .call(xAxis); svg.append("g") .attr("class", "y axis") .call(yAxis) .append("text") .attr("class", "y-label") .attr("transform", "translate(0,-20)") .attr("y", 6) .attr("dy", ".71em") .style("text-anchor", "end") .text("Funding"); svg.selectAll(".bar") .data(myData) .enter().append("rect") .attr("class", "bar") .attr("x", function (d) { return x(d.name); }) .attr("width", x.rangeBand()) .attr("y", function (d) { console.log(d); return y(d.value); }) .attr("height", function (d) { return height - y(d.value); }) .on("mouseover", function (d) { tip.show(d, document.getElementById("head")); }) .on("mouseout", function (d) { tip.hide(d, document.getElementById("head")) }); } } $('#total-funding').on('click', function (e) { var barVizDom = document.getElementById("barViz"); var choroVizDom = document.getElementById("choroViz"); var totalVizDom = document.getElementById("totalViz"); if (barVizDom) { var moveIt = remove("barViz"); } if(choroVizDom) { var moveIt = remove("choroViz"); } $('#legend').hide(); $('#option-control').hide(); $('#viz1-title').hide(); $('#viz2-title').hide(); $('#viz2-footer-note').hide(); $('#info-div').hide(); $('#viz3-title').show(); $('#viz3-footer-note').show(); //prevent double clicking debacle if (totalVizDom !== null){ var moveIt = remove("totalViz") } getVizTotal(); })
import React from "react" import "../styles/main.less" import { Link } from "gatsby"; import Logo from "../components/logo"; export default () => { return ( <div className="rack-app rack-app__main"> <Logo /> <div className="rack-app__main-links"> <Link to="/form">Submit a Report</Link> <Link to="/dashboard">View Dashboard</Link> </div> </div> ) }
module.exports = { attributes: { first_name: { type: 'string', size: 32, minLength: 3, maxLength: 32, required: true, notNull: true }, last_name: { type: 'string', size: 32, minLength: 3, maxLength: 32, required: true, notNull: true }, birth_date: { type: 'date', required: true, notNull: true }, blood_type: { type: 'string', enum: ['A', 'B', 'AB', '0'], required: true, notNull: true }, last_glucose: { type: 'float', required: true, notNull: true }, image_url: { type: 'string', size: 2048, defaultsTo: null }, allergens: { type: 'array', defaultsTo: [] } } };
define(['text!template/postcomment.html','Collection/Users'],function(teml,collectionUsers){ var BV = Backbone.View, loadCommnetPoast = BV.extend({ el:$('#postreply'), template: _.template(teml), initialize:function(){console.log('this is initialized',this); this.render(); }, render:function(){ this.$el.html(teml); console.log('this is render okie',this); return this; } }); console.log('loaded LoadComment Poast',loadCommnetPoast.prototype); return loadCommnetPoast; });
export const ADMIN_BORDERS = { border: '1px', borderStyle: 'dashed', borderColor: 'gray', };
import EndpointCriticalDose from './EndpointCriticalDose'; import React from 'react'; import ReactDOM from 'react-dom'; const WrongUnitsRender = function(props) { return ( <p> N/A <br /> <span className="help-block">(BMD conducted using different units)</span> </p> ); }, ModelDetails = function(props) { return [ <p key={0}> <b>Selected model:</b> {props.bmd.output.model_name} &nbsp;(<a href={props.bmd.url}>View details</a>) </p>, <ul key={1}> <li> <b>BMDL:</b> {props.bmd.output.BMDL.toHawcString()} {props.units} </li> <li> <b>BMD:</b> {props.bmd.output.BMD.toHawcString()} {props.units} </li> <li> <b>BMDU:</b> {props.bmd.output.BMDU.toHawcString()} {props.units} </li> </ul>, ]; }, Renderer = function(props) { return ( <div> {ModelDetails(props)} <p>{props.bmd_notes}</p> </div> ); }, NoneSelected = function(props) { return ( <div> <p> <i>BMD modeling conducted; no model selected.</i> (<a href={props.url}>View details</a>) </p> <p>{props.bmd_notes}</p> </div> ); }; class BMDResult extends EndpointCriticalDose { update() { let bmd = this.endpoint.data.bmd, bmd_notes = this.endpoint.data.bmd_notes, url = this.endpoint.data.bmd_url; if (bmd === null) { return ReactDOM.render(<NoneSelected bmd_notes={bmd_notes} url={url} />, this.span[0]); } let currentUnits = this.endpoint.dose_units_id, bmdUnits = this.endpoint.data.bmd.dose_units, units_string = this.endpoint.dose_units; let RenderComponent = currentUnits == bmdUnits ? Renderer : WrongUnitsRender; ReactDOM.render( <RenderComponent bmd={bmd} bmd_notes={bmd_notes} units={units_string} />, this.span[0] ); } } export default BMDResult;
import React from "react"; import PropTypes from "prop-types"; import Header from "../components/organisms/Header/Header"; import Footer from "../components/organisms/Footer/Footer"; const PageTemplate = ({ children }) => ( <> <Header /> {children} <Footer /> </> ); PageTemplate.propTypes = { children: PropTypes.node.isRequired, }; export default PageTemplate;
/* jQuery */ document.write("<script src='js/admin/jquery-1.7.2.min.js'></script>"); //document.write("<script src='js/jquery.js'></script>"); /* jQuery UI */ document.write("<script src='js/admin/jquery-ui-1.8.21.custom.js'></script>"); /* transition / effect library */ document.write("<script src='js/admin/bootstrap-transition.js'></script>"); /* alert enhancer library */ document.write("<script src='js/admin/bootstrap-alert.js'></script>"); /* modal / dialog library */ document.write("<script src='js/admin/bootstrap-modal.js'></script>"); /* custom dropdown library */ document.write("<script src='js/admin/bootstrap-dropdown.js'></script>"); /* scrolspy library */ document.write("<script src='js/admin/bootstrap-scrollspy.js'></script>"); /* library for creating tabs */ document.write("<script src='js/admin/bootstrap-tab.js'></script>"); /* library for advanced tooltip */ document.write("<script src='js/admin/bootstrap-tooltip.js'></script>"); /* popover effect library */ document.write("<script src='js/admin/bootstrap-popover.js'></script>"); /* button enhancer library */ document.write("<script src='js/admin/bootstrap-button.js'></script>"); /* accordion library (optional, not used in demo) */ document.write("<script src='js/admin/bootstrap-collapse.js'></script>"); /* carousel slideshow library (optional, not used in demo) */ document.write("<script src='js/admin/bootstrap-carousel.js'></script>"); /* autocomplete library */ document.write("<script src='js/admin/bootstrap-typeahead.js'></script>"); /* tour library */ document.write("<script src='js/admin/bootstrap-tour.js'></script>"); /* library for cookie management */ document.write("<script src='js/admin/jquery.cookie.js'></script>"); /* calander plugin */ document.write("<script src='js/admin/fullcalendar.min.js'></script>"); /* data table plugin */ document.write("<script src='js/admin/jquery.dataTables.min.js'></script>"); /* chart libraries start */ document.write("<script src='js/admin/excanvas.js'></script>"); document.write("<script src='js/admin/jquery.flot.min.js'></script>"); document.write("<script src='js/admin/jquery.flot.pie.min.js'></script>"); document.write("<script src='js/admin/jquery.flot.stack.js'></script>"); document.write("<script src='js/admin/jquery.flot.resize.min.js'></script>"); /* chart libraries end */ /* select or dropdown enhancer */ document.write("<script src='js/admin/jquery.chosen.min.js'></script>"); /* checkbox, radio, and file input styler */ document.write("<script src='js/admin/jquery.uniform.min.js'></script>"); /* plugin for gallery image view */ document.write("<script src='js/admin/jquery.colorbox.min.js'></script>"); /* rich text editor library */ document.write("<script src='js/admin/jquery.cleditor.min.js'></script>"); /* notification plugin */ document.write("<script src='js/admin/jquery.noty.js'></script>"); /* file manager library */ document.write("<script src='js/admin/elfinder.min.js'></script>"); /* star rating plugin */ document.write("<script src='js/admin/jquery.raty.min.js'></script>"); /* for iOS style toggle switch */ document.write("<script src='js/admin/jquery.iphone.toggle.js'></script>"); /* autogrowing textarea plugin */ document.write("<script src='js/admin/jquery.autogrow-textarea.js'></script>"); /* multiple file upload plugin */ document.write("<script src='js/admin/jquery.uploadify-3.1.min.js'></script>"); /* history.js for cross-browser state change on ajax */ document.write("<script src='js/admin/jquery.history.js'></script>"); /* real time web을 위한 socket.io js*/ document.write("<script src='js/socket.io.js'></script>");
import Vue from 'vue' import VueRouter from 'vue-router' Vue.use(VueRouter) import Presentation from './views/Presentation.vue' import Portfolio from './views/Portfolio.vue' import WorkDetail from './views/WorkDetail.vue' import WorkPrivacy from './views/WorkPrivacy.vue' import WorkLicense from './views/WorkLicense.vue' import Terms from './views/Terms.vue' const router = new VueRouter({ mode: 'history', linkExactActiveClass: 'is-active', routes: [ { name: 'Presentation', path: '/', component: Presentation }, { name: 'All', path: '*', component: Presentation }, { name: 'Portfolio', path: '/portfolio', component: Portfolio, props: { showAll: true } }, { name: 'WorkDetail', path: '/work/:id', component: WorkDetail, props: (route) => ({ workId: route.params.id }) }, { name: 'WorkPrivacy', path: '/work/:id/Privacy', component: WorkPrivacy, props: (route) => ({ workId: route.params.id }) }, { name: 'WorkLicense', path: '/work/:id/License', component: WorkLicense, props: (route) => ({ workId: route.params.id }) }, { name: 'Terms', path: '/terms', component: Terms } ], scrollBehavior (to, from, savedPosition) { if (savedPosition) return savedPosition; if (to.hash) return { selector: to.hash } return { x: 0, y: 0 } } }) export default router
import CircularProgress from "@material-ui/core/CircularProgress"; function ProgressCircular() { return ( <CircularProgress/> ) } export default ProgressCircular;
module.exports = { parser: '@typescript-eslint/parser', extends: [ 'plugin:prettier/recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended' ], plugins: ['@typescript-eslint', 'react-hooks'], // 所有的规则需要在这里配置 rules: { eqeqeq: 'warn', 'no-else-return': 'warn', 'default-case': 'error', 'array-callback-return': 'warn', // map,filter,reducer等数组方法必须有返回值 // hooks规则 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', 'react/prop-types': 'off', // 关闭react prop-types类型检验 // 配置@typescript-eslint的规则 '@typescript-eslint/camelcase': 'off', // 驼峰 '@typescript-eslint/interface-name-prefix': 0, '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/ban-types': 'off', '@typescript-eslint/no-extra-semi': 'off', '@typescript-eslint/member-delimiter-style': [ 'error', // 接口定义不允许加分号 { multiline: { delimiter: 'none', requireLast: true }, singleline: { delimiter: 'semi', requireLast: false } } ], '@typescript-eslint/no-explicit-any': 'off', // 允许使用any '@typescript-eslint/explicit-function-return-type': 'off', // 允许不显示的给函数写返回类型 'react/display-name': 'off' // 允许在React组件定义中缺少displayName }, env: { browser: true, node: true }, settings: { //自动发现React的版本,从而进行规范react代码 react: { pragma: 'React', version: 'detect' } }, parserOptions: { //指定ESLint可以解析JSX语法 ecmaVersion: 2019, sourceType: 'module', ecmaFeatures: { jsx: true } } }
axios.defaults.baseURL = 'http://cjf.qianmu.fun/jpaywepayback';