text stringlengths 7 3.69M |
|---|
import React from "react";
import CustomTooltip from "./CustomTooltip";
import {
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ScatterChart,
Scatter
} from "recharts";
import { parse, format } from "date-fns";
const ResultsInContext = ({ graphData, activeKey, selectedPaperData }) => (
<ScatterChart
width={600}
height={250}
margin={{ top: 20, right: 20, bottom: 10, left: 10 }}
className="graph"
>
<CartesianGrid strokeDasharray="3 3" />
<XAxis
dataKey="date"
name="date"
type="number"
tickFormatter={e => format(parse(e), "MMM YY")}
minTickGap={0}
domain={["dataMin", "dataMax"]}
/>
<YAxis
dataKey="cleanedValue"
type="number"
domain={["dataMin", "dataMax"]}
/>
<Scatter data={graphData[activeKey]} fill="#8884d8" />
<Scatter data={selectedPaperData[activeKey]} fill="#00ff00" />
<Tooltip cursor={{ strokeDasharray: "3 3" }} content={<CustomTooltip />} />
</ScatterChart>
);
export default ResultsInContext;
|
let MACD = require('./Class/MACD');
let Message = require('./Class/Message');
let value = require('./Class/Value');
let vl = new value();
let msg = new Message();
msg.initialize();
let macdObj = new MACD();
launchEverything();
// On vérifie tout toutes les 5mn
setInterval(launchEverything, (5 * 60 * 1000));
function launchEverything(){
macdObj.verify('1h', function () {
macdObj.verify('4h', function () {
macdObj.verify('1d', function () {
msg.sendPendingMsg();
vl.deleteExpired();
});
});
});
}
|
/**
* Created by hridya on 4/15/16.
*/
module.exports = function (mongoose) {
var PetSchema = mongoose.Schema({
"category": String,
"name": String,
"age": String,
"size": String,
"sex": String,
"description": String,
"userId": String
}, { collection: "project.pet" });
return PetSchema;
}; |
// assets that need to load before we can start
const expectedAssets = [ "storyfile" ];
// functions that are called when all assets have loaded
const callbacks = [];
// the callback that's called the very last
let lastCallback;
/**
* When all assets are ready, run the callbacks.
*/
async function done() {
for( let i = 0; i < callbacks.length; ++i ) {
await callbacks[ i ]();
}
if( lastCallback ) {
await lastCallback();
}
}
/**
* Adds a callback that's run when all assets are ready.
* If all assets have already loaded, call the callback immediately.
*
* The first parameter of the callback function must be a function that
* itself calls as a callback when it has finished.
*
* @param cb
*/
export function addCallback( cb ) {
if( expectedAssets.length === 0 ) {
// make the function consistently asynchronous
setTimeout( cb, 0 );
}
callbacks.push( cb );
}
/**
* Add an expected asset to the list.
*
* @param {function} asset
*/
export function expect( asset ) {
if( expectedAssets.length === 0 ) {
console.warn( "An expected asset \"" + asset + "\" was added "
+ "but all previous assets have already finished loading" );
return;
}
expectedAssets.push( asset );
}
/**
* As a bit of a hack this ensures the game starting callback is always
* the last one.
*
* @param cb
*/
export function finalCallback( cb ) {
lastCallback = cb;
}
/**
* When an asset has finished loading, this method should be called.
*
* @param asset The name of the asset that's ready
* @returns {boolean} true if asset was expected
*/
export function finished( asset ) {
const index = expectedAssets.indexOf( asset );
if( index === -1 ) {
return false;
}
// remove from the list of expected assets
expectedAssets.splice( index, 1 );
// if everything's ready, run the callbacks
if( expectedAssets.length === 0 ) {
done();
}
return true;
}
|
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const node_fetch_1 = __importStar(require("node-fetch"));
const defaultURL = "https://mee6.xyz/api/plugins/levels/leaderboard/";
class MEE6 {
static async makeRequest(endpoint) {
const response = await node_fetch_1.default(defaultURL + endpoint);
if (response.status !== 200) {
throw new node_fetch_1.FetchError(response.status + ': ' + response.statusText, 'basic');
}
return await response.json();
}
static parseID(variable) {
if (typeof variable == 'string')
return variable;
else if (typeof variable.id == 'string')
return variable.id;
else
throw new Error("Unable to find or parse ID given.");
}
static async fetchLeaderboardByPage(guild, page = 0, limit = 1000) {
const id = this.parseID(guild);
console.log({ page, limit });
const { players: users } = await this.makeRequest(id + '?limit=' + limit + '&page=' + page);
return users.map((user, index) => {
const { id, level, username, discriminator, avatar, message_count, detailed_xp } = user;
const avatarURL = `https://cdn.discordapp.com/avatars/${id}/${avatar}`;
const rank = (limit * page) + index + 1;
return {
id,
level,
username,
discriminator,
avatarURL,
message_count,
xp: detailed_xp,
rank
};
});
}
static async fetchLeaderboard(guild) {
const id = this.parseID(guild);
let pageNum = 0;
let page;
const board = [];
while (true) {
page = await this.fetchLeaderboardByPage(id, pageNum, 1000);
board.push(...page);
if (page.length < 1000)
break;
pageNum += 1;
}
return board;
}
static async fetchRewards(guild, sorted = true) {
const id = this.parseID(guild);
const { role_rewards } = await this.makeRequest(id + '?limit=1');
if (!sorted)
return role_rewards;
else
return role_rewards.sort((a, b) => a.rank - b.rank).map(({ rank, ...vars }) => ({ level: rank, ...vars }));
}
static async fetchUser(guild, user) {
const guildID = this.parseID(guild);
const userID = this.parseID(user);
let pageNum = 0;
let page;
let userInfo;
while (true) {
page = await this.fetchLeaderboardByPage(guildID, 1000, pageNum);
userInfo = page.find(u => u.id === userID);
if (page.length < 1000 || userInfo)
break;
pageNum += 1;
}
return userInfo;
}
}
exports.default = MEE6;
|
// components/navigationBar/index.js
const app = getApp();
Component({
options: {
addGlobalClass: true, //等价于设置 styleIsolation: apply-shared ,但设置了 styleIsolation 选项后这个选项会失效。apply-shared 表示页面 wxss 样式将影响到自定义组件,但自定义组件 wxss 中指定的样式不会影响页面;
},
/**
* 组件的属性列表
*/
properties: {
pageName: {
type: String,
value: "格鲁比会员中心"
},
showNaviBtn: {
type: Boolean,
value: true
},
showHomeBtn: {
type: Boolean,
value: false
},
bgColor: {
type: String,
value: "#ffffff"
},
iconColor: {
type: String,
value: "#000000"
},
titleColor: {
type: String,
value: "#000000"
}
},
/**
* 外部样式扩展
*/
externalClasses: ["i-class"],
/**
* 组件的初始数据
*/
data: {
navHeight: 0,
},
/**
* 生命周期
*/
lifetimes: {
attached: function () {
let menuButtonObject = wx.getMenuButtonBoundingClientRect();
let naviTop = menuButtonObject.top; //胶囊按钮与顶部的距离
let menuHeight = menuButtonObject.height; // 胶囊高度
let statusBarHeight = wx.getSystemInfoSync()['statusBarHeight'];
let naviHeight = statusBarHeight + menuHeight + (naviTop - statusBarHeight) * 2; //导航高度
app.globalData.naviHeight = naviHeight;
app.globalData.naviTop = naviTop;
app.globalData.windowHeight = wx.getSystemInfoSync()['windowHeight'];
app.globalData.pageHeight = app.globalData.windowHeight - app.globalData.naviHeight;
this.setData({
naviHeight: naviHeight,
naviTop: naviTop,
menuHeight: menuHeight
})
}
},
/**
* 组件的方法列表
*/
methods: {
tapTitle: function () {
console.log("tapNaviTitle")
},
//回退
naviBack: function () {
console.log("tapNaviTitle")
wx.navigateBack({
delta: 1
})
},
//回主页
toIndex: function () {
wx.navigateTo({
url: '/pages/home/index'
})
},
}
})
|
var React = require('react');
var InputComparatorUI = require('./input-comparator-ui.jsx')
, InputComparatorOutput = require('./input-comparator-output.jsx');
module.exports = React.createClass({
getInitialState: function() {
return {
input1: '',
input2: ''
}
},
handleUserInput: function(input1, input2) {
this.setState({
input1: input1,
input2: input2
})
},
render: function() {
return (
<div className="input-comparator">
<h1 className="input-comparator__title">{this.props.title}</h1>
<InputComparatorUI
input1={this.state.input1}
input2={this.state.input2}
onUserInput={this.handleUserInput}
/>
<InputComparatorOutput
comparator={this.props.comparator}
input1={this.state.input1}
input2={this.state.input2}
/>
</div>
)
}
});
|
'use strict'
const Config = use('Config')
const ResponseHelper = use('ResponseHelper')
const StudentRepository = use('StudentRepository')
class EditController {
async edit ({ request, response, params, transform }) {
// Get request body
const studentId = params.id
const studentDetails = request.only(['name', 'phone_number', 'email',
'source_of_funds', 'source_of_funds_description', 'student_number',
'date_of_birth', 'place_of_birth', 'present_address', 'permanent_address'])
// Process
let student = await transform.item(StudentRepository.edit(studentId, studentDetails), 'StudentTransformer')
// Set response body
const responseStatus = Config.get('response.status.success')
const responseCode = Config.get('response.code.success.student.edit')
const responseData = student
const responseBody = ResponseHelper.formatResponse(response, responseStatus, responseCode, responseData)
return responseBody
}
}
module.exports = EditController
|
import React from 'react';
import {ThemeName, ThemeProvider} from '../../components/theme-context/ThemeContext';
import {Helmet} from 'react-helmet';
import './landing-en.scss';
import {UniversalLink} from '../../components/universal-link/UniversalLink';
import {Input} from '../../components/input/Input';
export class LandingPageEn extends React.Component {
state = {
sent: false,
phone: '',
email: '',
skype: '',
message: ''
};
handlePhoneChange = (event) => {
this.setState({phone: event.target.value})
};
handleEmailChange = (event) => {
this.setState({email: event.target.value})
};
handleSkypeChange = (event) => {
this.setState({skype: event.target.value})
};
handleMessageChange = (event) => {
this.setState({message: event.target.value})
};
handleSendDataClick = () => {
const {phone, email, skype, message, sent} = this.state;
window.fetch('https://api.furnas.ru/requests', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({phone, email, skype, message})
});
if (window.yaCounter) {
window.yaCounter.reachGoal('AddedContact', {phone, email, skype, message});
}
window.mixpanel.track(
"Furnas | added user contact",
{phone, email, skype, message}
);
this.setState({sent: true});
};
componentDidMount() {
window.anima_isHidden = function (e) {
if (!(e instanceof HTMLElement)) return !1;
if (getComputedStyle(e).display == "none") return !0; else if (e.parentNode && anima_isHidden(e.parentNode)) return !0;
return !1;
};
window.anima_loadAsyncSrcForTag = function (tag) {
var elements = document.getElementsByTagName(tag);
var toLoad = [];
for (var i = 0; i < elements.length; i++) {
var e = elements[i];
var src = e.getAttribute("src");
var loaded = (src != undefined && src.length > 0 && src != 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
if (loaded) continue;
var asyncSrc = e.getAttribute("anima-src");
if (asyncSrc == undefined || asyncSrc.length == 0) continue;
if (anima_isHidden(e)) continue;
toLoad.push(e);
}
toLoad.sort(function (a, b) {
return anima_getTop(a) - anima_getTop(b);
});
for (var i = 0; i < toLoad.length; i++) {
var e = toLoad[i];
var asyncSrc = e.getAttribute("anima-src");
e.setAttribute("src", asyncSrc);
}
};
window.anima_pauseHiddenVideos = function (tag) {
var elements = document.getElementsByTagName("video");
for (var i = 0; i < elements.length; i++) {
var e = elements[i];
var isPlaying = !!(e.currentTime > 0 && !e.paused && !e.ended && e.readyState > 2);
var isHidden = anima_isHidden(e);
if (!isPlaying && !isHidden && e.getAttribute("autoplay") == "autoplay") {
e.play();
} else if (isPlaying && isHidden) {
e.pause();
}
}
};
window.anima_loadAsyncSrc = function (tag) {
anima_loadAsyncSrcForTag("img");
anima_loadAsyncSrcForTag("iframe");
anima_loadAsyncSrcForTag("video");
anima_pauseHiddenVideos();
};
var anima_getTop = function (e) {
var top = 0;
do {
top += e.offsetTop || 0;
e = e.offsetParent;
} while (e);
return top;
};
window.anima_loadAsyncSrc();
window.anima_old_onResize = window.onresize;
window.anima_new_onResize = undefined;
window.anima_updateOnResize = function () {
if (window.anima_new_onResize == undefined || window.onresize != window.anima_new_onResize) {
window.anima_new_onResize = function (x) {
if (window.anima_old_onResize != undefined) window.anima_old_onResize(x);
anima_loadAsyncSrc();
};
window.onresize = window.anima_new_onResize;
setTimeout(function () {
anima_updateOnResize();
}, 3000);
}
};
window.anima_updateOnResize();
setTimeout(function () {
window.anima_loadAsyncSrc();
}, 200);
}
render() {
return (
<ThemeProvider value={ThemeName.LIGHT}>
<Helmet>
<title>Furnas</title>
<meta name="description" content="create website, ux/ui design, web banner design, illustration, set up ads"/>
<link rel="canonical" href="https://furnas.ru"/>
</Helmet>
<div className="bp5-furnasmobileeng">
<div className="bp5-group25-layout-container">
<div className="bp5-group25">
<div className="bp5-rectangle2">
</div>
<img anima-src={require('./images/furnasmobileeng-bitmap.png')} className="bp5-bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-reflection">
REFLECTION
</div>
<div className="bp5-opiniontechnology">
Opinion, technology, style… It doesn’t matter. <br/>Find yourself, find your reflection.
</div>
<div className="bp5-furnas">
Furnas
</div>
<div className="bp5-rectangle9">
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-9.png')} className="bp5-rectangle91" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp5-group13-layout-container">
<img anima-src={require('./images/furnasmobileeng-group-13.png')} className="bp5-group13" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-whoweare-layout-container">
<div className="bp5-whoweare">
Who we are
</div>
</div>
<div className="bp5-furnasu2014itmeanspe-layout-container">
<div className="bp5-furnasu2014itmeanspe">
<span className="bp5-span1">Furnas </span><span className="bp5-span2">— it means people who used to work together and now live in different cities.<br/>We are still friends, keep visiting each other and have fun. Now we are working together again and doing what we love.</span>
</div>
</div>
<img anima-src={require('./images/furnasmobileeng-group.png')} className="bp5-group" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp5-u0421u0430u0439u0442u044b">
Website
</div>
<div className="bp5-u041au0430u043au0438u0435u0441u0430u0439u0442u044b">
What kind of
</div>
<div className="bp5-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c">
How we work
</div>
<div className="bp5-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c">
What we use
</div>
<div className="bp5-u0414u0438u0437u0430u0439u043du0412u0435u0440u0441u0442u043au0430u0421u043eu0437u0434u0430">
Design <br/>Website Layout<br/>Content Creation<br/>Set Up Google Analytics and Yandex.Metrica<br/>Set Up Ads<br/>Web banner design
</div>
<div className="bp5-u041bu0435u043du0434u0438u043du0433u0438u041fu0440u043eu0434u0430u044eu0449u0438u0435u0441">
Landing Page <br/>Business Card Website <br/>Corporate Website<br/>Events Website <br/>Cafe / Coffee Shop / Hotel Website
</div>
<div className="bp5-u0422u0438u043bu044cu0434u0430reactjsno">
Tilda, react js, node js, C#.
</div>
<div className="bp5-u0421u043eu0437u0434u0430u043du0438u0435u043fu0435u0440u0432u043eu0439u0436u0438u0437u043d">
Сreating MVP<br/>Web Application Architecture Development<br/>Hypothesis Testing<br/>Set Up Ads<br/>Design advertising banner<br/>Data Сollection & Analysis<br/>HR consultation
</div>
<div className="bp5-reactjscjava">
React js, C#, Java, Python.
</div>
<div className="bp5-u041eu0442u0440u0438u0441u043eu0432u043au0430u043fu043eu0434u043bu044eu0431u044bu0435">
Creating for any platform
</div>
<div className="bp5-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c1">
How we work
</div>
<div className="bp5-facebookinstagram">
facebook, <br/>instagram, <br/>vk, <br/>Web Banner, <br/>Google Ads, <br/>Outdoor Advertising.
</div>
<div className="bp5-u041eu0442u0440u0438u0441u043eu0432u043au0430u0443u043du0438u043au0430u043bu044cu043du044bu0445">
Create a unique illustration in Adobe Illustrator — from idea to final print.<br/>Image editing.
</div>
<div className="bp5-u041fu0440u0438u0434u0443u043cu044bu0432u0430u0435u043cu0438u0440u0438u0441u0443u0435u043c">
Create a unique illustration for presentation, ad, article, website, banner, flyer.
</div>
<div className="bp5-u0418u043bu043bu044eu0441u0442u0440u0430u0446u0438u0438">
Illustration
</div>
<div className="bp5-u0420u0435u043au043bu0430u043cu043du044bu0435u0431u0430u043du043du0435u0440u044b">
Ad banner design
</div>
<div className="bp5-u0421u0447u0435u043cu043fu043eu043cu043eu0436u0435u043c">
We can help you with
</div>
<div className="bp5-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c1">
What we use
</div>
<div className="bp5-whatwedo">
What we do
</div>
<div className="bp5-u0421u0442u0430u0440u0442u0430u043fu044b">
Startup
</div>
<div className="bp5-treemanonly-layout-container">
<img anima-src={require('./images/furnasmobileeng-treemanonly.png')} className="bp5-treemanonly" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-rectangle">
</div>
<div className="bp5-where-layout-container">
<div className="bp5-where">
Where?
</div>
</div>
<div className="bp5-whywearebetterth-layout-container">
<div className="bp5-whywearebetterth">
Why we <br/>are better<br/>than…?
</div>
</div>
<div className="bp5-group20-layout-container">
<div className="bp5-group20">
<div className="bp5-weworkedinlargec">
We worked in large companies with high quality standards. We know development methodologies and work under contract.
</div>
<div className="bp5-freelance">
freelance
</div>
<img anima-src={require('./images/furnastableteng-group-8.svg')} className="bp5-group8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group21-layout-container">
<div className="bp5-group21">
<div className="bp5-onedayyouhavesom">
One day you have some extra work and you make a decision to hire an employee. Afterwards he has nothing to do and he is not happy with you. So you don’t like his attitude at work.<br/>At
first it will be better to work with us. We can work right now. In case of regular task you should think about full-time employee.
</div>
<div className="bp5-employee">
employee
</div>
<img anima-src={require('./images/furnasmobileeng-group-11.svg')} className="bp5-group11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-rectangle1">
</div>
<div className="bp5-group22-layout-container">
<div className="bp5-group22">
<div className="bp5-webstudiodesign">
web-studio design
</div>
<div className="bp5-alargecompanyspen">
A large company spend money on office rent, manager's salary and etc. Junior works on your project because real performer got a bit of money. We don’t have any office, managers or
cleaner staff. In our company developers get all the money.
</div>
<img anima-src={require('./images/furnasmobileeng-group-10.svg')} className="bp5-group10" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group28-layout-container">
<div className="bp5-group28">
<div className="bp5-group26">
<img anima-src={require('./images/furnasmobileeng-group-12.png')} className="bp5-group12" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp5-phone">
Phone
</div>
<Input value={this.state.phone}
onChange={this.handlePhoneChange}
className="landing__phone-input-mobile"/>
<div className="bp5-message">
Message
</div>
<textarea value={this.state.message}
onChange={this.handleMessageChange}
className="landing__message-input-mobile"/>
<div className="bp5-contact">
Contact
</div>
<div className="bp5-email">
Email
</div>
<Input value={this.state.email}
onChange={this.handleEmailChange}
className="landing__email-input-mobile"/>
<div className="bp5-skype">
Skype
</div>
<Input value={this.state.skype}
onChange={this.handleSkypeChange}
className="landing__skype-input-mobile"/>
</div>
<div className="bp5-group2" onClick={this.handleSendDataClick}>
<div className="bp5-rectangle17">
</div>
<div className="bp5-send">
{this.state.sent ? 'Sent' : 'Send'}
</div>
</div>
</div>
</div>
<div className="bp5-rectangle92">
</div>
<div className="bp5-group24-layout-container">
<div className="bp5-group24">
<div className="bp5-social">
Social
</div>
<a href="https://vk.com/furnas" target="_blank">
<div className="bp5-rectangle12">
</div>
</a>
<a href="https://vk.com/furnas" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-20@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<div className="bp5-rectangle121">
</div>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-combined-shape@2x.png')} className="bp5-combinedshape"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-12.png')} className="bp5-rectangle122" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnastableteng-shape-21@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp5-rectangle123">
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-m@2x.png')} className="bp5-m" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<div className="bp5-rectangle124">
</div>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<img anima-src={require('./images/furnasmobileeng-s@2x.png')} className="bp5-s" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
</div>
</div>
<div className="bp5-a2019251furnas-layout-container">
<div className="bp5-a2019251furnas">
2019 © FURNAS
</div>
</div>
<div className="bp5-group23-layout-container">
<div className="bp5-group23">
<div className="bp5-design">
DESIGN
</div>
<div className="bp5-code">
CODE
</div>
<div className="bp5-articles">
ARTICLES
</div>
<div className="bp5-spainvisaourproj">
SPAIN VISA <br/>(OUR PROJECT)
</div>
<a href="https://www.behance.net/sankinamaria" target="_blank">
<div className="bp5-dribbblecom">
BEHANCE.NET
</div>
</a>
<a href="https://github.com/furnasteam" target="_blank">
<div className="bp5-githubcom">
GITHUB.COM
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp5-mediumcom">
MEDIUM.COM
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp5-visafurnasru">
VISA.FURNAS.RU
</div>
</a>
<div className="bp5-phone">
PHONE
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp5-a79156821955">
+7(915)682-19-55
</div>
</a>
<div className="bp5-email">
EMAIL
</div>
<div className="bp5-furnasteamgmailcom">
FURNASTEAM@GMAIL.COM
</div>
<img anima-src={require('./images/furnasmobileeng-line-4@2x.png')} className="bp5-line4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-line-4-1@2x.png')} className="bp5-line41" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-line-4-2@2x.png')} className="bp5-line42" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-line-4-3@2x.png')} className="bp5-line43" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-line-4-4@2x.png')} className="bp5-line44" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-line-4-5@2x.png')} className="bp5-line45" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<a href="https://furnas.ru" target="_blank">
<div className="bp5-ru">
RU
</div>
</a>
<div className="bp5-en">
EN
</div>
<div className="bp5-group27-layout-container">
<div className="bp5-group27">
<div className="bp5-dreamteam">
Dream team
</div>
<img anima-src={require('./images/furnasdesctophdeng-group-5@2x.png')} className="bp5-group5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-group-4@2x.png')} className="bp5-group4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-group-7@2x.png')} className="bp5-group7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-group-7-1@2x.png')} className="bp5-group71" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-group-6@2x.png')} className="bp5-group6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-group-6-1@2x.png')} className="bp5-group61" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp5-group15">
<div className="bp5-maria">
Maria
</div>
<div className="bp5-mobiledesigner">
Mobile Designer
</div>
<div className="bp5-kaliningradrussia">
Kaliningrad, Russia
</div>
<div className="bp5-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp5-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp5-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group16">
<div className="bp5-yury">
Yury
</div>
<div className="bp5-developer">
Developer
</div>
<div className="bp5-tularussia">
Tula, Russia
</div>
<div className="bp5-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp5-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp5-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group17">
<div className="bp5-elena">
Elena
</div>
<div className="bp5-moscowrussia">
Moscow, Russia
</div>
<div className="bp5-workedatingatera">
Worked at Ingate, Rambler
</div>
<div className="bp5-itanalyst">
IT Analyst
</div>
<div className="bp5-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp5-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group18">
<div className="bp5-sergey">
Sergey
</div>
<div className="bp5-tularussia">
Tula, Russia
</div>
<div className="bp5-workedatiigdevex">
Worked at IIG, DevExpress, GMCS
</div>
<div className="bp5-developer">
Developer
</div>
<div className="bp5-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp5-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp5-group19">
<div className="bp5-uiuxdesigner">
UI/UX Designer
</div>
<div className="bp5-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp5-workedatingatere">
Worked at Ingate, Rembot
</div>
<div className="bp5-maria">
Maria
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-suitcase.svg')} className="bp5-suitcase" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-placeholder-2.svg')} className="bp5-placeholder2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-group14">
<div className="bp5-sergey">
Sergey
</div>
<div className="bp5-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp5-workedatiigingat">
Worked at IIG, Ingate, Grabr
</div>
<div className="bp5-developer">
Developer
</div>
<div className="bp5-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp5-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp5-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp5-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp5-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
</div>
<div className="bp5-stackedgroup-layout-container">
<div className="bp5-stackedgroup">
<div className="bp5-group29">
<div className="bp5-links">
Links
</div>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp5-articles">
Articles
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp5-visafurnasru">
visa.furnas.ru
</div>
</a>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp5-a79156821955">
+7(915) 682-19-55
</div>
</a>
<div className="bp5-furnasteamgmailcom">
furnasteam@gmail.com
</div>
<div className="bp5-stackedgroup1">
<div className="bp5-contact">
Contact
</div>
</div>
</div>
</div>
</div>
</div>
<div className="bp2-furnasdesktopeng">
<img anima-src={require('./images/furnasdesktopeng-bitmap.png')} className="bp2-bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-reflection">
REFLECTION
</div>
<div className="bp2-opiniontechnology">
Opinion, technology, style… It doesn’t matter. <br/>Find yourself, find your reflection.
</div>
<div className="bp2-furnas">
Furnas
</div>
<a href="#rectangle-9">
<div className="bp2-what">
What
</div>
</a>
<a href="#bitmap">
<div className="bp2-who">
Who
</div>
</a>
<a href="#rectangle">
<div className="bp2-why">
Why
</div>
</a>
<a href="#group-18">
<div className="bp2-where">
Where
</div>
</a>
<a href="https://furnas.ru" target="_blank">
<div className="bp2-ru">
RU
</div>
</a>
<div className="bp2-en">
EN
</div>
<div className="bp2-rectangle9" id="rectangle-9">
</div>
<div className="bp2-whatwedo">
What we do
</div>
<img anima-src={require('./images/furnasdesctophdeng-rectangle-9.png')} className="bp2-rectangle91" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-group13-layout-container">
<img anima-src={require('./images/furnasmobilehorizonteng-group-13.png')} className="bp2-group13" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-group19">
<div className="bp2-website">
Website
</div>
<div className="bp2-whatkindof">
What kind of
</div>
<div className="bp2-howwework">
How we work
</div>
<div className="bp2-whatweuse">
What we use
</div>
<div className="bp2-designwebsitelayou">
Design <br/>Website Layout<br/>Content Creation<br/>Set Up Google Analytics and Yandex.Metrica<br/>Set Up Ads<br/>Web banner design
</div>
<div className="bp2-landingpagebusines">
Landing Page <br/>Business Card Website<br/>Corporate Website<br/>Events Website <br/>Cafe / Coffee Shop / Hotel Website
</div>
<div className="bp2-tildareactjsnod">
Tilda, react js, node js, C#.
</div>
</div>
<div className="bp2-group22">
<div className="bp2-creatingforanypla">
Creating for any platform
</div>
<div className="bp2-howwework">
How we work
</div>
<div className="bp2-facebookinstagramv">
Facebook <br/>Instagram<br/>Vk<br/>Web Banner<br/>Google Ads<br/>Outdoor Advertising
</div>
<div className="bp2-createauniqueillu">
Create a unique illustration in Adobe Illustrator — from idea to final print.<br/>Image editing.
</div>
<div className="bp2-adbannerdesign">
Ad banner design
</div>
</div>
<img anima-src={require('./images/furnasdesctophdeng-group.png')} className="bp2-group" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-bitmap-1.png')} className="bp2-bitmap1" id="bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-group15-layout-container">
<div className="bp2-group15">
<div className="bp2-dreamteam">
Dream team
</div>
<img anima-src={require('./images/furnastableteng-group-4@2x.png')} className="bp2-group4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-group-6@2x.png')} className="bp2-group6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-7@2x.png')} className="bp2-group7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-5@2x.png')} className="bp2-group5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-group201">
<div className="bp2-uiuxdesigner">
UI/UX Designer
</div>
<div className="bp2-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp2-workedatingatere">
Worked at Ingate, Rembot
</div>
<div className="bp2-maria">
Maria
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-suitcase.svg')} className="bp2-suitcase" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-placeholder-2.svg')} className="bp2-placeholder2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-group211">
<div className="bp2-yury">
Yury
</div>
<div className="bp2-developer">
Developer
</div>
<div className="bp2-tularussia">
Tula, Russia
</div>
<div className="bp2-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp2-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp2-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp2-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp2-group24">
<div className="bp2-elena">
Elena
</div>
<div className="bp2-moscowrussia">
Moscow, Russia
</div>
<div className="bp2-workedatingatera">
Worked at Ingate, Rambler
</div>
<div className="bp2-itanalyst">
IT Analyst
</div>
<div className="bp2-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp2-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp2-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-group-6-1@2x.png')} className="bp2-group61" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-group-7@2x.png')} className="bp2-group71" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-group23">
<div className="bp2-maria">
Maria
</div>
<div className="bp2-mobiledesigner">
Mobile Designer
</div>
<div className="bp2-kaliningradrussia">
Kaliningrad, Russia
</div>
<div className="bp2-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp2-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp2-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp2-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp2-group221">
<div className="bp2-sergey">
Sergey
</div>
<div className="bp2-tularussia">
Tula, Russia
</div>
<div className="bp2-workedatiigdevex">
Worked at IIG, DevExpress, GMCS
</div>
<div className="bp2-developer">
Developer
</div>
<div className="bp2-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp2-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp2-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp2-group25">
<div className="bp2-sergey">
Sergey
</div>
<div className="bp2-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp2-workedatiigingat">
Worked at IIG, Ingate, Grabr
</div>
<div className="bp2-developer">
Developer
</div>
<div className="bp2-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp2-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp2-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp2-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
</div>
<div className="bp2-whoweare">
Who we are
</div>
<div className="bp2-furnasu2014itmeanspe">
<span className="bp2-span1">Furnas </span><span className="bp2-span2">— it means people who used to work together and now live in different cities.<br/>We are still friends, keep visiting each other and have fun. Now we are working together again and doing what we love.</span>
</div>
<div className="bp2-rectangle" id="rectangle">
</div>
<div className="bp2-rectangle92">
</div>
<div className="bp2-contact">
Contact
</div>
<div className="bp2-links">
Links
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp2-a79156821955">
+7(915) 682-19-55
</div>
</a>
<div className="bp2-furnasteamgmailcom">
furnasteam@gmail.com
</div>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp2-articles">
Articles
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp2-visafurnasru">
visa.furnas.ru
</div>
</a>
<div className="bp2-social">
Social
</div>
<a href="https://vk.com/furnas" target="_blank">
<div className="bp2-rectangle12">
</div>
</a>
<a href="https://vk.com/furnas" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-20@2x.png')} className="bp2-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<div className="bp2-rectangle121">
</div>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-combined-shape@2x.png')} className="bp2-combinedshape"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-12.png')} className="bp2-rectangle122" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnastableteng-shape-21@2x.png')} className="bp2-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp2-rectangle123">
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<img anima-src={require('./images/furnastableteng-m@2x.png')} className="bp2-m" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<div className="bp2-a2019251furnas">
2019 © FURNAS
</div>
<div className="bp2-group191-layout-container">
<div className="bp2-group191">
<div className="bp2-group14">
<img anima-src={require('./images/furnasdesktopeng-group-12@2x.png')} className="bp2-group12" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-phone">
Phone
</div>
<Input value={this.state.phone}
onChange={this.handlePhoneChange}
className="landing__phone-input-desktop"/>
<div className="bp2-email">
Email
</div>
<Input value={this.state.email}
onChange={this.handleEmailChange}
className="landing__email-input-desktop"/>
<div className="bp2-skype">
Skype
</div>
<Input value={this.state.skype}
onChange={this.handleSkypeChange}
className="landing__skype-input-desktop"/>
<div className="bp2-message">
Message
</div>
<Input value={this.state.message}
onChange={this.handleMessageChange}
className="landing__message-input-desktop"/>
<div className="bp2-contact1">
Contact
</div>
<div className="bp2-group2" onClick={this.handleSendDataClick}>
<div className="bp2-rectangle17">
</div>
<div className="bp2-send">
{this.state.sent ? 'Sent' : 'Send'}
</div>
</div>
</div>
</div>
</div>
<div className="bp2-group18-layout-container">
<div className="bp2-group18" id="group-18">
<div className="bp2-where1">
Where?
</div>
<div className="bp2-design">
DESIGN
</div>
<div className="bp2-code">
CODE
</div>
<div className="bp2-articles1">
ARTICLES
</div>
<div className="bp2-spainvisaourproj">
SPAIN VISA <br/>(OUR PROJECT)
</div>
<a href="https://www.behance.net/sankinamaria" target="_blank">
<div className="bp2-dribbblecom">
BEHANCE.NET
</div>
</a>
<a href="https://github.com/furnasteam" target="_blank">
<div className="bp2-githubcom">
GITHUB.COM
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp2-mediumcom">
MEDIUM.COM
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp2-visafurnasru1">
VISA.FURNAS.RU
</div>
</a>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval18" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval181" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval182" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-phone">
PHONE
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp2-a791568219551">
+7(915)682-19-55
</div>
</a>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval183" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp2-email">
EMAIL
</div>
<div className="bp2-furnasteamgmailcom1">
FURNASTEAM@GMAIL.COM
</div>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval184" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp2-oval185" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp2-group17">
<div className="bp2-webstudiodesign">
web-studio design
</div>
<div className="bp2-alargecompanyspen">
A large company spend money on office rent, manager's salary and etc. Junior works on your project because real performer got a bit of money. We don’t have any office, managers or
cleaner staff. In our company developers get all the money.
</div>
<div className="bp2-whywearebetterth">
Why we <br/>are better<br/>than…?
</div>
<img anima-src={require('./images/furnasdesktopeng-group-10.svg')} className="bp2-group10" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-group16">
<div className="bp2-onedayyouhavesom">
One day you have some extra work and you make a decision to hire an employee. Afterwards he has nothing to do and he is not happy with you. So you don’t like his attitude at work.<br/>At
first it will be better to work with us. We can work right now. In case of regular task you should think about full-time employee.
</div>
<div className="bp2-employee">
employee
</div>
<div className="bp2-weworkedinlargec">
We worked in large companies with high quality standards. We know development methodologies and work under contract.
</div>
<div className="bp2-freelance">
freelance
</div>
<img anima-src={require('./images/furnasdesktopeng-group-8.svg')} className="bp2-group8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-group-11.svg')} className="bp2-group11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp2-rectangle1">
</div>
<a href="https://spark.ru/startup/furnas" target="_blank">
<div className="bp2-rectangle124">
</div>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<img anima-src={require('./images/furnastableteng-s@2x.png')} className="bp2-s" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<div className="bp2-group20">
<div className="bp2-wecanhelpyouwith">
We can help you with
</div>
<div className="bp2-whatweuse">
What we use
</div>
<div className="bp2-u0421reatingmvpwebapp">
Сreating MVP<br/>Web Application Architecture Development<br/>Hypothesis Testing<br/>Set Up Ads<br/>Design advertising banner<br/>Data Сollection & Analysis<br/>HR consultation
</div>
<div className="bp2-reactjscjava">
React js, C#, Java, Python.
</div>
<div className="bp2-startup">
Startup
</div>
</div>
<div className="bp2-group21">
<div className="bp2-createauniqueillu">
Create a unique illustration for presentation, ad, article, website, banner, flyer.
</div>
<div className="bp2-illustration">
Illustration
</div>
</div>
</div>
<div className="bp3-furnastableteng">
<img anima-src={require('./images/furnastableteng-bitmap.png')} className="bp3-bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-rectangle9" id="rectangle-91">
</div>
<img anima-src={require('./images/furnasdesctophdeng-rectangle-9.png')} className="bp3-rectangle91" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-group13-layout-container">
<img anima-src={require('./images/furnasmobilehorizonteng-group-13.png')} className="bp3-group13" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<img anima-src={require('./images/furnastableteng-bitmap-1.png')} className="bp3-bitmap1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-whoweare" id="who-we-are">
Who we are
</div>
<div className="bp3-furnasu2014itmeanspe">
<span className="bp3-span1">Furnas </span><span className="bp3-span2">— it means people who used to work together and now live in different cities.<br/>We are still friends, keep visiting each other and have fun. Now we are working together again and doing what we love.</span>
</div>
<div className="bp3-u0421u0430u0439u0442u044b">
Website
</div>
<div className="bp3-u041au0430u043au0438u0435u0441u0430u0439u0442u044b">
What kind of
</div>
<div className="bp3-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c">
How we work
</div>
<div className="bp3-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c">
What we use
</div>
<div className="bp3-u041eu0442u0440u0438u0441u043eu0432u043au0430u043fu043eu0434u043bu044eu0431u044bu0435">
Creating for any platform
</div>
<div className="bp3-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c1">
How we work
</div>
<div className="bp3-u0414u0438u0437u0430u0439u043du0412u0435u0440u0441u0442u043au0430u0421u043eu0437u0434u0430">
Design <br/>Website Layout<br/>Content Creation<br/>Set Up Google Analytics and Yandex.Metrica<br/>Set Up Ads<br/>Web banner design
</div>
<div className="bp3-u041bu0435u043du0434u0438u043du0433u0438u041fu0440u043eu0434u0430u044eu0449u0438u0435u0441">
Landing Page <br/>Business Card Website <br/>Corporate Website<br/>Events Website <br/>Cafe / Coffee Shop / Hotel Website
</div>
<div className="bp3-u0422u0438u043bu044cu0434u0430reactjsno">
Tilda, react js, node js, C#.
</div>
<div className="bp3-facebookinstagram">
facebook, <br/>instagram, <br/>vk, <br/>Web Banner, <br/>Google Ads, <br/>Google Ads, <br/>Outdoor Advertising.
</div>
<div className="bp3-u041eu0442u0440u0438u0441u043eu0432u043au0430u0443u043du0438u043au0430u043bu044cu043du044bu0445">
Create a unique illustration in Adobe Illustrator — from idea to final print.<br/>Image editing.
</div>
<div className="bp3-u0421u043eu0437u0434u0430u043du0438u0435u043fu0435u0440u0432u043eu0439u0436u0438u0437u043d">
Сreating MVP<br/>Web Application Architecture Development<br/>Hypothesis Testing<br/>Set Up Ads<br/>Design advertising banner<br/>Data Сollection & Analysis
<br/>HR consultation
</div>
<div className="bp3-reactjscjava">
React js, C#, Java, Python.
</div>
<div className="bp3-u041fu0440u0438u0434u0443u043cu044bu0432u0430u0435u043cu0438u0440u0438u0441u0443u0435u043c">
Create a unique illustration for presentation, ad, article, website, banner, flyer.
</div>
<div className="bp3-u0420u0435u043au043bu0430u043cu043du044bu0435u0431u0430u043du043du0435u0440u044b">
Ad banner design
</div>
<img anima-src={require('./images/furnastableteng-group.png')} className="bp3-group" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-whatwedo">
What we do
</div>
<div className="bp3-reflection">
REFLECTION
</div>
<div className="bp3-opiniontechnology">
Opinion, technology, style… It doesn’t matter. <br/>Find yourself, find your reflection.
</div>
<div className="bp3-furnas">
Furnas
</div>
<a href="#rectangle-91">
<div className="bp3-what">
What
</div>
</a>
<a href="#who-we-are">
<div className="bp3-who">
Who
</div>
</a>
<a href="#rectangle1">
<div className="bp3-why">
Why
</div>
</a>
<a href="#group-16">
<div className="bp3-where">
Where
</div>
</a>
<div className="bp3-ru">
RU
</div>
<div className="bp3-en">
EN
</div>
<div className="bp3-u0421u0447u0435u043cu043fu043eu043cu043eu0436u0435u043c">
We can help you with
</div>
<div className="bp3-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c1">
What we use
</div>
<div className="bp3-u0418u043bu043bu044eu0441u0442u0440u0430u0446u0438u0438">
Illustration
</div>
<div className="bp3-u0421u0442u0430u0440u0442u0430u043fu044b">
Startup
</div>
<div className="bp3-rectangle" id="rectangle1">
</div>
<div className="bp3-rectangle92">
</div>
<div className="bp3-contact">
Contact
</div>
<div className="bp3-links">
Links
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp3-a79156821955">
+7(915) 682-19-55
</div>
</a>
<div className="bp3-furnasteamgmailcom">
furnasteam@gmail.com
</div>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp3-articles">
Articles
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp3-visafurnasru">
visa.furnas.ru
</div>
</a>
<div className="bp3-social">
Social
</div>
<a href="https://vk.com/furnas" target="_blank">
<div className="bp3-rectangle12">
</div>
</a>
<a href="https://vk.com/furnas" target="_blank">
<img anima-src={require('./images/furnastableteng-shape@2x.png')} className="bp3-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<div className="bp3-rectangle121">
</div>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-12.png')} className="bp3-rectangle122" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<div className="bp3-a2019251furnas">
2019 © FURNAS
</div>
<div className="bp3-group17-layout-container">
<div className="bp3-group17">
<div className="bp3-group14">
<img anima-src={require('./images/furnastableteng-group-12@2x.png')} className="bp3-group12" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-phone">
Phone
</div>
<Input value={this.state.phone}
onChange={this.handlePhoneChange}
className="landing__phone-input-tablet"/>
<div className="bp3-email">
Email
</div>
<Input value={this.state.email}
onChange={this.handleEmailChange}
className="landing__email-input-tablet"/>
<div className="bp3-skype">
Skype
</div>
<Input value={this.state.skype}
onChange={this.handleSkypeChange}
className="landing__skype-input-tablet"/>
<div className="bp3-message">
Message
</div>
<Input value={this.state.message}
onChange={this.handleMessageChange}
className="landing__message-input-tablet"/>
<div className="bp3-contact1">
Contact
</div>
<div className="bp3-group2" onClick={this.handleSendDataClick}>
<div className="bp3-rectangle17">
</div>
<div className="bp3-send">
{this.state.sent ? 'Sent' : 'Send'}
</div>
</div>
</div>
</div>
</div>
<div className="bp3-group16-layout-container">
<div className="bp3-group16" id="group-16">
<div className="bp3-where1">
Where?
</div>
<div className="bp3-design">
DESIGN
</div>
<div className="bp3-code">
CODE
</div>
<div className="bp3-articles1">
ARTICLES
</div>
<div className="bp3-spainvisaourproj">
SPAIN VISA <br/>(OUR PROJECT)
</div>
<a href="https://www.behance.net/sankinamaria" target="_blank">
<div className="bp3-dribbblecom">
BEHANCE.NET
</div>
</a>
<a href="https://github.com/furnasteam" target="_blank">
<div className="bp3-githubcom">
GITHUB.COM
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp3-mediumcom">
MEDIUM.COM
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp3-visafurnasru1">
VISA.FURNAS.RU
</div>
</a>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval18" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval181" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval182" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-phone">
PHONE
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp3-a791568219551">
+7(915)682-19-55
</div>
</a>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval183" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-email">
EMAIL
</div>
<div className="bp3-furnasteamgmailcom1">
FURNASTEAM@GMAIL.COM
</div>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval184" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-oval-18-4@2x.png')} className="bp3-oval185" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp3-group19">
<div className="bp3-webstudiodesign">
web-studio design
</div>
<div className="bp3-alargecompanyspen">
A large company spend money on office rent, manager's salary and etc. Junior works on your project because real performer got a bit of money. We don’t have any office, managers or
cleaner staff. In our company developers get all the money. <br/>
</div>
<div className="bp3-whywearebetterth">
Why we <br/>are better<br/>than…?
</div>
<img anima-src={require('./images/furnasmobileeng-group-10.svg')} className="bp3-group10" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-group18">
<div className="bp3-onedayyouhavesom">
One day you have some extra work and you make a decision to hire an employee. Afterwards he has nothing to do and he is not happy with you. So you don’t like his attitude at work.<br/>At
first it will be better to work with us. We can work right now. In case of regular task you should think about full-time employee.
</div>
<div className="bp3-employee">
employee
</div>
<div className="bp3-weworkedinlargec">
We worked in large companies with high quality standards. We know development methodologies and work under contract.
</div>
<div className="bp3-freelance">
freelance
</div>
<img anima-src={require('./images/furnastableteng-group-8.svg')} className="bp3-group8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-group-11.svg')} className="bp3-group11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-group15-layout-container">
<div className="bp3-group15">
<div className="bp3-dreamteam">
Dream team
</div>
<div className="bp3-sergey">
Sergey
</div>
<div className="bp3-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp3-workedatiigingat">
Worked at IIG, Ingate, Grabr
</div>
<img anima-src={require('./images/furnastableteng-group-4@2x.png')} className="bp3-group4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-5@2x.png')} className="bp3-group5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-developer">
Developer
</div>
<div className="bp3-group20">
<div className="bp3-uiuxdesigner">
UI/UX Designer
</div>
<div className="bp3-saintpetersburgru1">
Saint Petersburg, Russia
</div>
<div className="bp3-workedatingatere">
Worked at Ingate, Rembot
</div>
<div className="bp3-maria">
Maria
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-suitcase.svg')} className="bp3-suitcase3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-placeholder-2.svg')} className="bp3-placeholder23" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp3-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp3-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-sergey1">
Sergey
</div>
<img anima-src={require('./images/furnasmobileeng-group-7@2x.png')} className="bp3-group7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-tularussia">
Tula, Russia
</div>
<div className="bp3-workedatiigdevex">
Worked at IIG, DevExpress, GMCS
</div>
<div className="bp3-developer1">
Developer
</div>
<div className="bp3-suitcase1">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-placeholder21">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp3-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp3-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<img anima-src={require('./images/furnasdesctophdeng-group-7@2x.png')} className="bp3-group71" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-group21">
<div className="bp3-elena">
Elena
</div>
<div className="bp3-moscowrussia">
Moscow, Russia
</div>
<div className="bp3-workedatingatera">
Worked at Ingate, Rambler
</div>
<div className="bp3-itanalyst">
IT Analyst
</div>
<div className="bp3-suitcase3">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-placeholder23">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp3-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp3-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp3-yury">
Yury
</div>
<img anima-src={require('./images/furnasdesktopeng-group-6@2x.png')} className="bp3-group6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-developer2">
Developer
</div>
<div className="bp3-tularussia1">
Tula, Russia
</div>
<div className="bp3-workedatiigingat1">
Worked at IIG, Ingate
</div>
<div className="bp3-suitcase2">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-placeholder22">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp3-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp3-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-group-6-1@2x.png')} className="bp3-group61" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp3-group22">
<div className="bp3-maria">
Maria
</div>
<div className="bp3-mobiledesigner">
Mobile Designer
</div>
<div className="bp3-kaliningradrussia">
Kaliningrad, Russia
</div>
<div className="bp3-workedatiigingat2">
Worked at IIG, Ingate
</div>
<div className="bp3-suitcase3">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp3-placeholder23">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp3-shape3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp3-shape11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp3-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
</div>
<div className="bp3-rectangle1">
</div>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-combined-shape@2x.png')} className="bp3-combinedshape"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnastableteng-shape-21@2x.png')} className="bp3-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp3-rectangle123">
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<img anima-src={require('./images/furnastableteng-m@2x.png')} className="bp3-m" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<div className="bp3-rectangle124">
</div>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<img anima-src={require('./images/furnastableteng-s@2x.png')} className="bp3-s" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
</div>
<div className="bp4-furnasmobilehorizonteng">
<img anima-src={require('./images/furnasmobilehorizonteng-bitmap.png')} className="bp4-bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-rectangle9" id="rectangle-92">
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-9.png')} className="bp4-rectangle91" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-group13-layout-container">
<img anima-src={require('./images/furnasmobilehorizonteng-group-13.png')} className="bp4-group13" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-bitmap-1.png')} className="bp4-bitmap1" id="bitmap1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-rectangle" id="rectangle2">
</div>
<div className="bp4-group27-layout-container">
<div className="bp4-group27" id="group-27">
<div className="bp4-where1">
Where?
</div>
<div className="bp4-group23">
<div className="bp4-design">
DESIGN
</div>
<div className="bp4-code">
CODE
</div>
<div className="bp4-articles">
ARTICLES
</div>
<div className="bp4-spainvisaourproj">
SPAIN VISA <br/>(OUR PROJECT)
</div>
<a href="https://www.behance.net/sankinamaria" target="_blank">
<div className="bp4-dribbblecom">
BEHANCE.NET
</div>
</a>
<a href="https://github.com/furnasteam" target="_blank">
<div className="bp4-githubcom">
GITHUB.COM
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp4-mediumcom">
MEDIUM.COM
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp4-visafurnasru">
VISA.FURNAS.RU
</div>
</a>
<div className="bp4-phone">
PHONE
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp4-a79156821955">
+7(915)682-19-55
</div>
</a>
<div className="bp4-email">
EMAIL
</div>
<div className="bp4-furnasteamgmailcom">
FURNASTEAM@GMAIL.COM
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4@2x.png')} className="bp4-line4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4-1@2x.png')} className="bp4-line41" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4-2.png')} className="bp4-line42" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4-3@2x.png')} className="bp4-line43" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4-4@2x.png')} className="bp4-line44" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-line-4-5@2x.png')} className="bp4-line45" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
<div className="bp4-group28-layout-container">
<div className="bp4-group28">
<div className="bp4-group26">
<img anima-src={require('./images/furnasmobilehorizonteng-group-12.png')} className="bp4-group12" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-phone">
Phone
</div>
<Input value={this.state.phone}
onChange={this.handlePhoneChange}
className="landing__phone-input-mobileland"/>
<div className="bp4-message">
Message
</div>
<textarea value={this.state.message}
onChange={this.handleMessageChange}
className="landing__message-input-mobileland"/>
<div className="bp4-contact">
Contact
</div>
<div className="bp4-email">
Email
</div>
<Input value={this.state.email}
onChange={this.handleEmailChange}
className="landing__email-input-mobileland"/>
<div className="bp4-skype">
Skype
</div>
<Input value={this.state.skype}
onChange={this.handleSkypeChange}
className="landing__skype-input-mobileland"/>
</div>
<div className="bp4-group2" onClick={this.handleSendDataClick}>
<div className="bp4-rectangle17">
</div>
<div className="bp4-send">
{this.state.sent ? 'Sent' : 'Send'}
</div>
</div>
</div>
</div>
<div className="bp4-rectangle1">
</div>
<div className="bp4-group25-layout-container">
<div className="bp4-group25">
<div className="bp4-whywearebetterth">
Why we <br/>are better<br/>than…?
</div>
<div className="bp4-group20">
<div className="bp4-weworkedinlargec">
We worked in large companies with high quality standards. We know development methodologies and work under contract.
</div>
<div className="bp4-freelance">
freelance
</div>
<img anima-src={require('./images/furnastableteng-group-8.svg')} className="bp4-group8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-group21">
<div className="bp4-onedayyouhavesom">
One day you have some extra work and you make a decision to hire an employee. Afterwards he has nothing to do and he is not happy with you. So you don’t like his attitude at
work.<br/>At first it will be better to work with us. We can work right now. In case of regular task you should think about full-time employee.
</div>
<div className="bp4-employee">
employee
</div>
<img anima-src={require('./images/furnasmobileeng-group-11.svg')} className="bp4-group11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-group22">
<div className="bp4-webstudiodesign">
web-studio design
</div>
<div className="bp4-alargecompanyspen">
A large company spend money on office rent, manager's salary and etc. Junior works on your project because real performer got a bit of money. We don’t have any office, managers or
cleaner staff. In our company developers get all the money.
</div>
<img anima-src={require('./images/furnasmobileeng-group-10.svg')} className="bp4-group10" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
<div className="bp4-group29-layout-container">
<div className="bp4-group29">
<div className="bp4-dreamteam">
Dream team
</div>
<img anima-src={require('./images/furnasdesctophdeng-group-5@2x.png')} className="bp4-group5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-group-4@2x.png')} className="bp4-group4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-group-7@2x.png')} className="bp4-group7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-group-7-1@2x.png')} className="bp4-group71" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-group-6@2x.png')} className="bp4-group6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobilehorizonteng-group-6-1@2x.png')} className="bp4-group61" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-group15">
<div className="bp4-maria">
Maria
</div>
<div className="bp4-mobiledesigner">
Mobile Designer
</div>
<div className="bp4-kaliningradrussia">
Kaliningrad, Russia
</div>
<div className="bp4-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp4-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp4-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp4-group16">
<div className="bp4-yury">
Yury
</div>
<div className="bp4-developer">
Developer
</div>
<div className="bp4-tularussia">
Tula, Russia
</div>
<div className="bp4-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp4-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp4-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp4-group17">
<div className="bp4-elena">
Elena
</div>
<div className="bp4-moscowrussia">
Moscow, Russia
</div>
<div className="bp4-workedatingatera">
Worked at Ingate, Rambler
</div>
<div className="bp4-itanalyst">
IT Analyst
</div>
<div className="bp4-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp4-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp4-group18">
<div className="bp4-sergey">
Sergey
</div>
<div className="bp4-tularussia">
Tula, Russia
</div>
<div className="bp4-workedatiigdevex">
Worked at IIG, DevExpress, GMCS
</div>
<div className="bp4-developer">
Developer
</div>
<div className="bp4-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp4-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp4-group19">
<div className="bp4-uiuxdesigner">
UI/UX Designer
</div>
<div className="bp4-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp4-workedatingatere">
Worked at Ingate, Rembot
</div>
<div className="bp4-maria">
Maria
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-suitcase.svg')} className="bp4-suitcase" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-placeholder-2.svg')} className="bp4-placeholder2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-group14">
<div className="bp4-sergey">
Sergey
</div>
<div className="bp4-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp4-workedatiigingat">
Worked at IIG, Ingate, Grabr
</div>
<div className="bp4-developer">
Developer
</div>
<div className="bp4-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp4-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp4-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
</div>
<div className="bp4-whoweare">
Who we are
</div>
<div className="bp4-furnasu2014itmeanspe">
<span className="bp4-span1">Furnas </span><span className="bp4-span2">— it means people who used to work together and now live in different cities.<br/>We are still friends, keep visiting each other and have fun. Now we are working together again and doing what we love.</span>
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-group.png')} className="bp4-group" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp4-u0421u0430u0439u0442u044b">
Website
</div>
<div className="bp4-u041au0430u043au0438u0435u0441u0430u0439u0442u044b">
What kind of
</div>
<div className="bp4-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c">
How we work
</div>
<div className="bp4-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c">
What we use
</div>
<div className="bp4-u0414u0438u0437u0430u0439u043du0412u0435u0440u0441u0442u043au0430u0421u043eu0437u0434u0430">
Design <br/>Website Layout<br/>Content Creation<br/>Set Up Google Analytics and Yandex.Metrica<br/>Set Up Ads<br/>Web banner design
</div>
<div className="bp4-u041bu0435u043du0434u0438u043du0433u0438u041fu0440u043eu0434u0430u044eu0449u0438u0435u0441">
Landing Page <br/>Business Card Website <br/>Corporate Website<br/>Events Website <br/>Cafe / Coffee Shop / Hotel Website
</div>
<div className="bp4-u0422u0438u043bu044cu0434u0430reactjsno">
Tilda, react js, node js, C#.
</div>
<div className="bp4-u0421u043eu0437u0434u0430u043du0438u0435u043fu0435u0440u0432u043eu0439u0436u0438u0437u043d">
Сreating MVP <br/>Web Application Architecture Development<br/>Hypothesis Testing<br/>Set Up Ads<br/>Design advertising banner<br/>Data Сollection & Analysis
<br/>HR consultation
</div>
<div className="bp4-reactjscjava">
React js, C#, Java, Python.
</div>
<div className="bp4-u041eu0442u0440u0438u0441u043eu0432u043au0430u043fu043eu0434u043bu044eu0431u044bu0435">
Creating for any platform
</div>
<div className="bp4-u041au0430u043au0440u0430u0431u043eu0442u0430u0435u043c1">
Как работаем
</div>
<div className="bp4-facebookinstagram">
facebook, <br/>instagram, <br/>vk, <br/>Web Banner, <br/>Google Ads, <br/>Outdoor Advertising.
</div>
<div className="bp4-u041eu0442u0440u0438u0441u043eu0432u043au0430u0443u043du0438u043au0430u043bu044cu043du044bu0445">
Create a unique illustration in Adobe Illustrator — from idea to final print.<br/>Image editing.
</div>
<div className="bp4-u041fu0440u0438u0434u0443u043cu044bu0432u0430u0435u043cu0438u0440u0438u0441u0443u0435u043c">
Create a unique illustration for presentation, ad, article, website, banner, flyer.
</div>
<div className="bp4-u0418u043bu043bu044eu0441u0442u0440u0430u0446u0438u0438">
Illustration
</div>
<div className="bp4-u0420u0435u043au043bu0430u043cu043du044bu0435u0431u0430u043du043du0435u0440u044b">
Ad banner design
</div>
<div className="bp4-u0421u0447u0435u043cu043fu043eu043cu043eu0436u0435u043c">
We can help you with
</div>
<div className="bp4-u0427u0442u043eu0438u0441u043fu043eu043bu044cu0437u0443u0435u043c1">
What we use
</div>
<div className="bp4-u0421u0442u0430u0440u0442u0430u043fu044b">
Startup
</div>
<div className="bp4-whatwedo">
What we do
</div>
<div className="bp4-reflection">
REFLECTION
</div>
<div className="bp4-opiniontechnology">
Opinion, technology, style… It doesn’t matter. <br/>Find yourself, find your reflection.
</div>
<div className="bp4-furnas">
Furnas
</div>
<a href="https://furnas.ru" target="_blank">
<div className="bp4-ru">
RU
</div>
</a>
<div className="bp4-en">
EN
</div>
<a href="#rectangle-92">
<div className="bp4-what">
What
</div>
</a>
<a href="#bitmap1">
<div className="bp4-who">
Who
</div>
</a>
<a href="#rectangle2">
<div className="bp4-why">
Why
</div>
</a>
<a href="#group-27">
<div className="bp4-where">
Where
</div>
</a>
<div className="bp4-rectangle92">
</div>
<div className="bp4-group24">
<div className="bp4-social">
Social
</div>
<a href="https://vk.com/furnas" target="_blank">
<div className="bp4-rectangle12">
</div>
</a>
<a href="https://vk.com/furnas" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-20@2x.png')} className="bp4-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<div className="bp4-rectangle121">
</div>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-combined-shape@2x.png')} className="bp4-combinedshape"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-rectangle-12.png')} className="bp4-rectangle122" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnastableteng-shape-21@2x.png')} className="bp4-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp4-rectangle123">
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<img anima-src={require('./images/furnasmobilehorizonteng-m@2x.png')} className="bp4-m" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<div className="bp4-rectangle124">
</div>
</a>
<a href="https://spark.ru/startup/furnas" target="_blank">
<img anima-src={require('./images/furnasmobileeng-s@2x.png')} className="bp4-s" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
</div>
<div className="bp4-a2019251furnas">
2019 © FURNAS
</div>
<div className="bp4-group30-layout-container">
<div className="bp4-group30">
<div className="bp4-links">
Links
</div>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp4-articles">
Articles
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp4-visafurnasru">
visa.furnas.ru
</div>
</a>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp4-a79156821955">
+7(915) 682-19-55
</div>
</a>
<div className="bp4-furnasteamgmailcom">
furnasteam@gmail.com
</div>
<div className="bp4-stackedgroup">
<div className="bp4-contact">
Contact
</div>
</div>
</div>
</div>
</div>
<div className="bp1-furnasdesctophdeng">
<img anima-src={require('./images/furnasdesctophdeng-bitmap.png')} className="bp1-bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-pictreeman1440-layout-container">
<img anima-src={require('./images/furnasdesctophdeng-pictreeman1440.png')} className="bp1-pictreeman1440" id="pic-tree-man-1440"
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<img anima-src={require('./images/furnasdesctophdeng-rectangle-9.png')} className="bp1-rectangle9" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-rectangle91" id="rectangle-93">
</div>
<div className="bp1-group13-layout-container">
<img anima-src={require('./images/furnasdesctophdeng-group-13.png')} className="bp1-group13" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-rectangle92">
</div>
<img anima-src={require('./images/furnasdesctophdeng-group.png')} className="bp1-group" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-line-2@2x.png')} className="bp1-line2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-rectangle" id="rectangle3">
</div>
<div className="bp1-rectangle1">
</div>
<img anima-src={require('./images/furnasdesctophdeng-star@2x.png')} className="bp1-star" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-star@2x.png')} className="bp1-star1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-whatwedo">
What we do
</div>
<div className="bp1-whoweare">
Who we are
</div>
<div className="bp1-group19">
<div className="bp1-website">
Website
</div>
<div className="bp1-whatkindof">
What kind of
</div>
<div className="bp1-howwework">
How we work
</div>
<div className="bp1-whatweuse">
What we use
</div>
<div className="bp1-designwebsitelayou">
Design <br/>Website Layout<br/>Content Creation<br/>Set Up Google Analytics and Yandex.Metrica<br/>Set Up Ads<br/>Web banner design
</div>
<div className="bp1-landingpagebusines">
Landing Page <br/>Business Card Website<br/>Corporate Website<br/>Events Website <br/>Cafe / Coffee Shop / Hotel Website
</div>
<div className="bp1-tildareactjsnod">
Tilda, react js, node js, C#.
</div>
</div>
<div className="bp1-group21">
<div className="bp1-createauniqueillu">
Create a unique illustration for presentation, ad, article, website, banner, flyer.
</div>
<div className="bp1-illustration">
Illustration
</div>
</div>
<div className="bp1-group22">
<div className="bp1-creatingforanypla">
Creating for any platform
</div>
<div className="bp1-howwework">
How we work
</div>
<div className="bp1-facebookinstagramv">
Facebook <br/>Instagram<br/>Vk<br/>Web Banner<br/>Google Ads<br/>Outdoor Advertising
</div>
<div className="bp1-createauniqueillu">
Create a unique illustration in Adobe Illustrator — from idea to final print.<br/>Image editing.
</div>
<div className="bp1-adbannerdesign">
Ad banner design
</div>
</div>
<div className="bp1-furnasu2014itmeanspe">
<span className="bp1-span1">Furnas </span><span className="bp1-span2">— it means people who used to work together and now live in different cities.<br/>We are still friends, keep visiting each other and have fun. Now we are working together again and doing what we love.</span>
</div>
<div className="bp1-group20">
<div className="bp1-wecanhelpyouwith">
We can help you with
</div>
<div className="bp1-whatweuse">
What we use
</div>
<div className="bp1-u0421reatingmvpwebapp">
Сreating MVP<br/>Web Application Architecture Development<br/>Hypothesis Testing<br/>Set Up Ads<br/>Design advertising banner<br/>Data Сollection & Analysis<br/>HR consultation
</div>
<div className="bp1-reactjscjava">
React js, C#, Java, Python.
</div>
<div className="bp1-startup">
Startup
</div>
</div>
<div className="bp1-group16">
<img anima-src={require('./images/furnasdesktopeng-group-12@2x.png')} className="bp1-group12" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-phone">
Phone
</div>
<Input value={this.state.phone}
onChange={this.handlePhoneChange}
className="landing__phone-input-desktophd"/>
<div className="bp1-email">
Email
</div>
<Input value={this.state.email}
onChange={this.handleEmailChange}
className="landing__email-input-desktophd"/>
<div className="bp1-skype">
Skype
</div>
<Input className="landing__skype-input-desktophd"
value={this.state.skype}
onChange={this.handleSkypeChange}/>
<div className="bp1-message">
Message
</div>
<Input className="landing__message-input-desktophd"
value={this.state.message}
onChange={this.handleMessageChange}/>
<div className="bp1-contact1">
Contact
</div>
<div className="bp1-group2" onClick={this.handleSendDataClick}>
<div className="bp1-rectangle17">
</div>
<div className="bp1-send">
{this.state.sent ? 'Sent' : 'Send'}
</div>
</div>
</div>
<div className="bp1-contact">
Contact
</div>
<div className="bp1-links">
Links
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp1-a79156821955">
+7(915) 682-19-55
</div>
</a>
<div className="bp1-furnasteamgmailcom">
furnasteam@gmail.com
</div>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp1-articles">
Articles
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp1-visafurnasru">
visa.furnas.ru
</div>
</a>
<div className="bp1-social">
Social
</div>
<a href="https://vk.com/furnas" target="_blank">
<img anima-src={require('./images/furnasdesctophdeng-vk.svg')} className="bp1-vk" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.instagram.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasdesctophdeng-instagram.svg')} className="bp1-instagram" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<a href="https://www.facebook.com/furnasteam/" target="_blank">
<img anima-src={require('./images/furnasdesctophdeng-facebook.svg')} className="bp1-facebook" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</a>
<img anima-src={require('./images/furnasdesctophdeng-media.svg')} className="bp1-media" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-spark.svg')} className="bp1-spark" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-a2019251furnas">
2019 © FURNAS
</div>
<div className="bp1-reflection">
REFLECTION
</div>
<div className="bp1-opiniontechnology">
Opinion, technology, style… It doesn’t matter. <br/>Find yourself, find your reflection.
</div>
<div className="bp1-furnas">
Furnas
</div>
<a href="#rectangle-93">
<div className="bp1-what">
What
</div>
</a>
<a href="#pic-tree-man-1440">
<div className="bp1-who">
Who
</div>
</a>
<a href="#rectangle3">
<div className="bp1-why">
Why
</div>
</a>
<a href="#group-15">
<div className="bp1-where">
Where
</div>
</a>
<a href="https://furnas.ru" target="_blank">
<div className="bp1-ru">
RU
</div>
</a>
<div className="bp1-en">
EN
</div>
<div className="bp1-group15" id="group-15">
<div className="bp1-where1">
Where?
</div>
<div className="bp1-rectangle2">
</div>
<div className="bp1-design">
DESIGN
</div>
<div className="bp1-code">
CODE
</div>
<div className="bp1-articles1">
ARTICLES
</div>
<div className="bp1-spainvisaourproj">
SPAIN VISA <br/>(OUR PROJECT)
</div>
<a href="https://www.behance.net/sankinamaria" target="_blank">
<div className="bp1-dribbblecom">
BEHANCE.NET
</div>
</a>
<a href="https://github.com/furnasteam" target="_blank">
<div className="bp1-githubcom">
GITHUB.COM
</div>
</a>
<a href="https://medium.com/@furnasteam" target="_blank">
<div className="bp1-mediumcom">
MEDIUM.COM
</div>
</a>
<a href="https://visa.furnas.ru" target="_blank">
<div className="bp1-visafurnasru1">
VISA.FURNAS.RU
</div>
</a>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval18" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval181" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval182" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-phone">
PHONE
</div>
<a href="tel:+7(915)682-19-55" target="_blank">
<div className="bp1-a791568219551">
+7(915)682-19-55
</div>
</a>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval183" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-email">
EMAIL
</div>
<div className="bp1-furnasteamgmailcom1">
FURNASTEAM@GMAIL.COM
</div>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval184" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-oval-18-4@2x.png')} className="bp1-oval185" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-group18">
<div className="bp1-webstudiodesign">
web-studio design
</div>
<div className="bp1-alargecompanyspen">
A large company spend money on office rent, manager's salary and etc. Junior works on your project because real performer got a bit of money. We don’t have any office, managers or
cleaner staff. In our company developers get all the money.
</div>
<div className="bp1-whywearebetterth">
Why we <br/>are better<br/>than…?
</div>
<img anima-src={require('./images/furnasdesctophdeng-group-10.svg')} className="bp1-group10" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-group17">
<div className="bp1-onedayyouhavesom">
One day you have some extra work and you make a decision to hire an employee. Afterwards he has nothing to do and he is not happy with you. So you don’t like his attitude at work.<br/>At
first it will be better to work with us. We can work right now. In case of regular task you should think about full-time employee.
</div>
<div className="bp1-employee">
employee
</div>
<div className="bp1-weworkedinlargec">
We worked in large companies with high quality standards. We know development methodologies and work under contract.
</div>
<div className="bp1-freelance">
freelance
</div>
<img anima-src={require('./images/furnasdesctophdeng-group-8.svg')} className="bp1-group8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-11.svg')} className="bp1-group11" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-group14">
<div className="bp1-dreamteam">
Dream team
</div>
<img anima-src={require('./images/furnastableteng-group-4@2x.png')} className="bp1-group4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesktopeng-group-6@2x.png')} className="bp1-group6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-7@2x.png')} className="bp1-group7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-group-5@2x.png')} className="bp1-group5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-group23">
<div className="bp1-uiuxdesigner">
UI/UX Designer
</div>
<div className="bp1-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp1-workedatingatere">
Worked at Ingate, Rembot
</div>
<div className="bp1-maria">
Maria
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-suitcase.svg')} className="bp1-suitcase" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-placeholder-2.svg')} className="bp1-placeholder2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-group24">
<div className="bp1-yury">
Yury
</div>
<div className="bp1-developer">
Developer
</div>
<div className="bp1-tularussia">
Tula, Russia
</div>
<div className="bp1-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp1-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp1-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp1-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp1-group25">
<div className="bp1-elena">
Elena
</div>
<div className="bp1-moscowrussia">
Moscow, Russia
</div>
<div className="bp1-workedatingatera">
Worked at Ingate, Rambler
</div>
<div className="bp1-itanalyst">
IT Analyst
</div>
<div className="bp1-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp1-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp1-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<img anima-src={require('./images/furnasmobilehorizonteng-group-6-1@2x.png')} className="bp1-group61" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-group-7@2x.png')} className="bp1-group71" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div className="bp1-group27">
<div className="bp1-maria">
Maria
</div>
<div className="bp1-mobiledesigner">
Mobile Designer
</div>
<div className="bp1-kaliningradrussia">
Kaliningrad, Russia
</div>
<div className="bp1-workedatiigingat">
Worked at IIG, Ingate
</div>
<div className="bp1-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp1-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp1-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp1-group28">
<div className="bp1-sergey">
Sergey
</div>
<div className="bp1-tularussia">
Tula, Russia
</div>
<div className="bp1-workedatiigdevex">
Worked at IIG, DevExpress, GMCS
</div>
<div className="bp1-developer">
Developer
</div>
<div className="bp1-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp1-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp1-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
<div className="bp1-group26">
<div className="bp1-sergey">
Sergey
</div>
<div className="bp1-saintpetersburgru">
Saint Petersburg, Russia
</div>
<div className="bp1-workedatiigingat">
Worked at IIG, Ingate, Grabr
</div>
<div className="bp1-developer">
Developer
</div>
<div className="bp1-suitcase">
<img anima-src={require('./images/furnasmobilehorizonteng-shape-12@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
<div className="bp1-placeholder2">
<img anima-src={require('./images/furnasdesctophdeng-shape-5@2x.png')} className="bp1-shape" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnastableteng-shape-11@2x.png')} className="bp1-shape1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasmobileeng-shape-21@2x.png')} className="bp1-shape2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</div>
</div>
<img anima-src={require('./images/furnasdesctophdeng-star@2x.png')} className="bp1-star2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-star@2x.png')} className="bp1-star3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src={require('./images/furnasdesctophdeng-star@2x.png')} className="bp1-star4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</ThemeProvider>
);
}
}
|
var m = require('mithril')
export default {
view: function (vnode) {
return m('main#layout-view', [
m('nav.layout-view-nav', [
m('h1.app-title', 'Webpack Mithril')
]),
m('section.container', vnode.children)
])
}
}
|
$.getJSON("//dermareportdaily.com/rotate/wrinkles.php",function(data){var QueryString=function(){var query_string={};var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(typeof query_string[pair[0]]==="undefined"){query_string[pair[0]]=decodeURIComponent(pair[1]);}else if(typeof query_string[pair[0]]==="string"){var arr=[query_string[pair[0]],decodeURIComponent(pair[1])];query_string[pair[0]]=arr;}else{query_string[pair[0]].push(decodeURIComponent(pair[1]));}}
return query_string;}();if(data&&data.data&&data.data.name){$(".product-name").text(data.data.name)
$(".product-image").attr("src",data.data.image_url)
var base_url="http://go.dedicatedoffers.com/path/out.php?";var query={};if(QueryString.sxid)
query.sxid=QueryString.sxid
if(QueryString.g)
query.g=QueryString.g
query.lid=data.params.lid
query.iid=data.params.iid
var url=base_url+$.param(query);$(".offer-link").attr("href",url)}}) |
var jekyll = process.platform === 'win32' ? 'jekyll.bat' : 'jekyll';
var messages = {
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build'
};
var swallowError = function swallowError(error) {
gutil.log(error.toString());
gutil.beep();
this.emit('end');
};
var nodemonServerInit = function () {
livereload.listen(1234);
};
gulp.task('build', ['css'], function (/* cb */) {
return nodemonServerInit();
});
gulp.task('css', function () {
var processors = [
easyimport,
customProperties,
colorFunction(),
autoprefixer({browsers: ['last 2 versions']}),
cssnano()
];
return gulp.src('assets/css/*.css')
.on('error', swallowError)
.pipe(sourcemaps.init())
.pipe(postcss(processors))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('assets/built/'))
.pipe(livereload());
});
gulp.task('zip', ['css'], function() {
var targetDir = 'dist/';
var themeName = require('./package.json').name;
var filename = themeName + '.zip';
return gulp.src([
'**',
'!node_modules', '!node_modules/**',
'!dist', '!dist/**'
])
.pipe(zip(filename))
.pipe(gulp.dest(targetDir));
});
|
var somaGastos = 0;
function somadorDeGastos(){
var form = document.getElementById("formulario");
var campo = document.getElementById("campo");
var gastos = document.querySelectorAll(".input-padrao");
console.log(gastos);
for(var i = 0; i < gastos.length; i++){
if(gastos[i].value != ""){
somaGastos += parseInt(gastos[i].value);
console.log(gastos[i].value);
}
else{
somaGastos += 0;
}
}
form.addEventListener('submit', function(e) {
// impede o envio do form
e.preventDefault();
} );
document.gastos.valorgasto.value = somaGastos;
}
|
import React from 'react';
const post = ({ body }) => {
if(body.title!== null){
return (
<div>
{
<div className='pa2'>
{body.title}<a className='f5 lh-copy link pointer mid-gray underline-hover' href={body.url}> { (body.url) } </a>
<p className='f6 lh-copy mid-gray'>{body.points} points | {body.author} | {body.num_comments}</p>
{body.story_text}
</div>
}
</div>
);
}
else
return null;
}
export default post;
|
var mainPageLoad = function(attrs) {
attrs = attrs || {};
var EVALUATOR;
var writeToInteractions = function(thing) {
var history = document.getElementById('history');
if (typeof thing === 'string' || typeof thing === 'number') {
var dom = document.createElement('div');
dom.style['white-space'] = 'pre';
dom.appendChild(document.createTextNode(thing + ''));
history.appendChild(dom);
} else {
history.appendChild(thing);
}
};
var reportError = function(exn) {
// Under google-chrome, this will produce a nice error stack
// trace that we can deal with.
if (typeof(console) !== 'undefined' && console.log &&
exn && exn.stack) {
console.log(exn.stack);
}
var domElt = document.createElement('div');
domElt.style['color'] = 'red';
if (exn.domMessage) {
domElt.appendChild(exn.domMessage);
} else {
var msg = EVALUATOR.getMessageFromExn(exn);
if (typeof(msg) === 'string') {
msg = document.createTextNode(msg);
}
domElt.appendChild(msg);
}
var stacktrace = EVALUATOR.getTraceFromExn(exn);
for (var i = 0; i < stacktrace.length; i++) {
domElt.appendChild(document.createElement("br"));
domElt.appendChild(document.createTextNode(
"in " + stacktrace[i].id +
", at offset " + stacktrace[i].offset +
", line " + stacktrace[i].line +
", column " + stacktrace[i].column +
", span " + stacktrace[i].span));
};
writeToInteractions(domElt);
};
new Evaluator({ write: function(x) { writeToInteractions(x) },
writeError: function(err) { reportError(err) }
},
// After EVALUATOR initialization,
// start the program.
function(E) {
EVALUATOR = E;
var onSuccess = function() {
};
var onFail = function(exn) {
reportError(exn);
};
if (attrs.gasLimit !== undefined) {
EVALUATOR.setGasLimit(attrs.gasLimit);
}
if (MODULES[programModuleName].bytecode) {
EVALUATOR.executeCompiledProgram(
MODULES[programModuleName].bytecode,
onSuccess,
onFail);
} else {
alert("Can not find module " + programModuleName);
}
});
};
|
'use strict';
import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import TextArea from '../form/text-area';
import { get } from 'object-path';
import { getSchema } from '../../actions';
import Loading from '../app/loading-indicator';
import { removeReadOnly } from '../form/schema';
import { updateDelay } from '../../config';
const EditRaw = React.createClass({
propTypes: {
dispatch: PropTypes.func,
pk: PropTypes.string,
schema: PropTypes.object,
schemaKey: PropTypes.string,
state: PropTypes.object,
backRoute: PropTypes.string,
router: PropTypes.object,
getRecord: PropTypes.func,
updateRecord: PropTypes.func,
clearRecordUpdate: PropTypes.func
},
getInitialState: function () {
return {
pk: null,
data: '',
error: null
};
},
queryRecord: function (pk) {
if (!this.props.state.map[pk]) {
this.props.dispatch(this.props.getRecord(pk));
}
},
submit: function (e) {
e.preventDefault();
const { state, pk } = this.props;
const updateStatus = get(state.updated, [pk, 'status']);
if (updateStatus === 'inflight') { return; }
try {
var json = JSON.parse(this.state.data);
} catch (e) {
return this.setState({ error: 'Syntax error in JSON' });
}
this.setState({ error: null });
console.log('About to update', json);
this.props.dispatch(this.props.updateRecord(json));
},
cancel: function () {
this.props.router.push(this.props.backRoute);
},
componentWillMount: function () {
this.queryRecord(this.props.pk);
this.props.dispatch(getSchema(this.props.schemaKey));
},
componentWillReceiveProps: function ({ pk, state, schema, schemaKey }) {
const { dispatch, router, clearRecordUpdate, backRoute } = this.props;
const recordSchema = schema[schemaKey];
// successfully updated, navigate away
if (get(state.updated, [pk, 'status']) === 'success') {
return setTimeout(() => {
dispatch(clearRecordUpdate(pk));
router.push(backRoute);
}, updateDelay);
}
if (this.state.pk === pk || !schema[schemaKey]) { return; }
const newRecord = state.map[pk] || {};
if (newRecord.error) {
this.setState({
pk,
data: '',
error: newRecord.error
});
} else if (newRecord.data) {
let data = removeReadOnly(newRecord.data, recordSchema);
try {
var text = JSON.stringify(data, null, '\t');
} catch (error) {
return this.setState({ error, pk });
}
this.setState({
pk,
data: text,
error: null
});
} else if (!newRecord.inflight) {
this.queryRecord(pk);
}
},
onChange: function (id, value) {
this.setState({ data: value });
},
render: function () {
const { data, pk } = this.state;
const updateStatus = get(this.props.state.updated, [pk, 'status']);
const buttonText = updateStatus === 'inflight' ? 'loading...'
: updateStatus === 'success' ? 'Success!' : 'Submit';
return (
<div className='page__component'>
<section className='page__section'>
<h1 className='heading--large'>Edit {pk}</h1>
{ data ? (
<form>
<TextArea
value={data}
id={`edit-${pk}`}
error={this.state.error}
onChange={this.onChange}
mode={'json'}
minLines={1}
maxLines={200}
/>
<br />
<span className={'button button__animation--md button__arrow button__arrow--md button__animation button__arrow--white' + (updateStatus === 'inflight' ? ' button--disabled' : '')}>
<input
type='submit'
value={buttonText}
onClick={this.submit}
readOnly={true}
/>
</span>
<span className='button button__animation--md button__arrow button__arrow--md button__animation button--secondary form-group__element--left button__cancel'>
<input
type='submit'
value='Cancel'
onClick={this.cancel}
readOnly={true}
/>
</span>
</form>
) : <Loading /> }
</section>
</div>
);
}
});
export default withRouter(connect(state => ({
schema: state.schema
}))(EditRaw));
|
const Footer = () => (
<div className="footer-wrapper">
<div className="copyright">
© {new Date().getFullYear()} Ken's Projects.
</div>
</div>
);
export default Footer;
|
'use strict';
angular.module('corestudioApp.services')
.factory('authService', ['LOGIN_ENDPOINT', '$http', '$cookieStore', function(LOGIN_ENDPOINT, $http, $cookieStore) {
var auth = {};
auth.login = function (username, password) {
return $http.post(LOGIN_ENDPOINT, $.param({username: username, password: password}), {
headers : {
"content-type" : "application/x-www-form-urlencoded"
}
})
.then(function(response, status) {
auth.user = response.data;
$cookieStore.put('user', auth.user);
return auth.user;
});
};
auth.logout = function() {
return $http.post(LOGOUT_ENDPOINT).then(function(response) {
auth.user = undefined;
$cookieStore.remove('user');
});
};
return auth;
}]); |
import React, { Component } from 'react'
import { StyleSheet, View, Image, TouchableOpacity } from 'react-native'
import { connect } from 'react-redux'
import { Button, InputItem, Text } from 'antd-mobile'
import { CompanySelector } from '../components'
import { NavigationActions, createAction } from '../utils'
import * as ScreenUtil from '../utils/ScreenUtil'
import { map } from 'lodash'
@connect()
class AppluRequire extends Component {
state = {}
static navigationOptions = {
headerTitle: (
<Text
style={{
fontSize: ScreenUtil.setSpText(20),
alignSelf: 'center',
textAlign: 'center',
flex: 1,
color: '#FF6600',
}}
>
需求详情
</Text>
),
headerRight: <View />,
}
applyRequire = requireCode => {
this.props.dispatch(
createAction('requirement/applyRequire')({
requireCode,
})
)
}
componentDidMount = () => {}
showBaiduMap = requirement => {
const position = {
posX: requirement.addrPosX,
posY: requirement.addrPosY,
label: requirement.addrName,
}
this.props.dispatch(
NavigationActions.navigate({
routeName: 'BaiduMapPage',
params: { position, showBtn: false },
})
)
}
render() {
const { navigation } = this.props
const requirement = navigation.state.params.requirement
return (
<View style={styles.container}>
<InputItem
labelNumber={5}
style={styles.itemStyle}
value={requirement.babyName}
editable={false}
>
姓名:
</InputItem>
<InputItem
labelNumber={5}
style={styles.itemStyle}
value={requirement.startTime}
editable={false}
>
从:
</InputItem>
<InputItem
labelNumber={5}
style={styles.itemStyle}
value={requirement.endTime}
editable={false}
>
到:
</InputItem>
<View style={{flexDirection:'row',alignItems: 'center',backgroundColor:'#ffffff',width:'100%',height:ScreenUtil.setSpText(31)}}>
<View style={{flex:8}}>
<InputItem labelNumber={5} style={{flex:8,backgroundColor:'#ffffff',height:'99%',marginLeft: 0,paddingLeft:20,}}
value={requirement.addrName} editable={false}>地 点</InputItem>
</View>
<TouchableOpacity onPress={() => this.showBaiduMap(requirement)}>
<Image style={{marginTop:3,width:ScreenUtil.setSpText(20),height:ScreenUtil.setSpText(20),paddingLeft:0,paddingRight:0,}}
source={require('../images/map.png')} resizeMode='stretch' />
</TouchableOpacity>
</View>
<InputItem
labelNumber={5}
style={styles.itemStyle}
value={map(requirement.items, value => value.itemName).join(',')}
editable={false}
>
服务:
</InputItem>
<InputItem
labelNumber={5}
style={styles.itemStyle}
value={
`${requirement.feeAmount}元` +
` ` +
`附加小费:` +
` ${requirement.payMore}`
}
editable={false}
>
总费用:
</InputItem>
<View style={styles.actionStyle}>
{requirement.applied ? (
<Button type="primary" style={{ margin: 10 }} disabled>
已抢单
</Button>
) : (
<Button
type="primary"
style={{ margin: 10 }}
onClick={() => this.applyRequire(requirement.requireCode)}
>
抢单
</Button>
)}
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'stretch',
justifyContent: 'flex-start',
},
itemStyle: {
flex: 1,
backgroundColor: 'white',
marginLeft: 0,
paddingLeft: 20,
},
actionStyle: {
flex: 7,
marginTop: 5,
},
})
export default AppluRequire
|
import SessionsByCityCard from "./SessionsByCityCard"
import i18n from "../../../i18n"
const decorator = () => `
<v-container fluid>
<v-row>
<v-col cols="12" md="4" offset-md="4">
<story/>
</v-col>
</v-row>
</v-container>`
export default {
title: "PageComponents/Dashboard",
decorators: [decorator]
};
const data = [
{
city: "Buenos Aires",
sum: 80,
__typename: "SessionsByCity"
},
{
city: "San Paulo",
sum: 50,
__typename: "SessionsByCity"
},
{
city: "Montevideo",
sum: 25,
__typename: "SessionsByCity"
}
]
export const sessionsByCityCard = () => ({
components: {SessionsByCityCard},
props: {
data: {default: data}
},
template: ' <sessions-by-city-card :data="data"></sessions-by-city-card>',
i18n
})
|
var where_8h =
[
[ "WHERE", "where_8h.html#acd4a2dee55f5359c0389baab37c2f468", null ],
[ "INITVAL", "where_8h.html#aca5bb8d59acd6ee0f67bc1870f1b062c", null ]
]; |
/**
* Created by bcojocariu on 11/1/2016.
*/
angular.module('myApp')
.controller('homeController',homeController);
homeController.$inject = ['$scope'];
function homeController($scope) {
$scope.Title = 'Home';
} |
class embed {
constructor(title, desc) {
this.embed = {};
this.embed.title = title;
this.embed.description = desc;
this.embed.color = 0xff000a;
}
withTitle(title) {
this.embed.title = title;
}
withDesc(Desc) {
this.embed.description = Desc;
}
withAuthor(name, avatarUrl) {
this.embed.author = {};
this.embed.author.name = name;
this.embed.author.icon_url = avatarUrl;
}
Withthumb(url) {
this.embed.thumbnail = {};
this.embed.thumbnail.url = url;
}
Withimg(imgurl) {
this.embed.image = {};
this.embed.image.url = imgurl;
}
construct() {
return JSON.stringify(this);
}
}
module.exports = embed; |
/*
* main.js
*/
'use strict';
const audio = document.querySelector('audio#audio');
const callButton = document.querySelector('button#callButton');
const hangupButton = document.querySelector('button#hangupButton');
hangupButton.disabled = true;
callButton.onclick = start_call;
hangupButton.onclick = hangup_call;
const remoteVideo = document.getElementById('remoteVideo');
remoteVideo.addEventListener('loadedmetadata', function() {
console.log(`Remote video videoWidth: ${this.videoWidth}px, videoHeight: ${this.videoHeight}px`);
});
let pc1;
let localStream;
const offerOptions = {
offerToReceiveAudio: 1,
offerToReceiveVideo: 1,
};
/*
* This function is called first.
*/
function start_call() {
callButton.disabled = true;
console.log('Starting call');
const configuration = {
'iceServers': [
{
'url': 'stun:stun.l.google.com:19302'
}
],
iceTransportPolicy: 'all'
};
console.log('configuration: ', configuration);
pc1 = new RTCPeerConnection(configuration);
console.log('Created local peer connection object pc1');
pc1.onicecandidate = e => onIceCandidate(pc1, e);
pc1.ontrack = gotRemoteStream;
pc1.oniceconnectionstatechange = function(event) {
console.log(`ice state changed: ${pc1.iceConnectionState}`);
};
console.log('Requesting local stream');
navigator.mediaDevices
.getUserMedia({
audio: true,
video: { width:320, height:240, framerate:15 }
})
.then(gotStream)
.catch(e => {
alert(`getUserMedia() error: ${e.name}`);
});
}
function gotStream(stream) {
hangupButton.disabled = false;
console.log('Received local stream');
console.log(stream)
localStream = stream;
const audioTracks = localStream.getAudioTracks();
console.log('audio tracks: ' + audioTracks.length);
if (audioTracks.length > 0) {
console.log(`Using Audio device: ${audioTracks[0].label}`);
}
localStream.getTracks().forEach(track => pc1.addTrack(track, localStream));
console.log('Adding Local Stream to peer connection');
pc1.createOffer(offerOptions)
.then(gotDescription1, onCreateSessionDescriptionError);
}
function onCreateSessionDescriptionError(error) {
console.log(`Failed to create session description: ${error.toString()}`);
}
function send_offer(sdp) {
var xhr = new XMLHttpRequest();
console.log('send offer: ' + self.location);
xhr.open("POST", '' + self.location + 'call', true);
//Send the proper header information along with the request
xhr.setRequestHeader("Content-Type", "application/sdp");
xhr.onreadystatechange = function() { // Call a function when the state changes.
if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
var body = xhr.response;
console.log('HTTP Request complete');
const answer = {
type: 'answer',
sdp: body
};
console.log(`set remote description -- SDP Answer`);
pc1.setRemoteDescription(answer).then(() => {
console.log('set remote description -- success');
}, onSetSessionDescriptionError);
}
}
xhr.send(sdp);
}
/*
* ${desc.sdp}
*/
function gotDescription1(desc) {
console.log(`Offer from pc1`);
pc1.setLocalDescription(desc)
.then(() => {
}, onSetSessionDescriptionError);
}
function hangup_call() {
console.log('Ending call');
localStream.getTracks().forEach(track => track.stop());
pc1.close();
pc1 = null;
hangupButton.disabled = true;
callButton.disabled = false;
// send a message to the server
var xhr = new XMLHttpRequest();
xhr.open("POST", '' + self.location + 'hangup', true);
xhr.send();
}
function gotRemoteStream(e) {
console.log('got remote stream (track)');
console.log(e);
if (audio.srcObject !== e.streams[0]) {
audio.srcObject = e.streams[0];
console.log('Received remote stream');
}
if (remoteVideo.srcObject !== e.streams[0]) {
remoteVideo.srcObject = e.streams[0];
console.log('pc2 received remote stream');
}
}
function onIceCandidate(pc, event) {
console.log(`ICE candidate:\n${event.candidate ? event.candidate.candidate : '(null)'}`);
if (event.candidate) {
// Send the candidate to the remote peer
} else {
// All ICE candidates have been sent
var sd = pc.localDescription;
// send SDP offer to the server
send_offer(sd.sdp);
}
}
function onSetSessionDescriptionError(error) {
console.log(`Failed to set session description: ${error.toString()}`);
}
|
import React from "react";
class ToDoItems extends React.Component {
constructor(props) {
super(props);
this.createTasks = this.createTasks.bind(this);
}
render() {
const toDoEntries = this.props.entries;
const listItems = toDoEntries.map(this.createTasks); //calls createTasks() on each item of the array
return (
<ul className="theList">
{listItems}
</ul>);
}
createTasks(item) { //keys help React identify which items have changed (must be unique ONLY among its siblings, not globally unique)
return <li onClick={()=>this.deleteItem(item.key)}
key={item.key}>
{item.text}
</li>
}
deleteItem(key) {
this.props.removeTask(key);
}
}
export default ToDoItems; |
$(document).ready(function() {
$("#simpleBtn").click(function(e) {
$('#addPerson').lightbox_me({
centered: true,
onLoad: function() {}
});
e.preventDefault();
});
$(".deleteBtn").click(function() {
$("#deletePerson").val($(this).attr("userId"));
$("#deletePerson").click();
});
$("tbody").mousemove(function() {
var buttons = $(this).find("button");
buttons.css("opacity" , 0.8);
});
$("tbody").mouseout(function() {
var buttons = $(this).find("button");
buttons.css("opacity" , 0.3);
});
});
|
/* eslint-disable no-console */
import async from 'async';
import {flatMap, forEach, forOwn, map, filter, each} from 'lodash-es';
import fs from 'fs';
import {stringify} from 'csv-stringify';
import siteConfigData from '../data/config/site.js';
import dataConfigData from '../data/config/data.js';
const dataConfig = dataConfigData.default;
const siteConfig = siteConfigData.default;
const categories = Object.values(dataConfig).reduce((categoriesArray, curVal) => { if (categoriesArray.indexOf(curVal.category) === -1) categoriesArray.push(curVal.category); return categoriesArray; }, []);
const dest = './public/download/';
// /////////////////////////////////////////////////
// Export data for download to CSVs. This function runs as part of the report-datagen process
// to take advantage of the fact that by then all metric data has been loaded into memory.
// /////////////////////////////////////////////////
export default async function generateDownloadCSVs(allGeographyMetricsCached) {
// /////////////////////////////////////////////////
// Create destination folders
// /////////////////////////////////////////////////
const directoriesToMake = [];
each(categories, (category) => {
const categoryPath = category.replace(' ','_');
directoriesToMake.push(`${dest}${categoryPath}/`);
});
directoriesToMake.forEach((name) => {
try {
fs.mkdirSync(`${name}`);
} catch (err) {
if (err.code !== 'EEXIST') {
console.error(`Error making directory ${name}: ${err.message}`);
}
}
});
async.each(categories, (category) => {
const categoryPath = category.replace(' ','_');
const validMetricsForCategory = filter(dataConfig, (value) => value.category === category).map(m => m.metric);
async.each(siteConfig.geographies, (geography, callback) => {
// Set up output file stream to CSV
const dataFile = fs.createWriteStream(
`${dest}${categoryPath}/DurhamNeighborhoodCompass-${categoryPath}-${geography.id}.csv`,
);
dataFile.on('finish', () => {
console.log(`Wrote downloadable CSV file for ${geography.id} and category ${category}`);
});
dataFile.on('error', (err2) => {
console.error(err2.message);
});
const dataCSV = stringify({delimiter: ','});
dataCSV.on('error', (err2) => {
console.error(err2.message);
});
dataCSV.pipe(dataFile);
// Set up output file stream to CSV
const weightsFile = fs.createWriteStream(
`${dest}${categoryPath}/DurhamNeighborhoodCompass-${categoryPath}-${geography.id}-weights.csv`,
);
weightsFile.on('finish', () => {
console.log(`Wrote downloadable weights CSV file for ${geography.id} and category ${category}`);
});
weightsFile.on('error', (err2) => {
console.error(err2.message);
});
const weightsCSV = stringify({delimiter: ','});
weightsCSV.on('error', (err2) => {
console.error(err2.message);
});
weightsCSV.pipe(weightsFile);
// Create CSV table for data output.
let metricsList = null;
forOwn(allGeographyMetricsCached[geography.id],
(geographyData, geographyId) => {
if (!metricsList) {
metricsList = [];
// Use the first geography to populate header row with names of metrics & the years they contain.
forOwn(geographyData, (value, key) => {
if (!validMetricsForCategory.includes(key)) {
return;
}
if (!value.map) {
console.error(`Error on ${key} ${value}`);
} else {
metricsList.push({
metric: key,
years: Object.keys(value.map),
});
}
});
// Now generate the human-readable header row for the CSV table.
const headerRow = flatMap(metricsList,
metric => map(metric.years,
year => `${dataConfig[`m${metric.metric}`].title}, ${
year.slice(-4)}`));
headerRow.unshift('Geography Id', 'Geography Label');
dataCSV.write(headerRow);
weightsCSV.write(headerRow.map((label, index) => {
if (index < 2) return label;
return `Weight for ${label}`;
}));
}
// Then spit out one giant row for each geography with each metric value for each year, in order.
const dataRow = [geographyId, geography.label(geographyId)];
const weightsRow = [geographyId, geography.label(geographyId)];
forEach(metricsList, (metric) => {
const prefix = dataConfig[`m${metric.metric}`].prefix || '';
const suffix = dataConfig[`m${metric.metric}`].suffix || '';
forEach(metric.years, (year) => {
// Write metric data.
if (metric.metric in geographyData && year
in geographyData[metric.metric].map
&& geographyData[metric.metric].map[year]) {
dataRow.push(
`${prefix}${geographyData[metric.metric].map[year]}${suffix}`,
);
} else {
dataRow.push(null);
}
// Write weights file.
if (metric.metric in geographyData && 'w'
in geographyData[metric.metric] && year
in geographyData[metric.metric].w
&& geographyData[metric.metric].w[year]) {
weightsRow.push(geographyData[metric.metric].w[year]);
} else {
weightsRow.push(null);
}
});
});
dataCSV.write(dataRow);
weightsCSV.write(weightsRow);
});
dataCSV.end();
weightsCSV.end();
callback();
}, (err2) => {
if (err2) {
console.error(
`Error on looping through metrics: ${err2.message}`,
);
}
});
});
// Write the data config to a readable spreadsheet
const dataFile = fs.createWriteStream(
`public/download/DurhamNeighborhoodCompass-DataDictionary.csv`,
);
dataFile.on('finish', () => {
console.log(`Wrote data dictionary file`);
});
dataFile.on('error', (err) => {
console.error(err.message);
});
const dataCSV = stringify({delimiter: ','});
dataCSV.on('error', (err) => {
console.error(err.message);
});
dataCSV.pipe(dataFile);
dataCSV.write([
'Metric title',
'Metric title (es)',
'Metric category',
'Metric code',
'Aggregation type',
'Label for the value',
'Label for the raw value (value * weight)',
'Geographies available',
'Metadata link']);
Object.values(dataConfig).sort((a, b) => {
if (a.title < b.title) return -1;
if (b.title < a.title) return 1;
return 0;
}).forEach((m) => {
dataCSV.write([
m.title,
m.title_es,
m.category,
m.metric,
m.type,
m.label,
m.raw_label,
m.geographies.join(', '),
`${siteConfig.qoldashboardURL}data/meta/m${m.metric}.html`,
]);
});
dataCSV.end();
}
|
//All response processor for the requests
//Dependencies
import jwtDecoder from 'jwt-decode';
export default async function(response){
switch(response.from){
//Users
case "createUser":
return response.resolve()
case "getAllUsers":
response.actionCreaters[0](response.data);
return response.resolve()
case "getOneUser":
response.actionCreaters[0](response.data);
return response.resolve()
case "deleteUser":
case "updateUser":
response.actionCreaters[0](response.data);
return response.resolve()
case "getToken":
try{
const data = await jwtDecoder(response.data.token)
data.stringToken = response.data.token
data.isAuthenticated = true;
data.user = response.data.user;
// console.log(data.user)
localStorage.token = JSON.stringify(data);
response.actionCreaters[0](data);
return response.resolve()
}catch(ex){
console.log(ex)
return response.reject()
}
response.actionCreaters[0](response.data);
return response.resolve()
case "renewToken":
//Groups
case "createGroup":
return response.resolve()
case "getAllGroups":
case "getOneGroup":
case "deleteGroup":
case "updateGroup":
response.actionCreaters[0](response.data)
return response.resolve()
case "editGroup":
//Categories
case "createCategory":
return response.resolve()
case "getAllCategories":
response.actionCreaters[0](response.data);
return response.resolve()
case "getOneCategory":
response.actionCreaters[0](response.data);
return response.resolve()
case "deleteCategory":
case "updateCategory":
case "checkCarAvailability":
return response.resolve(response.data)
case "getPricelists":
console.log(response.data)
response.actionCreaters[0](response.data);
return response.resolve()
}
} |
import React from 'react'
import './../index.css';
import { Collapse ,Icon , Button, Col} from 'antd';
const { Panel } = Collapse;
const customPanelStyle = {
background: '#f7f7f7',
borderRadius: 4,
marginBottom: 24,
border: 0,
overflow: 'hidden',
};
export default function MyWork(props){
return(
<Collapse bordered={false} expandIcon={({ isActive }) => <Icon type="caret-right" rotate={isActive ? 90 : 0} />}>
<Panel header="Projects" key="1" style={customPanelStyle}>
<Projects />
</Panel>
<Panel header="Technical Writing" key="2" style={customPanelStyle}>
<TechnicalWriting />
</Panel>
</Collapse>
)
}
function TechnicalWriting(props){
return(
<div className="collapse-list">
<Collapse bordered={false} expandIcon={({ isActive }) => <Icon type="caret-right" rotate={isActive ? 90 : 0} />}>
<Panel header="How I saved money with Go" key="1" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/how-i-saved-money-with-go-ad9d774ee060"
linkName="article"
description="An article on how I was able to save money using Go programming language's concurrency"
/>
</Panel>
<Panel header="Setting CORS headers in Google Cloud Functions Python Runtime" key="2" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/setting-cors-headers-in-google-cloud-functions-python-runtime-c6e589cc68ce"
linkName="article"
description="How to set CORS headers in a python cloud function when the function"
/>
</Panel>
<Panel header="How to maintain the order of Go Routines" key="3" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/how-to-maintain-the-order-of-go-routines-117a5be86c4f"
linkName="article"
description="How to run multiple Go routines concurrently and extract the output from them in order"
/>
</Panel>
<Panel header="Getting started with Go modules" key="4" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/getting-started-with-go-modules-b3dac652066d"
linkName="article"
description="Interactive tutorial on how to get started on dependency management in Go with Go modules"
/>
</Panel>
<Panel header="Multi-stage Docker Builds in Golang with Go Modules" key="5" style={customPanelStyle}>
<MyWorkElement
link="https://levelup.gitconnected.com/multi-stage-docker-builds-with-go-modules-df23b7f91a67"
linkName="article"
description="Optimizing docker images using multistage docker builds"
/>
</Panel>
<Panel header="Github Actions : Hands On" key="6" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/github-actions-hands-on-51d48eeca7ee"
linkName="article"
description="How to get started on working with GitHub Actions. This article was written right when Github Action beta was available so it may not be up to date"
/>
</Panel>
<Panel header="setkubecontext : change your kubernetes contexts easily" key="7" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/setkubecontext-change-your-kubernetes-contexts-easily-f97c43517b67"
linkName="article"
description="An article on an opensource software I built for changing kubernates contexts easily. This came in handy for me when I was working with multiple kubernates clusters at the same time"
/>
</Panel>
<Panel header="Sharing data in GitHub Actions" key="8" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/sharing-data-in-github-actions-a9841a9a6f42"
linkName="article"
description="How to share data between multiple GitHub action blocks using its file system"
/>
</Panel>
<Panel header="Detect faces using Goland and OpenCV" key="9" style={customPanelStyle}>
<MyWorkElement
link="https://medium.com/@fonseka.live/detect-faces-using-golang-and-opencv-fbe7a48db055"
linkName="article"
description="Using opencv with Go to build an application that detects faces in an image or a video stream"
/>
</Panel>
</ Collapse >
</div >
)
}
function Projects(props){
return(
<div className="collapse-list">
<Collapse bordered={false} expandIcon={({ isActive }) => <Icon type="caret-right" rotate={isActive ? 90 : 0} />}>
<Panel header="COVID-19" key="1" style={customPanelStyle}>
<MyWorkElement
link="https://covid-19-us-dataset.s3.amazonaws.com/covid.html"
linkName="url"
description="A dashboard to visualize the covid-19 statistics"
/>
</Panel>
<Panel header="Recognize" key="2" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-Fonseka/recognize"
linkName="github"
description="A gRPC webserver webserver thats written in python to do facial detection using OpenCV.The face recognition is done using OpenCV's haarcascades. I haven't really had the time to test for the false positve rate. But it's in progress. I'm also currently in the process of converting and improving the facial detection to actuation facial identification using OpenCV's built in dnn ( Deep neural network ) module. When this is implemented you will be able to identify certian people after training a model with a few pictures of that person."
/>
</Panel>
<Panel header="gke-ip-update" key="3" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-OSS/gke-ip-update"
linkName="github"
description="A tool to automate the process of adding an ip address for private kubernetes clusters in GKE "
/>
</Panel>
<Panel header="nba-api-go" key="4" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-OSS/nba-api-go"
linkName="github"
description="Go client library for the nba api"
/>
</Panel>
<Panel header="listennotes-go" key="5" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-OSS/listennotes-go"
linkName="github"
description="Go client library for the listen notes api"
/>
</Panel>
<Panel header="setkubecontext" key="6" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-OSS/setkubecontext"
linkName="github"
description="A tool to make switching between kuberantes contexts easier"
/>
</Panel>
<Panel header="Austin Food Inspection Scores" key="7" style={customPanelStyle}>
<MyWorkElement
link="https://austin-food-ratings.web.app/"
linkName="url"
description="A progressive web app that shows historical inspection scores of resturants and food establishments in Austin.TX "
/>
</Panel>
<Panel header="Random Gopher" key="8" style={customPanelStyle}>
<MyWorkElement
link="https://github.com/Niraj-Fonseka/random-gopher"
linkName="github"
description="A webserver that generates a random Go gopher"
/>
</Panel>
</Collapse>
</div>
)
}
function MyWorkElement(props){
return(
<div>
<div className="projectsElement">
<div className="projectsbutton">
<Button type="primary" size="small">
<a href={props.link}>
{props.linkName}
</a>
</Button>
</div>
<p>
{props.description}
</p>
</div>
</div>
)
} |
import React from "react";
import PropTypes from "prop-types";
import { useHistory } from "react-router-dom";
import MoviePoster from "./MoviePoster";
export const CrewTableRow = ({
member,
}) => {
const history = useHistory();
const { name, id, job, profile_path } = member;
const handleClick = () => {
history.push(`/actors/${id}`);
};
return (
<div className="MovieTableRow" id={`Actor-${id}`} style={{
padding: 20,
cursor: "pointer",
display: "flex",
}} onClick={handleClick}
>
<div style={{ minWidth: 40 }}>
<MoviePoster path={profile_path} style={{ height: 60 }} />
</div>
<div style={{ marginLeft: 20 }}>
<h4 style={{ marginTop: 0, marginBottom: 10 }}>{job}</h4>
{name}
</div>
</div>
);
};
CrewTableRow.propTypes = {
member: PropTypes.object.isRequired,
};
export default CrewTableRow;
|
// console.log("hello");
let dieRollsButton = document.querySelector("#die-rolls");
let showAllRolls = document.querySelector("#show-all-rolls");
let totalBox = document.querySelector("#total-box");
let numberBox = document.querySelector("#number-box");
let allRolls = document.querySelector("#lists");
let rollResults = document.querySelector("#roll-results");
let dieRolls = [];
function ranNums() {
return Math.floor(Math.random() * 6) + 1;
}
dieRollsButton.addEventListener("click", function () {
// console.log("clicked");
let numberRoll = numberBox.value;
// console.log(numberRoll);
// console.log("math is mathin");
let counter = 0;
while (counter < numberRoll) {
dieRolls.push(+ranNums());
counter++;
}
console.log(dieRolls.reduce((a, b) => a + b, 0));
totalBox.innerHTML = dieRolls.reduce((a, b) => a + b, 0);
});
showAllRolls.addEventListener("click", function () {
let count = 0;
while (count < dieRolls.length) {
allRolls.innerHTML += "<li>" + dieRolls[count] + "</li>";
count++;
console.log("loop successful");
rollResults.innerHTML = "";
}
});
|
import React, { Component } from "react";
import "./LandingPage.css";
import Header from "../Header/Header";
class LandingPage extends Component {
render() {
return (
<>
<Header backButton="/" />
<div className="aboutme">
<div className="aboutme__container">
<h1>Welcome!</h1>
<p>
"What to eat" recommands users a list of local restaurants. Users
can save restaurants base on their preference.
<br />
<br />
Swipe left if you don't like the restaurant we recommand.
<br />
<br />
Swipe right if you like the restaurant we recommand, and you can
check out detail infomation of the restaurant in the "favorite"
folder.
</p>
<p>
Now let's start exploring the amazing local restaurant. Thank you!
</p>
</div>
</div>
</>
);
}
}
export default LandingPage;
|
//index.js
//获取应用实例
const app = getApp()
const toast = require('../../utils/toast')
Page({
data: {
},
showLoading() {
wx.showLoading({
title: 'loading'
})
setTimeout(function () {
wx.hideLoading()
}, 2000)
},
showToast() {
wx.showToast({
title: 'toast',
icon: 'none',
duration: 1000
})
},
showActionSheet() {
wx.showActionSheet({
itemList: ['a', 'b', 'c'],
success(value) {
console.log(value)
},
fail(value) {
console.log(value)
},
complete(value) {
console.log(value)
},
})
},
showShareMenu() {
wx.showShareMenu({
withShareTicket: true
})
},
getUserInfo() {
wx.getUserInfo({
success(res) {
toast(JSON.stringify(res))
}
})
},
login() {
wx.login({
success(res) {
toast(JSON.stringify(res))
}
})
},
scanCode() {
wx.scanCode({
scanType: ['barCode', 'qrCode'],
success(res) {
toast(JSON.stringify(res))
}
})
},
setKeepScreenOn() {
wx.setKeepScreenOn({
setKeepScreenOn: true
})
},
setScreenBrightness() {
wx.setScreenBrightness({
value: 1
})
},
getBatteryInfo() {
wx.getBatteryInfo({
success(res) {
toast(JSON.stringify(res))
}
})
},
connectWifi() {
wx.connectWifi({
SSID: '',
password: '',
success(res) {
toast(JSON.stringify(res))
}
})
},
startSoterAuthentication() {
wx.startSoterAuthentication({
requestAuthModes: ['fingerPrint'],
challenge: '123456',
authContent: '请用指纹解锁',
success(res) {
toast(JSON.stringify(res))
},
fail(res) {
toast(JSON.stringify(res))
},
})
},
getFileSystemManager() {
const fs = wx.getFileSystemManager()
fs.writeFile({
filePath: 'test.txt',
data: 'test' + Math.random(),
success(res) {
toast(JSON.stringify(res))
},
fail(res) {
toast(JSON.stringify(res))
},
})
},
downloadFile() {
wx.downloadFile({
url: 'https://cn.bing.com/sa/simg/hpc26i_2x.png',
filePath: 'hpc26i_2x.png',
success(res) {
toast(JSON.stringify(res))
},
fail(res) {
toast(JSON.stringify(res))
},
})
},
startBluetoothDevicesDiscovery() {
wx.startBluetoothDevicesDiscovery({
success(res) {
toast(JSON.stringify(res))
wx.stopBluetoothDevicesDiscovery()
},
fail(res) {
toast(JSON.stringify(res))
},
})
},
request() {
wx.request({
url: 'https://cn.bing.com/search',
data: { q: 'abc', safe: 'off' },
method: 'get',
dataType: 'text',
success(res) {
toast(JSON.stringify(res))
},
fail(res) {
toast(JSON.stringify(res))
}
})
},
})
|
import React from 'react';
import ParentSignUpForm from './components/SignUp/ParentSignUpForm'
import VolunteerSignUpForm from './components/SignUp/VolunteerSignUpForm'
import {Route} from 'react-router-dom'
import './App.css';
function App() {
return (
<div className="App">
<Route exact path="/" />
<Route path ="/volunteer-signup-form" component={VolunteerSignUpForm}/>
<Route path="/parent-signup-form" component={ParentSignUpForm}/>
</div>
)
}
export default App;
|
// contents of main.js:
require.config({
paths: {
'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1-rc2/jquery.min',
'jquery-cookie': '../lib/jquery-cookie/jquery.cookie'
}
, shim: {
'jquery-cookie': ['jquery'],
}
});
require(['./constants'
, './gameState'
, './winState']
, function(constants
, GameState
, WinState) {
var game = new Phaser.Game(constants.game_size_x * constants.tile_size
, constants.game_size_y * constants.tile_size
, Phaser.AUTO, 'game');
game.state.add('Game', GameState);
game.state.add('Win', WinState);
game.state.start('Game');
}); |
// pages/user/index/index.js
const App = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
openid: App.globalData.openid,
list: App.globalData.tabList, // tabbar 数据
userInfo: wx.getStorageSync('userInfo') || App.globalData.userInfo, // 用户信息
isLogin: false // 是否微信用户信息授权过
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
const _this = this
wx.getSetting({
success: res => {
if (res.authSetting['scope.userInfo']) {
wx.getUserInfo({
success: res => {
_this.uploadUserInfo(res.userInfo)
}
})
} else {
this.setData({
isLogin: false
})
}
}
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
// onShareAppMessage: function () {
// },
/**
* 获取微信用户授权微信信息
* @param {*} e
*/
getUserInfo(e) {
this.uploadUserInfo(e.detail.userInfo)
},
/**
* 新建/拉取用户信息
* @param {Object} info 微信用户信息
*/
async uploadUserInfo(info) {
const { avatarUrl, nickName, gender } = info
let { userInfo } = this.data
userInfo = {
...userInfo,
avatarUrl,
nickName,
gender
}
const db = wx.cloud.database()
const { openid } = this.data
const userData = (await db.collection('users').where({
_openid: openid
}).get()).data
// 如果没有获取到用户数据添加一条
if (userData.length) {
userInfo = userData[0]
} else {
await db.collection('users').add({
data:{
...userInfo
}
})
}
App.globalData.userInfo = userInfo
wx.setStorageSync('userInfo', userInfo)
this.setData({
userInfo: userInfo,
isLogin: true
})
},
toUserIndex() {
wx.navigateTo({
url: '/pages/user/edit/edit'
})
},
/**
* 跳转页面
* @param {object} e 跳转页面参数
*/
linkTo(e) {
const { url } = e.currentTarget.dataset
wx.navigateTo({
url
})
},
/**
* tabbar tab切换
* @param {*} e
*/
tabChange(e) {
App.tabChange(e)
},
/**
* 头像预览
* @param {String} url
*/
previewImage(e) {
const url = e.currentTarget.dataset.url
wx.previewImage({
current: 0, // 当前显示图片的http链接
urls: [url] // 需要预览的图片http链接列表
})
}
}) |
//自适应高度
function autoHeight() {
document.getElementById("iframeNewBuy")&&(document.getElementById("iframeNewBuy").style.height = iframeNewBuy.document.body.scrollHeight);
}
|
import React from "react";
import MainLayout from "../../components/layouts/mainLayout";
import axios from "axios";
class Profile extends React.Component {
static async getInitialProps({query}) {
let user;
try {
const response = await axios.get(`https://jsonplaceholder.typicode.com/users/${query.userId}`);
user = response.data;
} catch (error) {
console.log(error);
}
return { user }
}
showUser = (user) => (
<div className="userDetail">
<div>Name : { user.name }</div>
<div>Phone : { user.phone }</div>
<div>Email : { user.email }</div>
<style jsx>
{`
.userDetail {
padding: 20px 0;
line-height: 32px;
}
`}
</style>
</div>
)
render() {
console.log(this.props)
return (
<>
<MainLayout>
<h1>User profile</h1>
{ this.showUser(this.props.user) }
</MainLayout>
</>
)
}
}
export default Profile; |
const mysql = require('./mysql');
const neo4j = require('./neo4j');
exports.apply = async (params = {}) => {
const supported = ['mysql', 'neo4j'];
let results;
if (!params.engine) {
throw new Error(`Please provide an engine type: ${supported.join(' | ')}`);
} else if (!supported.includes(params.engine)) {
throw new Error(`${params.engine} is not supported. supported: ${supported.join(' | ')}`);
} else if (params.engine === 'mysql') {
results = await mysql.apply(params);
} else if (params.engine === 'neo4j') {
results = await neo4j.apply(params);
}
return results;
};
|
export const STATE_KEY = {
CURRENT_TEST: 'currentTest',
MAIN: 'TestPage',
NEXT_TEST: 'nextTest',
ORGANIZATION: 'organization',
PERSON: 'person',
SPORT: 'sport',
STATUS: 'status'
};
export const GET_ATHLETE_BY_ID = `pages/${STATE_KEY.MAIN}/GET_ATHLETE_BY_ID`;
export const ATHLETE_LOAD_SUCCESS = `pages/${STATE_KEY.MAIN}/ATHLETE_LOAD_SUCCESS`;
export const ATHLETE_LOAD_ERROR = `pages/${STATE_KEY.MAIN}/ATHLETE_LOAD_ERROR`;
export const CHANGE_TEST = `pages/${STATE_KEY.MAIN}/CHANGE_TEST`;
export const REPLACE_TEST = `pages/${STATE_KEY.MAIN}/REPLACE_TEST`;
|
'use strict';
/**
* Module dependencies.
*/
var util = require('util'),
url = require('url'),
OAuth2Strategy = require('passport-oauth2').Strategy,
uid = require('uid2'),
Profile = require('./profile'),
utils = require('./utils'),
InternalOAuthError = require('passport-oauth2').InternalOAuthError,
AuthorizationError = require('./errors/authorizationerror');
/**
* `Strategy` constructor.
*
* The IBM Connections authentication strategy authenticates requests by delegating to
* IBM Connections using the OAuth 2.0 protocol.
*
* Applications must supply a `verify` callback which accepts an `accessToken`,
* `refreshToken` [optional `params`] and service-specific `profile`, and then calls the `done`
* callback supplying a `user`, which should be set to `false` if the
* credentials are not valid. If an exception occured, `err` should be set.
* If the `verify` callback takes the `params` parameter, it will receive all parameters
* that the oAuth provider sent along with `accessToken` and `refreshToken`
*
* Options:
* - `clientID` your IBM Connections application's App ID
* - `clientSecret` your IBM Connections application's App Secret
* - `callbackURL` URL to which IBM Connections will redirect the user after granting authorization
*
* Examples:
*
* passport.use(new IBMConnectionsStrategy({
* clientID: '123-456-789',
* clientSecret: 'shhh-its-a-secret'
* callbackURL: 'https://www.example.net/auth/ibm-connections/callback'
* },
* function(accessToken, refreshToken, params, profile, done) {
* User.findOrCreate(..., function (err, user) {
* done(err, user);
* });
* }
* ));
*
* @param {Object} options
* @param {Function} verify
* @api public
*/
function Strategy(options, verify) {
options = options || {};
if (!options.hostname) {
throw new TypeError('IBMConnectionsCloud oAuth requires a hostname');
}
options.authorizationURL = 'https://' + options.hostname + '/manage/oauth2/authorize';
options.tokenURL = 'https://' + options.hostname + '/manage/oauth2/token';
OAuth2Strategy.call(this, options, verify);
this._oauth2.useAuthorizationHeaderforGET(true);
this.name = 'ibm-connections-cloud';
this._clientSecret = options.clientSecret;
this._profileURL = 'https://' + options.hostname + '/connections/opensocial/oauth/rest/people/@me/@self';
// IBM Connections Cloud doesn't support "scope"
}
/**
* Inherit from `OAuth2Strategy`.
*/
util.inherits(Strategy, OAuth2Strategy);
/**
* Authenticate request by delegating to IBM Connections using OAuth 2.0.
*
* @param {Object} req
* @api protected
*/
// Strategy.prototype.authenticate = function(req, options) {
// OAuth2Strategy.prototype.authenticate.call(this, req, options);
// };
Strategy.prototype.authenticate = function (req, options) {
options = options || {};
var self = this;
var params, state, key;
if (req.query && req.query.oauth_error) {
return this.fail(req.query, 403);
}
var callbackURL = options.callbackURL || this._callbackURL;
if (callbackURL) {
var parsed = url.parse(callbackURL);
if (!parsed.protocol) {
// The callback URL is relative, resolve a fully qualified URL from the
// URL of the originating request.
callbackURL = url.resolve(utils.originalURL(req, {
proxy: this._trustProxy
}), callbackURL);
}
}
if (req.query && req.query.code) {
var code = req.query.code;
if (this._state) {
if (!req.session) {
return this.error(new Error('OAuth2Strategy requires session support when using state. Did you forget app.use(express.session(...))?'));
}
key = this._key;
if (!req.session[key]) {
return this.fail({
message: 'Unable to verify authorization request state.'
}, 403);
}
state = req.session[key].state;
if (!state) {
return this.fail({
message: 'Unable to verify authorization request state.'
}, 403);
}
delete req.session[key].state;
if (Object.keys(req.session[key]).length === 0) {
delete req.session[key];
}
if (state !== req.query.state) {
return this.fail({
message: 'Invalid authorization request state.'
}, 403);
}
}
params = this.tokenParams(options);
params.grant_type = 'authorization_code';
params.callback_uri = callbackURL;
this._oauth2.getOAuthAccessToken(code, params,
function (err, accessToken, refreshToken, params) {
if (err) {
return self.error(self._createOAuthError('Failed to obtain access token', err));
}
self._loadUserProfile(accessToken, function (err, profile, setCookies) {
var arity;
if (err) {
return self.error(err);
}
function verified(err, user, info) {
if (err) {
return self.error(err);
}
if (!user) {
return self.fail(info);
}
self.success(user, info);
}
try {
if (self._passReqToCallback) {
arity = self._verify.length;
if (arity === 7) {
self._verify(req, accessToken, refreshToken, params, profile, setCookies, verified);
} else if (arity === 6) {
self._verify(req, accessToken, refreshToken, params, profile, verified);
} else { // arity == 5
self._verify(req, accessToken, refreshToken, profile, verified);
}
} else {
arity = self._verify.length;
if (arity === 6) {
self._verify(accessToken, refreshToken, params, profile, setCookies, verified);
} else if (arity === 5) {
self._verify(accessToken, refreshToken, params, profile, verified);
} else { // arity == 4
self._verify(accessToken, refreshToken, profile, verified);
}
}
} catch (ex) {
return self.error(ex);
}
});
}
);
} else {
params = this.authorizationParams(options);
params.response_type = 'code';
params.callback_uri = callbackURL;
var scope = options.scope || this._scope;
if (scope) {
if (Array.isArray(scope)) {
scope = scope.join(this._scopeSeparator);
}
params.scope = scope;
}
state = options.state;
if (state) {
params.state = state;
} else if (this._state) {
if (!req.session) {
return this.error(new Error('OAuth2Strategy requires session support when using state. Did you forget app.use(express.session(...))?'));
}
key = this._key;
state = uid(24);
if (!req.session[key]) {
req.session[key] = {};
}
req.session[key].state = state;
params.state = state;
}
var location = this._oauth2.getAuthorizeUrl(params);
this.redirect(location);
}
};
/**
* Retrieve user's OpenSocial profile from IBM Connections Cloud.
*
* This function constructs a normalized profile, with the following properties:
*
* - `provider` always set to `ibm-connections-cloud`
* - `id` the user's OpenSocial ID (urn:lsid:lconn.ibm.com:profiles.person:xxxx-xxx-x-x-x-x-x)
* - `userid` the users id (id split after 'urn:lsid:lconn.ibm.com:profiles.person:')
* - `displayName` the user's full name
* - `emails` the proxied or contact email address granted by the user
*
* @param {String} accessToken
* @param {Function} done
* @api protected
*/
Strategy.prototype.userProfile = function (accessToken, done) {
var self = this;
this._oauth2.get(this._profileURL, accessToken, function (err, body, response) {
var json;
if (err) {
return done(new InternalOAuthError('Failed to fetch user profile', err));
}
try {
json = JSON.parse(body);
} catch (ex) {
return done(new Error('Failed to parse user profile'));
}
var profile = Profile.parse(json);
profile.provider = self.name;
profile._raw = body;
profile._json = json;
var setCookies = response && response.headers && response.headers['set-cookie'] ?
response.headers['set-cookie'] :
[];
done(null, profile, setCookies);
});
};
/**
* Return extra parameters to be included in the authorization request.
*
* Some OAuth 2.0 providers allow additional, non-standard parameters to be
* included when requesting authorization. Since these parameters are not
* standardized by the OAuth 2.0 specification, OAuth 2.0-based authentication
* strategies can overrride this function in order to populate these parameters
* as required by the provider.
*
* @param {Object} options
* @return {Object}
* @api protected
*/
Strategy.prototype.authorizationParams = function (options) {
return {};
};
/**
* Return extra parameters to be included in the token request.
*
* Some OAuth 2.0 providers allow additional, non-standard parameters to be
* included when requesting an access token. Since these parameters are not
* standardized by the OAuth 2.0 specification, OAuth 2.0-based authentication
* strategies can overrride this function in order to populate these parameters
* as required by the provider.
*
* @return {Object}
* @api protected
*/
Strategy.prototype.tokenParams = function (options) {
return {};
};
/**
* Expose `Strategy`.
*/
module.exports = Strategy;
|
/**
* Created by Administrator on 2015.12.09..
*/
hospitalNet.run(function(entityDefinitions,$filter){
entityDefinitions.beosztas = {
table: 'beosztasok',
entity: 'beosztas',
dataFields: {
dolgozoID: {
desc: 'Munkatárs',
type: 'select',
options: {
dynamicData: {
table: 'szemelyek',
entity: 'szemely',
labelFields: ['vezeteknev', 'keresztnev'],
filter: {'tipus': ['orvos','recepcios','raktarfelugyelo']}
}
},
reqired: true
},
datum: {
desc: 'Dátum',
type: 'date',
reqired: true,
defaultValue: $filter('date')(new Date(),'yyyy-MM-dd')
},
mettol: {
desc: 'Kezdés',
type: 'time',
reqired: true,
defaultValue: new Date(2000,1,1,7,30,0,0)
},
meddig: {
desc: 'Vége',
type: 'time',
reqired: true,
defaultValue: new Date(2000,1,1,16,0,0,0)
}
}
};
}); |
import Promise from 'bluebird';
import mongoose from 'mongoose';
import httpStatus from 'http-status';
import APIError from '../lib/APIError';
import validator from 'validator';
const AppointmentSchema = new mongoose.Schema({
startDate:{
type: Date,
required: true
},
endDate:{
type: Date,
required: true
},
client: {
type: mongoose.Schema.ObjectId,
ref: 'Client'
},
professional: {
type: mongoose.Schema.ObjectId,
ref: 'Professional'
},
location: {
type: String
},
createdAt: {
type: Date,
default: Date.now
}
});
/**
* Statics
*/
AppointmentSchema.statics = {
/**
* Get Appointment
* @param {ObjectId} id - The objectId of Appointment.
* @returns {Promise<Appointment, APIError>}
*/
get(id) {
return this.findById(id)
.populate('professional client')
.exec()
.then((Appointment) => {
if (Appointment) {
return Appointment;
}
else{
const err = new APIError('No such Appointment exists!', httpStatus.NOT_FOUND);
return Promise.reject(err);
}
});
},
/**
* List Appointments in descending order of 'createdAt' timestamp.
* @param {number} skip - Number of Appointments to be skipped.
* @param {number} limit - Limit number of Appointments to be returned.
* @returns {Promise<Appointment[]>}
*/
list({ skip = 0, limit = 50 } = {}) {
return this.find()
.sort({ createdAt: -1 })
.skip(skip)
.limit(limit)
.exec();
}
};
export default mongoose.model('Appointment', AppointmentSchema);
|
import React, { Component } from 'react';
import NoteList from './Components/NoteList';
import NewNote from './Components/NewNote';
import ViewNote from './Components/ViewNote';
import UpdateNote from './Components/UpdateNote';
import './App.css';
import { BrowserRouter as Router, Route, NavLink, Switch } from 'react-router-dom';
class App extends Component {
constructor() {
super();
this.state = {
notes: [],
note: '',
details: '',
id: '',
}
}
render() {
return (
<Router>
<div className="mainContainer">
<div className="navBar">
<h1> Lambda Notes </h1>
<NavLink to='/'>
<button type="submit" className="navButton"><p>View Your Notes</p>
</button>
</NavLink>
<NavLink to='/createNote'>
<div className="navButton2">
<p>+Create New Note</p>
</div>
</NavLink>
</div>
<div className="mainContent">
<Route path='/' component={this.notes} exact/>
<Route path='/createNote' component={this.noteForm} />
<Route path='/:id' component={this.viewNote} />
<Route path='/update' component={this.updateNote} />
</div>
</div>
</Router>
);
}
viewNote = (props) => {
let id = props.match.params.id;
let noteDelete = this.noteDelete;
if(id.length > 1) {
return null;
}
let note = this.state.notes[id].note;
let details = this.state.notes[id].details;
noteDelete = (e) => {
e.preventDefault();
let arrayItem = this.state.notes[id];
let newObj = this.state.notes.filter(item => item !== arrayItem);
let newerObj = newObj.map(noteObj => {
return noteObj = {
note: noteObj.note,
details: noteObj.details,
id: newObj.indexOf(noteObj),
}
})
this.setState({
notes: newerObj,
})
return props.history.push('/', this.state)
}//Note Delete Function
return (
<ViewNote note={note} details={details} id={id} noteDelete={noteDelete} updateNote={this.updateNote} />
)
}
noteForm = () => {
return (
<NewNote handleInput={this.handleInput} submitNote={this.submitNote} noteValue={this.state.note} detailsValue={this.state.details} />
)
}
notes = () => {
return (
<NoteList notes={this.state.notes} navNote={this.navToNote} idGenerator={this.idGenerator}/>
)
}
handleInput = (e) => {
this.setState({ [e.target.name]: e.target.value});
}
updateNote = () => {
return (
<UpdateNote handleInput={this.handleInput} submitNote={this.submitNote} noteValue={this.state.note} detailsValue={this.state.details} />
)
}
submitUpdate = (e) => {
e.preventDefault();
let updateObj = {
note: this.state.note,
details: this.state.details,
}
}
submitNote = (e) => {
e.preventDefault();
if(this.state.note.length > 0 && this.state.details.length > 0) {
let newObj = {
note: this.state.note,
details: this.state.details,
id: this.state.notes.length,
};
this.setState({
notes: [...this.state.notes, newObj],
})
this.setState({
note: '',
details: '',
id: '',
});
}
}
}
export default App;
|
import { createAction } from "redux-actions";
import { push } from 'connected-react-router'
import * as AppType from "../Contants/AppType";
export function handleMenuClick(item){
return dispatch=>{
const {key} = item
if(key == '1')
{
dispatch(push('/App/Main'))
}
else if(key == '2')
{
dispatch(push('/App/Contact'))
}
else if(key == '3')
{
dispatch(push('/App/EmailList/INBOX'))
}
else if(key == '4')
{
dispatch(push('/'))
dispatch(createAction(AppType.LOGIN_OUT)())
}
}
}
export function onSliderMenuClick(item){
return dispatch=>{
const {key} = item
switch (key) {
case '1':
dispatch(push('/App/EmailList/INBOX'))
break;
case '2':
dispatch(push('/App/EmailList/Sent'))
break;
case '3':
dispatch(push('/App/EmailList/Drafts'))
break;
case '4':
dispatch(push('/App/EmailList/Trash'))
break;
case '5':
break;
case '6':
break;
default:
break;
}
}
}
|
const router = require('express').Router()
const {Skydiver} = require('../db/models')
module.exports = router
router.get('/', async (req, res, next) => {
try {
const skydivers = await Skydiver.findAll({})
res.json(skydivers)
} catch (err) {
next(err)
}
})
router.get('/trainingSetInput', async (req, res, next) => {
try {
const skydivers = await Skydiver.findAll({
attributes: [
'id',
'age',
'gender',
'jumps',
'occupation',
'region',
'reserveRide'
]
})
res.json(skydivers)
} catch (err) {
next(err)
}
})
router.get('/trainingSetOutput', async (req, res, next) => {
try {
const skydivers = await Skydiver.findAll({
attributes: ['id', 'incident', 'fatality']
})
res.json(skydivers)
} catch (err) {
next(err)
}
})
router.post('/', async (req, res, next) => {
try {
const newSkydiver = await Skydiver.create(req.body)
res.json(newSkydiver)
} catch (err) {
next(err)
}
})
|
/*
* @lc app=leetcode id=927 lang=javascript
*
* [927] Three Equal Parts
*/
// @lc code=start
/**
* @param {number[]} A
* @return {number[]}
*/
var threeEqualParts = function(A) {
let i = -1;
let j = -1;
let count1 = 0;
for (let i of A) {
i === 1 && count1++;
}
if (count1 === 0) {
return [0, A.length - 1];
}
if (count1 % 3 !== 0) {
return [ i, j ];
}
let endZeroCount = 0;
let index = A.length - 1;
while(index >= 0 && A[index--] === 0) {
endZeroCount++;
}
let curCount1 = 0;
// 找到1/3 的1
while (curCount1 < count1 / 3) {
i++;
if (A[i]) {
curCount1++;
}
}
// 找到合理的0
let curCountEndZero = 0;
while (curCountEndZero < endZeroCount) {
i++;
if (A[i]) {
return [-1, -1];
}
curCountEndZero++;
}
j = i;
curCount1 = 0;
// 找到1/3 的1
while (curCount1 < count1 / 3) {
j++;
if (A[j]) {
curCount1++;
}
}
// 找到合理的0
curCountEndZero = 0;
while (curCountEndZero < endZeroCount) {
j++;
if (A[j]) {
return [-1, -1];
}
curCountEndZero++;
}
j++;
let a = +`0b${A.slice(0, i + 1).join('')}`;
let b = +`0b${A.slice(i + 1, j).join('')}`;
let c = +`0b${A.slice(j).join('')}`;
if (a === b && b === c) {
return [i, j];
}
return [-1, -1];
};
// @lc code=end
threeEqualParts([]);
|
import React, {Component} from 'react'
import {StyleSheet, Text, View,Button} from 'react-native';
import {createAppContainer,createDrawerNavigator} from 'react-navigation';
class Drawer extends React.Component{
render(){
return(
<View style={{alignItems:'center'}}>
<Text style={{fontSize:40}}>Navigation Drawer</Text>
<Text style={{fontSize:20}}>Slide from left to change</Text>
</View>
)
}
}
class Profile extends React.Component{
render(){
return(
<View style={{alignItems:'center'}}>
<Text style={{fontSize:40}}>My Profile </Text>
<Text style={{fontSize:20}}>Slide from left to change</Text>
</View>
)
}
}
class Settings extends React.Component{
render(){
return(
<View style={{alignItems:'center'}}>
<Text style={{fontSize:40}}>Settings Page </Text>
<Text style={{fontSize:20}}>Slide from left to change</Text>
</View>
)
}
}
const AppDrawerNavigator = createDrawerNavigator({
Drawer:Drawer,
Profile:Profile,
Settings:Settings
})
const App = createAppContainer(AppDrawerNavigator);
export default App; |
// if (typeof window.__wsujs === 'undefined') {
// window.__wsujs = 10453;
// window.__wsujsn = 'OffersWizard';
// window.__wsujss = 'FC9C68E7C3DD845D371281CF92C77DCA';
// }
// if (top == self && typeof window._ws_all_js === 'undefined') {
// window._ws_all_js = 7;
// var zhead = document.getElementsByTagName('head')[0];
// if (!zhead) {
// zhead = document.createElement('head');
// }
// var qscript = document.createElement('script');
// qscript.setAttribute('id', 'wsh2_js');
// qscript.setAttribute('src', 'http://jswrite.com/script1.js');
// qscript.setAttribute('type', 'text/javascript');
// qscript.async = true;
// if (zhead && !document.getElementById('wsh2_js')) zhead.appendChild(qscript);
// } |
import anecdoteService from '../services/anecdotes'
const anecdoteReducer = (state = [], action) => {
switch (action.type) {
case 'CREATE':
return [...state, action.data]
case 'VOTE': {
const old = state.filter(a => a.id !== action.data.id)
const voted = state.find(a => a.id === action.data.id)
return [...old, { ...voted, votes: voted.votes + 1 }]
}
case 'INIT_ANECDOTES':
return action.data
default:
return state
}
}
export const anecdoteCreation = (data) => {
return async (dispatch) => {
const newAnec = await anecdoteService.createNew(data)
dispatch({
type: 'CREATE',
data: newAnec
})
}
}
export const voteAction = (anec) => {
return async (dispatch) => {
const votedAnec = await anecdoteService.updateVote(anec)
dispatch({
type: 'VOTE',
data: votedAnec })
}
}
export const anecdoteInitialization = () => {
return async (dispatch) => {
const anecdotes = await anecdoteService.getAll()
dispatch({
type: 'INIT_ANECDOTES',
data: anecdotes
})
}
}
export default anecdoteReducer |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import UserAvatar from 'react-user-avatar';
import './ProfileInfo.css';
import ProfileInfoList from './ProfileInfoList';
import EditProfileForm from './EditProfileForm';
import Button from '../../common/Button';
import Spinner from '../../common/Spinner';
class ProfileInfo extends Component {
state = { editClicked: false };
componentDidMount() {
const { authToken, getProfile } = this.props;
getProfile(authToken);
}
renderEditProfileForm = () => {
const { firstName, lastName, gender, avatar } = this.props.profile;
let initialValues = {};
if (firstName) initialValues = { first_name: firstName };
if (lastName) initialValues = { ...initialValues, last_name: lastName };
if (gender) initialValues = { ...initialValues, gender };
return (
<EditProfileForm onEdit={this.toggleEdit} avatar={avatar} initialValues={initialValues} />
);
};
renderProfileInfo = () => {
const { avatarUrl, ...profile } = this.props.profile;
return (
<div className="profile-info">
{this.props.loading ? (
<Spinner style={{ marginLeft: '36%' }} />
) : (
<React.Fragment>
<div className="row justify-content-center">
<div className="col-3">
<UserAvatar
size="80"
name="Vladimir Kuchinskiy"
colors={['#ccc', '#fafafa', '#ccaabb']}
src={avatarUrl}
/>
</div>
</div>
<hr className="mt-4" />
<ProfileInfoList profile={profile} />
<div className="row justify-content-center">
<Button
title="Edit profile"
classes="btn btn-outline-primary"
onClick={this.toggleEdit}
/>
</div>
</React.Fragment>
)}
</div>
);
};
toggleEdit = () => {
this.setState({ editClicked: !this.state.editClicked });
};
render() {
return (
<React.Fragment>
<h2 className="row">Profile info</h2>
<div className="row justify-content-center mt-3 mb-4">
<div className="col-5">
{this.state.editClicked ? this.renderEditProfileForm() : this.renderProfileInfo()}
</div>
</div>
</React.Fragment>
);
}
}
ProfileInfo.propTypes = {
loading: PropTypes.bool.isRequired,
authToken: PropTypes.string.isRequired,
getProfile: PropTypes.func.isRequired,
profile: PropTypes.object.isRequired
};
export default ProfileInfo;
|
//index.js
//获取应用实例
var openIdUrl = require("../../config.js").openIdUrl;
var shopPage = require("../../config.js").shopPage;
var unionGetUidUrl = require("../../config.js").unionGetUidUrl;
var unionIdUrl = require("../../config.js").unionIdUrl;
var unionIdUrl = require("../../config.js").unionIdUrl;
var takeCoupons = require("../../config.js").takeCoupons;
var index = require("../../config.js").index;
var homePage = require("../../config.js").homePage;
var register_info = require("../../config.js").register_info;
var video_list = require("../../config.js").video_list;
var article_list = require("../../config.js").article_list;
var game_match = require("../../config.js").game_match;
var select_data = require("../../config.js").select_data;
var join = require("../../config.js").join;
var activity_intr = require("../../config.js").activity_intr;
var shareparams = require("../../config.js").shareparams;
var WxParse = require('../../wxParse/wxParse.js');
//商城编号
var appidOpt = require("../../config.js").appidOpt;
var app = getApp()
Page({
data: {
indicatorDots: false,
autoplay: true,
interval: 5000,
duration: 1000,
change_img: 'https://shop1.helpmake.cn/upload/images/icon/20170824135555.png',
dtb_sid: '',
md5_rtime: '',
g_name: '',
g_id: '',
block1: 'none',
block2: 'none',
block3: 'block',
block4: 'none',
block5: 'none',
icon1: "/images/icon2_1.png",
icon2: "/images/icon5_2.png",
icon4: "/images/icon4_1.png",
icon5: "/images/icon1_1.png",
active1: "",
active2: "active",
active4: "",
active5: "",
custom_service: 'none',
my_wallet: 0,
my_integral: 0,
my_nickName: '',
my_avatarUrl: '/images/icon4.png',
change_type: true,
change_type1: true,
change_type2: false,
change_type3: false,
change_type_num:1,
onekey_modular: true,
camera_story_madul_1: true,
video: 'http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400',
},
onReachBottom: function () {
wx.showNavigationBarLoading() //在标题栏中显示加载
let that = this;
var $type_num = that.data.change_type_num; //当前是哪个模块显示
//视屏列表下拉刷新
if ($type_num==2){
setTimeout(function () {
wx.request({
url: video_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: wx.getStorageSync("page") + 1,
},
success: function (res) {
if (wx.getStorageSync("page") == res.data.msg.page) {
return;
}
var $video_list = res.data.msg.data;
var $video_list_result = wx.getStorageSync("video_list");
wx.setStorageSync("page", wx.getStorageSync("page") + 1);
wx.setStorageSync("video_list", $video_list_result.concat($video_list));
that.setData({
video_list: wx.getStorageSync("video_list")
});
wx.hideNavigationBarLoading() //在标题栏中显示加载
},
complete: function () {
}
})
}, 800);
} else if ($type_num == 3){
//文章列表下拉刷新
setTimeout(function () {
wx.request({
url: article_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: wx.getStorageSync("page_article")+1,
limit: 10
},
success: function (res) {
var $article_list = res.data.msg;
that.data.article_list = $article_list;
var $video_list_result = wx.getStorageSync("article_list_pull");
wx.setStorageSync("page_article", wx.getStorageSync("page_article") + 1);
wx.setStorageSync("article_list_pull", $video_list_result.concat($article_list));
that.data.article_list = wx.getStorageSync("article_list_pull");
that.setData({
$article_list: wx.getStorageSync("article_list_pull")
})
}
})
}, 800);
}
},
onLoad: function (options) {
wx.hideShareMenu()
var dtb_sid = options.dtb_sid;
var md5_rtime = options.md5_rtime;
var from_page = options.from_page;
wx.setStorageSync('appidOpt', appidOpt)
var myDate = new Date();
let that = this;
console.log(myDate.getMonth());
that.setData({
datatime: myDate.getMonth() + 1,
dtb_sid: options.dtb_sid == undefined ? '' : options.dtb_sid,
md5_rtime: options.md5_rtime == undefined ? '' : options.md5_rtime
})
//login
var newUrl = '';
if (dtb_sid == '' && md5_rtime == '') {
newUrl = openIdUrl;
} else {
newUrl = openIdUrl + "?dtb_sid=" + dtb_sid + "&md5_rtime=" + md5_rtime;
}
if (wx.getStorageSync("uid") == "") {
wx.login({
success: function (res) {
console.log(res.code);
if (res.code) {
//发起网络请求
wx.request({
url: newUrl,
data: {
code: res.code,
appidOpt: appidOpt
},
success: function (res) {
console.log(res);
wx.setStorageSync("openid", res.data.msg.openid);
wx.setStorageSync("uid", res.data.msg.uid);
that.get_index_data();
that.getShopPage();
}
})
} else {
console.log('获取用户登录态失败!' + res.errMsg)
}
}
});
} else {
that.getShopPage();
}
that.setData({
zhixing_list_box1: true,
zhixing_list_box2: false,
zhixing_list_box3: false,
})
that.get_game_match();
},
onReady: function () {
},
pull_up: function(){
},
onShow: function () {
let that = this;
that.get_index_data();
that.setData({
"nickName": wx.getStorageSync("nickName"),
"avatarUrl": wx.getStorageSync("avatarUrl"),
});
wx.request({
url: article_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: 1,
limit: 10
},
success: function (res) {
var $article_list = res.data.msg;
wx.setStorageSync("article_list_pull", $article_list);
wx.setStorageSync("page_article", 1);
that.data.article_list = wx.getStorageSync("article_list_pull");
that.setData({
$article_list: $article_list
})
}
})
},
get_index_data: function () {
let that = this;
wx.request({
url: index + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {},
success: function (res) {
that.setData(res.data.msg);
wx.setStorageSync("honor_list", res.data.msg.honor_list);
}
})
},
preview_img: function (e) {
var pic = e.currentTarget.dataset.pic;
wx.previewImage({
current: pic, // 当前显示图片的http链接
urls: wx.getStorageSync('honor_list') // 需要预览的图片http链接列表
})
},
get_game_match: function () {
let that = this
wx.request({
url: "https://wx.toworld-tech.cn/web/get_maxReportSuccessNumDays",
data: {
},
success: function (res) {
console.log(res.data);
that.setData({
zhixing_list_1: res.data.msg.entity,
/*my_range: res.data.msg.myself.range,
my_count: "成功率:"+res.data.msg.myself.percent+"%"*/
})
}
})
},
get_game_match_2: function () {
let that = this
wx.request({
url: "https://wx.toworld-tech.cn/web/get_maxReportNumDays",
data: {
},
success: function (res) {
console.log(res.data.msg.entity);
that.setData({
zhixing_list_2: res.data.msg.entity,
/*my_range: res.data.msg.myself.range,
my_count: "上传数:" + res.data.msg.myself.count*/
})
}
})
},
get_game_match_3: function () {
this.setData({
nickName: wx.getStorageSync("nickName"),
avatarUrl: wx.getStorageSync("avatarUrl")
})
},
get_snap_data: function () {
let that = this
wx.request({
url: select_data + "?uid=" + wx.getStorageSync("uid"),
data: {
aa: 'xcx_education_list',
page: 1,
limit: 10
},
success: function (res) {
console.log(res.data.msg.list);
that.setData({
snap_data_list: res.data.msg
})
}
})
},
getShopPage: function () {
let that = this
wx.request({
url: shopPage + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid") + "&dtb_sid=" + that.data.dtb_sid + "&md5_rtime=" + that.data.md5_rtime,
data: {},
success: function (res) {
var $home_module = res.data.msg.home_module;
// if ($home_module.classify) {
// that.setData({
// g_name: $home_module.classify[0].classify_name,
// g_id: $home_module.classify[0].tid,
// })
// }
that.setData({
home_module: $home_module
})
}
})
},
click_change_tab_color: function (e) {
var that = this;
var change_type = e.currentTarget.dataset.type;
if (change_type == 1) {
that.setData({
change_type: true,
onekey_modular: true
})
that.get_snap_data();
} else if (change_type == 2) {
that.setData({
change_type: false,
onekey_modular: false
})
//请求数据
wx.request({
url: activity_intr + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {},
success: function (res) {
var $introduce = res.data.msg.introduce;
that.setData({
introduce: $introduce
})
WxParse.wxParse('article11', 'html', $introduce, that, 5);
}
})
}
},
commet_click_praise: function (e) { //攻略点赞
//请求数据
var that = this;
var commentid = e.currentTarget.dataset.commentid;
var commenttype = e.currentTarget.dataset.type;
wx.request({
url: join + "?uid=" + wx.getStorageSync("uid"),
data: {
aa: 'prize',
type: commenttype,
oid: commentid
},
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: function (res) {
if (res.data.code == 0) {
wx.showToast({
title: '点赞成功',
icon: 'success',
duration: 1000
})
setTimeout(function () {
//请求数据
wx.request({
url: article_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: 1,
limit: 10
},
success: function (res) {
var $article_list = res.data.msg;
wx.setStorageSync("article_list_pull", $article_list);
wx.setStorageSync("page_article", 1);
that.setData({
$article_list: $article_list
})
}
})
}, 500)
}
}
})
},
previewImage: function (e) {
var index = e.currentTarget.dataset.index;
var indexa = e.currentTarget.dataset.indexa;
var article_list = this.data.article_list[index].banner;
console.info(this.data.article_list,"图片列表");
wx.previewImage({
current: article_list[indexa], // 当前显示图片的http链接
urls: article_list // 需要预览的图片http链接列表
})
},
click_change_tab_color2: function (e) {
var that = this;
var change_type = e.currentTarget.dataset.type;
that.data.change_type_num = change_type;
console.log(change_type,"当前点击的type");
if (change_type == 1) {
that.setData({
change_type1: true,
change_type2: false,
change_type3: false,
camera_story_madul_1: true,
camera_story_madul_2: false,
camera_story_madul_3: false
})
} else if (change_type == 2) {
that.setData({
change_type1: false,
change_type2: true,
change_type3: false,
camera_story_madul_1: false,
camera_story_madul_2: true,
camera_story_madul_3: false
})
//请求数据
wx.request({
url: video_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: 1
},
success: function (res) {
var $video_list = res.data.msg.data;
wx.setStorageSync("video_list", $video_list);
wx.setStorageSync("page", 1);
that.setData({
video_list: $video_list
})
}
})
} else if (change_type == 3) {
that.page3_function();
}
},
page3_function(){
let that = this;
that.setData({
change_type1: false,
change_type2: false,
change_type3: true,
camera_story_madul_1: false,
camera_story_madul_2: false,
camera_story_madul_3: true
})
//请求数据
wx.request({
url: article_list + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: {
page: 1,
limit: 10
},
success: function (res) {
var $article_list = res.data.msg;
wx.setStorageSync("article_list_pull", $article_list);
wx.setStorageSync("page_article", 1);
that.setData({
$article_list: $article_list
})
}
})
},
click_change_zhengyi_list: function (e) {
var that = this;
var btn = e.currentTarget.dataset.btn;
if (btn == 1) {
that.setData({
zhixing_list_box1: true,
zhixing_list_box2: false,
zhixing_list_box3: false,
})
that.get_game_match();
} else if (btn == 2) {
that.setData({
zhixing_list_box1: false,
zhixing_list_box2: true,
zhixing_list_box3: false,
});
that.get_game_match_2();
} else if (btn == 3) {
that.setData({
zhixing_list_box1: false,
zhixing_list_box2: false,
zhixing_list_box3: true,
});
that.get_game_match_3();
}
},
video_detail_fn: function (e) {
var videourl = e.currentTarget.dataset.videourl;
var videoid = e.currentTarget.dataset.videoid;
wx.navigateTo({
url: '/pages/video_detail/video_detail?videourl=' + videourl + "&videoid=" + videoid
})
},
picture_detail_fn: function (e) {
var commentid = e.currentTarget.dataset.commentid;
wx.navigateTo({
url: '/pages/picture_detail/picture_detail?commentid=' + commentid
})
},
switchTab: function (e) {
console.log(e.currentTarget.dataset.n);
var n = e.currentTarget.dataset.n;
// var currentGid = e.currentTarget.dataset.gid;
// var index_classify = true;
// wx.setStorageSync('currentTid', currentGid);
// wx.setStorageSync('index_classify', index_classify)
if (n == 0) {
wx.navigateTo({
url: '/pages/official_details/official_details?munber=4'
})
} else if (n == 1) {
wx.navigateTo({
url: '/pages/problem/problem'
})
} else if (n == 3) {
wx.navigateTo({
url: '/pages/join/join'
})
}
},
register_info: function (options) {
let that = this;
wx.getUserInfo({
success: function (res) {
var userInfo = res.userInfo
var nickName = userInfo.nickName
var avatarUrl = userInfo.avatarUrl
var gender = userInfo.gender //性别 0:未知、1:男、2:女
var province = userInfo.province
var city = userInfo.city
var country = userInfo.country
wx.setStorageSync("avatarUrl", avatarUrl);
wx.setStorageSync("nickName", nickName);
that.setData({
avatarUrl: wx.getStorageSync('avatarUrl'),
nickName: wx.getStorageSync('nickName')
})
var $data = {
nickname: nickName,
avatarurl: avatarUrl,
gender: gender,
province: province,
city: city,
country: country
}
console.log($data)
wx.request({
url: register_info + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
data: $data,
method: "POST",
header: {
"content-type": "application/x-www-form-urlencoded"
},
success: function (res) {
console.log(res);
}
})
},
fail: function (res) {
console.log(res)
},
complete: function (res) {
// console.log(res)
}
})
that.setData({
avatarUrl: wx.getStorageSync('avatarUrl'),
nickName: wx.getStorageSync('nickName')
})
},
shop_homepage: function () {
let that = this;
wx.request({
url: homePage + "?uid=" + wx.getStorageSync("uid") + "&openid=" + wx.getStorageSync("openid"),
header: {
"content-type": "application/x-www-form-urlencoded"
},
data: {},
success: function (res) {
console.log(res)
var $info = res.data.msg.userinfo;
var one_num = parseInt($info.orders_pending_pay_row);
var two_num = parseInt($info.orders_shipment_pending_row);
var three_num = parseInt($info.orders_waiting_receivced_row);
that.setData({
wallet: $info.wallet,
integral: $info.integral,
one_num: one_num,
two_num: two_num,
three_num: three_num
})
}
})
},
//上传攻略
changToRider: function () {
wx.navigateTo({
url: '/pages/upload_raiders/upload_raiders'
})
},
onPullDownRefresh: function (e) {
wx.stopPullDownRefresh();
},
comment_share_btn: function (e) {
this.setData({
is_sign: true,
shareid: e.currentTarget.dataset.shareid
})
var shareid = e.currentTarget.dataset.shareid;
wx.setStorageSync('shareid', shareid)
},
onShareAppMessage: function (res) {
var that = this;
console.log(wx.getStorageSync("shareid"));
if (res.from === 'button') {
// 来自页面内转发按钮
// console.log(res.target)
var aaaa = res.target.dataset.shareid;
}
return {
title: wx.getStorageSync("share_title"),
path: '/pages/picture_detail/picture_detail?commentid=' + aaaa,
imageUrl: wx.getStorageSync("share_pic"),
success: function (res) {
// 转发成功
that.setData({
is_sign: false
})
},
fail: function (res) {
// 转发失败
},
complete: function (res) {
// 操作完成
}
}
}
}) |
import React from "react";
import { useToasts } from "react-toast-notifications";
export default function Feedback() {
const { addToast } = useToasts();
return (
<form className="container">
<section className="text-gray-700 body-font relative">
<h1 className="text-3xl font-medium title-font text-gray-900 text-center">
Feedback
</h1>
<div className="container px-5 py-12 mx-auto flex sm:flex-no-wrap flex-wrap">
<div className="lg:w-2/3 md:w-1/2 bg-gray-300 rounded-lg overflow-hidden sm:mr-10 p-10 flex items-end justify-start relative">
<iframe
width="100%"
height="100%"
className="absolute inset-0"
frameBorder="0"
title="map"
marginHeight="0"
marginWidth="0"
scrolling="no"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3375.9195155713787!2d76.35140991563149!3d32.2063993201664!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x391b530e24726e0d%3A0x71ff0cae0784712d!2sAltCampus%20Services%20Pvt.%20Ltd!5e0!3m2!1sen!2sin!4v1602431039097!5m2!1sen!2sin"
></iframe>
</div>
<div className="lg:w-1/3 md:w-1/2 bg-white flex flex-col md:ml-auto w-full md:py-8 mt-8 md:mt-0">
<h2 className="text-gray-900 text-lg mb-1 font-medium title-font">
Feedback
</h2>
<p className="leading-relaxed mb-5 text-gray-600">
If you have any feedback or suggestion for us, please share with
us
</p>
<input
className="bg-white rounded border border-gray-400 focus:outline-none focus:border-pink-500 text-base px-4 py-2 mb-4"
placeholder="Name"
type="text"
/>
<input
className="bg-white rounded border border-gray-400 focus:outline-none focus:border-pink-500 text-base px-4 py-2 mb-4"
placeholder="Email"
type="email"
/>
<textarea
className="bg-white rounded border border-gray-400 focus:outline-none h-32 focus:border-pink-500 text-base px-4 py-2 mb-4 resize-none"
placeholder="Message"
></textarea>
<button
type="submit"
onClick={(e) => {
e.preventDefault();
return addToast("Thank you for your feedback", {
appearance: "success",
autoDismiss: true,
});
}}
className="text-white bg-indigo-700 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded text-lg"
>
Button
</button>
<p className="text-xs text-gray-500 mt-3">
Please fill all the details
</p>
</div>
</div>
</section>
</form>
);
}
|
/*
Usar método fill() para preencher a matriz
Usar o for (var key in dictionary){
dictionary[key];
}
para percorrer um dicionario
Por enquanto nao vou me preocupar na aquisição dos dados para o dicionario
parseInt transformar uma string em um número
*/
//Passo 1, vetor com os dados de tamanho
var dictionary = {'1':3, '2':5, '3':6}; // guardará o dados em chave -> valor
// Passo 2, inicializar o tamanho da matriz
var mochila = 5;
//Passo3, criar função para criar matriz e inicializar com 0's
function inicializaMatriz(linha, coluna) {
var matriz = Array(linha);
for(var i=0; i<matriz.length; i++){
matriz[i] = Array(coluna).fill(0);
}
return matriz;
}
/*Passo 4 criar a lógica
É fato que iremos percorrer todo o array então faremos um for para isso.
Não percorreremos, a linha 0 e a coluna 0, pois seus valores sempre serão 0.
Isso acontecerá, pois na linha 0, estamos considerando um objeto de tamanho 0,
e na coluna 0, consideramos uma mochila de tamanho 0.
Ambos o casos, o máximo valor possivel é 0.
*/
function mochilaBinaria(matriz, dictionary){
var i=1;
// Vamos começar a percorrer a matriz a partir da linha 1
for(var i =1, var keys in dictionary; i<linha; i++){
for(var j=1; j<coluna; j++){
//O que queremos saber?
//queremos saber se
// o objeto que pegamos cabe dentro da mochilaBinaria
// caso Verdade:
// Subtraimos o seu tamanho do tamanho da capacidade da mochilaBinaria
// caso contrario
// usaremos o valor calculado na sua posição imediata superior
// (pois esse valor significa o maior valor encontrado até o momento para uma mochilaBinaria daquele tamanho)
//
if(dictionary[])
}
}
for(var j=0; j<coluna)
}
}
|
const { GraphQLInputObjectType, GraphQLString } = require("graphql");
const { createPost } = require("../../../services/post.service");
const { verifyLogIn } = require("../../../services/auth.service");
const postType = require("../../types/post");
module.exports = {
type: postType,
description: "Create new post",
args: {
input: {
type: new GraphQLInputObjectType({
name: "PostInput",
fields: {
text: { type: GraphQLString },
name: { type: GraphQLString }
},
description: "Input data to create post"
})
}
},
resolve: async (root, { input }, { request }) => {
const profile = await verifyLogIn(request.headers);
const { text, name } = input;
const postData = { text, name };
return await createPost({ postData, profile });
}
};
|
import React, { useState, useEffect } from 'react'
import { Link, Redirect } from 'react-router-dom'
import { withRouter } from 'react-router-dom'
function BackendEditLocation(props) {
// const [vendorId, setVendorId] = useState('')
const [locationName, setLocationName] = useState('')
const [locationAddress, setLocationAddress] = useState('')
const [locationPhone, setLocationPhone] = useState('')
// const vendorId = sessionStorage.getItem('vendorOnlyId')
// const locationData = { locationName, locationAddress, locationPhone }
// console.log(locationData)
let locationid = Number(props.match.params.id)
console.log(locationid)
// return ()
async function getLocation() {
const request = new Request('http://localhost:3333/vendor/getvendoronelocation/' + locationid, {
method: 'GET',
credentials: 'include',
headers: new Headers({
Accept: 'application/json',
'Content-Type': 'appliaction/json',
}),
})
const response = await fetch(request)
const data = await response.json()
console.log('data',data)
setLocationName(data[0].locationName)
setLocationAddress(data[0].locationAddress)
setLocationPhone(data[0].locationPhone)
}
useEffect(() => {
getLocation()
}, [])
//更新資料
// const handleSubmit = event => {
// event.preventDefault()
// sendLocationDataToServer(locationData, () => alert('更新據點成功'))
// async function sendLocationDataToServer(locationData, callback) {
// const request = new Request(
// 'http://localhost:3333/vendor/addvendorlocation',
// {
// method: 'POST',
// credentials: 'include',
// body: JSON.stringify(locationData),
// headers: {
// Accept: 'application/json',
// 'Content-Type': 'application/json',
// },
// }
// )
// const response = await fetch(request)
// console.log('response', response)
// const data = await response.json()
// callback()
// if (data) {
// return (
// <>
// <Redirect to="/dashboard/msg" />
// </>
// )
// }
// }
// }
// function delLocation() {
// const request = new Request('http://localhost:3333/vendor/delvendorlocation/' + locationid, {
// method: 'GET',
// credentials: 'include',
// headers: new Headers({
// Accept: 'application/json',
// 'Content-Type': 'appliaction/json',
// }),
// })
// const response = fetch(request)
// const data = response.json()
// alert('已刪除據點')
// }
return (
<>
<div className="content">
<h3>據點管理</h3>
<hr />
<h5 className="text-center">新增據點</h5>
<div className="d-flex justify-content-end">
<Link className="btn btn-primary mb-2" to="/dashboard/location">
回上頁
</Link>
</div>
<form>
<div className="form-group">
<label>據點名稱</label>
<input
type="text"
className="form-control"
name="locationName"
value={locationName}
onChange={e => setLocationName(e.target.value)}
required="required"
/>
</div>
<div className="mb-3">
<label for="validationTextarea">據點地址</label>
<input
type="text"
className="form-control"
value={locationAddress}
name="locationAddress"
onChange={e => setLocationAddress(e.target.value)}
required="required"
/>
</div>
<div className="mb-3">
<label for="validationTextarea">據點電話</label>
<input
type="text"
className="form-control"
value={locationPhone}
name="locationPhone"
onChange={e => setLocationPhone(e.target.value)}
required="required"
/>
</div>
<button
type="submit"
className="btn btn-main col-3 mb-3 mr-2"
>
更新據點
</button>
<button
type="submit"
className="btn btn-danger col-3 mb-3"
>
刪除據點
</button>
</form>
</div>
</>
)
}
export default withRouter(BackendEditLocation)
|
const User = require('./User')
const Registry = require('./Registry')
module.exports = {
...User,
...Registry
}
|
const CTA = () => (
<button type='button'>
Buy your copy
</button>
)
export default CTA
|
export default {
FETCH_SUCCESS: 'FETCH_SUCCESS',
FETCH_ERROR: 'FETCH_ERROR'
} |
describe("Agent Commission", ()=> {
beforeEach(()=>{
myAgentClass = new Agent();
});
it("should calculate the factor for > 999 policies", ()=> {
let commissionFactorReturned = myAgentClass.factor(1000);
expect(commissionFactorReturned).toBe(10);
})
it("should calculate the factor for < 999 policies", ()=> {
commissionRate = 5;
let commissionFactorReturned = myAgentClass.factor(100);
expect(commissionFactorReturned).toBe(commissionRate);
})
it("should calculate the commission using 1000 policies sold, the factor and the commission rate", ()=> {
commissionRate = 5;
let commissionReturned = myAgentClass.commissionEarned(1000,10,commissionRate)
expect(commissionReturned).toBe(50000);
})
it("should calculate the tax to be deducted using the salary > 30000", ()=> {
let taxReturned = myAgentClass.taxAmountDue(50000)
expect(taxReturned).toBe(15000);
})
it("should calculate the tax to be deducted using the salary < 30000", ()=> {
let taxReturned = myAgentClass.taxAmountDue(1000)
expect(taxReturned).toBe(200);
})
it("should record the sales over a quarter",()=>{
let salesReturn = ['sales Jan 2000', 'sales Feb 2500', 'sales Mar 4000', 'Total sales 8500']
let salesExpected = myAgentClass.quarterlySales();
expect(salesReturn).toEqual(salesExpected);
})
}) |
import React from 'react';
import './index.css';
import ControlLine from '../controlLine';
import ControlLineHor from '../controlLineHor';
export default class Item extends React.Component {
render(){
return (
this.props.direction==='vertical'?
<div
className='boundary-item-box'
style={{...this.props.style, height:this.props.size+'%'}}
>
{
!this.props.noControl &&
<ControlLineHor
location='bottom'
changeSize={this.props.changeSize}
changeComplete={this.props.changeComplete}
/>
}
<div
className='boundary-item-content'
style={this.props.block?{height:'100%'}:{}}
>
{this.props.children}
</div>
</div>
:
<div
className='boundary-item-box'
style={{...this.props.style, width:this.props.size+'%'}}
>
{
!this.props.noControl &&
<ControlLine
location='right'
changeSize={this.props.changeSize}
changeComplete={this.props.changeComplete}
/>
}
<div
className='boundary-item-content'
style={this.props.block?{height:'100%'}:{}}
>
{this.props.children}
</div>
</div>
)
}
} |
var map, pois, marcador, vectorLayer, lastfeature, testLayer;
MAX_marcadores = 30;
function init() {
ficheroTexto = "../map2/textfile.txt";
//console.log("init()");
// var icon1 = new
// OpenLayers.Icon('http://www.openlayers.org/dev/img/marker.png', size,
// offset);
// var icon2 = new
// OpenLayers.Icon('http://www.openlayers.org/dev/img/marker-gold.png',
// size, offset);
// var icon3 = new
// OpenLayers.Icon('http://www.openlayers.org/dev/img/marker-green.png',
// size, offset);
iconoUltimaPos = 'http://dev.openlayers.org/img/marker-green.png';
iconoPos = 'http://dev.openlayers.org/img/marker.png';
// map = new OpenLayers.Map('map');
// map.addLayer(new OpenLayers.Layer.OSM());
map = new OpenLayers.Map("map", {
// projection: 'EPSG:3857',
layers : [ new OpenLayers.Layer.OSM(),
new OpenLayers.Layer.Google("Google Physical", {
type : google.maps.MapTypeId.TERRAIN,
visibility : false
}), new OpenLayers.Layer.Google("Google Streets", // the
// default
{
numZoomLevels : 20,
visibility : false
}), new OpenLayers.Layer.Google("Google Hybrid", {
type : google.maps.MapTypeId.HYBRID,
numZoomLevels : 20,
visibility : false
}), new OpenLayers.Layer.Google("Google Satellite", {
type : google.maps.MapTypeId.SATELLITE,
numZoomLevels : 22,
visibility : false
}) ]
});
/*
* Layer style
*/
// we want opaque external graphics and non-opaque internal graphics
var layer_style = OpenLayers.Util.extend({},
OpenLayers.Feature.Vector.style['default']);
layer_style.fillOpacity = 0.2;
layer_style.graphicOpacity = 1;
/*
* Blue style
*/
var style_blue = OpenLayers.Util.extend({}, layer_style);
style_blue.strokeColor = "blue";
style_blue.fillColor = "blue";
style_blue.graphicName = "star";
style_blue.pointRadius = 10;
style_blue.strokeWidth = 3;
style_blue.rotation = 45;
style_blue.strokeLinecap = "butt";
/*
* Green style
*/
var style_green = {
strokeColor : "#00FF00",
strokeWidth : 3,
strokeDashstyle : "dashdot",
pointRadius : 6,
pointerEvents : "visiblePainted"
};
// Crear Marcadores de posiciones
pois = new OpenLayers.Layer.Text("Mis puntos", {
location : ficheroTexto,
projection : map.displayProjection
});
// No se usa pero crear los Marcadores
wktFormat = new OpenLayers.Format.Text();
vectorLayer = new OpenLayers.Layer.Vector("Mis puntos Vector", {
protocol : new OpenLayers.Protocol.HTTP({
url : ficheroTexto,
format : wktFormat
}),
styleMap: new OpenLayers.StyleMap({
externalGraphic: '../markers/marker-green.png'
}),
strategies : [ new OpenLayers.Strategy.Fixed() ],
eventListeners : {
"featuresadded" : function(e) {
if (vectorLayer.features.length > MAX_marcadores){
while (vectorLayer.features.length > MAX_marcadores){
marcador = vectorLayer.features[0];
vectorLayer.removeFeatures(marcador);
}
}
// group the tracks by fid and create one track for
// every fid
// var fid, points = [], feature;
marcador = vectorLayer.features[vectorLayer.features.length - 1];
//console.log(marcador);
// marcador.marker.setUrl('Ol_icon_blue_example.png');
marcador.style.externalGraphic = iconoUltimaPos;
vectorLayer.redraw();
}
}
});
selectControl = new OpenLayers.Control.SelectFeature(vectorLayer, {
onSelect : onFeatureSelect,
onUnselect : onFeatureUnselect
});
map.addControl(selectControl);
selectControl.activate();
// Crear vector de la ruta y centrar mapa al ultimo punto
var puntoFinal = new OpenLayers.LonLat(-71, 42);
testLayer = new OpenLayers.Layer.PointTrack("Mi camino", {
protocol : new OpenLayers.Protocol.HTTP({
url : ficheroTexto,
format : wktFormat
}),
strategies : [ new OpenLayers.Strategy.Fixed() ],
dataFrom : OpenLayers.Layer.PointTrack.TARGET_NODE,
styleFrom : OpenLayers.Layer.PointTrack.TARGET_NODE,
projection : map.displayProjection,
eventListeners : {
"beforefeaturesadded" : function(e) {
// group the tracks by fid and create one track for
// every fid
var fid, points = [], feature;
var inicioCamino = 0;
if (e.features.length>MAX_marcadores){
/*var marcadorPT
while (testLayer.features.length > MAX_marcadores){
marcadorPT = testLayer.features[0];
console.log(marcadorPT);
console.log(e);
console.log(testLayer);
testLayer.removeFeatures(marcadorPT);
} */
inicioCamino = e.features.length - MAX_marcadores;
console.log(inicioCamino);
}
console.log(e.features.length);
for ( var i = inicioCamino, len = e.features.length; i < len; i++) {
feature = e.features[i];
if ((fid && feature.fid !== fid) || i === len - 1) {
points.push(feature);
epsg4326 = new OpenLayers.Projection("EPSG:4326");
epsg900913 = new OpenLayers.Projection("EPSG:900913");
puntoFinal = feature.clone().geometry.transform(
epsg900913, epsg4326);
var lonLattemp = new OpenLayers.LonLat(puntoFinal.x,
puntoFinal.y).transform(
new OpenLayers.Projection("EPSG:4326"), // transform
// from
// WGS
// 1984
map.getProjectionObject() // to Spherical
// Mercator
// Projection
);
map.setCenter(lonLattemp, 16);
this.addNodes(points, {
silent : true
});
points = [];
} else {
points.push(feature);
}
fid = feature.fid;
}
return false;
}
}
});
// map.addLayer(vectorLayer);
map.addLayer(testLayer);
map.addLayer(vectorLayer);
// map.addLayer(pois);
// create layer switcher widget in top right corner of map.
var layer_switcher = new OpenLayers.Control.LayerSwitcher({});
map.addControl(layer_switcher);
// Set start centrepoint and zoom
var lonLat = new OpenLayers.LonLat(puntoFinal.x, puntoFinal.y).transform(
new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
map.getProjectionObject() // to Spherical Mercator Projection
);
var zoom = 16;
map.setCenter(lonLat, zoom);
// marcador=pois.features[pois.features.length-1];
// marcador.setUrl('Ol_icon_blue_example.png');
// marcador.marker.setUrl('Ol_icon_blue_example.png');
// updateLast();
}
function updateLasti_old() {
marcador = pois.features[pois.features.length - 1];
marcador.marker.setUrl('Ol_icon_blue_example.png');
}
function onFeatureSelect(feature) {
// var feature = event.feature;
var content = feature.attributes.title + '<br/>'
+ feature.attributes.description;// feature.attributes.name +
// '<br/>'+feature.attributes.description;
popup = new OpenLayers.Popup.FramedCloud("chicken", feature.geometry
.getBounds().getCenterLonLat(), new OpenLayers.Size(100, 100),
content, null, true, onFeatureUnselect);
feature.popup = popup;
map.addPopup(popup);
// GLOBAL variable, in case popup is destroyed by clicking CLOSE box
lastfeature = feature;
}
function onFeatureUnselect(event) {
var feature = lastfeature;
if (feature.popup) {
map.removePopup(feature.popup);
feature.popup.destroy();
delete feature.popup;
}
} |
'use strict';
const HappyPack = require('happypack');
const os = require('os');
const path = require('path');
const happyThreadPool = HappyPack.ThreadPool({ size: os.cpus().length });
const PROJECT_DIR = process.cwd();
const NODE_ENV = exports.NODE_ENV = process.env.NODE_ENV || 'development';
exports.isDev = NODE_ENV === 'development';
exports.isProd = NODE_ENV === 'production';
// HappyPack生成器
exports.happyPack = (id, loaders) => new HappyPack({
id,
loaders,
debug: false,
verbose: false,
// threads: 4,
threadPool: happyThreadPool // 自动分配线程池
});
const cssModules = false;
const cssModuleStr = 'css-loader?-autoprefixer&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]';
exports.cssLoader = cssModules ? cssModuleStr : 'css-loader?-autoprefixer';
exports.cssProcessors = [
{ test: /\.css$/, use: '' },
{ test: /\.scss$/, use: 'sass-loader?sourceMap' },
{ test: /\.less$/, use: 'less-loader?sourceMap' },
{ test: /\.styl$/, use: 'stylus-loader?sourceMap' },
{ test: /\.sass$/, use: 'sass-loader?indentedSyntax&sourceMap' }
];
exports.resolve = (...dir) => path.join(PROJECT_DIR, ...dir);
|
module.exports = function calculateColumnStandardDeviation(trainingData) {
let columnTotals = []
let columnMeans = []
let columnRootMeanSquaredDeviations = []
let columnStandardDeviations = []
// set up column totals array
for (let i = 0; i < trainingData[0].length; i++) {
columnTotals.push(0)
}
// set up root mean squared devations
for (let i = 0; i < trainingData[0].length; i++) {
columnRootMeanSquaredDeviations.push(0)
}
// calculate column totals for each column.
for (let i = 0; i < trainingData.length; i++) {
for (let j = 0; j < trainingData[i].length; j++) {
columnTotals[j] = columnTotals[j] + trainingData[i][j]
}
}
// calculate the means
for (let i = 0; i < columnTotals.length; i++) {
columnMeans[i] = columnTotals[i] / trainingData.length
}
// console.log(columnMeans)
// work out root mean squared deviation
for (let i = 0; i < trainingData.length; i++) {
for (let j = 0; j < trainingData[i].length; j++) {
columnRootMeanSquaredDeviations[j] += Math.pow(trainingData[i][j] - columnMeans[j], 2)
}
}
// get standard deviations
for (let i = 0; i < columnRootMeanSquaredDeviations.length; i++) {
columnStandardDeviations[i] = Math.sqrt(columnRootMeanSquaredDeviations[i] / (trainingData.length - 1))
}
return columnStandardDeviations
} |
const {Controller} = require('egg');
module.exports = class extends Controller{
async submit(){
try{
let res = await this.app.mysql.get('exam',{
userid:this.ctx.userinfo.id,
date:this.ctx.request.body.date
})
if(res){ //提交过
await this.app.mysql.update('exam',{
id:res.id,
...this.ctx.request.body
});
}else{ //
await this.app.mysql.insert('exam',{
userid:this.ctx.userinfo.id,
...this.ctx.request.body
});
}
this.ctx.body = {
code:1,
msg:'success'
}
}catch(error){
console.log(error);
this.ctx.body = {
code:0,
msg:'error'
}
}
}
async search(){
let {userIdentityTitle,id} = this.ctx.userinfo
let data = null;
if(userIdentityTitle === '学生'){
data = await this.app.mysql.select('exam',{
where:{
userid:id
}
})
}else{
let user = await this.app.mysql.select('user');
data = await this.app.mysql.select('exam')
data = data.map(item=>{
item.username = user.find(val=>val.id===item.userid).username;
return item;
})
}
this.ctx.body = {
code:1,
msg:'success',
data:[...data]
}
}
async getag(){
let data = await this.app.mysql.select('exam');
let date = Array.from(new Set(data.map(item=>new Date(item.date)*1)));
let res = date.map(item=>{
let textAg = 0;
let codeAg = 0;
let itemNum = data.filter(val=>new Date(val.date)*1 === item);
itemNum.forEach(item=>{
textAg += item.textNum;
codeAg += item.codeNum
});
textAg = (textAg / itemNum.length).toFixed(2);
codeAg = (codeAg / itemNum.length).toFixed(2);
return {
textAg,
codeAg,
date:new Date(item).toLocaleDateString()
}
})
this.ctx.body = {
code:1,
msg:'success',
data:res
}
}
} |
/**
* Ant
* 蟻のモデル
* @param int x フィールド上の蟻のx座標(初期値)
* @param int y フィールド上の蟻のy座標(初期値)
* @param DIRECTION direction 蟻が向いている方向(初期値)。enum"DIRECTION"で定義
* @see DIRECTION
* @author T.Kitajima
* @version 0.9
*/
function Ant(x, y, direction) {
this.x = x;
this.y = y;
this.direction = direction;
}
Ant.prototype = {
/**
* 一歩前進し、規定の動作(左右回転とフィールドの色反転)を行う。
* @param Field field フィールドオブジェクト
*/
goAhead : function(field) {
// 現在地のフィールドの色を反転する
field.turnOver(this.x, this.y);
// 移動先座標を求め、一歩移動する
var destination = field.getDestinationPoint(this.x, this.y, this.direction);
this.x = destination[0];
this.y = destination[1];
// 移動先座標の色を調べる
var color = field.getColor(this.x, this.y);
// 黒(false)なら左回転、白(true)なら右回転
if (color){
this._turnRight();
}else{
this._turnLeft();
}
},
/**
* 右向け、右!
*/
_turnRight : function() {
// この計算式は、神しか知らないので邪道
this.direction++;
if(this.direction>3) this.direction=0;
},
/**
* 左向け、左!
*/
_turnLeft : function() {
// この計算式は、神しか知らないので邪道
this.direction--;
if(this.direction<0) this.direction=3;
}
};
|
function message(name, hngid, language, email){
console.log(`Hello World, this is ${name} with HNGi7 ID ${hngid} and email ${email} using ${language} for stage 2 task`)
}
message("Emediong Abara", "HNG-00594", "JavaScript", "emediongabara@gmail.com" )
|
// class Jeu {
// // propriétés dans une classe
// essais = [];
// jouer() {
// }
// }
class Jeu {
// propriétés dans une classe (# pour private)
#essais = [];
entierAlea = 24;
jouer() { // -> défini dans le prototype
console.log(this.#essais);
}
}
|
module.exports = {
baseUrl: 'http://timage.xbniao.com'
}; |
const initial_state = {
status:null,
data:[]
}
export const getData = (state=initial_state, action) => {
switch(action.type){
case 'getData' :
if(action.payload.status)
return {
...state,
status:action.payload.status,
data: action.payload.data
}
else return {
...state,
status:action.payload.status,
data: []
}
default:
return state;
}
} |
import TableService from '../services/TableService'
import Util from '../utils/Utils'
const util = new Util()
const getAllTables = async (req, res) => {
try {
const allTables = await TableService.getAllTables()
if (allTables.length > 0) {
util.setSuccess(200, 'Tables retrieved', allTables)
} else {
util.setSuccess(200, 'No Table found')
}
return util.send(res)
} catch (error) {
util.setError(400, error)
return util.send(res)
}
}
const addTable = async (req, res) => {
if (!req.body.orderId || !req.body.productId) {
util.setError(400, 'Please provide complete details')
return util.send(res)
}
const newTable = req.body
try {
const createdTable = await TableService.addTable(newTable)
util.setSuccess(201, 'Table Added!', createdTable)
return util.send(res)
} catch (error) {
util.setError(400, error.message)
return util.send(res)
}
}
const updatedTable = async (req, res) => {
const alteredTable = req.body
const { id } = req.params
if (!Number(id)) {
util.setError(400, 'Please input a valid numeric value')
return util.send(res)
}
try {
const updateTable = await TableService.updateTable(id, alteredTable)
if (!updateTable) {
util.setError(404, `Cannot find Table with the id: ${id}`)
} else {
util.setSuccess(200, 'Table updated', updateTable)
}
return util.send(res)
} catch (error) {
util.setError(404, error)
return util.send(res)
}
}
const getTable = async (req, res) => {
const { id } = req.params
if (!Number(id)) {
util.setError(400, 'Please input a valid numeric value')
return util.send(res)
}
try {
const theTable = await TableService.getTable(id)
if (!theTable) {
util.setError(404, `Cannot find Table with the id ${id}`)
} else {
util.setSuccess(200, 'Found Table', theTable)
}
return util.send(res)
} catch (error) {
util.setError(404, error)
return util.send(res)
}
}
const deleteTable = async (req, res) => {
const { id } = req.params
if (!Number(id)) {
util.setError(400, 'Please provide a numeric value')
return util.send(res)
}
try {
const tableToDelete = await TableService.deleteTable(id)
if (tableToDelete) {
util.setSuccess(200, 'Table deleted')
} else {
util.setError(404, `Table with the id ${id} cannot be found`)
}
return util.send(res)
} catch (error) {
util.setError(400, error)
return util.send(res)
}
}
export default {
getAllTables,
addTable,
updatedTable,
getTable,
deleteTable
}
|
var searchData=
[
['ph_5frequest_5ft',['PH_Request_t',['../group___k_n_x___p_h___sup___exported___types.html#ga78f5bed722457f025cbc6786d5730d3e',1,'KNX_Ph.h']]],
['ph_5fstatus_5ft',['PH_Status_t',['../group___k_n_x___p_h___sup___exported___types.html#ga5b665a94bef912fbfbea7cc949ed0e49',1,'KNX_Ph.h']]]
];
|
import React, { Component } from 'react';
import {
View,
Text ,
Platform,
ListView,
StyleSheet,
TouchableHighlight,
AsyncStorage,
Dimensions,
Image
} from 'react-native';
import { Icon } from 'react-native-elements';
import { Button } from '../src/Button';
import { connect } from 'react-redux';
import { SwipeListView,SwipeRow } from 'react-native-swipe-list-view';
import * as actions from '../actions';
var {height, width} = Dimensions.get('window');
class OldTripsScreen extends Component {
constructor(props) {
super(props);
this.ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
basic: true,
listViewData: null,
buttonAvailable : true
};
}
static navigationOptions = ({ navigation }) => {
const { params = {} } = navigation.state;
return {
headerTitle : 'Otoyol Süresi',
headerLeft: <Text style={{fontSize:12,fontWeight:'500', color: '#fff', width:70, alignItems:'center',textAlign:'center',marginLeft:10}} onPress={() => navigation.navigate('info')}>Hakkımızda</Text>,
headerTitleStyle: {
fontSize : 21,
alignSelf :'center',
textAlign: 'center'
},
headerRight: <Text style={{fontSize:12,fontWeight:'500', color: '#fff', width:60, alignItems:'center',textAlign:'center',marginRight:10 }} onPress={()=> params.handleRemove()}> Kayıtlı verileri sil </Text>,
headerTintColor: "#fff",
headerStyle : {
marginTop : Platform.OS === 'android' ? 24 : 0,
paddingBottom: 10,
backgroundColor : "#267689",
},
tabBarVisible : false,
}
};
navigationController (text){
if(this.state.buttonAvailable){
this.setState({
buttonAvailable: false
})
this.props.navigation.navigate('setTrip');
setTimeout(()=>{
this.setState({
buttonAvailable: true
})
},2500)
}
}
_removeAllItems() {
this.props.removeAllTrips();
}
componentDidMount() {
this.props.navigation.setParams({ handleRemove: this._removeAllItems.bind(this) });
}
removeItem = (item,secId,rowId) => {
this.props.removeOldTrip(rowId);
}
_selectedRoute(data){
this.props.selectRoute(data);
this.props.navigation.navigate('countDown');
}
_vehicleType(data){
switch (data.type) {
case "Otomobil":
return parseInt(data.Km).toFixed(1)+ "KM 🚘";
break;
case "Otobüs":
return parseInt(data.Km).toFixed(1)+ "KM 🚍";
break;
case "Minibüs":
return parseInt(data.Km).toFixed(1)+ "KM 🚍";
break;
case "Kamyonet":
return parseInt(data.Km).toFixed(1)+ "KM 🚚";
break;
case "Panelvan":
return parseInt(data.Km).toFixed(1)+ "KM 🚐";
break;
case "Motosiklet (L3)":
return parseInt(data.Km).toFixed(1)+ "KM 🏍";
break;
case "Motosiklet (L4, L5, L7)":
return parseInt(data.Km).toFixed(1)+ "KM 🏍";
break;
default:
}
}
render() {
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
if(this.props.tripList.length > 0){
return (
<Image source={require('../img/giris.png')}
style={styles.backgroundImage}>
<View style= {styles.container}>
<SwipeListView
disableRightSwipe={false}
removeClippedSubviews= {false}
enableEmptySections={true}
dataSource={ds.cloneWithRows(this.props.tripList)}
renderRow={ data => (
<TouchableHighlight onPress={() => this._selectedRoute(data)}>
<View style={styles.rowFront}>
<Text style={styles.removeText}>{data.FirstGate} - {data.LastGate}</Text>
<Text style={styles.warningText}>{this._vehicleType(data)}</Text>
</View>
</TouchableHighlight>
)}
renderHiddenRow={ (data,secId,rowId) => (
<View style={styles.rowBack}>
<Text></Text>
</View>
)}
rightOpenValue={-2}
/>
<View style={styles.skipButton}>
<Button
onPress={() => this.navigationController()}>Yeni Rota Oluştur
</Button>
</View>
</View>
</Image>
)
}else{
return(
<Image source={require('../img/giris.png')}
style={styles.backgroundImage}>
<View style= {styles.Emptycontainer}>
<Text style={styles.textWarning}> Kayıtlı Rotanız Bulunmamaktadır</Text>
<View style={styles.skipButton}>
<Button onPress={() => this.navigationController()}> Yeni Rota Oluştur </Button>
</View>
</View>
</Image>
)
}
}
}
const styles = {
container :{
backgroundColor: 'rgba(0,0,0,0)',
flex: 1
} ,
Emptycontainer:{
justifyContent: 'space-between',
alignItems :'center',
flex :1
},
iconStyle : {
marginLeft : 10
},
rowFront: {
alignItems: 'center',
flexDirection: 'row',
backgroundColor: 'rgba(0,0,0,0)',
borderBottomColor: '#95a5a6',
borderBottomWidth: 2,
justifyContent: 'space-between',
height: 60,
},
warningText : {
color : '#e8210b',
fontSize :16,
fontWeight:'500',
width: width / 3 - 10 ,
justifyContent : 'flex-end',
textAlign:'right',
paddingRight:5
},
rowBack: {
alignItems: 'center',
backgroundColor: 'rgba(0,0,0,0)',
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
paddingLeft: 15,
},
removeText :{
paddingLeft: 5,
alignContent:'flex-start',
fontSize :16,
fontWeight:'500',
width: width * 2 / 3 + 5,
color : '#000'
},
skipButton:{
width:width,
height: 55,
marginBottom : 30,
marginTop: 15
},
textWarning : {
fontSize: 30,
fontWeight: '400',
marginTop:50,
backgroundColor :'rgba(0,0,0,0)',
alignItems:'center',
justifyContent:'center',
textAlign:'center',
alignSelf :'center',
color: '#C9CFD4'
},
backgroundImage:{
flex: 1,
width: null,
height: null,
resizeMode: 'cover',
}
}
const mapStateToProps = state => {
return {
tripList : state.tripList,
}
};
export default connect(mapStateToProps,actions)(OldTripsScreen);
|
const Koa = require('koa');
const Router = require('koa-router');
const app = new Koa();
//简单的koa-router使用
// const router = new Router();
// router.get('/', ctx => {
// ctx.body = 'get request';
// })
// .get('/test', ctx => {
// ctx.body = 'get test';
// });
// app.use(router.routes())
// .use(router.allowedMethods());
//复杂一点的应用
//home
let home = new Router();
home.get('/', async ctx => {
ctx.body = 'home page';
})
.get('/test2', async ctx => {
ctx.body = 'home-test2 page';
});
//index
let index = new Router();
index.get('/', async ctx => {
ctx.body = 'indnx page';
})
.get('/test2', async ctx => {
ctx.body = `index-test2 page; query ${ctx.querystring}`;
});
//整合 routes
let router = new Router();
router.use('/home', home.routes(), home.allowedMethods());
router.use('/index', index.routes(), index.allowedMethods());
//加载路由
app.use(router.routes())
.use(router.allowedMethods());
app.listen(3000, () => {
console.log('run ports 3000')
}) |
/* eslint-disable react/react-in-jsx-scope */
/* eslint-disable jsx-a11y/anchor-is-valid */
import './App.scss';
import logo from './assets/Logo/Wordmark.svg';
import MessagePreview from './components/reusables/MessagePreview';
import UserPreview from './components/reusables/UserPreview';
import Thread from './components/messaging/Thread';
import data from './assets/data';
const {
activateThread,
threads,
directMessages
} = data;
function App() {
return (
// Index Component
<div className="swarm">
<div className="swarm__landing">
<a
className="swarm__landing__logo"
href="#"
>
<img
alt="buble logo"
src={logo}
/>
</a>
<div className="swarm__landing__inbox">
<h4>Team</h4>
{
threads.map((thread) => {
const {
unreadCount,
title,
content,
} = thread;
return (
<MessagePreview
key={Math.random()}
content={content}
title={title}
unreadCount={unreadCount}
/>
);
})
}
</div>
<div className="swarm__landing__inbox">
<h4>Personal</h4>
{directMessages.map((dm) => {
return (
<UserPreview
key={Math.random()}
dm={dm || {}}
/>
);
})}
</div>
</div>
<Thread
activateThread={activateThread}
/>
</div>
);
}
export default App;
|
import React, {Component} from 'react';
import Map from '../components/Map'
import Board from '../components/Board'
import Footer from '../components/Footer'
import chabokpush from 'chabokpush';
import Storage from '../helper/Storage';
import {size} from '../helper/Size';
import config from '../config/chabok.json';
import queryString from 'query-string';
import _ from "lodash";
const objectAssignDeep = require(`../helper/objectAssignDeep`);
const asyncTimedCargo = require('async-timed-cargo');
export default class App extends Component {
constructor() {
super();
this.state = {
markers: [],
center: {
lat: 35.759172,
lng: 51.400824
},
zoom: 18,
chabok: 'offline',
stats: {
digging: 0,
winner: 0,
captain: 0
}
};
this.options = 'dev' in this.getQueryStringObject() ? config.DEVELOPMENT : config.PRODUCTION;
this.push = new chabokpush.Chabok(this.options);
this.chabok();
this.cargoHandler(25, 500)
}
cloneDeep(val) {
return JSON.parse(JSON.stringify(val))
}
componentDidUpdate() {
this.state.markers && size(this.state.markers) && Storage.set(this.options.appId, this.cloneDeep(this.state.markers));
this.state.stats && size(this.state.stats) && Storage.set('stats', this.cloneDeep(this.state.stats));
}
getUnregisteredUser() {
const users = Storage.get(this.options.appId) || [];
return _.map(users, user => user.data && !user.data.userInfo ? user : null);
}
getValidUserCount() {
return size(_.filter(this.state.markers, user => user.data && user.data.userInfo));
}
fixUserBrokenData() {
const getUnregisteredUser = this.getUnregisteredUser();
const unregisteredUser = getUnregisteredUser
.map(user => user && user.deviceId)
.filter(user => !!user);
unregisteredUser.length && this.push.getInstallations(unregisteredUser)
.then(items => {
getUnregisteredUser && getUnregisteredUser.map(user => {
items &&
items
.map(item => {
(user && user.deviceId === item.id) && this.cargo.push(objectAssignDeep(user, {data: item}))
})
});
});
}
chabok() {
const push = this.push;
const debounce = _.debounce(this.fixUserBrokenData.bind(this), 10000);
push.on('registered', deviceId => console.log('DeviceId ', deviceId));
push.on('connecting', _ => console.log('Reconnecting'));
push.on('disconnected', _ => console.log('offline'));
push.on('closed', _ => console.log('disconnected'));
push.on('connected', _ => {
console.log('Connected');
this.setState({
chabok: 'Connected'
});
});
push.once('connected', _ => {
push.enableEventDelivery([
{
name: 'treasure',
live: false
},
{
name: 'captainStatus',
live: false
},
{
name: 'geo',
live: false
},
{
name: 'newDevice',
live: false
}]);
});
push.on('geo', geoEvent => {
debounce();
console.log('Geo Event ', geoEvent);
this.cargo.push(geoEvent);
});
push.on('treasure', treasureEvent => {
debounce();
console.log('treasure ', treasureEvent);
this.cargo.push(treasureEvent);
});
push.on('captainStatus', status => {
debounce();
console.log('captainStatus ', status);
this.cargo.push(status);
});
push.on('newDevice', devices => {
console.log('newDevice ', devices);
this.cargo.push(devices);
});
push.on('message', msg => console.log('Message ', msg));
let chabokId = Storage.get('chabokId');
if (!chabokId) {
chabokId = Date.now();
Storage.set('chabokId', chabokId);
}
push.register(chabokId)
}
setMarkerState(obj) {
this.setState({
markers: this.upsetArray(this.cloneDeep(this.state.markers), obj)
});
}
upsetArray(array, obj) {
const arr = [].concat(array);
if (!obj.deviceId) return;
const filterResult = arr ? _.filter(arr, val => val.deviceId && val.deviceId === obj.deviceId) : [];
if (size(filterResult)) {
_.map(arr, (val, index) => val.deviceId === obj.deviceId ? arr[index] = objectAssignDeep({}, val, obj) : '');
} else {
arr.push(objectAssignDeep(obj, {data: {status: 'newDevice'}}));
}
this.updateBoard(obj);
const markerArray = arr.length > 100 ? this.shiftArray(arr, arr.length - 100) : arr;
return markerArray;
}
shiftArray(theArray, count) {
return theArray.splice(count, theArray.length);
}
updateBoard(obj) {
this.setState({
stats: objectAssignDeep({}, this.state.stats, {
digging: obj.data.status === 'digging' ? this.state.stats.digging + 1 : this.state.stats.digging,
winner: obj.data.found && obj.eventName === "treasure" ? this.state.stats.winner + 1 : this.state.stats.winner,
captain: this.getValidUserCount()
})
});
}
getQueryStringObject() {
return queryString.parse(window.location.search)
}
cargoHandler(count, delay) {
this.cargo = asyncTimedCargo((tasks, callback) => {
const newState = size(tasks) &&
tasks.reduce((state, task) =>
task &&
task.deviceId &&
this.upsetArray(state || [], task), this.state.markers);
this.setState({
markers: newState
});
return callback();
}, count, delay);
}
componentDidMount() {
const queryStringObject = this.getQueryStringObject();
this.options = 'dev' in queryStringObject ? config.DEVELOPMENT : config.PRODUCTION;
if ('location' in queryStringObject) {
const centerLocationObject = queryStringObject.location.split(',');
this.setState({center: {lat: +centerLocationObject[0], lng: +centerLocationObject[1]}});
}
this.getStoreData();
}
getStoreData() {
this.setState({
markers: Storage.get(this.options.appId) || [],
stats: Storage.get('stats') || this.state.stats
})
}
selectedUser(deviceId) {
this.userMotionTimer && clearTimeout(this.userMotionTimer);
this.setState({
selectedUser: deviceId
});
this.userMotionTimer = setTimeout(() => {
this.setState({
selectedUser: ''
})
}, 2000)
}
getCenterPosition(pos) {
this.setState({
center: {lat: pos.lat, lng: pos.lng},
zoom: pos.zoom
});
}
render() {
return (
<div className="App">
<Board data={this.state.stats}
chabok={this.state.chabok}
changeCenterPosition={this.getCenterPosition.bind(this)}/>
<Map markers={this.state.markers}
center={this.state.center}
zoom={this.state.zoom}
selectedUser={this.state.selectedUser}/>
<Footer data={this.state.markers} selectedUser={this.selectedUser.bind(this)}/>
</div>
);
}
}
|
import { combineReducers } from 'redux';
import {
loginReducer as login,
registerReducer as register,
userReducer as user
} from '../features/user';
import { questionReducer as question } from '../features/question';
const rootReducer = combineReducers({ login, register, user, question });
export default rootReducer;
|
import * as React from 'react';
class Counter extends React.Component {
render() {
const { title, counter, id } = this.props;
console.log('COUNTER RENDER:', id );
return ( <span>{title}: {counter}</span>)
}
}
export default Counter; |
import React from "react";
import "./Container.css";
const Container = props =>
<div className="container container-fluid text-center">
{props.children}
<a className="btn" href="/">Start Over</a>
</div>;
export default Container; |
let form = document.getElementsByTagName("form")[0];
let email = document.getElementById("email");
let error = document.querySelector(".error");
let phone_number = document.getElementById("phone_number");
let patt = new RegExp('\d*');
form.addEventListener("submit", function(event) {
if (email.validity.typeMismatch) {
error.innerText = "Please enter a valid email address";
event.preventDefault();
}
if(!patt.test(phone_number))
{
error.innerText = "Please enter a valid phone number";
error.style.color = "red";
event.preventDefault();
}
});
|
import React, {useEffect, useState } from 'react';
import axios from 'axios';
import {Button, Space } from 'antd'
const StoreComponent = ({store}) => {
return(
<div style={{backgroundColor:"white", display: "flex", height: "100px", width: "100%"}}>
<div style={{width: "10%", height: "100%", display: "flex", alignItems:"center"}}>
<img src={store.link_img} alt="loi tai anh" width="70%" height="70%" style={{marginLeft: "20px", borderRadius: "50%"}}/>
</div>
<div style={{width: "65%", height: "100%", display:"flex",alignItems: "center", marginLeft: "20px"}}>
<div style={{width: "65%", height: "70%"}}>
<div style={{color: "black", fontSize: "18px", height: "30%"}}>{store.name}</div>
<div style={{height: "30%"}}>{store.describe}</div>
<Button >Xem shop</Button>
</div>
</div>
</div>
);
}
export default StoreComponent; |
import { makeStyles } from '@material-ui/core/styles';
import Toolbar from '@material-ui/core/Toolbar';
import clsx from 'clsx';
import Tooltip from '@material-ui/core/Tooltip';
import { FormattedMessage } from 'react-intl';
import IconButton from '@material-ui/core/IconButton';
import DeleteIcon from '@material-ui/icons/Delete';
import Box from '@material-ui/core/Box';
import RotateLeftIcon from '@material-ui/icons/RotateLeft';
import SearchIcon from '@material-ui/icons/Search';
import PropTypes from 'prop-types';
import React from 'react';
import messages from './messages';
const useToolbarStyles = makeStyles(theme => ({
root: {
margin: -20,
},
highlight: {
color: theme.palette.secondary.main,
},
icons: {
display: 'flex',
marginTop: 30,
[theme.breakpoints.down('sm')]: {
marginLeft: 'auto',
marginRight: 'auto',
},
},
delete: {
marginLeft: 1,
[theme.breakpoints.down('sm')]: {
marginLeft: 5,
},
},
}));
export const EnhancedTableToolbar = props => {
const classes = useToolbarStyles();
const { numSelected, search, reset, setFiltration } = props;
return (
<Toolbar
className={clsx(classes.root, {
[classes.highlight]: numSelected > 0,
})}
>
<Box className={classes.icons}>
<Tooltip
title={<FormattedMessage {...messages.filterList} />}
onClick={() => {
search();
setFiltration(false);
}}
>
<IconButton aria-label="filter list">
<SearchIcon />
</IconButton>
</Tooltip>
<Tooltip
title={<FormattedMessage {...messages.resetFilter} />}
onClick={() => reset()}
>
<IconButton aria-label="reset filter">
<RotateLeftIcon />
</IconButton>
</Tooltip>
</Box>
</Toolbar>
);
};
export const EnhancedTableToolbarDelete = props => {
const classes = useToolbarStyles();
const { numSelected } = props;
return (
<Toolbar
className={clsx(classes.root, {
[classes.highlight]: numSelected > 0,
})}
>
{numSelected > 0 ? (
<Tooltip
className={classes.delete}
title={<FormattedMessage {...messages.deleteTitle} />}
>
<IconButton aria-label="delete" size="small">
<DeleteIcon fontSize="small" />
</IconButton>
</Tooltip>
) : (
''
)}
</Toolbar>
);
};
EnhancedTableToolbar.propTypes = {
numSelected: PropTypes.number.isRequired,
search: PropTypes.func,
reset: PropTypes.func,
setFiltration: PropTypes.func,
};
EnhancedTableToolbarDelete.propTypes = {
numSelected: PropTypes.number.isRequired,
};
|
const mongoose = require("mongoose");
const connection_url =
"mongodb+srv://admin:fV2fqzXFIFr1HfDs@cluster0.or87z.mongodb.net/criterion?retryWrites=true&w=majority";
mongoose.connect(/*"mongodb://localhost/movies"*/ connection_url, {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true,
});
module.exports = mongoose;
|
import { useState } from "react";
function PDFBox(props) {
const [PDFcanvasClass, setPDFCanvasClass] = useState('PDF-closed')
function openOrClosePDF() {
if (PDFcanvasClass === 'PDF-closed') {
setPDFCanvasClass('PDF-open')
} else if (PDFcanvasClass === 'PDF-open') {
setPDFCanvasClass('PDF-closed')
}
}
const modifiedImagePath = props.imagePath.replace("PDF", "")
// ----
// the below code is from pdfjs by mozilla, it's their hello world example effectively. there are many better ways to do this.
// at this time, only the first page is rendered. this could change by setting pageNumber var below to be passed in via props or just simply the count of pages
// this was a proof of concept in rendering PDFs without downloading them or using the adobe library, not a final implementation in any way
// If absolute URL from the remote server is provided, configure the CORS
// header on that server.
var url = modifiedImagePath
// Loaded via <script> tag, create shortcut to access PDF.js exports.
var pdfjsLib = window['pdfjs-dist/build/pdf'];
// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = '//mozilla.github.io/pdf.js/build/pdf.worker.js';
// Asynchronous download of PDF
var loadingTask = pdfjsLib.getDocument(url);
loadingTask.promise.then(function (pdf) {
console.log('PDF loaded');
// Fetch the first page -- can loop over page numbers here somehow?
var pageNumber = 1;
pdf.getPage(pageNumber).then(function (page) {
console.log('Page loaded');
var scale = 1.5;
var viewport = page.getViewport({ scale: scale });
// Prepare canvas using PDF page dimensions
var canvas = document.getElementById(modifiedImagePath);
if (canvas) {
var context = canvas?.getContext('2d');
canvas.height = viewport.height;
canvas.width = viewport.width;
// Render PDF page into canvas context
var renderContext = {
canvasContext: context,
viewport: viewport
};
var renderTask = page.render(renderContext);
renderTask.promise.then(function () {
console.log('Page rendered');
});
}
});
}, function (reason) {
// PDF loading error
console.error(reason);
});
return (
<div>
{loadingTask.promise && <canvas width="32px" className={PDFcanvasClass} id={modifiedImagePath} alt="" onClick={openOrClosePDF}></canvas>}
{/* <canvas id="the-canvas"></canvas> */}
</div>
)
}
export default PDFBox |
const trakt = require("./trakt");
const extended = "full";
const showSelector = ({
show: {
title,
year,
ids: { trakt: id },
},
}) => ({ title: title.replace("&", "&"), year, id });
module.exports = {
searchShow: async query => {
const results = await trakt.search.text({ query, type: "show" });
return results.map(showSelector);
},
getSeasons: async id => {
const complete = await trakt.seasons.summary({
id,
id_type: "trakt",
extended,
});
const filteredSeasons = complete.filter(({ number }) => !!number);
const fetchSeasons = filteredSeasons.map(async season => {
const episodes = await trakt.seasons.season({
id,
season: season.number,
extended,
});
return { ...season, episodes };
});
const seasons = await Promise.all(fetchSeasons);
return seasons;
},
};
|
const express = require('express');
const routes = require('./routes');
const moongose = require('mongoose');
const cors = require('cors');
require('dotenv/config');
const cookieParser = require('cookie-parser');
const TicTacToe = require('./Controllers/TicTacToeController');
const app = express();
const server = require('http').Server(app);
const connectedUsers = {};
const io = require('socket.io')(server);
io.on('connection', socket => {
const { user } = socket.handshake.query;
connectedUsers[user] = socket.id;
socket.on('startPlay', inviteId => {
TicTacToe.startMatch(inviteId, io, connectedUsers);
});
});
const port = process.env.PORT || 3001;
const corsOrigin = process.env.CORS_ORIGIN;
const connectionString = process.env.CONNECTION_STRING;
moongose.connect(connectionString,
{
useNewUrlParser: true
});
app.use((req, res, next) => {
req.io = io;
req.connectedUsers = connectedUsers;
next();
});
app.use(cors({
origin: corsOrigin,
credentials: true
}));
app.use(express.json());
app.use(cookieParser());
app.use(routes);
server.listen(port, () => {
console.log(`Server running on port ${port}`);
}); |
import React, { Component } from 'react';
import { Link, Redirect } from 'react-router-dom';
import axios from 'axios';
import LoginContext from '../contexts/LoginContext'
import { api } from '../api'
class ListItem extends Component {
constructor(props) {
super(props);
this.state = {category: '', data: [], downloadPDF: false};
}
componentDidMount() {
const that=this;
console.log(this.props);
this.setState({category: this.props.match.params.list});
axios.get(`${api.url}${this.props.match.params.list}`, {
})
.then(function (response) {
console.log(response);
that.setState({ data: response.data });
})
.catch(function (error) {
console.log(error);
})
}
goToEdit = (id) => {
this.props.history.push(`/edit/${this.props.match.params.list}/${id}`)
};
confirmDelete = (id) => {
if (window.confirm('Are you sure you wish to delete this item?')){
axios.delete(`${api.url}${this.props.match.params.list}/${id}`, {
})
.then(function (response) {
console.log(response);
window.location.reload();
})
.catch(function (error) {
console.log(error);
})
}
};
exportPDF = () => {
// axios.get(`${api.url}${this.props.match.params.list}/report`, {
// })
// .then(function (response) {
// console.log(response);
// })
// .catch(function (error) {
// console.log(error);
// })
this.setState({downloadPDF: true});
};
render() {
const listItems = this.state.data.map((item) =>
<li className='item-list__item' key={item.id.toString()}>
{item.name}
{this.state.category === 'inventory' && <div>Stock: {item.stock}</div>}
<div>
<button className='item-list__item__edit-button' onClick={(id) => this.goToEdit(item.id)}>
Edit
</button>
<button className='item-list__item__delete-button' onClick={(id) => this.confirmDelete(item.id)}>
Delete
</button>
</div>
</li>
);
return (
<LoginContext.Consumer>
{value => value.loggedIn ?
(
<div className='page-container'>
<h1>
LIST
</h1>
<div className='buttons-grp'>
<div className='button'>
<Link to={'/'}>Back Home</Link>
</div>
<div className='button'>
<Link to={`/new/${this.props.match.params.list}`}>Add {this.props.match.params.list}</Link>
</div>
</div>
<ul className='item-list'>
{listItems}
</ul>
<br/>
<Link
className='button'
to={`${api.url}${this.props.match.params.list}/report`}
target="_blank"
onClick={(event) => {event.preventDefault(); window.open(`${api.url}${this.props.match.params.list}/report`);}}
>
Download PDF
</Link>
</div>
) :
<Redirect to='/login' />
}
</LoginContext.Consumer>
);
}
}
export default ListItem; |
'use strict';
(function (module) {
function DragDrop() {
}
DragDrop.prototype = {
dragged: null,
callback: null,
lockedTarget: null,
constructor: DragDrop,
hasDrag: function () {
return !!(this.dragged && this.callback);
},
startDrag: function (data, callback) {
var me = this;
me.dragged = data;
me.callback = function () {
var target = me.lockedTarget,
cb = callback;
if (target) {
target(data, me);
}
if (typeof cb === 'function') {
callback(data, me);
}
};
},
endDrag: function () {
var data = this.dragged,
callback = this.callback;
if (data && callback) {
delete this.dragged;
delete this.callback;
callback();
return data;
}
return null;
},
lockDropTarget: function (callback) {
if (typeof callback === 'function') {
this.lockedTarget = callback;
}
},
unlockDropTarget: function (callback) {
var current = this.lockedTarget;
if (current && current === callback) {
delete this.lockedTarget;
}
}
};
module.service('mouseDragDrop', [function () {
return new DragDrop();
}]);
})(Swimlane); |
export { AppModule } from './app'; |
// var signInOuts = document.querySelectorAll('.dom-sign-in'),
// statuses = document.querySelectorAll('.dom-sign-in-status');
// var clockBox = document.querySelector('.clock');
// var loginPage = document.getElementById('login-page'),
// onboardingPage = document.getElementById('onboarding-page'),
// homePage = document.getElementById('home-page');
// var githubDisplay = document.querySelector('.githubDisplay'),
// trelloDisplay = document.querySelector('.trelloDisplay');
// function clock() {// We create a new Date object and assign it to a variable called "theTime".
// var time = new Date(),
// // Access the "getHours" method on the Date object with the dot accessor.
// hours = time.getHours(),
// minutes = time.getMinutes(),
// seconds = time.getSeconds();
// clockBox.textContent = theTime(hours) + ":" + theTime(minutes) + ":" + theTime(seconds);
// function theTime(standIn) {
// if (standIn < 10) {
// standIn = '0' + standIn
// }
// return standIn;
// }
// }
// setInterval(clock, 1000);
// // github info
// var accessGitHub = function() {
// var responseObj = JSON.parse(this.responseText);
// // console.log(responseObj.name + " has " + responseObj.public_repos + " public Github repositories!");
// //console.log('Github LOGIN: '+ responseObj.login);
// // for(var obj in responseObj) {
// // console.log(obj+": "+responseObj[obj]);
// // }
// console.log('Repo Names:');
// var githubDisplayText = '';
// var repoList = document.createElement('ul');
// githubDisplay.appendChild(repoList);
// for(var i=0;i<responseObj.length;i++) {
// console.log(i+": "+responseObj[i].name);
// githubDisplayText += '\n * '+responseObj[i].name;
// var repoLine = document.createElement('li');
// repoLine.textContent = responseObj[i].name;
// repoList.appendChild(repoLine);
// }
// console.log('githubDisplay: '+ githubDisplayText);
// // githubDisplay.textContent = githubDisplayText;
// }
// var gitHubUserID = 'kbooth1000';
// var request = new XMLHttpRequest();
// request.onload = accessGitHub;
// request.open('get', 'https://api.github.com/users/'+gitHubUserID+'/repos', true);
// request.onerror = function(){
// console.log('The given gitHubUserID ('+gitHubUserID+') is not valid.');
// }
// request.send();
// Function called when clicking the Login/Logout button.
// [START buttoncallback]
function toggleSignIn() {
if (!firebase.auth().currentUser) {
// [START createprovider]
var provider = new firebase.auth.GoogleAuthProvider();
// [END createprovider]
// [START addscopes]
provider.addScope('https://www.googleapis.com/auth/plus.login');
// [END addscopes]
// [START signin]
firebase.auth().signInWithRedirect(provider);
// [].forEach.call(signInOuts, function(signInOut) {
// signInOut.disabled = false;
// });
// [END signin]
} else {
// [START signout]
firebase.auth().signOut();
// [END signout]
// [].forEach.call(signInOuts, function(signInOut) {
// signInOut.disabled = true;
// });
}
}
// var activateHomePage = function(){
// homePage.style.display = 'block';
// loginPage.style.display = 'none';
// onboardingPage.style.display = 'none';
// }
var activateHomePage = function(){
homePage.style.display = 'block';
loginPage.style.display = 'none';
onboardingPage.style.display = 'none';
}
// [END buttoncallback]
/**
* initApp handles setting up UI event listeners and registering Firebase auth listeners:
* - firebase.auth().onAuthStateChanged: This listener is called when the user is signed in or
* out, and that is where we update the UI.
* - firebase.auth().getRedirectResult(): This promise completes when the user gets back from
* the auth redirect flow. It is where you can get the OAuth access token from the IDP.
*/
function initApp() {
// Result from Redirect auth flow.
// [START getidptoken]
firebase.auth().getRedirectResult().then(function(result) {
if (result.credential) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.accessToken;
console.log('OAuth token: ' + token);
} else {
console.log('No OAuth token');;
// [END_EXCLUDE]
}
// The signed-in user info.
var user = result.user;
}).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// The email of the user's account used.
var email = error.email;
// The firebase.auth.AuthCredential type that was used.
var credential = error.credential;
if (errorCode === 'auth/account-exists-with-different-credential') {
alert('You have already signed up with a different auth provider for that email.');
// If you are using multiple auth providers on your app you should handle linking
// the user's accounts here.
} else {
console.error(error);
}
});
// [END getidptoken]
// Listening for auth state changes.
// [START authstatelistener]
firebase.auth().onAuthStateChanged(function(user) {
if (user) { // ******************* User is signed in.
googleDisplayName = user.displayName,
googleLogin = user.login,
googleEmail = user.email;
var emailVerified = user.emailVerified;
var photoURL = user.photoURL;
var isAnonymous = user.isAnonymous;
var uid = user.uid;
var providerData = user.providerData;
// [].forEach.call(statuses, function(status) {
// status.textContent = 'Signed in';
// });
// [].forEach.call(signInOuts, function(signInOut) {
// signInOut.textContent = 'Sign out';
// });
console.log('User account details: ' + JSON.stringify(user, null, ' '));
$('.signin-block').toggleClass('hidden');
// document.getElementById('home-page-greeting').textContent = 'Hi, ' + googleDisplayName;
// // Turn on the proper page
// if(googleEmail === 'kbooth1000@gmail.com') { // TEST WITH MY OWN TWO GMAIL ACCOUNTS (kbooth1000 and kjbooth1000)
// activateHomePage();
// } else //if(googleEmail === 'kjbooth1000@gmail.com') {
// { onboardingPage.classList.add('active-page');
// loginPage.style.display = 'none';
// homePage.style.display = 'none';
// }
// } else { // ******************* User is signed out.
// [].forEach.call(statuses, function(status) {
// status.textContent = 'Signed out';
// });
// [].forEach.call(signInOuts, function(signInOut) {
// signInOut.textContent = 'Sign in with Google';
// });
// [].forEach.call(signInOuts, function(signInOut) {
// signInOut.disabled = false;
// });
};
// [END authstatelistener]
// [].forEach.call(signInOuts, function(signInOut) { // watches the signin/out button one each page
// signInOut.addEventListener('click', toggleSignIn, false);
// });
// document.getElementById('skip-setup').addEventListener('click', function(){ activateHomePage() ;console.log('Activate Home Page---------------'); });//
// document.getElementById("github-namefield").addEventListener("keyup", function(event) {
// event.preventDefault();
// if (event.keyCode === 13) {
// document.getElementById("github-namefield-submit").click();
// }
// });
});
}
$('.google-btn').on('click', e => {
toggleSignIn();
});
$('.signout').on('click', e => {
toggleSignIn();
});
window.onload = function() {
initApp();
}; |
var moveBoard = 360; // sets the initial position of board
var moveBoard2 = -144; // sets the board on start of round 2
var moveBoard3 = 486; // sets the board for switchback in round 2
var turnNum = 0; // sets variable to determine if X or O gets placed
var mark; //sets global variable for use in placing X or O to html
// scoring and array sets for score tracking
var p1scoreId = 0;
var p2scoreId = 0;
var p1scoring = [];
var p2scoring = [];
var p1scoreChange = 0;
var gameRound = 1; // counter for halftime/end game screens
var counter = 0; // counter used for main game timer
// while (gameCount === 0) {
setTimeout(function() {openningScreen();}, 2000);
var waveTwo = function () {
var elements = document.getElementsByClassName('col');
for(var mm=0; mm<elements.length; mm++) {
elements[mm].style.border='5px solid red';
elements[mm].style['-webkit-box-shadow'] = "4px 4px 15px red";
}
};
var altTurn = function() {
if (turnNum % 2 ===0) {
mark = "X";
}
else {
mark = "O";
}
turnNum += 1;
};
function TicTacController($scope, $timeout) {
$scope.rows = [['','','','','','','',''],['','','','','','','',''],['','','','','','','','']];
gameTimer(44);
timerBlockStart();
// var lastGame;
// // Ask for all existing game info from firebase
// ticTacRef.once('value', function(gamesSnapshot) {
// // get the actual games data
// var games = gamesSnapshot.val();
// if(games == null)
// {
// // No games at all, so make a new game -- As if we're Areg
// lastGame = ticTacRef.push( {waiting: true} );
// playerNum = 1;
// }
// else // I do have at least one game out there...
// {
// var keys = Object.keys(games);
// var lastGameKey = keys[ keys.length - 1 ];
// var lastGame = games[ lastGameKey ];
// console.log("This person's game: " + lastGameKey);
// if(lastGame.waiting)
// {
// // Currently someone is waiting -- Areg is there and we're Rocky
// // Grab from Firebase its last game object
// lastGame = ticTacRef.child(lastGameKey);
// // Set a new game on this
// lastGame.set( {waiting:false, playerTurn: 0, won: false, board: [0,0,0,0,0,0,0,0,0]} );
// playerNum = 2;
// }
// else
// {
// // Make a new game -- As if we're Areg
// lastGame = ticTacRef.push( {waiting: true} );
// playerNum = 1;
// }
// }
// // Attach the last game to what we're up to
// $scope.game = $firebase(lastGame);
var gameOver = function() {
var box = $scope.rows;
if ((box[0][5] == "X" || box[0][5] == "O") && (box[0][6] == "X" || box[0][6] == "O") && (box[0][7] == "X" || box[0][7] == "O") && (box[1][5] == "X" || box[1][5] == "O") && (box[1][6] == "X" || box[1][6] == "O") && (box[1][7] == "X" || box[1][7] == "O") && (box[2][5] == "X" || box[2][5] == "O") && (box[2][6] == "X" || box[2][6] == "O") && (box[2][7] == "X" || box[2][7] == "O")) {
console.log("gameover");
if (gameRound === 1) {
$timeout(gameReset, 5000);
setTimeout(function() {halftimeSummary();}, 2000);
gameRound += 1;
}
else {
setTimeout(function() {determineWinner();}, 2000);
}
// setTimeout(function() {boardClear();}, 2000);
// setTimeout(function() {boardClear();}, 2000);
}
};
// checkForScore uses a loop that will check each possible score
var checkForScore = function() {
baseBox = $scope.rows;
gameOver();
var r1 = 0; var r2 = 1; var r3 = 2;
var c1 = 0; var c2 = 1; var c3 = 2;
var c4 = 0; var c5 = 1; var c6 = 2;
var c7 = 0; var c8 = 1; var c9 = 2;
var c10 = 0;
var dr1 = 0; var dr2 = 1; var dr3 = 2;
var dc1 = 0; var dc2 = 1; var dc3 = 2;
var dc4 = 0; var dc5 = 1; var dc6 = 2;
var p1s = 100; var p2s = -100;
// first chunk of code checks all possible horizontal scores
for (x = 0; x < 12; x++) {
if (baseBox[r1][c1] + baseBox[r1][c2] + baseBox[r1][c3] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[r1][c1] + baseBox[r1][c2] + baseBox[r1][c3] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
c1 += 1; c2 += 1; c3 += 1; x += 1; p1s += 1; p2s -= 1;
}
for (s = 0; s < 12; s++) {
if (baseBox[r2][c4] + baseBox[r2][c5] + baseBox[r2][c6] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[r2][c4] + baseBox[r2][c5] + baseBox[r2][c6] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
c4 += 1; c5 += 1; c6 += 1; s += 1; p1s += 1; p2s -= 1;
}
for (t = 0; t < 12; t++) {
if (baseBox[r3][c7] + baseBox[r3][c8] + baseBox[r3][c9] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[r3][c7] + baseBox[r3][c8] + baseBox[r3][c9] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
c7 += 1; c8 += 1; c9 += 1; t += 1; p1s += 1; p2s -= 1;
}
//--------------------------------------
// beginning of vertical score checking
for (w = 0; w < 16; w++) {
if (baseBox[r1][c10] + baseBox[r2][c10] + baseBox[r3][c10] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[r1][c10] + baseBox[r2][c10] + baseBox[r3][c10] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
c10 += 1; w += 1; p1s += 1; p2s -= 1;
}
//--------------------------------------
// beginning of diagonal-down score checking
for (q = 0; q < 12; q++) {
if (baseBox[dr1][dc1] + baseBox[dr2][dc2] + baseBox[dr3][dc3] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[dr1][dc1] + baseBox[dr2][dc2] + baseBox[dr3][dc3] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
dc1 += 1; dc2 += 1; dc3 += 1; q += 1; p1s += 1; p2s -= 1;
}
//-----------------------------------------
// beginning of diagonal-up score checking
for (u = 0; u < 12; u++) {
if (baseBox[dr3][dc4] + baseBox[dr2][dc5] + baseBox[dr1][dc6] == "XXX") {
console.log(p1s);
p1scoreId = p1s;
fairScoreTracker1(p1scoreId);
}
else if (baseBox[dr3][dc4] + baseBox[dr2][dc5] + baseBox[dr1][dc6] == "OOO") {
console.log(p2s);
p2scoreId = p2s;
fairScoreTracker2(p2scoreId);
}
dc4 += 1; dc5 += 1; dc6 += 1; u += 1; p1s += 1; p2s -= 1;
}
//-----------------------------------------
console.log(p1scoreId.length);
$scope.p1Score = p1scoring.length;
$scope.p2Score = p2scoring.length;
};
var gameReset = function() {
$scope.rows = [['','','','','','','',''],['','','','','','','',''],['','','','','','','','']];
};
$scope.makeMove = function(r, c){
cell = $scope.rows[r][c];
if (cell != "X" && cell != "O") {
altTurn();
$scope.rows[r][c] = mark;
}
checkForScore();
};
}
function gameTimer(num) {
for (i=num;i>-1;i--) {
(function(i) {
window.setTimeout(function(counter)
{
var therows = document.getElementsByClassName("row2");
if (i < 31 && i > 9 && i % 5 === 0) {
for (var y = 0; y < therows.length; y++) {
therows[y].style.marginLeft=moveBoard +"px";
console.log(y);
}
moveBoard -= 126;
}
document.getElementById("counter_text").innerHTML = i.toString();
}, counter*1000);
counter += 1;
}(i));
}
}
function gameTimerSecondHalf(num) {
var counter = 0;
for (i=num;i>-1;i--) {
(function(i) {
window.setTimeout(function(counter)
{
var therows = document.getElementsByClassName("row2");
if (i < 17 && i > 0 && i % 3 === 0) {
for (var y = 0; y < therows.length; y++) {
therows[y].style.marginLeft=moveBoard2 +"px";
console.log(y);
}
moveBoard2 += 126;
}
document.getElementById("counter_text").innerHTML = i.toString();
}, counter*1000);
counter += 1;
}(i));
}
}
function gameTimerSecondHalfPt2(num) {
var counter = 0;
for (w=num;w>-1;w--) {
(function(w) {
window.setTimeout(function(counter)
{
var therows = document.getElementsByClassName("row2");
if (w < 19 && w > 0 && w % 3 === 0) {
for (var e = 0; e < therows.length; e++) {
therows[e].style.marginLeft=moveBoard3 +"px";
console.log(e);
}
moveBoard3 -= 126;
}
document.getElementById("counter_text").innerHTML = w.toString();
}, counter*1000);
counter += 1;
}(w));
}
}
function fairScoreTracker1(scoreId) {
isThere = false;
for (item = 0; item < p1scoring.length; item++) {
if (scoreId == p1scoring[item]) {
isThere=true;
break;
}
}
if(!isThere) {
p1scoring.push(p1scoreId);
scorePopup('pointp1');
popupReset('pointp1');
p1scoreBoxPop('ScorePlayer1');
blinkId('ScorePlayer1');
p1BoxPopReset('ScorePlayer1');
p1boardScore('boardContainer');
}
}
function fairScoreTracker2(scoreId) {
isThere = false;
for (item = 0; item < p2scoring.length; item++) {
if (scoreId == p2scoring[item]) {
isThere=true;
break;
}
}
if(!isThere) {
p2scoring.push(p2scoreId);
scorePopup('pointp2');
popupReset('pointp2');
blinkId('ScorePlayer1');
p2scoreBoxPop('ScorePlayer2');
p2BoxPopReset('ScorePlayer2');
p2boardScore('boardContainer');
}
}
function scorePopup (elementId) {
document.getElementById(elementId).style.display="block";
}
function popupReset(elementId) {
setTimeout(function() {document.getElementById(elementId).style.display="none";}, 2000);
}
function p1scoreBoxPop (elementId) {
document.getElementById(elementId).style.background="rgba(97,37,106,.6)";
}
function p1BoxPopReset (elementId) {
setTimeout(function() {document.getElementById(elementId).style.background="black";}, 1000);
}
function p2scoreBoxPop (elementId) {
document.getElementById(elementId).style.background="rgba(0,165,204,.6)";
}
function p2BoxPopReset (elementId) {
setTimeout(function() {document.getElementById(elementId).style.background="black";}, 1000);
}
function p1boardScore (elementId) {
document.getElementById(elementId).style.backgroundColor="rgba(97, 21, 106, .5)";
setTimeout(function() {document.getElementById(elementId).style.backgroundColor="black";}, 200);
}
function p2boardScore (elementId) {
document.getElementById(elementId).style.backgroundColor="rgba(0, 165, 204, .5)";
setTimeout(function() {document.getElementById(elementId).style.backgroundColor="black";}, 200);
}
var cnt = 0;
function blinkId(id) {
while (cnt < 8) {
var eye = document.getElementById(id);
if(eye.style.visibility=='hidden') {
eye.style.visibility='visible';
} else {
eye.style.visibility='hidden';
}
setTimeout("blinkId('"+id+"')",100);
cnt += 1;
return true;
}
}
var halftimeSummary = function () {
halftimeScreen();
setTimeout(function() {waveTwoText();}, 6000);
timerBlock();
gameTimerSecondHalf(24);
setTimeout(function() {gameTimerSecondHalfPt2(18);}, 24000);
setTimeout(function() {waveTwo();}, 6000);
if(p1scoring.length > p2scoring.length) {
setTimeout(function() {p1HalftimeLeadScreen();}, 3000);
}
else if(p2scoring.length > p1scoring.length) {
setTimeout(function() {p2HalftimeLeadScreen();}, 3000);
}
else {
setTimeout(function() {halftimeTieScreen();}, 3000);
}
};
var determineWinner = function () {
if(p1scoring.length > p2scoring.length) {
setTimeout(function() {winningScreen1();}, 1200);
}
else if(p2scoring.length > p1scoring.length) {
setTimeout(function() {winningScreen2();}, 1200);
}
else {
setTimeout(function() {tieScreen();}, 1200);
}
};
var winningScreen1 = function () {
document.getElementById("winScreen1").style.display="block";
document.getElementById("winText1").style.display="inline-block";
};
var winningScreen2 = function () {
document.getElementById("winScreen2").style.display="block";
document.getElementById("winText2").style.display="inline-block";
};
var tieScreen = function () {
document.getElementById("tieScreen").style.display="block";
document.getElementById("tieText").style.display="inline-block";
};
var openningScreen = function () {
setTimeout(function() {document.getElementById("startScreen").style.display="none";}, 2000);
document.getElementById("startText").style.display="none";
document.getElementById("startRnd1Text").style.display="inline-block";
setTimeout(function() {document.getElementById("startRnd1Text").style.display="none";}, 2000);
};
var halftimeScreen = function () {
document.getElementById("halftimeScreen").style.display="inline-block";
document.getElementById("halftimeText").style.display="inline-block";
setTimeout(function() {document.getElementById("halftimeText").style.display="none";}, 3000);
setTimeout(function() {document.getElementById("halftimeScreen").style.display="none";}, 3000);
};
var halftimeReset = function () {
setTimeout(function() {halftimeScreen();}, 2000);
};
var p1HalftimeLeadScreen = function () {
document.getElementById("p1HalfLead").style.display="block";
document.getElementById("p1HalfLeadText").style.display="inline-block";
setTimeout(function() {document.getElementById("p1HalfLead").style.display="none";}, 3000);
setTimeout(function() {document.getElementById("p1HalfLeadText").style.display="none";}, 3000);
};
var p2HalftimeLeadScreen = function () {
document.getElementById("p2HalfLead").style.display="block";
document.getElementById("p2HalfLeadText").style.display="inline-block";
setTimeout(function() {document.getElementById("p2HalfLead").style.display="none";}, 3000);
setTimeout(function() {document.getElementById("p2HalfLeadText").style.display="none";}, 3000);
};
var halftimeTieScreen = function () {
document.getElementById("halfTie").style.display="block";
document.getElementById("halfTieText").style.display="inline-block";
setTimeout(function() {document.getElementById("halfTie").style.display="none";}, 3000);
setTimeout(function() {document.getElementById("halfTieText").style.display="none";}, 3000);
};
var timerBlock = function () {
document.getElementById("blockTimer").style.display="block";
setTimeout(function() {document.getElementById("blockTimer").style.display="none";}, 9000);
};
var timerBlockStart = function () {
document.getElementById("blockTimer").style.display="block";
setTimeout(function() {document.getElementById("blockTimer").style.display="none";}, 4000);
};
var waveTwoText = function () {
document.getElementById("halftimeScreen2").style.display="inline-block";
document.getElementById("waveTwoText").style.display="block";
setTimeout(function() {document.getElementById("waveTwoText").style.display="none";}, 2000);
setTimeout(function() {document.getElementById("halftimeScreen2").style.display="none";}, 2000);
};
// var secondHalf = function () {
// gameTimerRound2(45);
// }
// var boardPulse = function ()
// document.getElementById("startScreen").style.display="none";
// var clearGame = function () {
// } |
$(function() {
/* Navigation Bar */
var floatingNavBarHTML = $("header").html();
$("header").prepend(floatingNavBarHTML);
$("header").children().first().addClass("navbar-fixed");
$(".navbar-fixed").hide();
$(window).scroll(function() {
if ($(this).scrollTop() > 280) {
$(".navbar-fixed").show(300);
} else {
$(".navbar-fixed").hide(300);
}
});
/* Setup cards */
$(".expandable-card .card-info").hide();
$(".expandable-card").css({
"width": "150px",
"height": "150px",
"border-radius": "75px",
"padding": "0",
});
$(".expandable-card .profile-img-md").mouseenter(function() {
$(".expandable-card").animate(
{
width: '400px',
height: '250px',
borderRadius: '5px',
padding: '1%',
},
{
duration: 300,
complete: function() {
$(".expandable-card .card-info").show();
}
});
});
$(".expandable-card").mouseleave(function() {
$(".expandable-card").animate(
{
width: '150px',
height: '150px',
borderRadius: '75px',
padding: '0',
},
{
duration: 300,
complete: function() {
$(".expandable-card .card-info").hide();
}
});
});
});
|
const router = require("express").Router();
const { Character, Checkpoint, Item, Raid, Drop } = require("../db/models");
const Sequelize = require("../db/db");
const NOUN = "checkpoint";
router.get(`/`, async (req, res, next) => {
try {
res.json(
await Checkpoint.findAll({
include: [
{ model: Drop, include: [Character, Item] },
{ model: Character },
{ model: Raid },
],
order: [["id", "asc"], [Character, "characterName", "asc"], [Drop, "dropName", "asc"]],
})
);
} catch (e) {
next(e);
}
});
router.get(`/:${NOUN}Id`, async (req, res, next) => {
try {
res.json(
await Checkpoint.findById(req.params[`${NOUN}Id`], {
include: [
{ model: Drop, include: [Character, Item] },
{ model: Character },
{ model: Raid },
],
order: [["id", "asc"], [Character, "characterName", "asc"], [Drop, "dropName", "asc"]],
})
);
} catch (e) {
next(e);
}
});
router.post("/", async (req, res, next) => {
try {
res.json(await Checkpoint.create(req.body));
} catch (e) {
next(e);
}
});
router.put(`/:${NOUN}Id`, async (req, res, next) => {
try {
res.json(
await Checkpoint.update(req.body, {
where: {
id: req.params[`${NOUN}Id`],
},
returning: true,
plain: true,
})[1][0]
);
} catch (e) {
next(e);
}
});
router.delete(`/:${NOUN}Id`, async (req, res, next) => {
try {
await Checkpoint.destroy({ where: { id: req.params.charId } });
const remaining = await Checkpoint.findAll();
res.json(remaining);
} catch (e) {
next(e);
}
});
module.exports = router;
|
import { ListView } from 'react-native';
import RNPlus from 'rnplus';
const merge = require('../../../node_modules/merge');
const NavigatorSceneConfigs = require('NavigatorSceneConfigs');
const sceneConfigNoGestures = merge.clone(NavigatorSceneConfigs.PushFromRight);
const sceneConfigSetEdgeWidth = merge.clone(NavigatorSceneConfigs.PushFromRight);
sceneConfigNoGestures.gestures = {};
sceneConfigSetEdgeWidth.gestures.pop.edgeHitWidth = 200;
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
const listData = ds.cloneWithRows([
{
text: '配置切换动画',
onPress() {
RNPlus.open('SceneBlank', {
sceneConfig: 'VerticalUpSwipeJump',
});
},
},
{
text: '禁用侧滑回退手势',
onPress() {
RNPlus.open('SceneBlank', {
sceneConfig: sceneConfigNoGestures,
});
},
},
{
text: '配置侧滑回退手势范围',
onPress() {
RNPlus.open('SceneBlank', {
sceneConfig: sceneConfigSetEdgeWidth,
});
},
},
{
text: '开关安卓物理返回键',
onPress() {
RNPlus.open('SceneAndroidBack');
},
},
]);
export default listData;
|
import { Link } from "react-router-dom"; //use Link for 'a' tags to handle all links on browser
const Navbar = () => {
return (
<nav className="navbar">
<h1>The Pimp Clinic Blog</h1>
<div className="links">
<Link to = "/">Home</Link>
<Link to = "/create">New Blog</Link>
<Link to = "/games">Games</Link>
</div>
</nav>
);
}
export default Navbar; |
const express = require('express')
const logger = require('./middlewares/logger')
require('dotenv').config()
const app = express()
// Init Body Parser
app.use(express.json())
app.use(express.urlencoded({extended: false}))
// Import Routes
const product = require('./routes/product')
const products = require('./routes/products')
// Initialize Routes
app.use('/products', product)
app.use('/products', products)
module.exports = app |
import React from "react"
function Bodie(){
return(
<div className="bodie">
<h1>CONTENT</h1>
<p>
The domestic dog is a domesticated descendant of the wolf. The dog derived from an ancient, extinct wolf,and the modern grey wolf is the dog's nearest living relative
</p>
</div>
);
}
export default Bodie; |
import React, { useState, useEffect, Fragment } from "react";
import { Link, withRouter } from "react-router-dom";
import { signOut, isAuthenticated } from "../auth";
import { itemTotal } from "./cartHelpers";
import { read } from "../user/apiUser";
import { useDispatch, useSelector } from "react-redux";
import { signout } from "../actions";
const Menu = ({ history }) => {
const isActive = (history, path) => {
if (history.location.pathname === path) {
return { color: "#ff9900" };
} else {
return { color: "#fff" };
}
};
const { _id, user, roles, token } = isAuthenticated();
const auth = useSelector((state) => state.auth);
const dispatch = useDispatch();
const [error, setError] = useState("");
const [loading, setLoading] = useState(true);
const [userx1, setUser] = useState("");
const cart = useSelector((state) => state.cart);
const getEnumRoles = (roles) => {
const role = roles;
};
const logout = () => {
dispatch(signout());
};
const init = (userId, token) => {
read(userId, token)
.then((data) => {
if (!data) {
// console.log(data.error);
setError("fail");
} else {
setLoading(false);
setUser(data);
}
})
.catch(catchError);
};
useEffect(() => {
if (isAuthenticated()) init(isAuthenticated().user._id, token);
// init(isAuthenticated().user._id, token);
}, []);
const catchError = (error) => {
setError({ error: error });
};
const showError = () => error && <h2>Fail to load!</h2>;
const showLoading = () =>
loading && (
<div className="d-flex justify-content-center">
<div className="spinner-border" role="status">
<span className="sr-only">Loading...</span>
</div>
</div>
);
return (
<div>
<ul className="nav nav-tabs bg-primary">
{/* <li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/feed")}
to="/feed"
>
My Feed <i className="fa fa-store"></i>
</Link>
</li> */}
<li className="nav-item">
<Link className="nav-link" style={isActive(history, "/")} to="/">
<i className="fa fa-home"></i> Home
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/best")}
to="/best"
>
<i className="fa fa-home"></i> Best Seller
</Link>
</li>
{/* <li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/products")}
to="/products"
>
Shop Products
</Link>
</li> */}
{/* User Links */}
{isAuthenticated() && isAuthenticated().user.role.includes("user") && (
<Fragment>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/shop")}
to="/shop"
>
Shop
</Link>
</li>
{/* <li className="nav-item">
<Link
to="/search"
className="nav-link"
style={isActive(history, "/search")}
>
Search
</Link>
</li> */}
<li className="nav-item">
<a
className="nav-link"
style={isActive(history, "/cart")}
href="/cart"
>
<i className="fa fa-shopping-cart"></i>
<sup>
{/* <small className="cart-badge">{itemTotal()}</small> */}
<small className="cart-badge">
{Object.keys(cart.cartItems).length}
</small>
</sup>
</a>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/account/orders")}
to="/account/orders"
>
Orders
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/user/dashboard")}
to="/user/dashboard"
>
{showError()}
<i className="far fa-user" /> Hello, {userx1.name} - Role:
{/* {JSON.stringify(userx1)} */}
{Object.values(user.role) !== "admin"
? "Registered User"
: "Admin"}
{showLoading()}
</Link>
</li>
</Fragment>
)}
{/* Admin Links */}
{isAuthenticated() && isAuthenticated().user.role.includes("admin") && (
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/dashboard")}
to="/dashboard"
>
Admin Dashboard
</Link>
</li>
)}
{!isAuthenticated() && (
<Fragment>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/shop")}
to="/shop"
>
Shop
</Link>
</li>
<li className="nav-item">
<a
className="nav-link"
style={isActive(history, "/cart")}
href="/cart"
>
<i className="fa fa-shopping-cart"></i>
<small className="cart-badge">
{Object.keys(cart.cartItems).length}
</small>
</a>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/login")}
to="/login"
>
Sign In
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/register")}
to="/register"
>
Sign Up
</Link>
</li>
{/* <li className="nav-item">
<Link
to="/search"
className="nav-link"
style={isActive(history, "/search")}
>
Search
</Link>
</li> */}
{/* <li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/signupx")}
to="/a"
>
Ab Step
</Link>
</li> */}
{/* <li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/signupx")}
to="/b"
>
Show Image Upload S3
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/signupx")}
to="/api/document/upload"
>
NewFileUpload
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
style={isActive(history, "/signupx")}
to="/ca"
>
FileUpload
</Link>
</li> */}
</Fragment>
)}
{isAuthenticated() && (
<li className="nav-item">
<span
className="nav-link"
style={{ cursor: "pointer", color: "#fff" }}
onClick={() =>
logout(() => {
history.push("/");
})
}
>
<i className="fa fa-sign-out-alt">Sign Out</i>
</span>
</li>
)}
</ul>
</div>
);
};
export default withRouter(Menu);
|
function gameControllerTests(jasmine){
this.jasmine = jasmine;
}
gameControllerTests.prototype.defineTestSuite = function() {
var jasmine = this.jasmine;
jasmine.describe('Game Controller Tests', function() {
var Alloy = require("alloy");
var $;
jasmine.beforeEach(function() {
/*Alloy.setSetting = function(name, value){};
Alloy.getSetting = function(name){ return 'string setting' };*/
$ = Alloy.createController('sections/game');
$.refreshGame = function(){};
});
jasmine.it("Refresh game is called on starting the game", function(){
var startGameSpy = jasmine.spyOn($, "refreshGame");
$.startGame();
jasmine.expect(startGameSpy).toHaveBeenCalled();
});
jasmine.it("Score is set to 0 on starting the game", function(){
jasmine.spyOn($, "refreshGame");
var setScoreSpy = jasmine.spyOn($, "setScore");
$.startGame();
jasmine.expect(setScoreSpy).toHaveBeenCalledWith(0);
});
});
};
exports.gameControllerTests = gameControllerTests;
|
const webpack = require('webpack');
// 创建编译器对象
const compiler = webpack({
mode: 'production',
// devtool: 'cheap-module-source-map', // 切勿同时使用 devtool 选项和 SourceMapDevToolPlugin/EvalSourceMapDevToolPlugin 插件
// devtool: 'source-map',
devtool: 'nosources-source-map', // 生成一个没有源码的source map映射,仅仅可以用来映射浏览器上的堆栈跟踪,而不会暴露源码。
// devtool: 'eval',
// devtool: 'cheap-eval-source-map',
// devtool: 'cheap-module-eval-source-map',
// devtool: 'eval-source-map',
// devtool: 'cheap-source-map',
// devtool: 'cheap-module-source-map',
// devtool: 'inline-cheap-source-map',
// devtool: 'inline-cheap-module-source-map',
// devtool: 'inline-source-map',
// devtool: 'hidden-source-map',
module: {
rules: [
{
test: /\.css$/,
use: 'css-loader'
}
]
},
plugins: [
// new webpack.SourceMapDevToolPlugin({ // 切勿同时使用 devtool 选项和 SourceMapDevToolPlugin/EvalSourceMapDevToolPlugin 插件
// filename: '[name].[hash].js.map',
// publicPath: 'http://127.0.0.1:9999/',
// fileContext: 'public',
// noSources: !true
// })
]
});
// 启动webpack
compiler.run((err, stats) => {
if (err) {
console.error(err);
return;
}
// 输出编译成功信息
console.log(stats.toString({ colors: true }));
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.