text
stringlengths
7
3.69M
import React from 'react'; import NavItem from './NavigationItem/NavigationItem'; import * as ROUTES from '../../../constants/routes'; import './NavigationItems.sass' const NavigationItems = () => ( <ul className = {'navigationItems'}> <NavItem link = {ROUTES.HOME} exact>Home</NavItem> <NavItem link = {ROUTES.ASSUMPTIONS}>Assumptions and Author</NavItem> </ul> ); export default NavigationItems;
// Show + Hide $('#btn-1').click(function() { if($(this).text() === 'HIDE'){ $(this).text('SHOW'); $('#card-1').toggle(3000); $('#card-1').hide(); } else{ $(this).text('HIDE'); $('#card-1').toggle(3000); $('#card-1').show(); } }); // Show + Hide => Toggle() $('#btn-2').click(function() { $('#card-2').toggle(3000); ($(this).text() === 'HIDE') ? $(this).text('SHOW') : $(this).text('HIDE'); }); // fadeIn() , fadeOut() -> fadeToggle() $('#btn1').click(function() { $(".par").toggle(1000); ($(this).text() === 'fadeIn') ? $(this).text('fadeOut') : $(this).text('fadeIn'); }); // slideup() , slideDown() -> slideToggle() $('#btn2').click(function() { $(".par1").slideToggle(5000); ($(this).text() === 'slideUp') ? $(this).text('slideDown') : $(this).text('slideUp'); });
var gplay = require('google-play-scraper'); const numberOfElements = process.argv[2]; const startingPointOfList = process.argv[3]; gplay.list({ category: gplay.category.MEDICAL, num: numberOfElements, start: startingPointOfList, country: 'en', }) .then(console.log, console.log); setTimeout(exit, 1700) function exit(){ process.exit() }
module.exports = () => ({ dropboxId: '59', imgLink: 'https://www.dropbox.com/s/1abji85jfrwkm05/img31.jpg?raw=1', createdAt: '2017-10-21T10:28:38.500Z', updatedAt: '2017-10-21T10:28:38.500Z', })
// Base routes for item.. exports.register = function(server, options, next){ var service_info = "ec interaction service"; //通过商品id找到评论 var get_comments_infos = function(product_id, cb){ server.plugins['models'].product_comments.find_comments(product_id,function(rows){ if (rows.length > 0) { cb(false,rows); }else { cb(true,"商品信息不存在!"); } }); }; //通过商品id找到追评 var get_again_comments = function(product_id, cb){ server.plugins['models'].product_comments.find_again_comments(product_id,function(rows){ if (rows.length > 0) { cb(false,rows); }else { cb(true,"商品信息不存在!"); } }); }; //通过人id找到人信息 var get_persons_infos = function(person_ids, cb){ server.plugins['models'].persons.find_persons(person_ids,function(rows){ if (rows.length > 0) { cb(false,rows); }else { cb(true,"评论人信息不存在!"); } }); }; //通过评论id找到晒单图片 var get_saidan_infos = function(comments_ids, cb){ server.plugins['models'].saidan_pictures.find_saidans(comments_ids,function(rows){ if (rows.length > 0) { cb(false,rows); }else { cb(true,"评论人信息不存在!"); } }); }; server.route([ //展示一个商品的评论 { method: 'GET', path: '/comments_show', handler: function(request, reply){ var product_id = request.query.product_id; get_comments_infos(product_id, function(err, rows){ if (!err) { return reply({"success":true,"message":"ok","rows":rows,"service_info":service_info}); }else { return reply({"success":false,"message":rows,"service_info":service_info}); } }); } }, //展示一个商品的追评 { method: 'GET', path: '/again_comments', handler: function(request, reply){ var product_id = request.query.product_id; get_again_comments(product_id, function(err, rows){ if (!err) { return reply({"success":true,"message":"ok","rows":rows,"service_info":service_info}); }else { return reply({"success":false,"message":rows,"service_info":service_info}); } }); } }, //通过评论找人信息 { method: 'GET', path: '/comments_persons', handler: function(request, reply){ var person_ids = request.query.person_ids; if (!person_ids) { return reply({"success":false,"message":"参数错误","service_info":service_info}); } person_ids = JSON.parse(person_ids); get_persons_infos(person_ids, function(err, rows){ if (!err) { return reply({"success":true,"message":"ok","rows":rows,"service_info":service_info}); }else { return reply({"success":false,"message":rows,"service_info":service_info}); } }); } }, //通过评论找晒单 { method: 'GET', path: '/comments_saidan', handler: function(request, reply){ var comments_ids = request.query.comments_ids; if (!comments_ids) { return reply({"success":false,"message":"参数错误","service_info":service_info}); } comments_ids = JSON.parse(comments_ids); get_saidan_infos(comments_ids, function(err, rows){ if (!err) { return reply({"success":true,"message":"ok","rows":rows,"service_info":service_info}); }else { return reply({"success":false,"message":rows,"service_info":service_info}); } }); } }, ]); next(); }; exports.register.attributes = { name: 'products_base' };
/** * Created by justfine on 18/1/24 */ import Vue from 'vue'; import VueRouter from 'vue-router'; import App from './app.vue'; import VeryVue from '../src/index'; // import locale from '../src/locale/lang/en-US'; import locale from '../src/locale/lang/zh-CN'; Vue.use(VueRouter); Vue.use(VeryVue, { locale }); // 开启debug模式 Vue.config.debug = true; // 路由配置 const router = new VueRouter({ esModule: false, routes: [{ path: '/affix', component: (resolve) => require(['./routers/affix.vue'], resolve) }, { path: '/icon', component: (resolve) => require(['./routers/icon.vue'], resolve) }] }); const app = new Vue({ router, render: h => h(App) }).$mount('#app')
function PluginManager() { this.runnerChains = {}; } PluginManager.prototype.push = function (key, runner) { this.runnerChains[key] = this.runnerChains[key] || []; this.runnerChains[key].push(runner); }; PluginManager.prototype.pop = function (key) { this.runnerChains[key] = this.runnerChains[key] || []; return this.runnerChains[key].pop(); }; PluginManager.prototype.remove = function (key, runner) { var runnerChain = this.runnerChains[key]; if (runnerChain) { var index = runnerChain.indexOf(runner); if (index >= 0) { runnerChain.splice(index, 1); return true;} } return false; }; PluginManager.prototype.contains = function (key, runner) { var runnerChain = this.runnerChains[key]; if (runnerChain) { var index = runnerChain.indexOf(runner); if (index >= 0) return true; } return false; }; PluginManager.prototype.exec = function (_this, key) { var args = Array.prototype.slice.call(arguments, 2); var runnerChain = this.runnerChains[key]; if (runnerChain) for (var i = 0; i < runnerChain.length; ++i) { runnerChain[i].apply(_this, args); } }; export default PluginManager;
import React from 'react'; import Logo from '../../Logo/Logo.js'; import NavigationItems from '../NavigationItems/NavigationItems.js'; import styles from './SideDrawer.module.css'; import Backdrop from '../../UI/Backdrop/Backdrop.js'; const SideDrawer = (props) => { const attachedClasses = props.isSideDrawerShowing ? [styles.SideDrawer, styles.Open] : [styles.SideDrawer, styles.Close]; return ( <> <Backdrop isShowing={props.isSideDrawerShowing} isClicked={props.closeSideDrawerClickFn} /> <div className={attachedClasses.join(' ')}> <div className={styles.Logo}> <Logo /> </div> <nav> <NavigationItems /> </nav> </div> </> ); }; export default SideDrawer;
'use strict'; /* Controllers */ angular.module('myApp.controllers') .controller('LoginController', ['$scope', '$http', '$location', 'authService', 'AppRegistry', function($scope, $http, $location, authService, AppRegistry){ $scope.username = ''; $scope.password = ''; console.log('Login Controller'); $scope.submit = function(){ var data = {username: $scope.username, password: $scope.password}; $http.post('/auth/login', data).success(function(data){ console.log('Recieved data: ', data); if(data.error){ $scope.flashError = data.message; return; } AppRegistry.prepForBroadcast('loggedInUser', data.user); authService.loginConfirmed(); }); }; //if(CommonAppState.loggedInUser){ //// $location.path('/home'); //} $scope.$on('event:auth-loginConfirmed', function(){ $location.path('/home'); }); }]);
import React, { Component, PropTypes } from 'react'; import PostInfo from './PostInfo'; class Post extends Component { componentDidMount() { // Fetch posts from firebase this.props.actions.postsFetch(); } render() { const {posts} = this.props; console.log(posts); const getPosts = () => Object.keys(posts).map(post => { return <PostInfo key={post} post={posts[post]}/> }); return ( <div className="col-xs-12"> {getPosts()} </div> ); } } export default Post; // default props Post.defaultProps = { }; // propTypes Post.propTypes = {};
var helper = {}; const Question = require("../models/problems"); const TC = require("../models/testcases"); const total = require("../models/total_questions"); const contests = require("../models/contests"); var moment = require("moment"); helper.displayAllProblems = async (req, res, next) => { Question.find({}).sort({ qID: -1 }) .then((data) => { res.render("admin", { data: data }); }) .catch((err) => { console.log(err); }) } helper.addQuestion = async function (req, res, next) { const ques = req.body.ques; // problem statement const tc = req.body.testcases; // testcases try { // attach qID to tc and ques const qID = await total.findOne({}); qID.totalProblems += 1; await qID.save(); ques.qID = qID.totalProblems; tc.qID = qID.totalProblems; // log them to the console console.log(ques); // console.log(tc); // push to database await Question.create(ques); await TC.create(tc); res.send(`Problem submitted as qID = ${qID.totalProblems}`); } catch (error) { console.log("couldn't submit the question/testcase"); console.log(error); res.send("Problem could not be submitted"); } }; helper.deleteProblem = async (req, res, next) => { Question.deleteOne({ qID: req.params.qID }) .then((data) => { res.redirect("/admin"); }) .catch((err) => { console.log(err); }) } helper.editQuestion = async function (req, res, next) { console.log(req.body.qID); console.log(req.body.ques); // console.log(req.body.testcases); try { await Question.findOneAndUpdate({ "qID": req.body.qID }, req.body.ques); await TC.findOneAndUpdate({ "qID": req.body.qID }, req.body.testcases); res.send("Question was updated"); } catch (error) { res.send("Couldn't update the question"); console.log(error); } }; helper.getQuestion = async (req, res, next) => { const ques = await Question.findOne({ "qID": req.params.qID }); const t_case = await TC.findOne({ "qID": req.params.qID }); res.render("problem_edit", { ques, t_case }); } helper.createContest = async (req, res, next) => { var newContest = { code: req.body.contestCode, name: req.body.contestName, date: req.body.date + " " + req.body.startTime, duration: req.body.duration, visible: req.body.visibility, problemsID: req.body.problemsID.split(",").map(qID => qID.trim()) }; await contests.create(newContest) .then((val) => { console.log(val); }) .catch((err) => { console.log(err); }) res.redirect("/admin/my-contests"); } helper.myContests = async (req, res, next) => { contests.find({}).sort({ date: 1 }) .then((data) => { for (var i = 0; i < data.length; i++) { data[i].D = moment(data[i].date).format('MMMM Do YYYY, h:mm:ss A'); } console.log(data); res.render("admin_contests", { data: data }); }) .catch((err) => { console.log(err); }); } helper.deleteContest = async (req, res, next) => { contests.deleteOne({ code: req.params.contCode }) .then((data) => { res.redirect("/admin/my-contests"); }) .catch((err) => { console.log(err); }) } helper.displayEditContest = async (req, res, next) => { contests.findOne({ code: req.params.contCode }) .then((data) => { data.DD = moment(data.date).format("L").split("/")[1]; data.MM = moment(data.date).format("L").split("/")[0]; data.YY = moment(data.date).format("L").split("/")[2]; data.TT = moment(data.date).format('HH:mm'); res.render("edit_contest", { data: data }); }) .catch((err) => { console.log(err); }) } helper.editContest = async (req, res, next) => { var editContest = { code: req.params.contCode, name: req.body.contestName, date: req.body.date + " " + req.body.startTime, duration: req.body.duration, visible: req.body.visibility, problemsID: req.body.problemsID.split(",").map(qID => qID.trim()) }; await contests.update({ code: req.params.contCode }, editContest) .then((val) => { console.log("EDITED: " + val); res.redirect("/admin/my-contests?" + req.params.contCode + "_success"); }) .catch((err) => { console.log(err); }) } module.exports = helper;
// console.log("myCustom Js"); // const allH2 = document.getElementsByTagName("h2"); // for (let h2 of allH2) { // h2.style.color = "lightblue"; // } const inputBtn = document.getElementById("inputGroup-sizing-lg"); // panda-btn-pink document.getElementById("contact").addEventListener("keyup", function (event) { if (event.target.value == "email") { inputBtn.classList.add("panda-btn-pink"); } // console.log(); }); const shoeCardImage = document.getElementById("red-shoe"); shoeCardImage.addEventListener("mouseenter", function (event) { event.target.src = "images/shoes/shoe-4.jpg"; }); shoeCardImage.addEventListener("mouseout", function (event) { event.target.src = "images/shoes/shoe-3.png"; }); // dblclick document .getElementById("contact") .addEventListener("dblclick", function (event) { event.target.classList.remove("panda-bg-pink-FE"); event.target.classList.add("panda-r-bg"); });
var Redis = require('ioredis'); const turf = require('@turf/turf'); const _ = require('lodash'); const h3 = require('h3-js'); const async = require("async"); const fs = require('fs'); const argv = require('minimist')(process.argv.slice(2)); var redis = new Redis(6379); if(!argv._.length) process.exit(); if(!argv.z) process.exit(); var id = argv._; var zoom = argv.z; redis.get('set:' + id + ':geojson').then(function (result) { if(!result) { console.log("ERROR"); return callback("Error"); } var geojson = JSON.parse(result); //var kmh3 = h3.edgeLength('km',5); //console.log("km3 " + kmh3); console.log("ho"); var km = h3.edgeLength(zoom,'km'); var grid = turf.pointGrid(turf.bbox(geojson),km,{mask:geojson}); var points = _ .chain(grid.features) .map((f) => { var c = f.geometry.coordinates; return h3.geoToH3(c[1], c[0], zoom); }) .value(); //fs.writeFileSync(zoom + '_dataout.json',JSON.stringify(points), "utf8"); //console.dir(points); const sets = {}; const inside = new Set(); const outside = new Set(); //var points = turf.pointGrid(geojson,1); //console.dir(points); setInsideOutside(points, geojson,inside,outside); //if(inside.size == 0) return callback(); //sets[zoom] = Array.from(inside); // fs.writeFileSync(zoom + '_dataout.json',JSON.stringify(Array.from(inside)), "utf8"); //console.dir(inside); var set_id = 'set:' + id + ':h3:zoom-' + zoom; var pipeline = redis.pipeline(); pipeline .del(set_id) .sadd(set_id, Array.from(inside)); var promise = pipeline.exec(); promise.then(function() { redis.quit(); }); }); function setInsideOutside(points,geojson,inside,outside){ for (var i = points.length - 1; i >= 0; i--) { var r = h3.h3ToGeo(points[i],true); var p = turf.point(_.reverse(r)); if(turf.inside(p,geojson)){ inside.add(points[i]) } else { outside.add(points[i]); } }; }
;(function(window) { var Gallery = class Gallery { constructor() { this._imageFinder = imageFinder this._store = new StoreClass() this._view = new ViewClass(this.setEventListeners.bind(this)) this.aborter = null } setEventListeners() { console.log('Gallery view is ready!') this._view.setLikes(this._store.likes) const { form, input, dropDown, overlay, likes, clearLikes } = this._view.cache input.focus() form.onsubmit = e => { e.preventDefault() this._view.clearResults() this._view.showLoader() this.doSearch(input.value, this._store.moduleId) input.value = '' } dropDown.onchange = e => this._onModuleChange(e) overlay.onclick = e => this._view.closeImage() likes.onclick = e => this._view.viewImage(e.target.src) clearLikes.onclick = () => this._clearStorage() this.doSearch('hello', this._store.moduleId) } doSearch(query, moduleId) { if (this.aborter) { this.aborter.abort() } this.aborter = new AbortController() var signal = this.aborter.signal this._imageFinder.search(query, moduleId, signal, res => this._onSearchResultReady(res) ) } _onSearchResultReady({ images }) { this._view.hideLoader() const storeImages = this._store.getImages(images) if (storeImages.length === 0) { this._view.showNoResults() } else { this._view.addSearchResultsToView(storeImages) var { results } = this._view.cache results.onclick = e => { this._handleResultsOnClick(e) } } } _handleResultsOnClick(e) { const { id } = e.target.closest('.image-container').dataset if (e.target.matches('.like-image, .like-image *')) { const likeSpan = e.target.closest('.like-image') this._addToLikes(this._store.findImage(id), likeSpan) } if (e.target.matches('.view-image, .view-image *')) { this._view.viewImage(this._store.findImage(id).url) } } _addToLikes(image, likeSpan) { if (!this._store.isLiked(image.id)) { this._store.addToLikes(image) this._view.addToLikes(image.url, likeSpan) } else { this._store.removeFromLikes(image) this._view.removeFromLikes(this._store.likes, likeSpan) } } _onModuleChange(e) { this._store.moduleId = e.target.value this._view.focusInput() } _clearStorage() { this._store.clearStorage() this._view.clearLikes() this._onSearchResultReady({ images: this._store.images }) } } window.CLASSES.GalleryClass = Gallery })(window)
import React, { Component } from "react"; import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom"; import "./PaymentFormLoader.css"; import PaymentForm from "./components/PaymentForm"; import PaymentFormLoader from "./components/PaymentFormLoader"; import { getFromStorage, setInStorage } from "./util/storage"; import Header from "./components/Header"; import SideBar from "./components/SideBar"; import MobileMenu from "./components/MobileMenu"; import Home from "./components/Home"; import Footer from "./components/Footer"; import About from "./components/About"; import WhatPeopleNeed from "./components/WhatPeopleNeed"; import WhatYouNeed from "./components/WhatYouNeed"; import HowItWorks from "./components/HowItWorks"; import Contact from "./components/Contact"; import Register from "./components/Register"; import Auto from "./components/Auto"; import Appliances from "./components/Appliances"; import Moto from "./components/Moto"; import Cell from "./components/Cell"; import Furniture from "./components/Furniture"; import Instruments from "./components/Instruments"; import Vidgame from "./components/Vidgame"; import HomeService from "./components/HomeService"; import AutoService from "./components/AutoService"; import Clothing from "./components/Clothing"; import Misc from "./components/Misc"; import Collectibles from "./components/Collectibles"; import ComEquip from "./components/ComEquip"; import Housing from "./components/Housing"; import Beauty from "./components/Beauty"; import UserPanel from "./components/UserPanel"; import BodyBackgroundImage from "./img/Body Page.png"; import Search from "./components/Search"; import SearchResults from "./components/SearchResults"; import AdvancedSearch from "./components/AdvancedSearch"; class App extends Component { constructor(props) { super(props); this.state = { token: "", isAuth: false, userName: "", firstName: "", userId: "", email: "", searchTerm: "", searchResults: [], showResults: false, distance: "", zipCode: "", zipResults: [], }; this.onTextChange = this.onTextChange.bind(this); this.onSearch = this.onSearch.bind(this); this.onDistanceChange = this.onDistanceChange.bind(this); this.onZipChange = this.onZipChange.bind(this); this.fetchZipInfo = this.fetchZipInfo.bind(this); } onTextChange(event) { this.setState({ searchTerm: event.target.value, }); } onDistanceChange(event) { this.setState({ distance: event.target.value, }); } onZipChange(event) { this.setState({ zipCode: event.target.value, }); } onSearch() { const { searchTerm, searchResults, showResults } = this.state; if (!showResults) { this.setState({ showResults: true, }); } console.log("Search Term:", searchTerm); if (searchTerm === "") { fetch("/items/", { method: "GET", headers: { "Content-type": "application/json", }, }) .then((res) => res.json()) .then((json) => { console.log("Search Response:", json); if (json.count > 0) { this.setState({ searchResults: json.items, }); } }); } else { fetch("/items/search2/" + searchTerm, { method: "GET", headers: { "Content-type": "application/json", }, }) .then((res) => res.json()) .then((json) => { console.log("Search Response:", json); if (json.count > 0) { this.setState({ searchResults: json.items, }); } }); } this.fetchZipInfo(); } fetchZipInfo() { const { zipCode, distance, zipResults } = this.state; if (zipCode !== "" && distance !== "") { fetch( `https://redline-redline-zipcode.p.rapidapi.com/rest/radius.json/${zipCode}/${distance}/mile`, { method: "GET", headers: { "x-rapidapi-host": "redline-redline-zipcode.p.rapidapi.com", "x-rapidapi-key": "47eaf9b3eemsh8821c07d555b84cp11d76cjsn3879605d5b16", }, } ) .then((response) => response.json()) .then((response) => { console.log("Zip Response", response); console.log(response.zip_codes); this.setState({ zipResults: response.zip_codes, }); }) .catch((err) => { console.log(err); }); } else { console.log("No ZIP"); } } componentDidMount() { console.log("Mounting APP"); const obj = getFromStorage("the_main_app"); if (obj && obj.token) { const { token } = obj; //Verify console.log("Checking Token..."); fetch("/user/verify/" + token) .then((res) => res.json()) .then((json) => { if (json.message === "User Verified") { console.log("TOKEN VERIFIED"); this.setState({ token, userName: json.userName, firstName: json.firstName, userId: json.userId, email: json.email, isAuth: true, }); } else { this.setState({ isAuth: false, }); } }); } else { console.log("No Token"); this.setState({ isAuth: false, }); } } render() { const { isAuth, userName, firstName, userId, searchTerm, searchResults, showResults, token, email, distance, zipCode, zipResults, } = this.state; return ( <div className="App"> <Header isAuth={isAuth} userName={userName} firstName={firstName} /> <MobileMenu /> <div className="Search"> {/* <input className="SearchBox" type="text" placeholder="Search Term" value={searchTerm} onChange={this.onTextChange} /> */} <select className="SearchDropDown" name={distance} onChange={this.onDistanceChange} > <option value="">Nationwide</option> <option value="5">within 5 miles</option> <option value="10">within 10 miles</option> <option value="20">within 20 miles</option> <option value="60">within 60 miles</option> </select> <input className="SearchDistance" type="text" placeholder={distance == "" ? "-----" : "Zip Code"} value={zipCode} onChange={this.onZipChange} /> <button onClick={this.onSearch}>GO</button> </div> <div style={{ backgroundImage: `url(${BodyBackgroundImage})`, backgroundPosition: "center", backgroundSize: "cover", backgroundRepeat: "no-repeat", }} className="mycontainer" > <SideBar /> {this.state.showResults ? ( <SearchResults isAuth={isAuth} userId={userId} searchResults={searchResults} token={token} firstName={firstName} zipCode={zipCode} distance={distance} zipResults={zipResults} /> ) : ( <BrowserRouter> <Switch> <Route exact path={"/"} render={(props) => ( <Home {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/WhatPeopleNeed"} render={(props) => ( <WhatPeopleNeed {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/WhatYouNeed"} render={(props) => ( <WhatYouNeed {...props} isAuth={isAuth} email={email} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/HowItWorks"} component={HowItWorks} /> <Route path={"/PaymentFormLoader"} component={PaymentFormLoader} /> <Route path={"/About"} component={About} /> <Route path={"/Contact"} component={Contact} /> <Route path={"/Register"} component={Register} /> <Route path={"/auto"} render={(props) => ( <Auto {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/appliances"} render={(props) => ( <Appliances {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/moto"} render={(props) => ( <Moto {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/cell"} render={(props) => ( <Cell {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/furniture"} render={(props) => ( <Furniture {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/instruments"} render={(props) => ( <Instruments {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/games"} render={(props) => ( <Vidgame {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/homeservice"} render={(props) => ( <HomeService {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/autoservice"} render={(props) => ( <AutoService {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/clothing"} render={(props) => ( <Clothing {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/misc"} render={(props) => ( <Misc {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/collectibles"} render={(props) => ( <Collectibles {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/comequip"} render={(props) => ( <ComEquip {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/housing"} render={(props) => ( <Housing {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/beauty"} render={(props) => ( <Beauty {...props} isAuth={isAuth} userName={userName} firstName={firstName} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/userpanel"} render={(props) => ( <UserPanel {...props} isAuth={isAuth} userId={userId} token={token} zipCode={zipCode} distance={distance} /> )} /> <Route path={"/advanced"} render={(props) => ( <AdvancedSearch {...props} isAuth={isAuth} userId={userId} token={token} firstName={firstName} zipCode={zipCode} distance={distance} /> )} /> </Switch> </BrowserRouter> )} <Footer /> </div> </div> ); } } export default App;
export default class SubjectsController { constructor (Subject) { this.Subject = Subject this.subjects = [] this.loadSubjects() } loadSubjects () { this.Subject.query((subjects) => { this.subjects = subjects }) } deleteSubject (subject) { this.Subject.delete(subject, () => { this.loadSubjects() }) } } SubjectsController.$inject = ['Subject']
// function buildPlot() { /* data route */ // console.log('hello') var url = "/numbers_data"; d3.json(url).then(function(movies, error) { console.log(error); console.log(movies); var data = [{ values: movies.TotalGrossAllMovies, labels: movies.Distributor, type: 'pie' }]; var layout = { height: 400, width: 500 }; Plotly.newPlot('myDiv', data, layout); var data = [{ x: ["Bohemian Rhapsody", "Widows", "Once Upon a Deadpool", "The Hate U Give"], y: [195296306, 42162140, 324574517, 29705000], type: 'bar' }]; Plotly.newPlot('bar', data); });
(function ($) { module('jQuery.abSignificance'); var fixture = { resultType: 'conversions', control: { 'label': 'Control A', 'hits': 16, 'conversions': 4 }, treatment: { 'label': 'Treatment A', 'hits': 16, 'conversions': 8 }, conversionRateOptions: { 'percentage': true, 'decimalPlaces': 2 }, confidenceOptions: { 'percentage': false, 'decimalPlaces': false, 'targetValue': 95, 'timesHundred': false } }; var hitsFixture = jQuery.extend({}, fixture); hitsFixture.resultType = 'hits'; var confidenceFixture = jQuery.extend({}, fixture); confidenceFixture.resultType = 'confidence'; test('AB Significance - Test Suite', function () { /* _________________________________________________________________________________ */ /***************************************************** * Hits Tests ****************************************************/ fixture.resultType = 'hits'; var hits = $.abSignificance(fixture); // we are returning a confidence value propEqual(hits, { 'Control A': 16, 'Treatment A': 16 }, 'Hits - should return hits array'); /***************************************************** * End of Hits Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * Conversions Tests ****************************************************/ fixture.resultType = 'conversions'; var conversions = $.abSignificance(fixture); propEqual(conversions, { 'Control A': 4, 'Treatment A': 8 }, 'Conversions - should return conversions array'); /***************************************************** * End of Conversions Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * Confidence Tests ****************************************************/ // we are returning a confidence value strictEqual($.abSignificance(confidenceFixture), 0.9347149669381035, 'Confidence - should return confidence value' ); // we are returning confidence times hundred confidenceFixture.confidenceOptions.timesHundred = true; strictEqual($.abSignificance(confidenceFixture), 93.47149669381035, 'Confidence - should return confidence times hundred' ); // we are returning confidence times hundred with percentage confidenceFixture.confidenceOptions.percentage = true; strictEqual($.abSignificance(confidenceFixture), '93.47149669381035%', 'Confidence - should return confidence times hundred with percentage' ); // check decimal place is 2 without percentage confidenceFixture.confidenceOptions.decimalPlaces = 2; confidenceFixture.confidenceOptions.percentage = false; equal($.abSignificance(confidenceFixture), '93.47', 'Confidence - should return to 2 decimal places without percentage' ); // check decimal place is 2 with percentage confidenceFixture.confidenceOptions.percentage = true; equal($.abSignificance(confidenceFixture), '93.47%', 'Confidence - should return to 2 decimal places with percentage' ); /***************************************************** * End of Confidence Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * Conversion Rate Tests ****************************************************/ fixture.resultType = 'conversionRates'; fixture.conversionRateOptions.decimalPlaces = false; fixture.conversionRateOptions.percentage = false; fixture.control.hits = 100; fixture.control.conversions = 50; fixture.treatment.hits = 100; fixture.treatment.conversions = 75; // Test without decimal place and percentage propEqual($.abSignificance(fixture), { 'Control A': 50, 'Treatment A': 75 }, 'Conversion Rates - should return correct conversion rate without decimal and percentage'); // Test without decimal place and with percentage fixture.conversionRateOptions.percentage = true; propEqual($.abSignificance(fixture), { 'Control A': '50%', 'Treatment A': '75%' }, 'Conversion Rates - should return correct conversion rate without decimal place and with percentage'); // Test with decimal place and percentage fixture.conversionRateOptions.percentage = true; fixture.conversionRateOptions.decimalPlaces = 2; propEqual($.abSignificance(fixture), { 'Control A': '50.00%', 'Treatment A': '75.00%' }, 'Conversion Rates - should return correct conversion rate with decimal and percentage'); /***************************************************** * End of Conversion Rate Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * zScore Tests ****************************************************/ fixture.resultType = 'zScore'; var zScore = $.abSignificance(fixture); equal(zScore, 3.7796447300922718, 'Z-Score - should return correct Z-Score'); /***************************************************** * End of zScore Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * pValue Tests ****************************************************/ fixture.resultType = 'pValue'; fixture.control.hits = 600; fixture.control.conversions = 100; fixture.treatment.hits = 700; fixture.treatment.conversions = 150; var pValue = $.abSignificance(fixture); equal(pValue, 0.014195849665686433, 'P Value - should return correct P Value'); /***************************************************** * End of pValue Tests ****************************************************/ /* _________________________________________________________________________________ */ /* _________________________________________________________________________________ */ /***************************************************** * Is Significant Tests ****************************************************/ fixture.resultType = 'significant'; // Pass in significant results and test true equal($.abSignificance(fixture), true, "Should (if over targetValue) e.g. '95' then return true" ); fixture.control.hits = 600; fixture.control.conversions = 500; fixture.treatment.hits = 600; fixture.treatment.conversions = 500; // Pass in insignificant results and test false QUnit.equal($.abSignificance(fixture), false, "Should (if under targetValue) e.g. '95' then return false" ); /***************************************************** * End of Significant Tests ****************************************************/ /* _________________________________________________________________________________ */ /***************************************************** * Full Results Tests ****************************************************/ fixture.resultType = 'all'; fixture = $.abSignificance.options; fixture.control.hits = 100; fixture.control.conversions = 50; fixture.treatment.hits = 100; fixture.treatment.conversions = 50; fixture.conversionRateOptions.decimalPlaces = 2; fixture.conversionRateOptions.percentage = true; // Pass in significant results and test true propEqual($.abSignificance(fixture), { 'confidence': 0.50000000102793, 'confidencePercentage': '50.00%', 'conversionRates': { 'Control A': '50.00%', 'Treatment A': '50.00%' }, 'pValue': 0.49999999897207004, 'significant': false, 'zScore': 0 }, "When testing AB we should get back the correct results" ); /***************************************************** * End of Significant Tests ****************************************************/ /* _________________________________________________________________________________ */ }); }(jQuery));
var WebRtc = (function() { 'use strict'; var pc_config = {"iceServers":[{"url":"stun:stun.l.google.com:19302"}]}; var mediaConstraints = {'mandatory': {'OfferToReceiveAudio':true, 'OfferToReceiveVideo':true}}; var started = false, localVideo, remoteVideo, localStream, socket, pc, config = { wsAddr: 'http://localhost', localVideo: 'local', remoteVideo: 'remote' }; function initialize( options ){ extend(config, options); console.log('config', config); localVideo = document.getElementById(config.localVideo); remoteVideo = document.getElementById(config.remoteVideo); setupWS(); // Send BYE on refreshing(or leaving) a demo page to ensure the room is cleaned for next session. window.onbeforeunload = function () { socket.emit('message', {type:'bye'}); } } function setupWS(){ socket = io.connect(config.wsAddr); socket.on('connection', function(){ console.log('ws connected'); }); socket.on('msg', function(msg){ console.log('ws', msg) if(msg.type == 'offer'){ createPeerConnection(); // Set Remote SessionDescription pc.setRemoteDescription(new RTCSessionDescription(msg)); doAnswer(); } else if(msg.type == 'answer'){ pc.setRemoteDescription(new RTCSessionDescription(msg)); } else if (msg.type === 'candidate') { var candidate = new RTCIceCandidate({sdpMLineIndex:msg.label, candidate:msg.candidate}); pc.addIceCandidate(candidate); } else if (msg.type === 'bye') { onRemoteHangup(); } }); } function createPeerConnection(){ console.log('create peerconnection'); pc = new webkitRTCPeerConnection(pc_config); pc.addStream(localStream); pc.onaddstream = function(event){ remoteVideo.src = webkitURL.createObjectURL(event.stream); if(config.onconnection){ config.onconnection(); } }; pc.onicecandidate = onIceCandidate; } // Callback for IceCandidate function onIceCandidate(event) { if (event.candidate) { socket.emit('message', {type:'candidate', label:event.candidate.sdpMLineIndex, id:event.candidate.sdpMid, candidate:event.candidate.candidate}); } else { console.log("End of candidates."); } } function doCall(){ pc.createOffer(function(sd){ pc.setLocalDescription(sd); socket.emit('message', sd); }, null, mediaConstraints); } function doAnswer(){ // Send Answer pc.createAnswer(function(sd){ pc.setLocalDescription(sd); socket.emit('message', sd); }); } function onRemoteHangup(){ if(config.ondisconnect){ config.ondisconnect(); } stop(); } function hangUp(){ stop(); socket.emit('message', {type: 'bye'}); } function stop(){ pc.close(); pc = null; } function start(caller) { navigator.webkitGetUserMedia({'audio': true, 'video': true}, function(stream){ localStream = stream; localVideo.src = webkitURL.createObjectURL(stream); if(caller){ createPeerConnection(); doCall(); } started = true; } ); } function hasStarted(){ return started; } /** * Extend object a with the properties of object b. * If there's a conflict, object b takes precedence. */ function extend( a, b ) { for( var i in b ) { a[ i ] = b[ i ]; } } return { initialize: initialize, start : start, hangUp: hangUp, started: hasStarted } })();
module.exports = { env: process.env.SIGNALKUPPE_WEBSITE_ENV, websiteUrl: process.env.SIGNALKUPPE_WEBSITE_URL, siteName: 'Signalkuppe', siteSlogan: 'Parole oltre i 4000m', description: 'Blog personale di Matteo Leoni', facebook: 'https://www.facebook.com/signalkuppe', instagram: 'https://www.instagram.com/signalkuppe/', twitter: 'https://twitter.com/signalkuppe', github: 'https://github.com/signalkuppe', twitterAuthor: 'signalkuppe', newsletterUrl: 'http://eepurl.com/dgiWQH', homepageFoto: '//images.ctfassets.net/rotmy72mdop6/550oMjcWnUrt5EsIpSFNX8/533a61fbef5a46f5f84452530f40dc4d/matteo-leoni.jpg', };
import Layout from '../components/Layout' const AboutMeStyle = { padding: '0', margin: '0', height: '70vh', width: '100vw', display: 'flex', alignItems: 'center', justifyContent: 'center', textAlign: 'justify', fontSize: '3vmin', } const ParagraphStyle = { width: '50vw', alignItems: 'center', display: 'flex', flexDirection: 'column', justifyContent: 'center', } const About = () => ( <Layout> <div style={AboutMeStyle}> <div style={ParagraphStyle}> <h1>Who I am</h1> <p> I was born to do one thing but, I haven't been able to find a way to get paid sitting on the couch and binge watching Netflix. So, I decided start studying Frontend Web Development. If you ask my family, they will tell you how technically savvy I am. I don't think I would be bragging much if I said I am the go to guy when they need someone to hook up their printers. If the word of my family isn't enough keep reading and I may surprise you. </p> </div> </div> </Layout> ) export default About
const experience = [ { startYear: 2018, endYear: null, position: 'Full Stack Developer', place: 'Bright Brand', desc: 'Constructing web-sites & web-services from scratch to production.', id: 3 }, { startYear: 2018, endYear: 2018, position: 'Web Developer Trainee', place: 'NRG-Soft', desc: 'Writing modules & functions on big AngularJS project.', id: 2 }, { startYear: 2015, endYear: 2018, position: 'Freelancer', place: 'World', desc: 'Created a lot of small & big project, using different technologies. Did everything what need partners.', id: 1 }, ] export default experience;
import React from 'react'; import { withStyles } from '@material-ui/styles'; import { Grid } from '@material-ui/core'; import AllTransactions from './components'; const styles = theme => ({ root: { padding: theme.spacing(4) } }); const Transactions = props => { const { classes } = props; return ( <div className={classes.root}> <Grid container spacing={4} > <Grid item lg={12} md={12} xl={9} xs={12} > <AllTransactions /> </Grid> </Grid> </div> ); }; export default withStyles(styles)(Transactions);
import React from 'react'; const Home = (props) => { if (!props.word){ return ( <div style={{textAlign: "center"}}> <h1>Welcome!</h1> </div> ) }else{ if(isNaN(props.word)){ return ( <div style={{textAlign: "center"}}> <h1 style ={ props.color ?{ color: props.color, backgroundColor: props.bgColor } :null }>The word is: {props.word}</h1> </div> ) }else{ return ( <div style={{textAlign: "center"}}> <h1> The number is: {props.word}</h1> </div> ) } } } export default Home;
import React, { Component } from "react"; import { View, StyleSheet, TouchableOpacity, StatusBar, ScrollView, Text, Image } from "react-native"; import StarRating from "react-native-star-rating"; import { Input, InputProps, Button } from "react-native-ui-kitten"; import AntIcon from "react-native-vector-icons/AntDesign"; import { withNavigation, DrawerActions } from "react-navigation"; import * as CONSTANT from "../../Constants/Constant"; class OfferedServicesCard extends Component { render() { return ( <TouchableOpacity activeOpacity={0.7} onPress={() => this.props.navigation.navigate("DetailDoctorScreen")} style={styles.container} > <View style={styles.mainLayoutServices}> <Image resizeMode="cover" style={styles.ImageStyle} source={this.props.logo} /> <View style={{ borderLeftColor: "#dddddd", borderLeftWidth: 0.6 }} /> <Text numberOfLines={1} style={styles.mainServiceName}> {this.props.name} </Text> </View> <AntIcon name="down" color={"#484848"} size={17} style={{ alignSelf: "flex-end", marginTop: -42, marginRight: 10 }} /> </TouchableOpacity> ); } } export default withNavigation(OfferedServicesCard); const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#ffffff", marginTop: 2, elevation: 3, shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.2, shadowColor: "#000", marginRight: 3, marginLeft: 3, marginBottom: 5, borderRadius: 4, height: 70 }, mainLayoutServices: { flexDirection: "row", height: 70 }, ImageStyle: { margin: 15, width: 35, height: 35 }, mainServiceName: { color: "#484848", fontSize: 15, margin: 24, fontFamily: CONSTANT.PoppinsMedium } });
/** * @name FormTitle * @author Chris Holle * @overview Title for page sections/titles' * @param {string} title to be displayed * @example <FormTitle title="Create A Project" /> */ import React from "react" import styled from "styled-components" import meridianTheme from "assets/stylesheets/meridianTheme" const Background = styled.div` display: contents; color: #1a1a1a; padding: 3em 0 1em 0; text-align: center; ` const Line = styled.hr` margin-top: -0.5em; margin-bottom: 4rem; border: 0; ` const Title = styled.h1` font-family: "Bio-Sans", sans-serif; src: url(../assets/fonts/Bio-Sans-Bold.otf) format("otf"); ` const Divider = styled.hr` width: 10em; height: 2px; margin-top: -0.5em; background: ${meridianTheme.primary}; ` export default ({ title }) => ( <Background> <Title>{title}</Title> <Divider /> <Line /> </Background> )
require('dotenv').config() const http = require('./app.js'); const port = process.env.PORT; require('./db/mongoose.js'); http.listen(port, ()=> console.log('Сервер работает - localhost:8089'));
function max1020(a, b){ // 9, 21 if ((a >= 10 && a <=20) && (b >= 10 && b <=20)) { if (a > b) { return a; } if (b > a) { return b; } } if (a >= 10 && a <=20) { return a; } if (b >= 10 && b <=20) { return b; } return 0; }
// BrowserRouter--> a component that just enabel routing , so anything inside this component has access to the browser // Switch--> it will allow us look to the url and making a decisions based on that // Route --> determain a single route import React, { useState, useEffect } from 'react'; // useEffect its to handel all side effect import Home from "./components/pages/Home"; import "bootstrap/dist/css/bootstrap.min.css"; import { BrowserRouter , Switch, Route } from "react-router-dom"; import axios from "axios" import Login from "./components/auth/Login"; import Register from "./components/auth/Register"; import Header from "./components/layout/Header"; import Navbar from "./components/navbar.component"; import calender from "./components/calender.component"; import CreateTask from "./components/create-material.component"; import EditTask from "./components/edit.component"; import UserContext from "./context/userContext"; // stores the token import Footer from "./components/layout/footer.js"; import '@fortawesome/fontawesome-free/css/all.min.css'; import 'bootstrap-css-only/css/bootstrap.min.css'; import 'mdbreact/dist/css/mdb.css'; // import Home from './pages/home.component'; // import "./style.css"; function App() { const [userData, setUserData] = useState({ //why inside an array? token: undefined,// becouse we need to know if there is token if there is not the token must be undefined user: undefined, }); // CHECK IF THERE IS TOKEN IN LOCAL STOREGE OR NOT useEffect(() => { const checkLoggedIn = async () => { let token = localStorage.getItem("auth-token"); if(token === null){ // add it to the localS automaticlly localStorage.setItem("auth-token", ""); token = ""; } const tokenRes = await axios.post( "http://localhost:1300/api/user/tokenIsValid", null, //the body is null, dont send anything to the body { headers: {"x-auth-token": token}} ); // console.log(tokenRes.data)// true or false // to get the user if(tokenRes.data){ const userRes = await axios.get("http://localhost:1300/api/user/",{ headers: {"x-auth-token": token}, }); setUserData({ token, user: userRes.data, }) } }; checkLoggedIn(); }, []); // the array is a dependensie list return ( <> <BrowserRouter> <UserContext.Provider value={{ userData, setUserData}}> <Header /> <Navbar/> <Switch> <Route exact path="/" component={Home} /> <Route path="/login" component={Login} /> <Route path="/register" component={Register} /> <Route path="/calender" exact component={calender} /> <Route path="/add" component={CreateTask} /> {/* create */} <Route path="/edit/:id" component={EditTask} /> </Switch> <Footer/> </UserContext.Provider> </BrowserRouter> </> ); } export default App;
'use strict'; angular .module('sbAdminApp') .controller('mainController', function ($scope, TranslateService) { var vm = this; vm.getLanguages = function () { return TranslateService.getLanguages() .then(function (langs) { vm.languages = langs; }); }; vm.setLanguage = function (lang) { TranslateService.changeLang(lang); } });
const {Router} = require('express'); const controllers = requir('./item.controller.js'); const router = Router(); // /api/item router .route('/') .get(controllers.getOne) .post(controllers.createOne) // /api/item/:id router .route('/:id') .get(controllers.getOne) .put(controllers.updateOne) .delete(controller.removeOne) module.exports = router;
module.exports = { preset: 'react-native', setupFilesAfterEnv: [ '<rootDir>/jest.setup.js', './node_modules/react-native-gesture-handler/jestSetup.js' ], transformIgnorePatterns: [ 'node_modules/(?!@react-native|react-native|@react-navigation|expo|polyfills|Libraries|react-navigation|native-base|native-base-shoutem-theme|@shoutem/theme|@shoutem/animation|@shoutem/ui|tcomb-form-native|@unimodules|@expo|@codler|@react-native-community/art)' ], snapshotSerializers: [ 'enzyme-to-json/serializer' ] }
export const groupTrend = (data, prefix, startingIndex = 0, minIntegerDigits = 1, reverse = true) => { let index = startingIndex const getKey = i => `${prefix}${i.toLocaleString('en-US', { minimumIntegerDigits: minIntegerDigits, useGrouping: false })}` const trend = [] while(getKey(index) in data) { trend.push(data[getKey(index)]) index ++ } if(reverse) { trend.reverse() } return trend } export const groupTrendByISODate = (data, startDate, prefix = '', step = 24 * 60 * 60 * 1000, reverse = true) => { const getKey = dateObj => `${prefix}${dateObj.toISOString().substring(0, 10)}` let targetDate = startDate const trend = [] while(getKey(targetDate) in data) { trend.push({ date: targetDate, value: data[getKey(targetDate)] }) targetDate = new Date(targetDate - step) } if(reverse) { trend.reverse() } return trend } export const roundToPercision = (num, percision = 1) => Math.round(num / percision) * percision
const { describe, expect, test } = require('@jest/globals'); const { getConcatenation } = require("./solution"); describe('Problem 1929: Concatenation of Array', () => { test('Test 1: [1, 2, 1]', () => { const nums = [1, 2, 1]; const expected = [1, 2, 1, 1, 2, 1]; const output = getConcatenation(nums); expect(output).toMatchObject(expected); }); test('Test 2: [1, 3, 2, 1]', () => { const nums = [1, 3, 2, 1]; const expected = [1, 3, 2, 1, 1, 3, 2, 1]; const output = getConcatenation(nums); expect(output).toMatchObject(expected); }); test('Test 3: [1]', () => { const nums = [1]; const expected = [1, 1]; const output = getConcatenation(nums); expect(output).toMatchObject(expected); }); test('Test 4: []', () => { const nums = []; const expected = []; const output = getConcatenation(nums); expect(output).toMatchObject(expected); }); test('Test 5: [9, 8, 7, 6, 5, 4, 3, 2, 1]', () => { const nums = [9, 8, 7, 6, 5, 4, 3, 2, 1]; const expected = [9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1]; const output = getConcatenation(nums); expect(output).toMatchObject(expected); }) });
import React, { useEffect, useState } from 'react' import App from "../App" import "./First.css" import AOS from 'aos'; import 'aos/dist/aos.css'; import Footer from "./Footer" import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; function First() { const [app, setApp] = useState(false); useEffect(() => { AOS.init({ duration: 2500 }); if (window.sessionStorage.getItem('app')) { setApp(true); } }, []) const setAppp = () =>{ window.sessionStorage.setItem('app',true); setApp(true); } return ( <> {app ? <App /> : ( <Router> <Switch> <Route path="/" exact> <div className="top"> <div className="backy"> <nav> <img src="/Capture.jpg" /> <h5 onClick={setAppp}>LOGIN</h5> </nav> <div className="body"> <h1>HOW WOULD YOU LIKE TO...</h1> <h3>Talk to your friends, call them from the browser or even video call them here's your one-stop solution.</h3> <a className="butn" href="#" onClick={setAppp}>Open in browser</a> </div> </div> <div className="en-invite"> <div data-aos="fade-in" data-aos-once="false" className="invites"> <img src="/invites.jpg"></img> <div className="side-invite"> <h1>Invite your friends to a safe chatting environment</h1> <p>share your unique id with friends to add to your profile. Enjoy realtime chatting with friends...</p> </div> </div> </div> <div className="en-invite bac"> <div data-aos="fade-in" data-aos-once="false" className="invites"> <div className="side-invite"> <h1>Personalise your profile</h1> <p>that photo where you look really amazing how about that for a profile pic :)</p> </div> <img className="cha" src="/profile.jpg"></img> </div> </div> <div className="en-invite"> <div data-aos="fade-in" data-aos-once="false" className="invites"> <img src="/chat.jpg"></img> <div className="side-invite"> <h1>Let's Hangout here then :)</h1> <p>chat along with your friends...</p> </div> </div> </div> <div className="en-invite bac"> <div data-aos="fade-in" data-aos-once="false" className="invites logg"> <h1>So looks interesting?</h1> <h3>Click on Login Below :)</h3> <h2 className="btnn" onClick={setAppp}>LOGIN</h2> </div> </div> <div className="foo"> <Footer /> </div> </div> </Route> </Switch> </Router> )} </> ) } export default First
const homeCommands = { createAccount() { this.waitForElementVisible('@signUpButton', 10000) .click('@signUpButton') .api.pause(7000); return this // Return page object for chaining } }; module.exports = { commands: [homeCommands,{ setQuery( selector,value){ return this .setValue(selector , value); }, myCustomPause: function () { this.api.pause(1000); }, search(){ return this .click('#cookyGotItBtnBox > div > button'); }, }], elements: { firstNameInput: {selector: 'input[name=firstname]'}, lastNameInput: {selector: 'input[name=lastname]'}, phoneInput: {selector: 'input[name=phone]'}, emailInput: {selector: 'input[name=email]'}, passwordInput: {selector: 'input[name=password]'}, rePasswordInput: {selector: 'input[name=confirmpassword]'}, signUpButton: {selector: 'button[type="submit"]', locateStrategy: 'css selector'}, gotit:{selector:'#cookyGotItBtnBox > div > button'}, headSignUp:{selector:'body > div.body-inner > div.main-wrapper.scrollspy-action > section > div > div > div:nth-child(1) > div > h3'}, } };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getChat = exports.disconnectChat = exports.JoinChatRoom = void 0; let ChatRoomsConnected = []; exports.JoinChatRoom = (socketID, room) => { let index = ChatRoomsConnected.findIndex(chat => chat.socketID === socketID); if (index !== -1) { ChatRoomsConnected[index] = { socketID: socketID, room: room }; } else { ChatRoomsConnected.push({ socketID: socketID, room: room }); } }; exports.disconnectChat = (socketID) => { let index = ChatRoomsConnected.findIndex(chat => chat.socketID === socketID); if (index !== -1) { ChatRoomsConnected.splice(index, 1); } }; exports.getChat = () => { return ChatRoomsConnected; };
// @flow import { type Action } from "shared/types/ReducerAction"; import { type AsyncStatusType, type NotificationType, } from "shared/types/General"; import { ASYNC_STATUS } from "constants/async"; import { ASYNC_USER_INIT, HANDLE_NOTIFICATION, GET_USERS_SUCCESS, GET_USER_SUCCESS, } from "actionTypes/user"; export type UserStateType = { status: AsyncStatusType, notification: NotificationType, users: Array<any>, user: null | Object, }; const initialState: UserStateType = { status: ASYNC_STATUS.INIT, notification: null, users: [], user: null, }; function asyncUsersInit(state: UserStateType) { return { ...state, status: ASYNC_STATUS.LOADING, notification: null, }; } function getUserSuccess( state, { _id, username, email, employeeNumber, gender, role } ) { return { ...state, status: ASYNC_STATUS.SUCCESS, user: { _id, username, email, employeeNumber, gender, role, }, }; } function handleNotification(state: UserStateType, { isSuccess, notification }) { return { ...state, notification, status: isSuccess ? ASYNC_STATUS.SUCCESS : ASYNC_STATUS.FAILURE, }; } export default ( state: UserStateType = initialState, { type, payload = {} }: Action ) => { switch (type) { case ASYNC_USER_INIT: return asyncUsersInit(state); case HANDLE_NOTIFICATION: return handleNotification(state, payload); case GET_USERS_SUCCESS: return { ...state, status: ASYNC_STATUS.SUCCESS, users: payload, }; case GET_USER_SUCCESS: return getUserSuccess(state, payload); default: return state; } };
import styled from "styled-components"; export const Story = styled.div` cursor: pointer; img { height: 3.2rem; width: 3.2rem; border-radius: 50%; border: 4px solid ${(props) => props.theme.primaryColor}; background-size: cover; background-position: center; object-fit: cover; } span { font-size: 0.6rem; color: ${(props) => props.theme.fontColor1}; font-weight: 300; } `;
import axios from 'axios'; import { router } from '@/router'; const ajaxUrl = 'http://192.168.0.110:8989'; const http = axios.create({ baseURL: ajaxUrl, timeout: 30000 }); const ajax = (vm, request) => { return new Promise((resolve, reject) => { let headers = request.headers || {}; request.headers = { ...headers, tokenAuthorization: localStorage.token || '' }; http(request) .then(res => { switch (res.data.code) { case 0: resolve(res.data); break; case 200: if (res.data.message) { if (res.data.success) { vm && vm.$layer.msg('成功'); } else { vm && vm.$layer.msg('失败'); } } resolve(res.data); break; case 401: localStorage.clear(); this.$cookie.set('CMS_TOKEN', ''); router.push({ name: 'login' }); break; case 403: router.push({ name: 'error_401' }); break; case 404: router.push({ name: 'error_404' }); break; default: vm && vm.$layer.msg('失败'); } }) .catch((err) => { console.error(err.response); vm && vm.$layer.msg('网络请求出错!'); reject(err); }); }); }; export default ajax;
/** * Created by gautam on 19/12/16. */ import React from 'react'; import { browserHistory, Link } from 'react-router'; import $ from 'jquery'; import Base from './base/Base'; import TopNotification from './TopNotification'; import DisableScroll from './base/DisableScroll'; import {connect} from 'react-redux'; import {userRegistered, registerUser} from '../actions'; import {OTP, NAME, W, I} from '../constants'; import ajaxObj from '../../data/ajax.json'; class RegisterUser extends DisableScroll { constructor(props) { super(props); this.state = { name : '', refcode: '', otp:'', notify: { show: false, type: 'info', timeout: 4000, msg:'', top: 30 } } } render() { const {notify, refcode} = this.state, prospRefCode = this.props.location.query.refcode, opts = prospRefCode ? {'readOnly':'readOnly'} : {}; return ( <div className='lo'> <TopNotification data={notify}/> <div className = 'col-md-offset-4 col-md-4 col-xs-12 login pad0'> <div className = 'discard col-xs-12 col-md-4'> <Link to = { '/' }> &#215; </Link> </div> <div className = 'logo'> <div className = 'hlg'></div> </div> <div className = 'col-xs-1 col-xs-offset-2 pad0'><i className = 'fa fa-user-o'></i></div> <input type = 'text' placeholder = 'Name (Required)' className = 'col-xs-7 pad0' onChange={ this.nameChanged } onFocus={ this.focusChanged } ></input> <div className = 'col-xs-1 col-xs-offset-2 pad0'><i className = 'fa fa-mobile'></i></div> <input type = 'text' placeholder = 'OTP (Required)' className = 'col-xs-7 pad0' onChange={ this.otpChanged } onFocus={ this.focusChanged } ></input> <div className = 'col-xs-1 col-xs-offset-2 pad0'><i className = 'fa fa-link'></i></div> <input type = 'text' placeholder = 'Referral Code (Optional)' className = 'col-xs-7 pad0' onChange={ this.refCodeChanged } onFocus={ this.focusChanged } value={prospRefCode || refcode} {...opts}></input> <button type = 'text' className = 'col-xs-8 col-xs-offset-2' onClick={ this.register }> SUBMIT</button> </div> </div> ) } showNotification = (type, msg, timeout, top) => { this.setState({notify: {show: true, timeout, type, msg, top}}) } nameChanged = (e) => { let name = e.target.value; this.setState({name}); } refCodeChanged = (e) => { let refcode = e.target.value; this.setState({refcode}); } otpChanged = (e) => { const otp = e.target.value; if(otp.length <= 6) { this.setState({otp, notify: {show: false}}); } else { this.showNotification(W, OTP, 4000, 30); } } allRequiredDataProvided = () => { const {name, otp} = this.state; if(name){ if(otp){ return true; }else{ this.showNotification(I, OTP, 4000, 30); return false } }else{ this.showNotification(I, NAME, 4000, 30); return false } } register = () => { const {props: {number, token}, state: {otp, name, refcode}} = this; if(this.allRequiredDataProvided()) { const data = { phonenumber: number, otp, token, name, refcode }; this.props.registerUser(data, this.showNotification, '', this.props.userRegistered); } } } function mapStateToProps(state) { return { number: state.userDetails.number, token: state.userDetails.token, isNewUser: state.userDetails.isNewUser }; } function mapDispatchToProps(dispatch) { return { userRegistered: () => { dispatch(userRegistered()); }, registerUser: (data, notfn, route, callBack) => { dispatch(registerUser(data, notfn, route, callBack)); } }; } export default connect(mapStateToProps, mapDispatchToProps)(RegisterUser);
const aside = () =>{ document.querySelector('.mobile-aside').classList.toggle('active'); document.querySelector('.header').classList.toggle('w100'); document.querySelector('.header').classList.toggle('r-20'); document.querySelector('.header').classList.toggle('flx-rv'); //document.querySelector('.main').classList.toggle('ml-100'); } const category = (el=null,fs=null) =>{ let cat = document.querySelector('.category'); cat.classList.toggle('active') //cat.classList.toggle('') if(el){ let par = document.querySelector('.recent-search'); let c = document.createElement('a'); c.setAttribute('class','bd-blue1 pd5 rd db m10 c-blue bg-ablue') c.setAttribute('href','#'); c.setAttribute('data-link',`${el}`); c.textContent = el; par.prepend(c) let fs = new FormData(); fs.set('category',`${el}`) request('post','/category',fs) .then((c)=>{ alert(c) document.querySelector('.loader').classList.add('none'); document.querySelector('.status').textContent = 'Searching...'; }) .catch((e)=>{ alert(e) root.innerHTML = ""; document.querySelector('.loader').classList.remove('none'); document.querySelector('.status').textContent = `${e}` }) } } window.onclick = async ev =>{ if(ev.target.dataset.link){ //ev.target.preventDefault(); category(el=ev.target.dataset.link); } } const expandEL = (el) =>{ //element.preventDefault(); let detail = el.lastElementChild; detail.classList.toggle('none') //(classList.toggle('none');) } const sendFeedback = (el) =>{ let data = el.previousElementSibling if(data.value != ""){ let fs = new FormData() fs.set('feedback',data.value) fs.set('id',el.dataset.id) request('post','/feedback',fs) .then((c)=>{ data.classList.add('none'); }) .catch((e)=>{ data.value = 'Feedback not sent,please try again.' }) }else{ data.placeholder = 'No Values specified'; } } const order = async (el) =>{ let price = el.dataset.price; let name = el.dataset.name; let date = new Date(); //let date.getDate(); //let time = date; let product = { 'PRICE':price, 'NAME':name, 'DATE':date } let fs = new FormData(); for(let i in product){ fs.set(i,product[i]); } request('post','/order',fs) .then((c)=>{ el.textContent = 'Ordered'; el.removeAttribute('onclick'); }) .catch((e)=>{ el.textContent = 'failed'; }); } const product = async (el) =>{ let items = el.dataset; let form = new FormData(); for(let item in items){ form.set(item,items[item]); } request('post','product',form) .then((c)=>{ root.innerHTML = c; }) .catch((e)=>{ alert(e) }); } const back = async () =>{ request('get','/products') .then((c)=>{ root.innerHTML = c; generate_goods(); }) .catch((e)=>{ alert(e) }); } async function generate_goods(){ let line = document.querySelector('.line'); let line2 = document.querySelector('.line-2'); let line3 = document.querySelector('.line-3'); let line4 = document.querySelector('.line-4'); if(line != null){ request('get','/goods') .then((c)=>{ let data = JSON.parse(c); for(let i in data){ let item = document.createElement('span'); item.setAttribute('class','good bg-default dl tc m5 rd pd5 w100'); item.setAttribute('onclick','product(this);'); let image = document.createElement('img'); image.setAttribute('width','150px'); image.setAttribute('height','150px'); let b = document.createElement('br'); let b2 = document.createElement('br'); let star = document.createElement('i'); star.setAttribute('class','icofont-star c-yellow'); let name = document.createElement('span'); name.setAttribute('class','p11 dl c-dark pd5') for(let k in data[i]){ item.dataset[k] = data[i][k]; image.setAttribute('src',data[i]['image']); name.textContent = data[i]['name']; } item.appendChild(image); item.appendChild(star); item.appendChild(name) if(line.childElementCount <= 8){ line.appendChild(item); }else if(line2.childElementCount <= 8){ line2.appendChild(item); } //line.childElementCount } /*for(let p in data[1]){ alert(p) }*/ }) .catch((e)=>{ }); //line2.textContent = 'Loaded'; } } //generate_goods() //setTimeout('generate_goods();',000);
import React from 'react'; import { connect } from 'react-redux'; import { Modal, Transfer, Spin } from 'antd'; class DistributionApplicationModal extends React.Component { componentDidMount() { const { dispatch } = this.props; dispatch({ type: 'application/fetchApplicationCombo' }); } render() { const { applicationState, userState, onClose } = this.props; const { applicationListLoading } = applicationState; const { userVis, userNow, selectedKeys, targetKeys } = userState; return ( <Modal visible={userVis.distributionVis} title={`给${userNow.username} 分配项目`} onCancel={onClose} onOk={this.handleDistributionApplication} > <Spin spinning={applicationListLoading}> <Transfer rowKey={(record) => record.key} render={(item) => item.title} selectedKeys={selectedKeys} targetKeys={targetKeys} dataSource={this.getTransferDataSource()} onChange={this.handleTransferChange} onSelectChange={this.handleTransferSelectChange} /> </Spin> </Modal> ); } getTransferDataSource = () => { const { applicationState: { applicationComboList }, userState: { targetKeys }, } = this.props; return applicationComboList .filter((app) => !targetKeys.includes(app.id)) .map((pro) => ({ key: pro.id, title: pro.applicationName, })); }; handleTransferChange = (nextTargetKeys) => { const { dispatch } = this.props; dispatch({ type: 'user/setState', payload: { targetKeys: nextTargetKeys } }); }; handleTransferSelectChange = (sourceSelectedKeys, targetSelectedKeys) => { const { dispatch } = this.props; dispatch({ type: 'user/setState', payload: { selectedKeys: [...sourceSelectedKeys, ...targetSelectedKeys] }, }); }; handleDistributionApplication = () => { const { dispatch } = this.props; dispatch({ type: 'user/updateUserApplicationAssign' }); }; } const mapStateToProps = (state) => ({ userState: state.userState, applicationState: state.applicationState, }); export default connect(mapStateToProps)(DistributionApplicationModal);
$(document).ready(function () { // triviaGame is the object which contains everything needed for the game var triviaGame = { QUESTION_TIMEOUT: 30, // seconds TIME_BTW_QUESTIONS: 7, // seconds questions: [], // array of question - will be init'ed at start of the game currentQuestionIndex: 0, // index of current round's question correctAnswers: 0, // tally of correct answers incorrectAnswers: 0, // tally of incorrect answers noAnswer: 0, // tally of no answer (out of time) intervalId: null, // interval handle for the countdown timer for each question time: 0, // keeps # of secs left during each round addQuestion: function (prompt, answers, correctAnswerIndex, correctAnswerText, answerImg) { // Add a question object to the game's questions array var question = { prompt: prompt, answers: answers, correctAnswer: correctAnswerIndex, correctAnswerText: correctAnswerText, answerImg: answerImg, }; this.questions.push(question); }, initQuestions: function () { // Initialize all the questions this.addQuestion( "Samite is a type of what?", ["Dog", "Stone", "Fabric", "Cake"], 2, "Fabric (a heavy silk interwoven with gold and silver thread, used in dressmaking and decoration in the Middle Ages - the name is from Greek hexamiton, meaning 'six thread')", "https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/The_%22Martyr_Cope%22_%281270%29.jpg/300px-The_%22Martyr_Cope%22_%281270%29.jpg"); this.addQuestion( "Vermillion is a shade of which colour?", ["Green", "Blue", "Red", "Yellow"], 2, "Red", "https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Red_tikka_powder.jpg/220px-Red_tikka_powder.jpg"); this.addQuestion( "In summer 2010 what species produced offspring in the wild in the UK for the first time in around 400 years after reintroduction to Scotland?", ["Reindeer", "Bear", "Wolf", "Beaver"], 3, "Beaver", "https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/American_Beaver.jpg/220px-American_Beaver.jpg"); this.addQuestion( "A caparison is an ornamental cloth used to cover a what?", ["Altar", "Horse", "Wall", "Window"], 1, "Horse (it's a cover fitted over the saddle, from the Spanish word capa, meaning hood).", "https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Medieval-Jousting-Tournaments.jpg/400px-Medieval-Jousting-Tournaments.jpg"); this.addQuestion( "If something coruscates, what does it do?", ["Expands", "Fades", "Sparkles", "Shrinks"], 2, "Sparkles (from Latin coruscare)", "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Christmas_baubles_and_sparkler_%2802%29.jpg/220px-Christmas_baubles_and_sparkler_%2802%29.jpg"); this.addQuestion( "In anatomy, 'plantar' relates to which part of the human body?", ["Foot", "Stomach", "Head", "Hand"], 0, "Foot (specifically the sole of the foot, from Latin planta, meaning sole)", "http://teachmeanatomy.info/wp-content/uploads/Diagram-of-the-Sensory-or-Cutaneous-Innervation-of-the-Sole-of-the-Foot.jpg"); this.addQuestion( "A 2010 publicity-driven competition called the Carbuncle Cup focused on unpopular British what?", ["Architecture", "Politicians", "Corporations", "Law"], 0, "Architecture (or buildings - carbuncle refers to a big round red precious stone, or to an abscess or pimple on the face or neck). In 1984 Prince Charles called the planned National Gallery extension in London a 'monstrous carbuncle')", "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Strata_SE1_from_Monument_2014.jpg/800px-Strata_SE1_from_Monument_2014.jpg"); this.addQuestion( "Sfumato is a technique in what?", ["Cooking", "Painting", "Martial Arts", "Meditation"], 1, "Painting (tones blended together avoiding sharp outlines - from 1800s Italian, sfumare, meaning shaded-off)", "https://upload.wikimedia.org/wikipedia/commons/5/5f/MonaLisa_sfumato.jpeg"); this.addQuestion( "In Dubai, Palm Jumeirah is a what?", ["Artificial island development", "Camel-meat curry", "Scented aphrodisiac soap", "Public holiday"], 0, "Artificial island development", "https://www.venturesonsite.com/news/wp-content/uploads/2016/02/palm-jumeirah.jpg"); this.addQuestion( "Catalonia, the Spanish Autonomous Community region comprising provinces Barcelona, Girona, Lleida and Tarragona, banned what in 2010 with effect from 2012?", ["Lap-dancing", "Bullfighting", "Smoking in public outdoors", "Door-to-door selling"], 1, "Bullfighting", "https://upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Madrid_Bullfight.JPG/269px-Madrid_Bullfight.JPG"); }, startGame: function () { // init everything and start the game triviaGame.currentQuestionIndex = 0; triviaGame.correctAnswers = 0; triviaGame.incorrectAnswers = 0; triviaGame.noAnswer = 0; // remove play button. We don't need it during play $(".btn-primary").remove(); // if we are restarting game, also remove the panels that are left over from previous round $("#top-panel").remove(); $("#bottom-panel").remove(); //set up top and bottom panels on screen for play $("#game-area").append( "<div id=\"top-panel\" class=\"panel panel-default\">" + "</div>" + "<div id=\"bottom-panel\" class=\"panel panel-default\">" + "</div>" ); // start posing the questions triviaGame.nextQuestion(); }, nextQuestion: function () { // Ask the next question on screen and time the user // set up top and bottom panels for the next question // top panel is for time remaining (countdown timer) $("#top-panel").html( "<div class=\"panel-body\">" + "You have <span id=\"seconds\">" + triviaGame.QUESTION_TIMEOUT + "</span> seconds remaining" + "</div>" ); // bottom panel is where the question and answer options are displayed $("#bottom-panel").html( "<div class=\"panel-heading\">" + "<h3 class=\"panel-title\">" + triviaGame.questions[triviaGame.currentQuestionIndex].prompt + "</h3>" + "</div>" + "<div class=\"panel-body\">" + "<p id=\"answer-0\" class=\"opt\">" + triviaGame.questions[triviaGame.currentQuestionIndex].answers[0] + "</p>" + "<p id=\"answer-1\" class=\"opt\">" + triviaGame.questions[triviaGame.currentQuestionIndex].answers[1] + "</p>" + "<p id=\"answer-2\" class=\"opt\">" + triviaGame.questions[triviaGame.currentQuestionIndex].answers[2] + "</p>" + "<p id=\"answer-3\" class=\"opt\">" + triviaGame.questions[triviaGame.currentQuestionIndex].answers[3] + "</p>" + "</div>" ); // get all options in the DOM var $options = $(".opt"); // set up "hover" handler for the answer options - // border appears around each answer when user hovers over it // border disappears when mouse moves out $options.hover(function () { $(this).css("border", "solid 1px"); }, function () { $(this).css("border", "none"); }); //start countdown timer and update time on screen triviaGame.time = triviaGame.QUESTION_TIMEOUT; triviaGame.intervalId = setInterval(function () { $("#seconds").text(--triviaGame.time); if (triviaGame.time === 0) { // stop the countdown clearInterval(triviaGame.intervalId); // user didn't answer within allotted time. Process this case triviaGame.processAnswer(null); } }, 1000); // set up click handlers for all 4 answer options $options.on("click", function () { // user selected an answer stop timer clearInterval(triviaGame.intervalId); // see if this is the correct answer or not (look at last char of the id and compare to correct answer index) // use == to compare b/c left hand side is string, right hand side is number var id = $(this).attr('id'); if (id[id.length - 1] == triviaGame.questions[triviaGame.currentQuestionIndex].correctAnswer) { // correct answer. Process this case. triviaGame.processAnswer(true); } else { // incorrect answer. Process this case. triviaGame.processAnswer(false); } }); }, processAnswer: function (answer) { // User answerer ... process it // answer: true means correct // false means incorrect // null means user ran out of time var message; // message to display to user based on their answer if (answer === null) { // no answer triviaGame.noAnswer++; message = "Sorry, you are out of time. The answer was:"; } else if (answer === true) { // correct answer triviaGame.correctAnswers++; message = "Good Job! You got it right!"; } else { // incorrect answer triviaGame.incorrectAnswers++; message = "Oops! Not quite right"; } // populate the top and bottom panels // top panel contains a message based on user's answer $("#top-panel").html( "<div class=\"panel-body\">" + "<h3>" + message + "</h3>" + "</div>" ); // bottom panel contains correct answer text and image $("#bottom-panel").html( "<div class=\"panel-body\">" + "<p>" + triviaGame.questions[triviaGame.currentQuestionIndex].correctAnswerText + "</p>" + "</div>" + "<div>" + "<img class=\"img-thumbnail\" src=\"" + triviaGame.questions[triviaGame.currentQuestionIndex].answerImg + "\"/>" + "</div>" ); // increment current question index triviaGame.currentQuestionIndex++; // wait 8 secs and move on setTimeout(function () { if (triviaGame.currentQuestionIndex === triviaGame.questions.length) { // all questions asked end the game triviaGame.endGame(); } else { // more questions to ask - go to next one triviaGame.nextQuestion(); } }, triviaGame.TIME_BTW_QUESTIONS * 1000); }, endGame: function () { // end the game by showing user their tally and a "play again" button // populate the top and bottom panels // top panel contains a done message $("#top-panel").html( "<div class=\"panel-body\">" + "<h3>All Done!</h3>" + "</div>" ); // bottom panel contains tally $("#bottom-panel").html( "<div class=\"panel-heading\">" + "<h3 class=\"panel-title\">Totals:</h3>" + "</div>" + "<div class=\"panel-body\">" + "<p>Correct Answers:" + triviaGame.correctAnswers + "</p>" + "<p>Incorrect Answers:" + triviaGame.incorrectAnswers + "</p>" + "<p>Unanswered:" + triviaGame.noAnswer + "</p>" + "</div>" ); //Add the "play again" button at the bottom $("#game-area").append( "<a class=\"btn btn-primary\" role=\"button\">Play Again</a>" ); // attach a click handler to play again $(".btn-primary").on("click", triviaGame.startGame); } }; // init all the questions for the game triviaGame.initQuestions(); // When user clicks "play" button, start game $(".btn-primary").on("click", triviaGame.startGame); });
Grailbird.data.tweets_2011_12 = [ { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "David Gillespie", "screen_name" : "gillespi", "indices" : [ 0, 9 ], "id_str" : "18160594", "id" : 18160594 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "152660356416806912", "geo" : { }, "id_str" : "152927241679015936", "in_reply_to_user_id" : 18160594, "text" : "@gillespi What specifically is bad after these chemical sweeteners, can you point me to an article or research?", "id" : 152927241679015936, "in_reply_to_status_id" : 152660356416806912, "created_at" : "2011-12-31 01:41:10 +0000", "in_reply_to_screen_name" : "gillespi", "in_reply_to_user_id_str" : "18160594", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 3, 17 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152902303001751552", "text" : "RT @terrycavanagh: Seriously, this stuff is, like, a million times harder than it should be. They should burn HTML to the ground and sta ...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152854168875438080", "text" : "Seriously, this stuff is, like, a million times harder than it should be. They should burn HTML to the ground and start again.", "id" : 152854168875438080, "created_at" : "2011-12-30 20:50:48 +0000", "user" : { "name" : "Terry", "screen_name" : "terrycavanagh", "protected" : false, "id_str" : "36457353", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/539415172264108032\/YmvCbIK3_normal.jpeg", "id" : 36457353, "verified" : false } }, "id" : 152902303001751552, "created_at" : "2011-12-31 00:02:04 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "Venusinas", "indices" : [ 9, 19 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "152739383752138752", "text" : "Just saw #Venusinas' first show at the Sandringham in Newtown. First time I'd seen Nat drum since high school.", "id" : 152739383752138752, "created_at" : "2011-12-30 13:14:41 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152701015794253825", "text" : "PS3, XBOX, Mac, your phone, they are all personal computers. Making comparisons like Mac vs PC or Consoles vs PC is fundamentally wrong.", "id" : 152701015794253825, "created_at" : "2011-12-30 10:42:13 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152699724087042048", "text" : "Say \"Windows\" instead of \"PC\". Everytime you misuse those terms you give evidence of the reprogramming of your mind by marketing campaigns.", "id" : 152699724087042048, "created_at" : "2011-12-30 10:37:05 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "David Gillespie", "screen_name" : "gillespi", "indices" : [ 0, 9 ], "id_str" : "18160594", "id" : 18160594 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152658915081994240", "in_reply_to_user_id" : 18160594, "text" : "@gillespi How does Coke Zero still taste sweet? Do the substitutes they use still have the same negative effects as fructose?", "id" : 152658915081994240, "created_at" : "2011-12-30 07:54:56 +0000", "in_reply_to_screen_name" : "gillespi", "in_reply_to_user_id_str" : "18160594", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 0, 14 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "152558970102489090", "geo" : { }, "id_str" : "152644855527518208", "in_reply_to_user_id" : 36457353, "text" : "@terrycavanagh it runs very well on my phone.", "id" : 152644855527518208, "in_reply_to_status_id" : 152558970102489090, "created_at" : "2011-12-30 06:59:04 +0000", "in_reply_to_screen_name" : "terrycavanagh", "in_reply_to_user_id_str" : "36457353", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 3, 17 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152644446478020608", "text" : "RT @terrycavanagh: It's also dropping a lot of frames... Is this HTML5 stuff really the future? It seems pretty far behind to me...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152559739786641408", "text" : "It's also dropping a lot of frames... Is this HTML5 stuff really the future? It seems pretty far behind to me...", "id" : 152559739786641408, "created_at" : "2011-12-30 01:20:51 +0000", "user" : { "name" : "Terry", "screen_name" : "terrycavanagh", "protected" : false, "id_str" : "36457353", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/539415172264108032\/YmvCbIK3_normal.jpeg", "id" : 36457353, "verified" : false } }, "id" : 152644446478020608, "created_at" : "2011-12-30 06:57:26 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jeremy Ray", "screen_name" : "TheJunglist", "indices" : [ 3, 15 ], "id_str" : "54178513", "id" : 54178513 }, { "name" : "Ian Bogost", "screen_name" : "ibogost", "indices" : [ 30, 38 ], "id_str" : "6825792", "id" : 6825792 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 139, 140 ], "url" : "http:\/\/t.co\/ZyHAIgMH", "expanded_url" : "http:\/\/bit.ly\/u4M4AY", "display_url" : "bit.ly\/u4M4AY" } ] }, "geo" : { }, "id_str" : "152642003874750466", "text" : "RT @TheJunglist: If you liked @ibogost in our Unethical Game Design ep, here's a wonderful article on his satire of Facebook games - htt ...", "retweeted_status" : { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Ian Bogost", "screen_name" : "ibogost", "indices" : [ 13, 21 ], "id_str" : "6825792", "id" : 6825792 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 116, 136 ], "url" : "http:\/\/t.co\/ZyHAIgMH", "expanded_url" : "http:\/\/bit.ly\/u4M4AY", "display_url" : "bit.ly\/u4M4AY" } ] }, "geo" : { }, "id_str" : "152617243434422272", "text" : "If you liked @ibogost in our Unethical Game Design ep, here's a wonderful article on his satire of Facebook games - http:\/\/t.co\/ZyHAIgMH", "id" : 152617243434422272, "created_at" : "2011-12-30 05:09:20 +0000", "user" : { "name" : "Jeremy Ray", "screen_name" : "TheJunglist", "protected" : false, "id_str" : "54178513", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/299750965\/Excited2_normal.jpg", "id" : 54178513, "verified" : false } }, "id" : 152642003874750466, "created_at" : "2011-12-30 06:47:44 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "TweetDeck", "screen_name" : "TweetDeck", "indices" : [ 4, 14 ], "id_str" : "14803701", "id" : 14803701 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "152444020147224576", "text" : "New @Tweetdeck version introduces lots of excellent features, while also removing lots of excellent features. It is great\/terrible.", "id" : 152444020147224576, "created_at" : "2011-12-29 17:41:01 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "152433860649558016", "geo" : { }, "id_str" : "152443237527846912", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne Maybe give more info, devs won't be interested in just another 'project'. Can you give some context?", "id" : 152443237527846912, "in_reply_to_status_id" : 152433860649558016, "created_at" : "2011-12-29 17:37:54 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Alexander Bruce", "screen_name" : "Demruth", "indices" : [ 0, 8 ], "id_str" : "191790175", "id" : 191790175 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "151123464919584768", "geo" : { }, "id_str" : "151500423021346816", "in_reply_to_user_id" : 191790175, "text" : "@Demruth More coffee?", "id" : 151500423021346816, "in_reply_to_status_id" : 151123464919584768, "created_at" : "2011-12-27 03:11:30 +0000", "in_reply_to_screen_name" : "Demruth", "in_reply_to_user_id_str" : "191790175", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "151500283158085632", "text" : "You have selected '1', press '1' to confirm...You have now confirmed '1', press '1' to select your confirmation.", "id" : 151500283158085632, "created_at" : "2011-12-27 03:10:56 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "151292901144543232", "text" : "How many games are on the internet as freeware or abandonware that people once paid a lot of money for... I'd say thousands.", "id" : 151292901144543232, "created_at" : "2011-12-26 13:26:53 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "humblebundle", "indices" : [ 38, 51 ] }, { "text" : "ld48", "indices" : [ 52, 57 ] } ], "urls" : [ { "indices" : [ 85, 105 ], "url" : "http:\/\/t.co\/Fxa96ZMI", "expanded_url" : "http:\/\/bit.ly\/uDje0v", "display_url" : "bit.ly\/uDje0v" } ] }, "geo" : { }, "id_str" : "151289407549353984", "text" : "I am immune to steam sales because of #humblebundle #ld48 and last years steam sale. http:\/\/t.co\/Fxa96ZMI", "id" : 151289407549353984, "created_at" : "2011-12-26 13:13:00 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "151139434094526466", "geo" : { }, "id_str" : "151155748720750593", "in_reply_to_user_id" : 318182652, "text" : "@adamruch Yeah that would make the mmo's lose their suspension of disbelief wouldn't it? RE: MMO's should have an outside world chat.", "id" : 151155748720750593, "in_reply_to_status_id" : 151139434094526466, "created_at" : "2011-12-26 04:21:53 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "sopa", "indices" : [ 73, 78 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "150740390637600768", "text" : "Yes Virginia there is a Copyright Clause, Article 1, Section 8, Clause 8 #sopa", "id" : 150740390637600768, "created_at" : "2011-12-25 00:51:24 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "150733802438803456", "text" : "Damn it! I missed a day of the steam sale.", "id" : 150733802438803456, "created_at" : "2011-12-25 00:25:13 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jack", "screen_name" : "DarkAcreJack", "indices" : [ 0, 13 ], "id_str" : "21734050", "id" : 21734050 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "150325059196698624", "geo" : { }, "id_str" : "150733396811849729", "in_reply_to_user_id" : 21734050, "text" : "@DarkAcreJack Ha thats crazy I do the same thing. Not as regularly, I try to make classic games in a few hours, like asteroids, tetris etc.", "id" : 150733396811849729, "in_reply_to_status_id" : 150325059196698624, "created_at" : "2011-12-25 00:23:36 +0000", "in_reply_to_screen_name" : "DarkAcreJack", "in_reply_to_user_id_str" : "21734050", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jack", "screen_name" : "DarkAcreJack", "indices" : [ 0, 13 ], "id_str" : "21734050", "id" : 21734050 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "150277307666407424", "geo" : { }, "id_str" : "150296407880904705", "in_reply_to_user_id" : 21734050, "text" : "@DarkAcreJack Was just checking out your youtube channel and your timelapse, what is this darkcade thing you do every sunday?", "id" : 150296407880904705, "in_reply_to_status_id" : 150277307666407424, "created_at" : "2011-12-23 19:27:10 +0000", "in_reply_to_screen_name" : "DarkAcreJack", "in_reply_to_user_id_str" : "21734050", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jack", "screen_name" : "DarkAcreJack", "indices" : [ 0, 13 ], "id_str" : "21734050", "id" : 21734050 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 34, 54 ], "url" : "http:\/\/t.co\/11KP6eTS", "expanded_url" : "http:\/\/bit.ly\/sY7KGQ", "display_url" : "bit.ly\/sY7KGQ" }, { "indices" : [ 80, 100 ], "url" : "http:\/\/t.co\/ICoMkqMx", "expanded_url" : "http:\/\/bit.ly\/scy0Mf", "display_url" : "bit.ly\/scy0Mf" } ] }, "geo" : { }, "id_str" : "150288875955298304", "in_reply_to_user_id" : 21734050, "text" : "@DarkAcreJack Two songs by Baby X http:\/\/t.co\/11KP6eTS and a blog of solo demos http:\/\/t.co\/ICoMkqMx, I'm working on a website for it all.", "id" : 150288875955298304, "created_at" : "2011-12-23 18:57:14 +0000", "in_reply_to_screen_name" : "DarkAcreJack", "in_reply_to_user_id_str" : "21734050", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jack", "screen_name" : "DarkAcreJack", "indices" : [ 0, 13 ], "id_str" : "21734050", "id" : 21734050 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 15, 20 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "150271643829284864", "geo" : { }, "id_str" : "150275734458470400", "in_reply_to_user_id" : 21734050, "text" : "@DarkAcreJack #LD48 Yeah it's a rush, but then we'd only have a few days between rating and the commencement of the next Ludum Dare.", "id" : 150275734458470400, "in_reply_to_status_id" : 150271643829284864, "created_at" : "2011-12-23 18:05:01 +0000", "in_reply_to_screen_name" : "DarkAcreJack", "in_reply_to_user_id_str" : "21734050", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "150262456973934592", "text" : "I wonder what the book equivalent of text that I have read on the internet would be so far.", "id" : 150262456973934592, "created_at" : "2011-12-23 17:12:16 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "150261685834350593", "text" : "#ld48 Playing all the Ludum Dare entries feels like some kind of Pokemon metagame - gotta rate them all.", "id" : 150261685834350593, "created_at" : "2011-12-23 17:09:12 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jack", "screen_name" : "DarkAcreJack", "indices" : [ 0, 13 ], "id_str" : "21734050", "id" : 21734050 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 15, 20 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149986334856056832", "geo" : { }, "id_str" : "150081905390403585", "in_reply_to_user_id" : 21734050, "text" : "@DarkAcreJack #LD48 Yeah but don't forget Jam isn't solo either.", "id" : 150081905390403585, "in_reply_to_status_id" : 149986334856056832, "created_at" : "2011-12-23 05:14:49 +0000", "in_reply_to_screen_name" : "DarkAcreJack", "in_reply_to_user_id_str" : "21734050", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "\uFF3A\uFF45\uFF44", "screen_name" : "dedhedzed", "indices" : [ 3, 13 ], "id_str" : "130193361", "id" : 130193361 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 33, 38 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "150081640566226944", "text" : "RT @dedhedzed: What I like about #ld48 judging coinciding with the Steam sales is that a lot of us are putting off a lot of AAA titles f ...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/seesmic.com\/\" rel=\"nofollow\"\u003ESeesmic\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 18, 23 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149993990241001472", "text" : "What I like about #ld48 judging coinciding with the Steam sales is that a lot of us are putting off a lot of AAA titles for each other.", "id" : 149993990241001472, "created_at" : "2011-12-22 23:25:28 +0000", "user" : { "name" : "\uFF3A\uFF45\uFF44", "screen_name" : "dedhedzed", "protected" : false, "id_str" : "130193361", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/491547334149697536\/rGflEgKq_normal.jpeg", "id" : 130193361, "verified" : false } }, "id" : 150081640566226944, "created_at" : "2011-12-23 05:13:46 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 0, 14 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149833526953521154", "geo" : { }, "id_str" : "149887726773223426", "in_reply_to_user_id" : 36457353, "text" : "@terrycavanagh Even getting a chat box to work is pretty inspiring. I'll give it a whirl and share the knowledge if it works out.", "id" : 149887726773223426, "in_reply_to_status_id" : 149833526953521154, "created_at" : "2011-12-22 16:23:13 +0000", "in_reply_to_screen_name" : "terrycavanagh", "in_reply_to_user_id_str" : "36457353", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "TechSmith Camtasia", "screen_name" : "CamtasiaTips", "indices" : [ 0, 13 ], "id_str" : "2805978835", "id" : 2805978835 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149884462178643969", "geo" : { }, "id_str" : "149887136676577280", "in_reply_to_user_id" : 21398509, "text" : "@CamtasiaTips Thanks for the offer, but I think the problem is me using the developer preview of Windows 8 - a lot of issues.", "id" : 149887136676577280, "in_reply_to_status_id" : 149884462178643969, "created_at" : "2011-12-22 16:20:52 +0000", "in_reply_to_screen_name" : "Camtasia", "in_reply_to_user_id_str" : "21398509", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Harry Lee", "screen_name" : "leehsl", "indices" : [ 0, 7 ], "id_str" : "2915502379", "id" : 2915502379 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149816697551994880", "text" : "@leehsl Sydney, I want to Global Game Jam but it's a bit of a trek. Do you know any other Australian devs? Meetup?", "id" : 149816697551994880, "created_at" : "2011-12-22 11:40:58 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Harry Lee", "screen_name" : "leehsl", "indices" : [ 0, 7 ], "id_str" : "2915502379", "id" : 2915502379 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 9, 14 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149796675962146816", "text" : "@leehsl #LD48 Yeah I figured that out at the end, it is very clever. Are you from Melbourne?", "id" : 149796675962146816, "created_at" : "2011-12-22 10:21:25 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149752105421377536", "text" : "#ld48 last level of midas is killing me!", "id" : 149752105421377536, "created_at" : "2011-12-22 07:24:18 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "atadistance", "indices" : [ 62, 74 ] }, { "text" : "ld48", "indices" : [ 75, 80 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149745510629122048", "text" : "Craequ is great, but did anyone else notice the similarity to #atadistance #ld48", "id" : 149745510629122048, "created_at" : "2011-12-22 06:58:06 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 0, 14 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149740118519980032", "in_reply_to_user_id" : 36457353, "text" : "@terrycavanagh could you do a blog post giving any advice using playerIO? It'd be great to have more multiplayer flash games.", "id" : 149740118519980032, "created_at" : "2011-12-22 06:36:40 +0000", "in_reply_to_screen_name" : "terrycavanagh", "in_reply_to_user_id_str" : "36457353", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149738705568014336", "text" : "My cousin tried portal but he said the tutorial was too long, I told him - that is what Portal is... I think he was waiting to shoot people.", "id" : 149738705568014336, "created_at" : "2011-12-22 06:31:04 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Matthew DiVito", "screen_name" : "mattdivito", "indices" : [ 0, 11 ], "id_str" : "14679403", "id" : 14679403 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149709453825028097", "geo" : { }, "id_str" : "149714126590054400", "in_reply_to_user_id" : 14679403, "text" : "@mattdivito Also thanks for the feedback on my game, I feel exactly the same, it needs some kind of progression in challenge or levels.", "id" : 149714126590054400, "in_reply_to_status_id" : 149709453825028097, "created_at" : "2011-12-22 04:53:23 +0000", "in_reply_to_screen_name" : "mattdivito", "in_reply_to_user_id_str" : "14679403", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Matthew DiVito", "screen_name" : "mattdivito", "indices" : [ 4, 15 ], "id_str" : "14679403", "id" : 14679403 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149693835402944512", "text" : "Hey @MattDivito I would pay money for that game if it had a better conclusion and sound\/music, are you going to do a post compo version?", "id" : 149693835402944512, "created_at" : "2011-12-22 03:32:46 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Matthew DiVito", "screen_name" : "mattdivito", "indices" : [ 100, 111 ], "id_str" : "14679403", "id" : 14679403 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 85, 90 ] } ], "urls" : [ { "indices" : [ 64, 84 ], "url" : "http:\/\/t.co\/X5nFd1ka", "expanded_url" : "http:\/\/bit.ly\/rDPwqv", "display_url" : "bit.ly\/rDPwqv" } ] }, "geo" : { }, "id_str" : "149693505214754816", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne You should play this game, it's short and great. http:\/\/t.co\/X5nFd1ka #ld48 ZERO2 by @MattDivito", "id" : 149693505214754816, "created_at" : "2011-12-22 03:31:27 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Eli Brody", "screen_name" : "elibrody", "indices" : [ 0, 9 ], "id_str" : "9969582", "id" : 9969582 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149689434818883584", "in_reply_to_user_id" : 9969582, "text" : "@elibrody Hey man, I reviewed game last night, but I can't leave a comment at the moment because the site is being dodgy. I will later :)", "id" : 149689434818883584, "created_at" : "2011-12-22 03:15:17 +0000", "in_reply_to_screen_name" : "elibrody", "in_reply_to_user_id_str" : "9969582", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Eli Brody", "screen_name" : "elibrody", "indices" : [ 0, 9 ], "id_str" : "9969582", "id" : 9969582 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 108, 128 ], "url" : "http:\/\/t.co\/ljdPShzQ", "expanded_url" : "http:\/\/youtu.be\/EPr-FbqS-34", "display_url" : "youtu.be\/EPr-FbqS-34" } ] }, "in_reply_to_status_id_str" : "149552694560948224", "geo" : { }, "id_str" : "149684793343361024", "in_reply_to_user_id" : 9969582, "text" : "@elibrody Camtasia works well, I couldn't get audio to work in the video though :(, here is how it came out http:\/\/t.co\/ljdPShzQ", "id" : 149684793343361024, "in_reply_to_status_id" : 149552694560948224, "created_at" : "2011-12-22 02:56:50 +0000", "in_reply_to_screen_name" : "elibrody", "in_reply_to_user_id_str" : "9969582", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 44, 64 ], "url" : "http:\/\/t.co\/Fi4oZDRv", "expanded_url" : "http:\/\/bit.ly\/qkb0TM", "display_url" : "bit.ly\/qkb0TM" } ] }, "geo" : { }, "id_str" : "149513456335331328", "text" : "Penny Arcade say niche like \"nitch\" as well http:\/\/t.co\/Fi4oZDRv WHY!?", "id" : 149513456335331328, "created_at" : "2011-12-21 15:36:00 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Eli Brody", "screen_name" : "elibrody", "indices" : [ 0, 9 ], "id_str" : "9969582", "id" : 9969582 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 11, 16 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "148531376612851712", "geo" : { }, "id_str" : "149499866396110849", "in_reply_to_user_id" : 9969582, "text" : "@elibrody #LD48 Hey I played your game, the ending is pretty great. I'll make sure to review it in the morning.", "id" : 149499866396110849, "in_reply_to_status_id" : 148531376612851712, "created_at" : "2011-12-21 14:42:00 +0000", "in_reply_to_screen_name" : "elibrody", "in_reply_to_user_id_str" : "9969582", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Kelly Thomas", "screen_name" : "kellythomas99", "indices" : [ 10, 24 ], "id_str" : "123360297", "id" : 123360297 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 0, 5 ] } ], "urls" : [ { "indices" : [ 51, 71 ], "url" : "http:\/\/t.co\/b56t6JyJ", "expanded_url" : "http:\/\/bit.ly\/sUpDeB", "display_url" : "bit.ly\/sUpDeB" } ] }, "geo" : { }, "id_str" : "149496356673818624", "text" : "#LD48 Hey @KellyThomas99 , could you try mine out? http:\/\/t.co\/b56t6JyJ , Thanks for reviewing 28 already. Did you make a game?", "id" : 149496356673818624, "created_at" : "2011-12-21 14:28:03 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 22, 27 ] }, { "text" : "postmortem", "indices" : [ 85, 96 ] } ], "urls" : [ { "indices" : [ 64, 84 ], "url" : "http:\/\/t.co\/kyP5Mu9s", "expanded_url" : "http:\/\/bit.ly\/uTGBTb", "display_url" : "bit.ly\/uTGBTb" } ] }, "geo" : { }, "id_str" : "149493228335411200", "text" : "What I learned during #ld48, what worked, and what didn't work. http:\/\/t.co\/kyP5Mu9s #postmortem", "id" : 149493228335411200, "created_at" : "2011-12-21 14:15:37 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "Satazius", "indices" : [ 0, 9 ] }, { "text" : "TubularWorlds", "indices" : [ 48, 62 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149444483996594177", "text" : "#Satazius reminds me of a great dos game called #TubularWorlds", "id" : 149444483996594177, "created_at" : "2011-12-21 11:01:56 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Earth Defense Force", "screen_name" : "EarthDefenseFce", "indices" : [ 0, 16 ], "id_str" : "198679748", "id" : 198679748 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149440503354621952", "in_reply_to_user_id" : 198679748, "text" : "@EarthDefenseFce reminds me of an obsure game I used to play in the 90's, but I can't find it anymore. You shot aliens, and had a jetpack.", "id" : 149440503354621952, "created_at" : "2011-12-21 10:46:07 +0000", "in_reply_to_screen_name" : "EarthDefenseFce", "in_reply_to_user_id_str" : "198679748", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "badsectoracula", "screen_name" : "badsectoracula", "indices" : [ 30, 45 ], "id_str" : "18854080", "id" : 18854080 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149419943916613633", "text" : "#ld48 Thanks for the feedback @badsectoracula , I'll keep that in mind for a post compo version.", "id" : 149419943916613633, "created_at" : "2011-12-21 09:24:25 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] }, { "text" : "playtesting", "indices" : [ 112, 124 ] }, { "text" : "important", "indices" : [ 125, 135 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149419735606501376", "text" : "#ld48, I can't get over how great the feedback has been so far. All things I wouldn't have thought of myself. #playtesting #important", "id" : 149419735606501376, "created_at" : "2011-12-21 09:23:35 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Erifdex", "screen_name" : "Erifdex", "indices" : [ 0, 8 ], "id_str" : "249222617", "id" : 249222617 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149240407291723777", "geo" : { }, "id_str" : "149392559121244160", "in_reply_to_user_id" : 249222617, "text" : "@Erifdex Yeah, I really liked the art style in the room. If it's kind of a visual poem, more effort should be put into the rest of the art.", "id" : 149392559121244160, "in_reply_to_status_id" : 149240407291723777, "created_at" : "2011-12-21 07:35:36 +0000", "in_reply_to_screen_name" : "Erifdex", "in_reply_to_user_id_str" : "249222617", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 16, 21 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149313115832586241", "geo" : { }, "id_str" : "149390661458722816", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne #ld48 Do you think I should extend it by a couple of rounds?", "id" : 149390661458722816, "in_reply_to_status_id" : 149313115832586241, "created_at" : "2011-12-21 07:28:03 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld22", "indices" : [ 0, 5 ] }, { "text" : "ld48", "indices" : [ 60, 65 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149390443589799937", "text" : "#ld22 what is the best software to make a gameplay vid of a #ld48 entry? I tried cam studio but the quality was pretty bad.", "id" : 149390443589799937, "created_at" : "2011-12-21 07:27:11 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Indie Game:The Movie", "screen_name" : "indiegamemovie", "indices" : [ 0, 15 ], "id_str" : "111492860", "id" : 111492860 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149232166851710976", "geo" : { }, "id_str" : "149239669861785602", "in_reply_to_user_id" : 111492860, "text" : "@indiegamemovie It's understandable, it's a big vibrant scene, the film must be great for that stuff to be left on the cutting room floor.", "id" : 149239669861785602, "in_reply_to_status_id" : 149232166851710976, "created_at" : "2011-12-20 21:28:04 +0000", "in_reply_to_screen_name" : "indiegamemovie", "in_reply_to_user_id_str" : "111492860", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Erifdex", "screen_name" : "Erifdex", "indices" : [ 0, 8 ], "id_str" : "249222617", "id" : 249222617 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149231595159683073", "geo" : { }, "id_str" : "149239290558296065", "in_reply_to_user_id" : 249222617, "text" : "@Erifdex No probs, it was interesting.", "id" : 149239290558296065, "in_reply_to_status_id" : 149231595159683073, "created_at" : "2011-12-20 21:26:34 +0000", "in_reply_to_screen_name" : "Erifdex", "in_reply_to_user_id_str" : "249222617", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 88, 93 ] } ], "urls" : [ { "indices" : [ 94, 114 ], "url" : "http:\/\/t.co\/1DBCZJax", "expanded_url" : "http:\/\/twitpic.com\/7vzl1x", "display_url" : "twitpic.com\/7vzl1x" }, { "indices" : [ 115, 135 ], "url" : "http:\/\/t.co\/fpMleaNx", "expanded_url" : "http:\/\/bit.ly\/rDT5Ob", "display_url" : "bit.ly\/rDT5Ob" } ] }, "geo" : { }, "id_str" : "149233122716811264", "text" : "Wow 'The Chosen' by balooga03 is incredible. It is so beautiful. Run it in full screen #ld48 http:\/\/t.co\/1DBCZJax http:\/\/t.co\/fpMleaNx", "id" : 149233122716811264, "created_at" : "2011-12-20 21:02:03 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Indie Game:The Movie", "screen_name" : "indiegamemovie", "indices" : [ 27, 42 ], "id_str" : "111492860", "id" : 111492860 }, { "name" : "Ludum Dare", "screen_name" : "ludumdare", "indices" : [ 69, 79 ], "id_str" : "16150760", "id" : 16150760 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 93, 98 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149231810864353280", "text" : "I really can't wait to see @indiegamemovie Is there any reference to @ludumdare in the film? #ld48", "id" : 149231810864353280, "created_at" : "2011-12-20 20:56:50 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Erifdex", "screen_name" : "Erifdex", "indices" : [ 0, 8 ], "id_str" : "249222617", "id" : 249222617 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 10, 15 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149226819034423296", "geo" : { }, "id_str" : "149231315370250240", "in_reply_to_user_id" : 249222617, "text" : "@Erifdex #LD48 I'm on it, I'll check it out next. :)", "id" : 149231315370250240, "in_reply_to_status_id" : 149226819034423296, "created_at" : "2011-12-20 20:54:52 +0000", "in_reply_to_screen_name" : "Erifdex", "in_reply_to_user_id_str" : "249222617", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "tamat", "screen_name" : "tamat", "indices" : [ 0, 6 ], "id_str" : "9680172", "id" : 9680172 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 8, 13 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "149203560301740033", "geo" : { }, "id_str" : "149226134251376640", "in_reply_to_user_id" : 9680172, "text" : "@tamat #LD48 Yeah it's a good video. Thanks for posting it. Imagine a world where Aesthetics was valued more highly than more polys!", "id" : 149226134251376640, "in_reply_to_status_id" : 149203560301740033, "created_at" : "2011-12-20 20:34:17 +0000", "in_reply_to_screen_name" : "tamat", "in_reply_to_user_id_str" : "9680172", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "adam", "screen_name" : "ADAMATOMIC", "indices" : [ 0, 11 ], "id_str" : "70587360", "id" : 70587360 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149209371329568768", "in_reply_to_user_id" : 70587360, "text" : "@ADAMATOMIC Thank you for saying niche like \"neesh\" instead of \"nitch\" on the GIM podcast. Fight the good fight!", "id" : 149209371329568768, "created_at" : "2011-12-20 19:27:40 +0000", "in_reply_to_screen_name" : "ADAMATOMIC", "in_reply_to_user_id_str" : "70587360", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Comrade Weez", "screen_name" : "weezmgk", "indices" : [ 3, 11 ], "id_str" : "98006937", "id" : 98006937 }, { "name" : "Dr Karl", "screen_name" : "DoctorKarl", "indices" : [ 76, 87 ], "id_str" : "21147300", "id" : 21147300 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 88, 108 ], "url" : "http:\/\/t.co\/GZx3cPWs", "expanded_url" : "http:\/\/is.gd\/ZFx2ZO", "display_url" : "is.gd\/ZFx2ZO" } ] }, "geo" : { }, "id_str" : "149189372133117952", "text" : "RT @weezmgk: Fascinating 'Conversations with Richard Fidler' interview with @DoctorKarl http:\/\/t.co\/GZx3cPWs", "retweeted_status" : { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Dr Karl", "screen_name" : "DoctorKarl", "indices" : [ 63, 74 ], "id_str" : "21147300", "id" : 21147300 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 75, 95 ], "url" : "http:\/\/t.co\/GZx3cPWs", "expanded_url" : "http:\/\/is.gd\/ZFx2ZO", "display_url" : "is.gd\/ZFx2ZO" } ] }, "geo" : { }, "id_str" : "149072492789645312", "text" : "Fascinating 'Conversations with Richard Fidler' interview with @DoctorKarl http:\/\/t.co\/GZx3cPWs", "id" : 149072492789645312, "created_at" : "2011-12-20 10:23:46 +0000", "user" : { "name" : "Comrade Weez", "screen_name" : "weezmgk", "protected" : false, "id_str" : "98006937", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/1286415237\/mgk_tw_av_bigger_normal.jpg", "id" : 98006937, "verified" : false } }, "id" : 149189372133117952, "created_at" : "2011-12-20 18:08:12 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "adam", "screen_name" : "ADAMATOMIC", "indices" : [ 3, 14 ], "id_str" : "70587360", "id" : 70587360 }, { "name" : "Jason Rosenstock", "screen_name" : "JasonRosenstock", "indices" : [ 96, 112 ], "id_str" : "1754701", "id" : 1754701 }, { "name" : "White Whale Games", "screen_name" : "WhiteWhaleGames", "indices" : [ 116, 132 ], "id_str" : "357509021", "id" : 357509021 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 139, 140 ], "url" : "http:\/\/t.co\/MEic2jC2", "expanded_url" : "http:\/\/gim.acanaday.com\/?p=210", "display_url" : "gim.acanaday.com\/?p=210" } ] }, "geo" : { }, "id_str" : "149189143585505281", "text" : "RT @ADAMATOMIC: oh hey it's up! I was a guest on the Games Industry Mentor \"indie\" episode with @jasonrosenstock of @WhiteWhaleGames htt ...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Jason Rosenstock", "screen_name" : "JasonRosenstock", "indices" : [ 80, 96 ], "id_str" : "1754701", "id" : 1754701 }, { "name" : "White Whale Games", "screen_name" : "WhiteWhaleGames", "indices" : [ 100, 116 ], "id_str" : "357509021", "id" : 357509021 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 117, 137 ], "url" : "http:\/\/t.co\/MEic2jC2", "expanded_url" : "http:\/\/gim.acanaday.com\/?p=210", "display_url" : "gim.acanaday.com\/?p=210" } ] }, "geo" : { }, "id_str" : "148941302472519681", "text" : "oh hey it's up! I was a guest on the Games Industry Mentor \"indie\" episode with @jasonrosenstock of @WhiteWhaleGames http:\/\/t.co\/MEic2jC2", "id" : 148941302472519681, "created_at" : "2011-12-20 01:42:28 +0000", "user" : { "name" : "adam", "screen_name" : "ADAMATOMIC", "protected" : false, "id_str" : "70587360", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/583782677561507840\/w_Y9WDjX_normal.jpg", "id" : 70587360, "verified" : false } }, "id" : 149189143585505281, "created_at" : "2011-12-20 18:07:18 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Iyad El-Baghdadi", "screen_name" : "iyad_elbaghdadi", "indices" : [ 3, 19 ], "id_str" : "18725815", "id" : 18725815 } ], "media" : [ ], "hashtags" : [ { "text" : "Tahrir", "indices" : [ 56, 63 ] }, { "text" : "Egypt", "indices" : [ 133, 139 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149188662612070400", "text" : "RT @iyad_elbaghdadi: There's a massacre taking place at #Tahrir right now. Shooting demonstrators at dawn while the world is asleep. #Egypt", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "Tahrir", "indices" : [ 35, 42 ] }, { "text" : "Egypt", "indices" : [ 112, 118 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148987281309569024", "text" : "There's a massacre taking place at #Tahrir right now. Shooting demonstrators at dawn while the world is asleep. #Egypt", "id" : 148987281309569024, "created_at" : "2011-12-20 04:45:10 +0000", "user" : { "name" : "Iyad El-Baghdadi", "screen_name" : "iyad_elbaghdadi", "protected" : false, "id_str" : "18725815", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/542423097253441537\/bjOF70A6_normal.jpeg", "id" : 18725815, "verified" : false } }, "id" : 149188662612070400, "created_at" : "2011-12-20 18:05:23 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 134, 139 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149175563335118850", "text" : "It really bugs me when people try to define indie as \"not being a sell out\". To me, if it didn't cost a million dollars, it's indie. #ld48", "id" : 149175563335118850, "created_at" : "2011-12-20 17:13:20 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149172193174110209", "text" : "#ld48 Working on getting my timelapse and a post mortem up before I go to bed.", "id" : 149172193174110209, "created_at" : "2011-12-20 16:59:56 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 42, 47 ] } ], "urls" : [ { "indices" : [ 104, 124 ], "url" : "http:\/\/t.co\/G1ynHKx9", "expanded_url" : "http:\/\/bit.ly\/tIRVazcheck", "display_url" : "bit.ly\/tIRVazcheck" } ] }, "geo" : { }, "id_str" : "149163831619354624", "text" : "I learnt a lot from the feedback I got in #ld48, it's the most valuable part of the competition to me. http:\/\/t.co\/G1ynHKx9", "id" : 149163831619354624, "created_at" : "2011-12-20 16:26:43 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "149132255757991936", "text" : "#1984, I don't think by breaking Winston he actually accepted that 2+2=5. There is still a core personality and identity beneath what we say", "id" : 149132255757991936, "created_at" : "2011-12-20 14:21:15 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Chris Priestman", "screen_name" : "CPriestman", "indices" : [ 0, 11 ], "id_str" : "182438807", "id" : 182438807 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 12, 17 ] }, { "text" : "firstcell", "indices" : [ 18, 28 ] } ], "urls" : [ { "indices" : [ 92, 112 ], "url" : "http:\/\/t.co\/jE90NqxC", "expanded_url" : "http:\/\/bit.ly\/skakvC", "display_url" : "bit.ly\/skakvC" } ] }, "geo" : { }, "id_str" : "149126259320963072", "in_reply_to_user_id" : 182438807, "text" : "@CPriestman #ld48 #firstcell Thanks for mentioning my game in your coverage of ludum dare. http:\/\/t.co\/jE90NqxC The game has hints now!", "id" : 149126259320963072, "created_at" : "2011-12-20 13:57:25 +0000", "in_reply_to_screen_name" : "CPriestman", "in_reply_to_user_id_str" : "182438807", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "badsectoracula", "screen_name" : "badsectoracula", "indices" : [ 0, 15 ], "id_str" : "18854080", "id" : 18854080 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 17, 22 ] }, { "text" : "ld48", "indices" : [ 72, 77 ] } ], "urls" : [ { "indices" : [ 112, 132 ], "url" : "http:\/\/t.co\/CWMptFFc", "expanded_url" : "http:\/\/bit.ly\/tIRVaz", "display_url" : "bit.ly\/tIRVaz" } ] }, "in_reply_to_status_id_str" : "148872860415430656", "geo" : { }, "id_str" : "149122961637511168", "in_reply_to_user_id" : 18854080, "text" : "@badsectoracula #ld48 no probs, bad sector, it's my pleasure to review #ld48 games, could you check mine out? http:\/\/t.co\/CWMptFFc", "id" : 149122961637511168, "in_reply_to_status_id" : 148872860415430656, "created_at" : "2011-12-20 13:44:19 +0000", "in_reply_to_screen_name" : "badsectoracula", "in_reply_to_user_id_str" : "18854080", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld22", "indices" : [ 45, 50 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "149122673904058369", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne Fixed some minor things in my #ld22 entry, hopefully it is less obtuse now. Do you think the hints are too obtrusive?", "id" : 149122673904058369, "created_at" : "2011-12-20 13:43:10 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 16, 21 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148785562151698432", "text" : "Enough! You win #LD48, I will now sleep! I will rate more games tomorrow, if anyone wants me to check out their game, just send the link.", "id" : 148785562151698432, "created_at" : "2011-12-19 15:23:36 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 71, 76 ] } ], "urls" : [ { "indices" : [ 50, 70 ], "url" : "http:\/\/t.co\/tZv8S9Jp", "expanded_url" : "http:\/\/deepnight.net\/games\/ld22-lastbreath\/", "display_url" : "deepnight.net\/games\/ld22-las\u2026" } ] }, "in_reply_to_status_id_str" : "148777756077981696", "geo" : { }, "id_str" : "148780718871429120", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne wow, that is an amazing art style http:\/\/t.co\/tZv8S9Jp #ld48", "id" : 148780718871429120, "in_reply_to_status_id" : 148777756077981696, "created_at" : "2011-12-19 15:04:22 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Ludum Dare", "screen_name" : "ludumdare", "indices" : [ 0, 10 ], "id_str" : "16150760", "id" : 16150760 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "148776715064315904", "in_reply_to_user_id" : 16150760, "text" : "@ludumdare for some reason I can't rate treeman's game, it is the only one that has a problem, it says I need to sign in, but I am signed in", "id" : 148776715064315904, "created_at" : "2011-12-19 14:48:27 +0000", "in_reply_to_screen_name" : "ludumdare", "in_reply_to_user_id_str" : "16150760", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 122, 127 ] }, { "text" : "Sat", "indices" : [ 128, 132 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148768649036042241", "in_reply_to_user_id" : 436615658, "text" : "@theNamelssOne I can't believe how heavily invested I am in this game. I'll review just as soon as I beat the damn thing. #ld48 #Sat-E", "id" : 148768649036042241, "created_at" : "2011-12-19 14:16:24 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 16, 21 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "148761769404411904", "geo" : { }, "id_str" : "148764854109483008", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne #ld48 I'm using a dev preview of win8 so it may not be treeman's fault. The game has brilliant humor. Worth a crash or two.", "id" : 148764854109483008, "in_reply_to_status_id" : 148761769404411904, "created_at" : "2011-12-19 14:01:19 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 106, 111 ] } ], "urls" : [ { "indices" : [ 0, 20 ], "url" : "http:\/\/t.co\/1FlUMoKx", "expanded_url" : "http:\/\/bit.ly\/vEeVSo", "display_url" : "bit.ly\/vEeVSo" } ] }, "geo" : { }, "id_str" : "148760612686659585", "text" : "http:\/\/t.co\/1FlUMoKx Was just playing Sat-E by treeman, it was really great, but it crashed my computer. #ld48 I'll try again.", "id" : 148760612686659585, "created_at" : "2011-12-19 13:44:28 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "badsectoracula", "screen_name" : "badsectoracula", "indices" : [ 0, 15 ], "id_str" : "18854080", "id" : 18854080 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 44, 49 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "148728838153711616", "geo" : { }, "id_str" : "148753477076656128", "in_reply_to_user_id" : 18854080, "text" : "@badsectoracula I just reviewed your game. #ld48 It's interesting but also confusing. The readme said you made it in 5 mins. How?", "id" : 148753477076656128, "in_reply_to_status_id" : 148728838153711616, "created_at" : "2011-12-19 13:16:07 +0000", "in_reply_to_screen_name" : "badsectoracula", "in_reply_to_user_id_str" : "18854080", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Guillaume Tournier", "screen_name" : "PapyBrossard", "indices" : [ 0, 13 ], "id_str" : "75757423", "id" : 75757423 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 103, 108 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "148743707900915714", "geo" : { }, "id_str" : "148749405216968704", "in_reply_to_user_id" : 75757423, "text" : "@PapyBrossard Done! There's a full blow by blow on your page. Congrats on a first attempt well done! #ld48", "id" : 148749405216968704, "in_reply_to_status_id" : 148743707900915714, "created_at" : "2011-12-19 12:59:56 +0000", "in_reply_to_screen_name" : "PapyBrossard", "in_reply_to_user_id_str" : "75757423", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 17, 22 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148740586697011202", "text" : "Setting up a few #ld48 games to judge. If anyone wants me to review there games I'm happy too. It's hard to pick out of 700 odd.", "id" : 148740586697011202, "created_at" : "2011-12-19 12:24:53 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "iplayed", "indices" : [ 16, 24 ] }, { "text" : "ld48", "indices" : [ 25, 30 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148738881477550081", "in_reply_to_user_id" : 436615658, "text" : "@TheNamelssOne #iplayed #ld48 Thanks mate, It is kind of dark and noir. I couldn't think of any other way to use that theme. :)", "id" : 148738881477550081, "created_at" : "2011-12-19 12:18:07 +0000", "in_reply_to_screen_name" : "ZhootSe", "in_reply_to_user_id_str" : "436615658", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Indie Game Magazine", "screen_name" : "indiegamemag", "indices" : [ 0, 13 ], "id_str" : "36761298", "id" : 36761298 } ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 15, 20 ] } ], "urls" : [ { "indices" : [ 44, 64 ], "url" : "http:\/\/t.co\/Ofys9FCu", "expanded_url" : "http:\/\/bit.ly\/tRVh16", "display_url" : "bit.ly\/tRVh16" } ] }, "in_reply_to_status_id_str" : "148728281934475266", "geo" : { }, "id_str" : "148733124296183808", "in_reply_to_user_id" : 36761298, "text" : "@indiegamemag #LD48 A new record I think! http:\/\/t.co\/Ofys9FCu is my ludum dare entry. You play as a lonely cell in a sea of dead matter.", "id" : 148733124296183808, "in_reply_to_status_id" : 148728281934475266, "created_at" : "2011-12-19 11:55:14 +0000", "in_reply_to_screen_name" : "indiegamemag", "in_reply_to_user_id_str" : "36761298", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "badsectoracula", "screen_name" : "badsectoracula", "indices" : [ 0, 15 ], "id_str" : "18854080", "id" : 18854080 }, { "name" : "dogbomb", "screen_name" : "dogbomb", "indices" : [ 16, 24 ], "id_str" : "2803111", "id" : 2803111 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "148732351025913856", "in_reply_to_user_id" : 18854080, "text" : "@badsectoracula @dogbomb It's really odd, I can sign into LudumDare but I can't sign into WordPress.com Cheers for the help though", "id" : 148732351025913856, "created_at" : "2011-12-19 11:52:10 +0000", "in_reply_to_screen_name" : "badsectoracula", "in_reply_to_user_id_str" : "18854080", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 0, 5 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148728398733262848", "text" : "#ld48, sorry for the noob question, but how do you attach an avatar thumbnail to your ludum dare journal, I can't see it anywhere. thanks", "id" : 148728398733262848, "created_at" : "2011-12-19 11:36:28 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "148682507737513985", "text" : "Parents talking about how mum can't remember a time when dad forgot her name. We're just sitting here getting older every minute.", "id" : 148682507737513985, "created_at" : "2011-12-19 08:34:06 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 20, 25 ] } ], "urls" : [ { "indices" : [ 34, 54 ], "url" : "http:\/\/t.co\/5aKGa8wh", "expanded_url" : "http:\/\/bit.ly\/tzhOoF", "display_url" : "bit.ly\/tzhOoF" } ] }, "geo" : { }, "id_str" : "148605105187459072", "text" : "This is my finished #ld48 entry. http:\/\/t.co\/5aKGa8wh It is called 'First Cell', you play as the first and only life form in the universe.", "id" : 148605105187459072, "created_at" : "2011-12-19 03:26:32 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 20, 25 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148579113727299584", "text" : "I think I finished! #ld48", "id" : 148579113727299584, "created_at" : "2011-12-19 01:43:15 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 44, 49 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148514120679952384", "text" : "It's interesting how the time constraint of #ld48, affects the game design decisions.", "id" : 148514120679952384, "created_at" : "2011-12-18 21:25:00 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 126, 131 ] } ], "urls" : [ { "indices" : [ 90, 110 ], "url" : "http:\/\/t.co\/LGDzcjSa", "expanded_url" : "http:\/\/bit.ly\/sjCtVX", "display_url" : "bit.ly\/sjCtVX" } ] }, "geo" : { }, "id_str" : "148389042956939265", "text" : "It doesn't look like much, I've not added the main mechanic yet, but still here is a link http:\/\/t.co\/LGDzcjSa 12 hours to go #ld48", "id" : 148389042956939265, "created_at" : "2011-12-18 13:07:59 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 99, 104 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148347087904452609", "text" : "Yes! I know how to make this a decent game now. I literally just stood up clapped and did a jig. #ld48", "id" : 148347087904452609, "created_at" : "2011-12-18 10:21:16 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 100, 120 ], "url" : "http:\/\/t.co\/XJGsMkRW", "expanded_url" : "http:\/\/bit.ly\/vUnyQW", "display_url" : "bit.ly\/vUnyQW" } ] }, "geo" : { }, "id_str" : "148327149206634496", "text" : "Today Japanese children played my light saber simulator. I love when kids enjoy a game I created. http:\/\/t.co\/XJGsMkRW free beta testing!", "id" : 148327149206634496, "created_at" : "2011-12-18 09:02:02 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 68, 73 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148326609588465665", "text" : "I'm happy with what I have done so far, but in no way is it a game. #ld48", "id" : 148326609588465665, "created_at" : "2011-12-18 08:59:54 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 72, 77 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148081817851936768", "text" : "This is what I've got so far. Strangely captivated by it. bit.ly\/tE6IDR #ld48", "id" : 148081817851936768, "created_at" : "2011-12-17 16:47:11 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "148071660925353984", "text" : "Programmer art&gt; art", "id" : 148071660925353984, "created_at" : "2011-12-17 16:06:49 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 129, 134 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148057201800511488", "text" : "I have a rough idea of what I am making now. I need to see if I can get some lighting effects and blending modes going in flash #ld48", "id" : 148057201800511488, "created_at" : "2011-12-17 15:09:22 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 12, 26 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 132, 137 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "148048680916758528", "text" : "inspired by @terrycavanagh, continuing to work on an idea hoping the theme idea would come later. I did the same, and it happened! #ld48", "id" : 148048680916758528, "created_at" : "2011-12-17 14:35:30 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "LD48", "indices" : [ 22, 27 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "147809088980529152", "text" : "Roughly 2 hours until #LD48, crazy excited.", "id" : 147809088980529152, "created_at" : "2011-12-16 22:43:27 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "wedding", "indices" : [ 83, 91 ] }, { "text" : "errands", "indices" : [ 92, 100 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "147405369608638464", "text" : "I don't understand how something can be so intense and so boring at the same time. #wedding #errands", "id" : 147405369608638464, "created_at" : "2011-12-15 19:59:13 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 22, 42 ], "url" : "http:\/\/t.co\/zduh84ub", "expanded_url" : "http:\/\/canyonoasis.com\/saber\/", "display_url" : "canyonoasis.com\/saber\/" } ] }, "geo" : { }, "id_str" : "147274365225013249", "text" : "A playable prototype. http:\/\/t.co\/zduh84ub", "id" : 147274365225013249, "created_at" : "2011-12-15 11:18:39 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "147249943311159296", "text" : "Working on my website. Will go live soon.", "id" : 147249943311159296, "created_at" : "2011-12-15 09:41:36 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 108, 128 ], "url" : "http:\/\/t.co\/ySL6pqb1", "expanded_url" : "http:\/\/bit.ly\/V0ZgK", "display_url" : "bit.ly\/V0ZgK" } ] }, "geo" : { }, "id_str" : "147239044487712768", "text" : "Michael Abbot of brainygamer.com is a brilliant writer, the podcasts actually discuss games intelligently. http:\/\/t.co\/ySL6pqb1", "id" : 147239044487712768, "created_at" : "2011-12-15 08:58:18 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 77, 97 ], "url" : "http:\/\/t.co\/GtjTmfv0", "expanded_url" : "http:\/\/slate.me\/rJuRF8", "display_url" : "slate.me\/rJuRF8" } ] }, "geo" : { }, "id_str" : "147238748663447552", "text" : "Striving to read through all my tabs, then you discover something like this. http:\/\/t.co\/GtjTmfv0 It never ends...", "id" : 147238748663447552, "created_at" : "2011-12-15 08:57:07 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Markus Persson", "screen_name" : "notch", "indices" : [ 0, 6 ], "id_str" : "63485337", "id" : 63485337 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "146972878481522688", "geo" : { }, "id_str" : "146973397878968320", "in_reply_to_user_id" : 63485337, "text" : "@notch I'm coding a light saber simulator, hopefully don't get sued.", "id" : 146973397878968320, "in_reply_to_status_id" : 146972878481522688, "created_at" : "2011-12-14 15:22:43 +0000", "in_reply_to_screen_name" : "notch", "in_reply_to_user_id_str" : "63485337", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146920993737289729", "text" : "Just adding the sound effects made the game so much more enjoyable. Sound is so important.", "id" : 146920993737289729, "created_at" : "2011-12-14 11:54:29 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "freesound dev", "screen_name" : "freesounddev", "indices" : [ 0, 13 ], "id_str" : "39772044", "id" : 39772044 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146604798177849344", "in_reply_to_user_id" : 39772044, "text" : "@freesounddev is down, just as I needed some light saber sounds, damn. Great site though", "id" : 146604798177849344, "created_at" : "2011-12-13 14:58:02 +0000", "in_reply_to_screen_name" : "freesounddev", "in_reply_to_user_id_str" : "39772044", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146601184470376449", "text" : "Just went on ABC radio to talk about the new dietary guidelines, man that was intense.", "id" : 146601184470376449, "created_at" : "2011-12-13 14:43:40 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146568178129051648", "text" : "Registered a website domain today, so I'll post this lightsaber thing as soon as it's all setup.", "id" : 146568178129051648, "created_at" : "2011-12-13 12:32:31 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "as3", "indices" : [ 72, 76 ] }, { "text" : "lwjgl", "indices" : [ 117, 123 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "146544209640427520", "text" : "Trying to create the effect of laser blasts coming toward the player in #as3, more and more I feel I should just use #lwjgl for this project", "id" : 146544209640427520, "created_at" : "2011-12-13 10:57:16 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Dr Karl", "screen_name" : "DoctorKarl", "indices" : [ 0, 11 ], "id_str" : "21147300", "id" : 21147300 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146488600396177408", "in_reply_to_user_id" : 21147300, "text" : "@DoctorKarl The new eating guidelines rely on bad science, like the lipid hypothesis. Yes saturated fats raise cholesterol, but not LDL.", "id" : 146488600396177408, "created_at" : "2011-12-13 07:16:18 +0000", "in_reply_to_screen_name" : "DoctorKarl", "in_reply_to_user_id_str" : "21147300", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "indices" : [ 0, 12 ], "id_str" : "23431058", "id" : 23431058 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146231860551352320", "in_reply_to_user_id" : 23431058, "text" : "@cokeandcode good luck with it, whatever you decide on doing", "id" : 146231860551352320, "created_at" : "2011-12-12 14:16:07 +0000", "in_reply_to_screen_name" : "cokeandcode", "in_reply_to_user_id_str" : "23431058", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "indices" : [ 0, 12 ], "id_str" : "23431058", "id" : 23431058 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 112, 132 ], "url" : "http:\/\/t.co\/XVddROYP", "expanded_url" : "http:\/\/youtu.be\/tdMjKEncojQ", "display_url" : "youtu.be\/tdMjKEncojQ" } ] }, "in_reply_to_status_id_str" : "146229699394285568", "geo" : { }, "id_str" : "146231768163426305", "in_reply_to_user_id" : 23431058, "text" : "@cokeandcode Paleolithic? I know I'm a complete stranger but I highly recommend that video. If it is too long, http:\/\/t.co\/XVddROYP", "id" : 146231768163426305, "in_reply_to_status_id" : 146229699394285568, "created_at" : "2011-12-12 14:15:45 +0000", "in_reply_to_screen_name" : "cokeandcode", "in_reply_to_user_id_str" : "23431058", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "indices" : [ 0, 12 ], "id_str" : "23431058", "id" : 23431058 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "146227722170015744", "geo" : { }, "id_str" : "146229255611760640", "in_reply_to_user_id" : 23431058, "text" : "@cokeandcode Which carb diet?", "id" : 146229255611760640, "in_reply_to_status_id" : 146227722170015744, "created_at" : "2011-12-12 14:05:46 +0000", "in_reply_to_screen_name" : "cokeandcode", "in_reply_to_user_id_str" : "23431058", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "indices" : [ 0, 12 ], "id_str" : "23431058", "id" : 23431058 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 14, 34 ], "url" : "http:\/\/t.co\/mHTESsqA", "expanded_url" : "http:\/\/youtu.be\/dBnniua6-oM", "display_url" : "youtu.be\/dBnniua6-oM" } ] }, "in_reply_to_status_id_str" : "146202130330554369", "geo" : { }, "id_str" : "146227088117075969", "in_reply_to_user_id" : 23431058, "text" : "@cokeandcode http:\/\/t.co\/mHTESsqA This video is long, but it has changed my life. Challenges basically all nutrition science.", "id" : 146227088117075969, "in_reply_to_status_id" : 146202130330554369, "created_at" : "2011-12-12 13:57:09 +0000", "in_reply_to_screen_name" : "cokeandcode", "in_reply_to_user_id_str" : "23431058", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Building Windows 8", "screen_name" : "BuildWindows8", "indices" : [ 0, 14 ], "id_str" : "353466012", "id" : 353466012 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146167754343448577", "in_reply_to_user_id" : 353466012, "text" : "@BuildWindows8 a separate clipboard for text and picture data. You can't paste a photo into notepad, and you can't paste text into paint.", "id" : 146167754343448577, "created_at" : "2011-12-12 10:01:22 +0000", "in_reply_to_screen_name" : "BuildWindows8", "in_reply_to_user_id_str" : "353466012", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "chiptunes", "indices" : [ 0, 10 ] }, { "text" : "hiphop", "indices" : [ 11, 18 ] }, { "text" : "classical", "indices" : [ 19, 29 ] }, { "text" : "motown", "indices" : [ 30, 37 ] }, { "text" : "postrock", "indices" : [ 38, 47 ] }, { "text" : "modrock", "indices" : [ 48, 56 ] }, { "text" : "postpunk", "indices" : [ 57, 66 ] }, { "text" : "surf", "indices" : [ 67, 72 ] }, { "text" : "blues", "indices" : [ 73, 79 ] }, { "text" : "folk", "indices" : [ 80, 85 ] }, { "text" : "jazz", "indices" : [ 86, 91 ] }, { "text" : "reggae", "indices" : [ 92, 99 ] }, { "text" : "country", "indices" : [ 100, 108 ] } ], "urls" : [ { "indices" : [ 120, 140 ], "url" : "http:\/\/t.co\/z0MZeH7v", "expanded_url" : "http:\/\/bit.ly\/tKHjPO", "display_url" : "bit.ly\/tKHjPO" } ] }, "geo" : { }, "id_str" : "146162139214778369", "text" : "#chiptunes #hiphop #classical #motown #postrock #modrock #postpunk #surf #blues #folk #jazz #reggae #country playlist - http:\/\/t.co\/z0MZeH7v", "id" : 146162139214778369, "created_at" : "2011-12-12 09:39:04 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146154604424474625", "text" : "Had a crazy weekend, part of which included sitting by a river engulfed in fog. Lay down on a bridge and tried to see the lunar eclipse.", "id" : 146154604424474625, "created_at" : "2011-12-12 09:09:07 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Alexander Bruce", "screen_name" : "Demruth", "indices" : [ 3, 11 ], "id_str" : "191790175", "id" : 191790175 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146153682038300672", "text" : "RT @Demruth: The problem with making a game where weird shit happens is that players can't differentiate between intentional design vs a ...", "retweeted_status" : { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145896832017514496", "text" : "The problem with making a game where weird shit happens is that players can't differentiate between intentional design vs a legitimate bug!", "id" : 145896832017514496, "created_at" : "2011-12-11 16:04:50 +0000", "user" : { "name" : "Alexander Bruce", "screen_name" : "Demruth", "protected" : false, "id_str" : "191790175", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/575867792714428417\/xAb2bmr5_normal.jpeg", "id" : 191790175, "verified" : false } }, "id" : 146153682038300672, "created_at" : "2011-12-12 09:05:27 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "146152724218654720", "text" : "Starcraft II isn't coming out until the distant future, when the American president is black and Chinese Democracy has been released.", "id" : 146152724218654720, "created_at" : "2011-12-12 09:01:39 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 3, 17 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145335593134592000", "text" : "RT @terrycavanagh: I've never actually done very well in Ludum Dare, but then I rarely submit what I work on and usually just end up wor ...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145195486092075009", "text" : "I've never actually done very well in Ludum Dare, but then I rarely submit what I work on and usually just end up working on it afterwards.", "id" : 145195486092075009, "created_at" : "2011-12-09 17:37:56 +0000", "user" : { "name" : "Terry", "screen_name" : "terrycavanagh", "protected" : false, "id_str" : "36457353", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/539415172264108032\/YmvCbIK3_normal.jpeg", "id" : 36457353, "verified" : false } }, "id" : 145335593134592000, "created_at" : "2011-12-10 02:54:40 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145165970602856449", "text" : "4 hr gig tomorrow, and a rehearsal for my brothers wedding. Instead of sleeping, we stay up all night working on a lightsaber simulator.", "id" : 145165970602856449, "created_at" : "2011-12-09 15:40:39 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "PHIL FISH", "screen_name" : "PHIL_FISH", "indices" : [ 3, 13 ], "id_str" : "5576542", "id" : 5576542 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145040023937495040", "text" : "RT @PHIL_FISH: if your neighbor bangs on your wall exactly to the rhythm of the music you're playing, it means they like it, right?", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "145038581235326976", "text" : "if your neighbor bangs on your wall exactly to the rhythm of the music you're playing, it means they like it, right?", "id" : 145038581235326976, "created_at" : "2011-12-09 07:14:27 +0000", "user" : { "name" : "PHIL FISH", "screen_name" : "PHIL_FISH", "protected" : true, "id_str" : "5576542", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/3367855405\/31480c2eb98431705f851d37f9c78778_normal.jpeg", "id" : 5576542, "verified" : false } }, "id" : 145040023937495040, "created_at" : "2011-12-09 07:20:11 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "skyrim", "indices" : [ 62, 69 ] }, { "text" : "toodeep", "indices" : [ 129, 137 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "145039451121393664", "text" : "I wonder if you paid my cousin by the hour to get his pirated #skyrim to run, would it equate to the cost of buying it on steam? #toodeep", "id" : 145039451121393664, "created_at" : "2011-12-09 07:17:54 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Terry", "screen_name" : "terrycavanagh", "indices" : [ 0, 14 ], "id_str" : "36457353", "id" : 36457353 } ], "media" : [ ], "hashtags" : [ { "text" : "atadistance", "indices" : [ 41, 53 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "145038355778895873", "in_reply_to_user_id" : 36457353, "text" : "@terrycavanagh thanks so much for making #atadistance freely available. I've never experienced something like that before.", "id" : 145038355778895873, "created_at" : "2011-12-09 07:13:33 +0000", "in_reply_to_screen_name" : "terrycavanagh", "in_reply_to_user_id_str" : "36457353", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "lucasarts", "indices" : [ 46, 56 ] }, { "text" : "dontsueme", "indices" : [ 57, 67 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "144986903836495872", "text" : "I'm making a Lightsaber simulator in Flash :) #lucasarts #dontsueme", "id" : 144986903836495872, "created_at" : "2011-12-09 03:49:06 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "144622832708620288", "text" : "Going to buy a guitar now.", "id" : 144622832708620288, "created_at" : "2011-12-08 03:42:24 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "Skyrim", "indices" : [ 76, 83 ] }, { "text" : "DarkSouls", "indices" : [ 84, 94 ] }, { "text" : "eurogamer", "indices" : [ 127, 137 ] } ], "urls" : [ { "indices" : [ 106, 126 ], "url" : "http:\/\/t.co\/JFBTovlc", "expanded_url" : "http:\/\/bit.ly\/t3xshM", "display_url" : "bit.ly\/t3xshM" } ] }, "geo" : { }, "id_str" : "144461412012539904", "text" : "Interesting to see where this demand for better storytelling will lead us. #Skyrim #DarkSouls comparison http:\/\/t.co\/JFBTovlc #eurogamer", "id" : 144461412012539904, "created_at" : "2011-12-07 17:00:59 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "responsible", "indices" : [ 109, 121 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "144402670738870273", "text" : "Spending all my money on a new guitar tomorrow. Borrowed money from my brother so I can still pay the rent. #responsible", "id" : 144402670738870273, "created_at" : "2011-12-07 13:07:34 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "99 Coins Podcast", "screen_name" : "99coins", "indices" : [ 0, 8 ], "id_str" : "284643879", "id" : 284643879 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "144364103073406978", "in_reply_to_user_id" : 284643879, "text" : "@99coins I really liked the first episode of 99Coins, the interactions and discussions between developers, it's very communal.", "id" : 144364103073406978, "created_at" : "2011-12-07 10:34:18 +0000", "in_reply_to_screen_name" : "99coins", "in_reply_to_user_id_str" : "284643879", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 40, 60 ], "url" : "http:\/\/t.co\/AqR9sl0F", "expanded_url" : "http:\/\/processing.org\/learning\/topics\/", "display_url" : "processing.org\/learning\/topic\u2026" } ] }, "geo" : { }, "id_str" : "144075213359947776", "text" : "Some of these examples are so beautiful http:\/\/t.co\/AqR9sl0F", "id" : 144075213359947776, "created_at" : "2011-12-06 15:26:22 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "144073833811410944", "text" : "Osmos is such a brilliant game, It fits in so well with Jon Blow 's concept of designing games to reveal the nature of the universe.", "id" : 144073833811410944, "created_at" : "2011-12-06 15:20:53 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Alexander Bruce", "screen_name" : "Demruth", "indices" : [ 0, 8 ], "id_str" : "191790175", "id" : 191790175 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "144024497698258944", "geo" : { }, "id_str" : "144061664612990976", "in_reply_to_user_id" : 191790175, "text" : "@Demruth I thought the same about white tails, I justified killing so many because I didn't want to get necrosis. Now I feel so guilty.", "id" : 144061664612990976, "in_reply_to_status_id" : 144024497698258944, "created_at" : "2011-12-06 14:32:32 +0000", "in_reply_to_screen_name" : "Demruth", "in_reply_to_user_id_str" : "191790175", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "143565236203569152", "text" : "Creating games is the best example of mathematics in harmony with literature. Trouble is most educators aren't game developers.", "id" : 143565236203569152, "created_at" : "2011-12-05 05:39:54 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "143545763539066880", "in_reply_to_user_id" : 318182652, "text" : "@adamruch Sorry that was unclear, Logic + causality = Maths. Because Maths explains why things happen in the most logical manner.", "id" : 143545763539066880, "created_at" : "2011-12-05 04:22:31 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "BABY X", "screen_name" : "BABYXBAND", "indices" : [ 34, 44 ], "id_str" : "149419176", "id" : 149419176 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 76, 96 ], "url" : "http:\/\/t.co\/DMcxADVc", "expanded_url" : "http:\/\/bit.ly\/vpP385", "display_url" : "bit.ly\/vpP385" } ] }, "geo" : { }, "id_str" : "143545309048471552", "text" : "Just found this audio post on the @BABYXBAND blog of me playing 'New Place' http:\/\/t.co\/DMcxADVc", "id" : 143545309048471552, "created_at" : "2011-12-05 04:20:43 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Ludum Dare", "screen_name" : "ludumdare", "indices" : [ 0, 10 ], "id_str" : "16150760", "id" : 16150760 } ], "media" : [ ], "hashtags" : [ { "text" : "ld48", "indices" : [ 44, 49 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "143543935422304256", "in_reply_to_user_id" : 16150760, "text" : "@ludumdare My brothers wedding is on during #ld48, but I figure if I keep it simple I'll be fine with just 24 hours.", "id" : 143543935422304256, "created_at" : "2011-12-05 04:15:15 +0000", "in_reply_to_screen_name" : "ludumdare", "in_reply_to_user_id_str" : "16150760", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "143540567903715328", "geo" : { }, "id_str" : "143542724828733440", "in_reply_to_user_id" : 318182652, "text" : "@adamruch Logic and causality and Maths are the same thing", "id" : 143542724828733440, "in_reply_to_status_id" : 143540567903715328, "created_at" : "2011-12-05 04:10:27 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ { "text" : "Trigocracy", "indices" : [ 110, 121 ] } ], "urls" : [ ] }, "in_reply_to_status_id_str" : "143538448391880704", "geo" : { }, "id_str" : "143540174255693824", "in_reply_to_user_id" : 318182652, "text" : "@adamruch Also 15 year olds don't vote. Maybe there should be a Pythagorean theorem question on the ballot. #Trigocracy?", "id" : 143540174255693824, "in_reply_to_status_id" : 143538448391880704, "created_at" : "2011-12-05 04:00:19 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "143538448391880704", "geo" : { }, "id_str" : "143539454928355331", "in_reply_to_user_id" : 318182652, "text" : "@adamruch True, I believe there'd be a high correlation between people who understand trig and people who understand global warming though.", "id" : 143539454928355331, "in_reply_to_status_id" : 143538448391880704, "created_at" : "2011-12-05 03:57:27 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Adam Ruch", "screen_name" : "adamruch", "indices" : [ 0, 9 ], "id_str" : "318182652", "id" : 318182652 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ { "indices" : [ 71, 91 ], "url" : "http:\/\/t.co\/EK4PyJqs", "expanded_url" : "http:\/\/bit.ly\/txYwlR", "display_url" : "bit.ly\/txYwlR" } ] }, "in_reply_to_status_id_str" : "143480400210173952", "geo" : { }, "id_str" : "143536563488440322", "in_reply_to_user_id" : 318182652, "text" : "@adamruch Trigonometry is necessary to understand global warming, e.g. http:\/\/t.co\/EK4PyJqs Skyrim would be a static picture without trig.", "id" : 143536563488440322, "in_reply_to_status_id" : 143480400210173952, "created_at" : "2011-12-05 03:45:58 +0000", "in_reply_to_screen_name" : "adamruch", "in_reply_to_user_id_str" : "318182652", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "James O'Connor", "screen_name" : "Jickle", "indices" : [ 0, 7 ], "id_str" : "29660021", "id" : 29660021 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "in_reply_to_status_id_str" : "142035440726310912", "geo" : { }, "id_str" : "142069465838915584", "in_reply_to_user_id" : 29660021, "text" : "@Jickle true, no-one knows. Game retail is in flux and Gabe is a mad scientist. Digital pricing requires discussion at some point.", "id" : 142069465838915584, "in_reply_to_status_id" : 142035440726310912, "created_at" : "2011-12-01 02:36:14 +0000", "in_reply_to_screen_name" : "Jickle", "in_reply_to_user_id_str" : "29660021", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "James O'Connor", "screen_name" : "Jickle", "indices" : [ 0, 7 ], "id_str" : "29660021", "id" : 29660021 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "142034568881520640", "in_reply_to_user_id" : 29660021, "text" : "@Jickle I appreciated the article, but the discussion completely sidestepped the issue when it comes to digital distribution. Why?", "id" : 142034568881520640, "created_at" : "2011-12-01 00:17:34 +0000", "in_reply_to_screen_name" : "Jickle", "in_reply_to_user_id_str" : "29660021", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Luke Adams", "screen_name" : "luketadams", "indices" : [ 3, 14 ], "id_str" : "14468652", "id" : 14468652 } ], "media" : [ ], "hashtags" : [ { "text" : "doyourjob", "indices" : [ 124, 134 ] }, { "text" : "occupy", "indices" : [ 139, 140 ] }, { "text" : "ows", "indices" : [ 139, 140 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "142033781178646528", "text" : "RT @luketadams: Hey reporters, do you think anyone has ever won a Pulitzer while sitting in the police approved press area? #doyourjob # ...", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ { "text" : "doyourjob", "indices" : [ 108, 118 ] }, { "text" : "occupy", "indices" : [ 119, 126 ] }, { "text" : "ows", "indices" : [ 127, 131 ] } ], "urls" : [ ] }, "geo" : { }, "id_str" : "141790628529967105", "text" : "Hey reporters, do you think anyone has ever won a Pulitzer while sitting in the police approved press area? #doyourjob #occupy #ows", "id" : 141790628529967105, "created_at" : "2011-11-30 08:08:14 +0000", "user" : { "name" : "Luke Adams", "screen_name" : "luketadams", "protected" : false, "id_str" : "14468652", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/562858818745688064\/CoK-TkHH_normal.jpeg", "id" : 14468652, "verified" : false } }, "id" : 142033781178646528, "created_at" : "2011-12-01 00:14:26 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "indices" : [ 3, 15 ], "id_str" : "23431058", "id" : 23431058 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "142033614568300546", "text" : "RT @cokeandcode: It still makes me smile every time I add a method called explode()", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "141875435242930176", "text" : "It still makes me smile every time I add a method called explode()", "id" : 141875435242930176, "created_at" : "2011-11-30 13:45:14 +0000", "user" : { "name" : ".oO kevglass Oo.", "screen_name" : "cokeandcode", "protected" : false, "id_str" : "23431058", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/551408237958819840\/p8L2e4kR_normal.png", "id" : 23431058, "verified" : false } }, "id" : 142033614568300546, "created_at" : "2011-12-01 00:13:47 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } }, { "source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E", "entities" : { "user_mentions" : [ { "name" : "Fredrik Wester", "screen_name" : "TheWesterFront", "indices" : [ 3, 18 ], "id_str" : "166080090", "id" : 166080090 } ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "142033521786105856", "text" : "RT @TheWesterFront: CD Projekt estimates 4.5M pirates play Witcher 2. We estimate 6.8 Billion pirates play Magicka.", "retweeted_status" : { "source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E", "entities" : { "user_mentions" : [ ], "media" : [ ], "hashtags" : [ ], "urls" : [ ] }, "geo" : { }, "id_str" : "141808760309039104", "text" : "CD Projekt estimates 4.5M pirates play Witcher 2. We estimate 6.8 Billion pirates play Magicka.", "id" : 141808760309039104, "created_at" : "2011-11-30 09:20:17 +0000", "user" : { "name" : "Fredrik Wester", "screen_name" : "TheWesterFront", "protected" : false, "id_str" : "166080090", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/2882304421\/f9a74fb0fabd5e7cab6deb9c49371962_normal.jpeg", "id" : 166080090, "verified" : false } }, "id" : 142033521786105856, "created_at" : "2011-12-01 00:13:25 +0000", "user" : { "name" : "James Forbes", "screen_name" : "james_a_forbes", "protected" : false, "id_str" : "16025792", "profile_image_url_https" : "https:\/\/pbs.twimg.com\/profile_images\/571253075579396096\/_csqQudw_normal.jpeg", "id" : 16025792, "verified" : false } } ]
// gatsby-node.js const { fmImagesToRelative } = require('gatsby-remark-relative-images'); exports.onCreateNode = ({ node }) => { fmImagesToRelative(node); };
window.onload = function() { var config = { apiKey: "AIzaSyCm62vJSJoYSH7xe1BVnsFR2hhmeSSGNJk", authDomain: "projectwildan-a10fb.firebaseapp.com", databaseURL: "https://projectwildan-a10fb.firebaseio.com", projectId: "projectwildan-a10fb", storageBucket: "projectwildan-a10fb.appspot.com", messagingSenderId: "47066847249", appId: "1:47066847249:web:8f1236e8cab737d5" }; firebase.initializeApp(config); document.getElementById('simpan').onclick = editPelanggan; var data = sessionStorage.getItem('key'); var jsonValue = JSON.parse(data); console.log(data); var email = jsonValue.email; var alamat = jsonValue.lokasi; var namaLengkap = jsonValue.namalengkap; var telp = jsonValue.nomer; var password = jsonValue.password; var saldo = jsonValue.saldo; document.getElementById('nama').value = namaLengkap; document.getElementById('alamat').value = alamat; document.getElementById('email').value = email; document.getElementById('telp').value = telp; document.getElementById('inputPassword').value = password; function editPelanggan(){ var namaBaru = document.getElementById('nama').value; var alamatBaru = document.getElementById('alamat').value; var emailBaru = document.getElementById('email').value; var telpBaru = document.getElementById('telp').value; var passwordBaru = document.getElementById('inputPassword').value; var data = { namalengkap: namaBaru, lokasi: alamatBaru, email: emailBaru, nomer: telpBaru, password: passwordBaru, saldo: saldo } var updates = {}; updates[namaLengkap] = data; firebase.database().ref().child("Pelanggan").update(updates); alert('The item is created successfully!'); document.getElementById('nama').value = "Nama"; document.getElementById('alamat').value = "Alamat"; document.getElementById('email').value = "Email"; document.getElementById('telp').value = "+62"; document.getElementById('inputPassword').value = "password"; sessionStorage.removeItem('key'); } }
var express = require('express'); var router = express.Router(); var users = require('../models/user.js') var circles = require('../models/circle.js') var request = require('../models/request.js') var mongoose = require('mongoose') var schema = mongoose.Schema /* GET home page. */ router.post('/', function(req, res, next) { new_user = req.body.newuser; circle = req.body.circle; cur_user = req.session.user; users.findOne({username:new_user},async function(err,user){ if(user) { var oid = new mongoose.Types.ObjectId(circle.toString()) circle = await circles.findOne({_id:oid}) if(circle.members.includes(new_user)) { res.send("0") res.end() } else { old_req = await request.findOne({$and:[{sent_to:new_user},{for_circle:circle._id}]}) if(old_req) { res.send("-2") res.end() } else{ var requ = new request() requ.sent_to = new_user requ.sent_by = cur_user requ.for_circle = circle._id requ.save() res.send("1") res.end() } } } else { res.send('-1') res.end() } }) }); module.exports = router;
$(function(){ //index nav下拉效果 $('.navlist_ul>li').hover(function(){ $(this).children('.nav_ul').stop().slideDown(); },function(){ $(this).children('.nav_ul').stop().slideUp(); }) //index nav点击效果 $('.navlist_a').click(function(){ $('.navlist_a').removeClass('present_nav'); $(this).addClass('present_nav'); }) //banner效果 $('.banner_circle_btn>span').click(function(){ var this_index = $(this).index(); $(this).addClass('current_circle_btn').siblings().removeClass('current_circle_btn'); $('.banner_ul>li:eq('+this_index+')').addClass('current_banner').siblings().removeClass('current_banner'); num1 = this_index; }); var banner_time = null; banner_time = setInterval(banner_slide,3000); function banner_slide(){ var bannerl_li_length = $('.banner_ul>li').length; num1++; if(num1 > bannerl_li_length -1 ){num1 = 0} $('.banner_ul>li:eq('+num1+')').addClass('current_banner').siblings().removeClass('current_banner'); $('.banner_circle_btn>span:eq('+num1+')').addClass('current_circle_btn').siblings().removeClass('current_circle_btn'); } $('.banner').hover(function(){ clearInterval(banner_time); },function(){ clearInterval(banner_time); banner_time = setInterval(banner_slide,3000); }) resize(); // index 快捷服务切换效果 $('.index_serve_contain>a').mouseover(function(){ $(this).addClass('curent_serve_contain_a').siblings().removeClass('curent_serve_contain_a'); }) // index 每日策略切换效果 var getmore = $('.title_word3 .getmore').text(); $('.index_static_contain_btn .more').attr('href',getmore); $('.index_static_contain_btn>span').mouseover(function(){ var this_index = $(this).index(); $(this).addClass('title_word3').siblings().removeClass('title_word3'); $('.index_static_contain>li:eq('+this_index+')').addClass('static_li_appear').siblings().removeClass('static_li_appear'); var getmore = $('.title_word3 .getmore').text(); $('.index_static_contain_btn .more').attr('href',getmore); }) // 月刊 $('.yuekan_book').mouseover(function(){ $(this).siblings().css({'opacity':'0.8','filter':'alpha(opacity=80)'}); $(this).css({'opacity':'1.0','filter':'alpha(opacity=100)'}); }) //中心资质点击放大效果图片 $('.centerQU_img').click(function(){ $('.centerQU_show_big_img').show(); $('.centerQU_img').hide(); }) $('.centerQU_img').hover(function(){ $(this).children('.centerQU_bg_blue').show(); $(this).children('.centerQU_bg_glass').show(); },function(){ $(this).children('.centerQU_bg_blue').hide(); $(this).children('.centerQU_bg_glass').hide(); }) //公司简介 $('.company_brief_team_btns>li').mouseover(function(){ var this_index = $(this).index(); var left_num = 100+285*this_index; $('.company_brief_team_contain>li:eq('+this_index+')').addClass('current_teacher_word').siblings().removeClass('current_teacher_word'); $('.company_brief_team_contain>li').children('i').removeClass('current_teacher_word_i'); $('.company_brief_team_contain>li:eq('+this_index+')').children('i').addClass('current_teacher_word_i').css('left',left_num); }) //战略伙伴效果 $('.parter_fan').mouseenter(function(){ var this_height = $(this).height(); var this_move = this_height/2; $(this).children('.fan_children_stand').stop().animate({'top':this_move,'height':0,'opacity':'0'},300); $(this).children('.fan_children_move').stop().animate({'height':this_height,'top':0,'opacity':'1'},300); }) $('.parter_fan').mouseleave(function(){ var this_height = $(this).height(); var this_move = this_height/2; $(this).children('.fan_children_stand').stop().animate({'height':this_height,'top':0,'opacity':'1'},300); $(this).children('.fan_children_move').stop().animate({'top':this_move,'height':0,'opacity':'0'},300); }) $('.parter_fan2').hover(function(){ $(this).children('.parter_fan2_move').stop().animate({'top':-30},400); $(this).children('.parter_fan2_move').children('.parter_fan2_move_word').hide().delay(300).fadeIn(500) },function(){ $(this).children('.parter_fan2_move').stop().animate({'top':0},400); }) // 办公环境 $('.environment_btn>li').mouseover(function(){ var this_index = $(this).index(); $(this).addClass('current_btn').siblings().removeClass('current_btn'); $('.environment_contain_imgs>li:eq('+this_index+')').addClass('current_environment').siblings().removeClass('current_environment'); }) var num4 = 0 $('.environment_pren').click(function(){ num4 --; var block_length =$('.current_environment>img').length; if(num4 < 0){num4 = block_length -1;} $('.current_environment>img').removeClass('show_img'); $('.current_environment>img:eq('+num4+')').addClass('show_img'); }) $('.environment_next').click(function(event){ event.stopPropagation(); num4 ++; var block_length =$('.current_environment>img').length; if(num4 > block_length -1){num4 = 0;} $('.current_environment>img').removeClass('show_img'); $('.current_environment>img:eq('+num4+')').addClass('show_img'); }) // 招贤纳士 $('.company_personnel_btn>li').mouseover(function(){ var this_index = $(this).index(); $(this).addClass('company_personnel_btn_curent').siblings().removeClass('company_personnel_btn_curent'); $('.company_personnel_contain>li:eq('+this_index+')').css('display','block').siblings().css('display','none'); }) //视频专区 $('.company_video_li_img').hover(function(){ $(this).children('.company_video_img').children('img').addClass('scale103'); $(this).children('.company_video_glass').addClass('show_glass'); $(this).children('.company_video_blank').addClass('show_blank'); },function(){ $(this).children('.company_video_img').children('img').removeClass('scale103'); $(this).children('.company_video_glass').removeClass('show_glass'); $(this).children('.company_video_blank').removeClass('show_blank'); }) // 视频专区 放大效果 $('.company_video_li_img').click(function(){ $('.fangda_video_deatil').html($(this).parent().children('.artcontent').html()); $('.company_video_ul').hide(); $('.soft_loaddown_page').css('display', 'none'); $('.fangda_video').show(); }) $('.video_goback').click(function(){ $('.fangda_video_deatil').html($('.company_video_li_img').parent().children('.artcontent').html()); $('.soft_loaddown_page').css('display', 'block'); $('.company_video_ul').show(); $('.fangda_video').hide(); }) //公司动态内页 $('.active_page_contain').hover(function(){ $(this).find('.active_page_btns>li').show(); $(this).find('.active_pren_btn').stop().animate({'left':'30px'},1000); $(this).find('.active_next_btn').stop().animate({'right':'30px'},1000); },function(){ $(this).find('.active_page_btns>li').hide(); $(this).find('.active_pren_btn').stop().animate({'left':'0px'},1000); $(this).find('.active_next_btn').stop().animate({'right':'0px'},1000); }) //产品介绍 $('.products_detail').hover(function(){ $(this).children('.products_mask').show(); $(this).children('.products_word').stop().slideDown(500); },function(){ $(this).children('.products_mask').hide(); $(this).children('.products_word').stop().slideUp(500); }) //产品合约 $('.product_agreenment_btn>li').mouseover(function(){ var index = $(this).index(); $(this).addClass('current_btn').siblings().removeClass('current_btn'); $('.product_agreenment_tables>li:eq('+index+')').addClass('show').siblings().removeClass('show'); }) //人工开户 /* $('.account_self_section1_form button').focus(function(){ $(this).css('outline','none'); }) */ }) function img_mouseover(index){ var _src = "images/foot_logo"+index+index+".jpg"; $('.last_dt_img'+index+'').attr('src',_src); } function img_mouseout(index){ var _src = "images/foot_logo"+index+".jpg"; $('.last_dt_img'+index+'').attr('src',_src); } //banner效果 var num1 = 0; function banner_side_btn(btn_name){ var bannerl_li_length = $('.banner_ul>li').length; if(btn_name == 'pren'){num1--}; if(btn_name == 'next'){num1++}; if(num1 > bannerl_li_length -1 ){num1 = 0} if(num1 < 0){num1 = bannerl_li_length - 1} $('.banner_ul>li:eq('+num1+')').addClass('current_banner').siblings().removeClass('current_banner'); $('.banner_circle_btn>span:eq('+num1+')').addClass('current_circle_btn').siblings().removeClass('current_circle_btn'); } //招贤纳士 人才招聘 function next(){ var arr = $('.personnel_jobs>div'); for (i = 0; i < arr.length-1; i++) { if ((arr[i].style.display == "block"||arr[i].style.display == "") && i <= arr.length) { arr[i + 1].style.display = "block"; arr[i].style.display = "none"; break; } } } //公司动态内页 var num2 = 0; function banner_side_btn1(btn_name){ var ele_length = $('.active_page_ul>li').length; if(btn_name == 'pren'){num2--}; if(btn_name == 'next'){num2++}; if(num2 > ele_length -1 ){num2 = 0} if(num2 < 0){num2 = ele_length - 1} $('.active_page_ul>li:eq('+num2+')').addClass('appear').siblings().removeClass('appear'); } // banner crow位置 function resize(){ var wid_width = document.body.clientWidth; if(wid_width == 1000 || wid_width < 1000 ){ $('.banner_btn_pren').css('left',0); $('.banner_btn_next').css('right',0); } if(wid_width > 1000 ){ $('.banner_btn_pren').css('left',100); $('.banner_btn_next').css('right',100); } } $(window).resize(function(){resize();})
import React, {Fragment, lazy, Suspense} from "react"; import {CssBaseline, MuiThemeProvider} from "@material-ui/core"; import {BrowserRouter, Route, Switch} from "react-router-dom"; import theme from "./theme"; import GlobalStyles from "./GlobalStyles"; import * as serviceWorker from "./serviceWorker"; import Pace from "./shared/components/Pace"; const LandingPage = lazy(() => import("./landing/components/Main")); function App() { return ( <BrowserRouter> <MuiThemeProvider theme={theme}> <CssBaseline/> <GlobalStyles/> <Pace color={theme.palette.primary.main}/> <Suspense fallback={<Fragment/>}> <Switch> <Route> <LandingPage/> </Route> </Switch> </Suspense> </MuiThemeProvider> </BrowserRouter> ); } serviceWorker.register(); export default App;
var path = require('path'); module.exports = { entry: './dev/app.js', output: { path: './static', filename: 'app.js' }, module: { loaders: [ { test: /\.css$/, loader: 'style-loader!css-loader?modules!postcss-loader' }, { test: /\.handlebars/, loader: 'handlebars-loader', }, { test: /\.js$/, loader: 'babel', exclude: /node_modules\/jquery/, query: { presets: ['es2015'] } } ] }, postcss: [ require('postcss-import'), require('postcss-extend'), require('postcss-nested'), require('postcss-simple-vars'), require('autoprefixer') ], resolve: { root: [ path.resolve(__dirname, './') ] } };
import React, {useState, useEffect} from 'react' import { withRouter } from 'react-router-dom' import { BallBeat } from 'react-pure-loaders' import cookie from 'react-cookies' const PasswordRecoveryEmail = (props) => { const [email, setEmail] = useState(null) const [emailError, setEmailError] = useState(false) const [loading, setLoading] = useState(false) const confirmation = async () => { setLoading(true) let rex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; if(!email || !rex.test(email.toLowerCase())) { setLoading(false) return setEmailError(true) } sessionStorage.setItem('recoveryEmail', email) return props.history.push('/recupera-opcion') // let response = await getToken() // if(!response) return // let validToken = response.data.token // const data = { // eMail:email, // idProduct // } // recoverPassword(data, validToken) // .then(res => { // if(res.data.codigo === '200'){ // setEmailError(false) // } // setEmailError(true) // setLoading(false) // }) // .catch(err => { // console.log(err) // setEmailError(true) // setLoading(false) // }) } useEffect(() => { if(sessionStorage.getItem('loggedUser') && cookie.load('token')) props.history.push('/dashboard/initial') }, [props]) return ( <div className='app-container'> <div className='forgot-layout' style={{backgroundColor: 'white', textAlign: 'center'}}> <h2 style={{fontWeight: 'bold', backgroundColor: '#A3CD3A', color: 'white', padding: '3rem'}}>Ingresa tu correo electrónico para recuperar el acceso</h2> <div style={{display: 'block', justifyContent: 'center', alignItems: 'center'}}> <div style={{margin: '2rem 1rem', paddingBottom: '1rem'}}> <div style={{margin: '2rem 0'}}> <input style={{width: '250px', padding: '0.6rem', fontSize: '1rem'}} placeholder='ejemplo@email.com' type='email' name='email' value={email} onChange={(e) => setEmail(e.target.value)}/> {emailError && <div><small style={{color: 'red'}}>Correo no válido</small></div>} </div> <p className='btn-minimal-width btn-forgot' onClick={confirmation}>{loading ? <BallBeat color={'#fff'} loading/> : 'SELECCIONAR MÉTODO DE RECUPERACIÓN'}</p> {/* <p className='btn-minimal-width btn-forgot' onClick={confirmation}>{loading ? <BallBeat color={'#fff'} loading/> : 'ENVIAR EMAIL'}</p> */} </div> {/* <div style={{marginBlockEnd: '2rem', paddingBottom: '2rem'}}> <p>¿Sin acceso aún? <Link to="#">Contáctanos</Link> </p> </div> */} </div> </div> </div> ) } export default withRouter(PasswordRecoveryEmail)
/** * @file Switch.js * @author leeight */ import {DataTypes, defineComponent} from 'san'; import {create} from './util'; import {asInput} from './asInput'; const cx = create('ui-togglebutton'); /* eslint-disable */ const template = `<div on-click="toggleSwitch" class="{{mainClass}}"> <span s-if="checked" class="${cx('part-on')}">ON</span> <span s-else class="${cx('part-off')}">OFF</span> </div>`; /* eslint-enable */ const Switch = defineComponent({ // eslint-disable-line template, initData() { return { checked: true }; }, dataTypes: { /** * 获取或者设置 Switch 组件选中的状态 * @bindx * @default true */ checked: DataTypes.bool, /** * Switch 组件的禁用状态 */ disabled: DataTypes.bool }, computed: { value() { return this.data.get('checked'); }, mainClass() { const klass = cx.mainClass(this); const checked = this.data.get('checked'); if (checked) { klass.push('state-checked'); klass.push(cx('checked')); } return klass; } }, inited() { this.watch('value', value => this.fire('change', {value})); }, toggleSwitch() { const disabled = this.data.get('disabled'); if (disabled) { return; } const checked = this.data.get('checked'); this.data.set('checked', !checked); } }); export default asInput(Switch);
var requirejs = require('requirejs'); var path = require('path'); var View = requirejs('extensions/views/view'); var templatePath = path.resolve(__dirname, '../../templates/modules/kpi.html'); var templater = require('../../mixins/templater'); module.exports = View.extend(templater).extend({ templatePath: templatePath, templateType: 'mustache', templateContext: function () { var current = this.collection.at(0), previous = this.collection.at(1), valueAttr = this.model.get('value-attribute'), format = this.model.get('format') || { type: 'number' }, datePeriod = this.model.get('date-period') || 'quarter'; format.abbr = true; if (!current) { return {}; } var config = { hasValue: current.get(valueAttr) !== null && current.get(valueAttr) !== undefined, value: this.format(current.get(valueAttr), format) }; if (current.get('_timestamp') && current.get('end_at')) { _.extend(config, { period: this.formatPeriod(current, datePeriod) } ); } if (previous && previous.get(valueAttr)) { _.extend(config, { previousPeriod: { period: this.formatPeriod(previous, datePeriod), value: this.format(previous.get(valueAttr), format) } }); } if (config.hasValue && previous && previous.get(valueAttr)) { var sgn; if (current.get(valueAttr) / previous.get(valueAttr) > 1) { sgn = 'increase'; } else if (current.get(valueAttr) / previous.get(valueAttr) < 1) { sgn = 'decrease'; } else { sgn = 'no-change'; } _.extend(config, { change: this.format(current.get(valueAttr) / previous.get(valueAttr) - 1, { type: 'percent', dps: 2, pad: true, showSigns: true }), sgn: sgn }); } return _.extend(View.prototype.templateContext.apply(this, arguments), config); } });
import { ADD_TO_CART, CARTITEMS_LOADING, GET_CARTITEMS, DELETE_CARTITEM, ADD_TO_ORDERHISTORY, CLEAR_CART, ORDERITEMS_LOADING, ORDERHISTORY_LOADING, GET_ORDERHISTORY, ORDERRESULT_LOADING, GET_ORDERRESULT, ORDERDETAIL_LOADING, GET_ORDERDETAIL, ADD_TO_CHECKOUT, CLEAR_CHECKOUT } from '../actions/types' const initialState = { cartItems: [], orderHistory: [], orderResult: {}, orderDetail: {}, checkout: '', cartItemsIsLoading: false, orderHistoryIsLoading: false, orderResultIsLoading: false, orderDetailIsLoading: false } export default function (state = initialState, action) { switch (action.type) { case GET_CARTITEMS: return { ...state, cartItems: action.payload, cartItemsIsLoading: false }; case ADD_TO_CART: return { ...state, cartItems: [...action.payload, ...state.cartItems] }; case DELETE_CARTITEM: return { ...state, cartItems: state.cartItems.filter((cartItem) => { return cartItem.productId !== action.payload }) }; case ADD_TO_ORDERHISTORY: return { ...state, orderHistory: [...action.payload, ...state.orderHistory] }; case CLEAR_CART: return { ...state, cartItems: [] }; case ADD_TO_CHECKOUT: return { ...state, checkout: 'action.payload' }; case CLEAR_CHECKOUT: return { ...state, checkout: '' }; case CARTITEMS_LOADING: return { ...state, cartItemsIsLoading: true }; case GET_ORDERHISTORY: return { ...state, orderHistory: action.payload, orderHistoryIsLoading: false }; case ORDERHISTORY_LOADING: return { ...state, orderHistoryIsLoading: true }; case GET_ORDERRESULT: return { ...state, orderResult: action.payload, orderResultIsLoading: false }; case ORDERRESULT_LOADING: return { ...state, orderResultIsLoading: true }; case GET_ORDERDETAIL: return { ...state, orderDetail: action.payload, orderDetailIsLoading: false }; case ORDERDETAIL_LOADING: return { ...state, orderDetailIsLoading: true }; default: return state; } }
import React from "react"; import { Marker } from "react-leaflet"; import { IconLocation } from "./iconLocation"; const Markers = ({ lat, log }) => { return <Marker position={[lat, log]} icon={IconLocation} />; }; export default Markers;
/** * scope class */ class Scope { /** * create a new scope based on this * @param Object conf - configuration */ $new(conf){ return Object.create(this); } }
'use strict' const mongoose = require('mongoose'); const Schema = mongoose.Schema; const SesionSchema = Schema({ nombre: { type: String }, repeticiones: { type: Number }, tiempoDescanzo: { type: Number }, estaciones: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Estacion' }], participantes: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Usuario' }] }); module.exports = mongoose.model('Sesion', SesionSchema);
/** * Created by zhangsq on 2017/4/24. */ 'use strict'; let GeneralHistory; let version = +process.versions.node.match(/^\w+?/)[0]; if (version > 5) { GeneralHistory = require('./src/general-history'); } else { GeneralHistory = require('./lib/general-history'); } module.exports = GeneralHistory;
import Layout from '../layouts/layout'; import Head from '../components/head'; export default function Accessories(){ return( <Layout> <div> <Head judul="Accessories"/> <p>Berbagai macam accessorien rambut, gelang, cincin, kalung, dan lain-lain dengan harga yang lebih terjangkau</p> <hr/> </div> </Layout> ); }
(function() { L.mapbox.accessToken = 'pk.eyJ1IjoiZGFuaWR1ZTEiLCJhIjoiY2oxaDhid2E1MDAzejJxcGRqdmRkNzZjaCJ9.iF4gj5b98voRypvuygAxGw'; //Create Map var bounds = [ [42.774179, -73.809431], // Southwest coordinates [42.943479, -73.624375] // Northeast coordinates ]; var map = L.mapbox.map('map', null, { 'center': [42.813706, -73.732218], 'zoom': 12, 'dragging': true, 'zoomControl': true, 'scrollWheelZoom': true, 'maxZoom':19, 'minZoom': 12, 'maxBounds': bounds }); // Launch for Modal Disclaimer $(window).on('load',function(){ $('#loadModal').modal('show'); }); // encapsulate basemap code in IIFE (Immediately Invoked Function Expression) (function() { // empty layerGroup for holding basemap layers var basemapLayers = L.layerGroup().addTo(map); //Add a basemap layers var googleStreets = L.tileLayer('https://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', { maxZoom: 20, subdomains: ['mt0', 'mt1', 'mt2', 'mt3'] }).addTo(basemapLayers); var googleSat = L.tileLayer('https://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', { maxZoom: 20, subdomains: ['mt0', 'mt1', 'mt2', 'mt3'] }); var googleHybrid = L.tileLayer('https://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}', { maxZoom: 20, subdomains: ['mt0', 'mt1', 'mt2', 'mt3'] }); var nysdop2014 = L.tileLayer('http://www.orthos.dhses.ny.gov/ArcGIS/rest/services/2014/MapServer/tile/{z}/{y}/{x} ', { maxZoom: 20, //zIndex: 9, attribution: '2014 NYSDOP Imagery courtesy of <a href="http://www.orthos.dhses.ny.gov/" target="_blank">NYS DHSES</a>' }); var baseMaps = { "Google Aerial": googleSat, "Google Hybrid": googleHybrid, "Google Streets": googleStreets, "2014 NYS Aerials": nysdop2014 } // Add function to each of the layer switches $('#streetSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked googleStreets.addTo(map); } else { map.removeLayer(googleStreets); // unchecked } }); // Add function to each of the layer switches $('#satSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked googleSat.addTo(map); } else { map.removeLayer(googleSat); // unchecked } }); // Add function to each of the layer switches $('#hybridSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked googleHybrid.addTo(map); } else { map.removeLayer(googleHybrid); // unchecked } }); // Add function to each of the layer switches $('#nysSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked nysdop2014.addTo(map); } else { map.removeLayer(nysdop2014); // unchecked } }); $('#streetSwitch').prop('checked', true).change(); $('#streetSwitch').change(function(){ if ($(this).is(':checked')) { $('#satSwitch').bootstrapToggle('off') & $('#nysSwitch').bootstrapToggle('off') & $('#hybridSwitch').bootstrapToggle('off') } }); $('#satSwitch').change(function(){ if ($(this).is(':checked')) { $('#streetSwitch').bootstrapToggle('off') & $('#nysSwitch').bootstrapToggle('off') & $('#hybridSwitch').bootstrapToggle('off') } }); $('#nysSwitch').change(function(){ if ($(this).is(':checked')) { $('#satSwitch').bootstrapToggle('off') & $('#streetSwitch').bootstrapToggle('off') & $('#hybridSwitch').bootstrapToggle('off') } }); $('#hybridSwitch').change(function(){ if ($(this).is(':checked')) { $('#streetSwitch').bootstrapToggle('off') & $('#nysSwitch').bootstrapToggle('off') & $('#satSwitch').bootstrapToggle('off') } }); // when user clicks on li // $('#basemap-ui li').click(function() { // // access the target basemap // var targetBasemap = $(this).attr('data-basemap'); // // // loop through basemap layers and remove any // basemapLayers.eachLayer(function(layer) { // basemapLayers.removeLayer(layer); // }); // // // add the target basemap to the layerGroup // basemapLayers.addLayer(baseMaps[targetBasemap]); // }) // })(); // empty object to hold all data var data = {}; // use promise to load all data $.when( $.getJSON("data/HalfmoonTrails.geojson", function(d) { data.trails = d; }), $.getJSON("data/HalfmoonParcels2016.geojson", function(d) { data.parcels = d; }), $.getJSON("data/NYSDEC_Wetlands.geojson", function(d) { data.NYwetlands = d; }), $.getJSON("data/NWI_Wetlands.geojson", function(d) { data.NWIwetlands = d; }), $.getJSON("data/HalfmoonParks.geojson", function(d) { data.parks = d; }), $.getJSON("data/HalfmoonZoning.geojson", function(d) { data.zoning = d; }), $.getJSON("data/SurroundingTowns.geojson", function(d) { data.towns = d; }) ).then(function() { // when ready, you have it all here console.log(data); // sent to new function drawThematicLayers(data) }); function drawThematicLayers(data) { // first create all leaflet layers and assign to ref var trailsLayer = drawTrails(data.trails); var parcelLayer = drawParcels(data.parcels); var wetlandsNYLayer = drawWetlandsNY(data.NYwetlands); var wetlandsNWILayer = drawWetlandsNWI(data.NWIwetlands); var parksLayer = drawParks(data.parks); var zoningLayer = drawZoning(data.zoning); var surroundTowns = drawTowns(data.towns) // now you can add/remove these layers from the map with a UI // zoningLayer.addTo(map); surroundTowns.addTo(map); // var overlayMaps = { // "2016 Halfmoon Tax Parcels": drawParcels, // "NYS DEC Wetlands": drawWetlandsNY, // "NWI Wetlands": drawWetlandsNWI, // "Parks": drawParks, // "Trails": drawTrails, // "Town Zoning": drawZoning // } // Add function to each of the layer switches $('#zoningSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked zoningLayer.addTo(map); } else { map.removeLayer(zoningLayer); // unchecked } }); $('#parcelSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked parcelLayer.addTo(map); } else { map.removeLayer(parcelLayer); // unchecked } }); $('#nyWetSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked wetlandsNYLayer.addTo(map); } else { map.removeLayer(wetlandsNYLayer); // unchecked } }); $('#nwiWetSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked wetlandsNWILayer.addTo(map); } else { map.removeLayer(wetlandsNWILayer); // unchecked } }); $('#parkSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked parksLayer.addTo(map); } else { map.removeLayer(parksLayer); // unchecked } }); $('#trailSwitch').on('change', function() { // access the target basemap var checkValue = $(this).prop('checked'); // console.log(parcelLayer); if (checkValue) { // it's checked trailsLayer.addTo(map); } else { map.removeLayer(trailsLayer); // unchecked } }); $('#parcelSwitch').prop('checked', true).change(); var searchControl = new L.Control.Search({ layer: parcelLayer, propertyName: 'OWNER1', circleLocation: false, zoom: 16, collapsed: false, marker: { icon: new L.Icon({iconUrl:'https://unpkg.com/leaflet@1.0.3/dist/images/marker-icon.png', iconSize: [18,32]}), circle: { radius: 0, color: '#0a0', opacity: 1 } } }); searchControl.on('search_locationfound', function(e) { e.layer.setStyle({ fillColor: 'white', color: 'white', fillOpacity: 0.5 }); if (e.layer._popup) e.layer.openPopup(); }) .on('search_collapsed', function(e) { parcelLayer.eachLayer(function(layer) { parcelLayer.resetStyle(layer); }); }); map.addControl(searchControl); // Call the getContainer routine. var htmlObject = searchControl.getContainer(); // Get the desired parent node. var a = document.getElementById('collapse2_search1'); // append that node to the new parent, recursively searching out and re-parenting nodes. function setParent(el, newParent) { newParent.appendChild(el); } setParent(htmlObject, a); // console.log(searchControl.getContainer()); var searchControl = new L.Control.Search({ layer: parcelLayer, propertyName: 'MAIL_1ADDR', circleLocation: false, zoom: 16, collapsed: false }); searchControl.on('search_locationfound', function(e) { e.layer.setStyle({ fillColor: 'white', color: 'white', fillOpacity: 0.5 }); if (e.layer._popup) e.layer.openPopup(); }) .on('search_collapsed', function(e) { parcelLayer.eachLayer(function(layer) { parcelLayer.resetStyle(layer); }); }); map.addControl(searchControl); // Call the getContainer routine. var htmlObject = searchControl.getContainer(); // Get the desired parent node. var a = document.getElementById('collapse2_search2'); // append that node to the new parent, recursively searching out and re-parenting nodes. function setParent(el, newParent) { newParent.appendChild(el); } setParent(htmlObject, a); } var customPopupOptions = { 'max-width': '500', 'className': 'custom', 'closeButton': 'false' } //Creat, stylize and add UI to parcel layer function drawParcels(data) { var parcelLayer = L.geoJson(data, { style: function(feature) { return { color: 'orange', weight: 1.5, fillOpacity: 0.5, fillColor: 'transparent' }; }, onEachFeature: function(feature, layer) { var popuptext = '<b>' + "Tax Pacel ID: " + layer.feature.properties.PRINT_KEY + '</b><br />' + '<b>' + "Parcel Address: " + layer.feature.properties.PropAddrLo + '</b><br />' + '<b>' + "Owner Name: " + layer.feature.properties.OWNER1 + '</b><br />' layer.bindPopup(popuptext, customPopupOptions) layer.on('mouseover', function() { //set visual affordance to show yellow outlined counties on mouseover this.setStyle({ opacity: 0.8, weight: 4, }).bringToFront(); }); //change visial affordance back to original outline color layer.on('mouseout', function() { this.setStyle({ weight: 1.5 }) }); } }); return parcelLayer; }; //create and stylize wetlands layer function drawWetlandsNY(data) { var nysdecLayer = L.geoJson(data, { style: function(feature) { return { color: 'purple', weight: 1, fillOpacity: 0.5, fillColor: 'purple', interactive: false }; } }); return nysdecLayer; } //create and stylize wetlands layer function drawWetlandsNWI(data) { var nwiLayer = L.geoJson(data, { style: function(feature) { return { color: '#7fcdbb', weight: 1, fillOpacity: 0.5, fillColor: '#7fcdbb', interactive: false }; } }) return nwiLayer; } //create and stylize surrounding towns layer function drawTowns(data) { var surroundTowns = L.geoJson(data, { style: function(feature) { return { color: 'black', weight: 1, fillOpacity: 0.6, fillColor: '#b2b3b3', }; }, onEachFeature: function(feature, layer) { var popuptext = feature.properties.NAME layer.bindPopup(popuptext, customPopupOptions) } }) return surroundTowns; } // var options = { // radius: 8, // fillColor: "#ff7800", // color: "#000", // weight: 1, // opacity: 1, // fillOpacity: 0.8 // }; // function drawPOI(data) { // var pointOfInterest = L.geoJson(data, { // pointToLayer: function(feature, latlng) { // return L.circleMarker(latlng, options); // } // }) // // onEachFeature: function(feature, latlng) { // // var popuptext = feature.properties.NAME // // layer.bindPopup(popuptext, customPopupOptions) // // } // } // return pointOfInterest; // } //Create, sytlize and add UI to trails layer function drawTrails(data) { var trailsLayer = L.geoJson(data, { style: function(feature) { return { color: '#dd1c77', dashArray: "5 10", weight: 4.5, opacity: 1 }; }, // if (feature.properties.Type_2017 === "Off Road Trail (Constructed)") { // return { // weight: 4.5, // color: '#dd1c77', // opacity: 1 // }; // }; // if (feature.properties.Type_2017 === "On Road (Designated & Non Designated)") { // return { // weight: 4.5, // color: 'red', // opacity: 1 // }; // }; // if (feature.properties.Type_2017 === "Off Road Trail (Proposed / Potential)") { // return { // color: '#dd1c77', // dashArray: "5 10", // weight: 4.5, // opacity: 1 // }; // }; // }, onEachFeature: function(feature, layer) { var popuptext = feature.properties.Trail_Name layer.bindPopup(popuptext, customPopupOptions) // //I really want to use the mouseover text more than click // layer.bindPopup(popuptext); // //Tooltip opens on mouseover // layer.on('mouseover', function(e) { // e.target.openPopup(); // }); // //tooltip closed when "not moused" // layer.on('mouseout', function(e) { // e.target.closePopup(); // }); // layer.bindPopup(popuptext) layer.on('mouseover', function() { //set visual affordance to show yellow outlined counties on mouseover this.setStyle({ opacity: 0.8, weight: 7, }).bringToFront(); }); //change visial affordance back to original outline color layer.on('mouseout', function() { this.setStyle({ weight: 4.5 }) }); } }); return trailsLayer; } //Create, sytlize and add UI to parks layer function drawParks(data) { var parksLayer = L.geoJson(data, { style: function(feature) { return { color: 'Green', weight: 1, fillOpacity: 0.7, fillColor: 'Green' }; }, onEachFeature: function(feature, layer) { var popuptext = feature.properties.name layer.bindPopup(popuptext, customPopupOptions) layer.on('mouseover', function() { //set visual affordance to show yellow outlined counties on mouseover this.setStyle({ color: 'yellow', opacity: 1, weight: 2, }).bringToFront(); }); //change visial affordance back to original outline color layer.on('mouseout', function() { this.setStyle({ color: 'null', weight: 1 }) }); } }); return parksLayer; } //Create, sytlize and add UI to zoning layer function drawZoning(data) { var zoningLayer = L.geoJson(data, { style: function(feature) { if (feature.properties.Zone === "A-R") { return { color: "black", fillColor: "#FFF7A3", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "R-1") { return { color: "black", fillColor: "#E3FFD1", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "R-2") { return { color: "black", fillColor: "#B5FF00", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "R-3") { return { color: "black", fillColor: "#149614", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "PDD") { return { color: "black", fillColor: "#FF7D7D", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "PO-R") { return { color: "black", fillColor: "#FFBFE8", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; if (feature.properties.Zone === "C-1") { return { color: "black", fillColor: "#BFE8FF", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; } if (feature.properties.Zone === "LI-C") { return { color: "black", fillColor: "#33A1A6", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; } if (feature.properties.Zone === "M-1") { return { color: "black", fillColor: "#0082FF", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; } if (feature.properties.Zone === "TO") { return { color: "black", fillColor: "#ADA3FF", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; } if (feature.properties.Zone === "NB-1") { return { color: "black", fillColor: "#FF00C5", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; } if (feature.properties.Zone === "CC-1") { return { color: "black", fillColor: "#A6A6A6", weight: 0, fill: true, fillOpacity: 0.8, opacity: 1, clickable: true }; }; }, onEachFeature: function(feature, layer) { if (feature.properties) { var popuptext = feature.properties.Zone + " - " + feature.properties.Descript layer.bindPopup(popuptext, customPopupOptions) } layer.on('mouseover', function() { //set visual affordance to show yellow outlined counties on mouseover this.setStyle({ color: 'black', opacity: 1, weight: 1.5, }).bringToFront(); }); //change visial affordance back to original outline color layer.on('mouseout', function() { this.setStyle({ color: 'null', weight: 1 }) }); } }); return zoningLayer; } })();
export const INIT_METRIC = 'INIT_METRIC'; export function initMetric() { return { type: INIT_METRIC }; } export const LOAD_METRICS = 'LOAD_METRICS'; export function loadMetrics() { return { type: LOAD_METRICS, promise: fetch('/api/metric/getAll').then(response => { return response.json() }) }; } export const FIND_METRICS = 'FIND_METRICS'; export function findMetrics(acronym="") { return { type: FIND_METRICS, promise: fetch(`/api/metric/find?acronym=${acronym}`).then(response => { return response.json() }) }; } export const LOAD_METRIC = 'LOAD_METRIC'; export function loadMetric(id) { return { type: LOAD_METRIC, promise: fetch(`/api/metric/${id}`).then(response => { return response.json() }) }; } export const ADD_METRIC = 'ADD_METRIC'; export function addMetric() { return { type: ADD_METRIC }; } export const CREATE_METRIC = 'CREATE_METRIC'; export function createMetric(metric) { return { type: CREATE_METRIC, promise: fetch(`/api/metric/new`,{ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, method: 'POST', body: JSON.stringify( metric ) }) .then(response => { return response.json() }) }; } export const SAVE_METRIC = 'SAVE_METRIC'; export function saveMetric(metric) { return { type: SAVE_METRIC, promise: fetch(`/api/metric/${metric._id}`,{ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, method: 'PUT', body: JSON.stringify( metric ) }) .then(response => { return response.json() }) }; } export const REMOVE_METRIC = 'REMOVE_METRIC'; export function removeMetric(id) { return { type: REMOVE_METRIC, promise: fetch(`/api/metric/${id}`,{method: 'DELETE'}).then(response => { return response.json() }) }; } export const CHANGE_METRIC = 'CHANGE_METRIC'; export function changeMetric(key,value) { return { type: CHANGE_METRIC, key, value }; } // MetricCapture export const FIND_METRIC_CAPTURES = 'FIND_METRIC_CAPTURES'; export function findMetricCaptures(orgaization="") { return { type: FIND_METRIC_CAPTURES, promise: fetch(`/api/metric-capture/find?organization=${orgaization}`).then(response => { return response.json() }) }; } CHANGE_METRIC_CAPTURE export const ADD_METRIC_CAPTURE = 'ADD_METRIC_CAPTURE'; export function addMetricCapture() { return { type: ADD_METRIC_CAPTURE }; } export const CREATE_METRIC_CAPTURE = 'CREATE_METRIC_CAPTURE'; export function createMetricCapture(metric) { return { type: CREATE_METRIC_CAPTURE, promise: fetch(`/api/metric-capture/new`,{ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, method: 'POST', body: JSON.stringify( metric ) }) .then(response => { return response.json() }) }; } export const SAVE_METRIC_CAPTURE = 'SAVE_METRIC_CAPTURE'; export function saveMetricCapture(metric) { return { type: SAVE_METRIC_CAPTURE, promise: fetch(`/api/metric-capture/${metric._id}`,{ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, method: 'PUT', body: JSON.stringify( metric ) }) .then(response => { return response.json() }) }; } export const CHANGE_METRIC_CAPTURE = 'CHANGE_METRIC_CAPTURE'; export function changeMetricCapture(key, value, index) { return { type: CHANGE_METRIC_CAPTURE, key, value, index }; }
import User from '../models/user'; import Area from '../models/area'; import sequelize from 'sequelize'; import moment from 'moment'; //One-to-many relationship with area Area.hasMany(User); User.belongsTo(Area); function load(req, res, next, id) { User.findById(id, { attributes: ['id', 'barcode', 'fname', 'mname', 'lname', 'username', 'level', 'areaId'] }) .then(user => { if(!user) return res.sendStatus(404); req.dbUser = user; return next(); }, e => next(e)); } function get(req, res) { return res.json(req.dbUser); } function create(req, res, next) { User.create(req.body) .then(user => { return res.sendStatus(204); }, e => next(e)); } function update(req, res, next) { const user = req.dbUser; Object.assign(user, req.body); user.save() .then(user => res.sendStatus(204), e => next(e)); } function list(req, res, next) { const search = req.query.s || 'barcode'; const query = req.query.q || ''; const page = req.query.p || 1; const limit = 50; const offset = (page - 1) * limit; User.findAndCountAll({ attributes: ['id', 'barcode', 'fname', 'lname', 'username', 'level', 'createdAt'], where: sequelize.where(sequelize.col(search), 'LIKE', `%${query}%`), limit: limit, offset: offset, include: [{ model: Area, attributes: ['areaName'] }] }) .then(users => { const userList = JSON.parse(JSON.stringify(users)); userList.rows.forEach(e => { e.createdAt = moment(e.createdAt).format('lll'); }); res.send(userList); }, e => next(e)); } function remove(req, res, next) { const user = req.dbUser; user.destroy() .then(() => res.sendStatus(204), e => next(e)); } function validate(req, res, next) { const validate = req.body.validate; const query = req.body.query; User.findOne({ where: sequelize.where(sequelize.col(validate), '=', query) }) .then(user => { if (user === null) { return res.json({result: false}); } return res.json({result: true}); }) } export default { load, get, create, update, list, remove, validate };
import React from 'react'; import {shallow} from 'enzyme'; import Search from '../Search'; import {TestHelpers} from '../../../Constants'; const {sampleText} = TestHelpers; describe('<Search>', () => { describe('Structure', () => { const renderFn = jest.fn().mockReturnValue(null); it('renders correctly', () => { const wrapper = shallow(<Search>{renderFn}</Search>); expect(wrapper).toMatchSnapshot(); }); }); describe('Functionality', () => { it('Calls the render props function', () => { const renderFn = jest.fn().mockReturnValue(null); const wrapper = shallow(<Search>{renderFn}</Search>); expect(renderFn.mock.calls.length).toBe(1); expect(wrapper.state('text')).toBe(''); }); it('sets state correctly', () => { const renderFn = jest.fn().mockReturnValue(null); const wrapper = shallow(<Search text={sampleText}>{renderFn}</Search>); wrapper.setState({text: sampleText}); expect(wrapper.state('text')).toEqual(sampleText); }); }); });
const express = require("express"); const router = express.Router(); const ImageModel = require("../models/image"); router.route("/").post((req, res) => { const id = req.body.identifier; const base64 = req.body.imgBase64; const imageModel = new ImageModel({ identifier: id, imgBase64: base64 }); imageModel .save() .then(() => res.json("Image saved!")) .catch(err => res.status(400).json("Error: " + err)); }); router.route("/:identifier").get((req, res) => { ImageModel.find({ identifier: req.params.identifier }, (err, image) => { if (err) res.status(400).json("Error: " + err); if (image) res.json(image); }); }); module.exports = router;
import React, {useState} from 'react'; import './counter.css' const CounterApp = () => { const [counters, setCounters] = useState({counter1:10, counter2:20, counter3:30, counter4:40}); // de-structure const {counter1, counter2} = counters // spread and effect by function const increment = ()=> setCounters(prev => ({...prev,counter1:(counter1+1)})); return ( <> <h1>Counter1 {counter1}</h1> <h1>Counter2 {counter2}</h1> <hr/> <button className="btn btn-primary" onClick={increment} >+1</button> </> ); }; export default CounterApp;
document.body.onkeyup = function(){document.body.classList.toggle('liked')}
const path = require('path'); const express = require('express'); //framework const cusController = require('../controllers/cus'); const router = express.Router(); //đăng ký quảng cáo --test ok router.get('/cus-reg', cusController.getADreg); router.post('/reg-ad', cusController.postAdReg); router.get('/cus', cusController.getAD); //login router.post('/login-ad', cusController.postAdLogin); //đặt cọc quảng cáo //router.post('/buy-ad', cusController.postAdLogin); //thay đổi mật khẩu //xem link của vị trí quảng cáo xài cho cả bên admin và cus --xong router.post('/watchad', cusController.postWatchad); //chỉ cho admin router.post('/watchad2', cusController.postWatchad2);//cho customer router.get('/link', cusController.getWatch);//cho admin, chứ ko cho customer //trả về trang xem url and picture cho customer router.get('/link2', cusController.getWatch2); //thêm link của quảng cáo router.post('/addlink', cusController.postaddlink); //thêm url hình ảnh của quảng cáo router.post('/addurlpic', cusController.postaddurlpic); //thay đổi password router.post('/fixadpass', cusController.postFixCusPass); //về trang chủ --xong router.get('/cus-control', cusController.getAdControl); //12 trang quảng cáo POST router.post('/1', cusController.ad1); router.post('/2', cusController.ad2); router.post('/3', cusController.ad3); router.post('/4', cusController.ad4); router.post('/5', cusController.ad5); router.post('/6', cusController.ad6); router.post('/7', cusController.ad7); router.post('/8', cusController.ad8); router.post('/9', cusController.ad9); router.post('/10', cusController.ad10); router.post('/11', cusController.ad11); router.post('/12', cusController.ad12); exports.routes = router; //phải có
import React from "react"; import styles from "./TaskBanner.module.scss"; export const TaskBanner = (props) => { return ( <h4 className={styles.box}> <input type="text" value={props.userName} onChange={props.newUserName} className={styles.userName} /> <h3 className={styles.list}>'s List To Do</h3> <p className={styles.nTask}> ({props.taskItems.filter((t) => !t.done).length} task to do) </p> </h4> ); };
import Error from '../../../../../libraries/error' import Settings from '../../../../../database/models/emu/settings' class Options { constructor (Website) { Website.get('/emu/customize/options', Options.view) Website.post('/emu/customize/options', Options.save) } static view (request, result) { Settings.fetchAll() .then ((results) => { result.render('user/emu/customize/options', { page : 'Emulator Settings', config : results.toJSON() }) }) .catch ((error) => { new Error('normal', error) result.render('errors/500') }) } static save (request, result) { } } module.exports = Options
javascript:document.querySelectorAll("video").forEach(video => { /* https://github.com/polywock/removeDisablePiPAttribute */ video.removeAttribute("disablePictureInPicture"); })
const { ipcRenderer } = require('electron') let button = document.getElementById('add') let opened = 0 let goback = document.getElementById('goback') goback.addEventListener('click', () => { ipcRenderer.send("goto", "index.html") }) document.getElementById('opengithub').addEventListener("click", () => ipcRenderer.send("openlink", "https://github.com/RiccardoZuninoJ") ) button.addEventListener('click', () => { if(opened == 0) { let name = document.createElement('input') name.setAttribute("class", "form-control mb-2") name.setAttribute("placeholder", "Product name") name.setAttribute("id", "productName") name.setAttribute("type", "text") let description = document.createElement('textarea') description.setAttribute("class", "form-control mb-2") description.setAttribute("placeholder", "Product description") description.setAttribute("id", "productDescription") description.setAttribute("type", "text") let quantity = document.createElement('input') quantity.setAttribute("class", "form-control mb-2") quantity.setAttribute("id", "productQuantity") quantity.setAttribute("placeholder", "Quantity") quantity.setAttribute("type", "number") let price = document.createElement('input') price.setAttribute("class", "form-control mb-2") price.setAttribute("id", "productPrice") price.setAttribute("placeholder", "Price") price.setAttribute("type", "number") let button = document.createElement('button') button.setAttribute('class', 'btn btn-light') button.appendChild(document.createTextNode("Add this product")) button.setAttribute('onclick', "insert()") let div = document.createElement('div') div.append(name, description, quantity, price, button) document.getElementById("addProducts").appendChild(div) opened = 1 }else { let div = document.getElementById('addProducts') div.removeChild(div.lastElementChild) opened = 0 } }) function save_quantity(id) { let qty = document.getElementById('qty'+id).value con.query("UPDATE products SET quantity=" + qty + " WHERE product_id=" + id, (error, results, fields) => { if(error) { alert(error) }else { ipcRenderer.send("refresh") } }) } function save_price(id) { let qty = document.getElementById('pri'+id).value con.query("UPDATE products SET price=" + qty + " WHERE product_id=" + id, (error, results, fields) => { if(error) { alert(error) }else { ipcRenderer.send("refresh") } }) } function insert() { let name = document.getElementById('productName').value let description = document.getElementById('productDescription').value let quantity = document.getElementById('productQuantity').value let price = document.getElementById('productPrice').value if(name == "" || description == "" || quantity == "" || price == "") { alert("You must complete all the fields to add a product") }else { con.query("INSERT INTO products (name, description, quantity, price) VALUES ('" + name + "', '" + description + "', " + quantity + ", " + price + ")", (error, results, fields) => { if(error) { alert("Error " + error) }else { alert("Product added successfully!") ipcRenderer.send("refresh") } }) } } function remove_product(id) { ipcRenderer.send("remove", id); } ipcRenderer.on("remove_from_db", (event, data) => { con.query("DELETE FROM products WHERE product_id=" + data, (error, results, fields) => { if(error) { alert("Error " + error); }else { alert("Product removed successfully") ipcRenderer.send("refresh") } }) })
// This file is create test model,RSM and final shader. var vertexArray; var bbox; var sunLight; var rsm; var depthNormalBuffer; // depth normal buffer var indirectLightBuffer; // indirect light buffer var grid; var geometryVolume; var cam; function cleanup() { // correspond lpv/test_model::cleanup(); // to do rsm shader clean up // to do final shader clean up // it is called when program terminal if (!vertexArray) { vertexArray = null; } } // modelCreate: // Load modelData.vertex information and assign to vertex_array // Use vertex_array to calculate the boundingbox // Get the model center and translate all the vertex in vertex_array to new coord., which new center is at (0, 0, 0) // Bind vertex_array to vertexPositionBuffer function modelCreate() { cleanup(); //loadCornellbox(); loadCornellbox(function() { //bbox = calculateBBox(); afterModelLoaded(); }); } // motion when model complete loaded function afterModelLoaded() { var gridBbox; //var lightVolumeDim = [ 16.0, 16.0, 16.0 ]; var lightVolumeDim = env.lightVolumeTextureDim; createShader(); gridBbox = createGridBoundingBox(); sunLight = new Light(); sunLight.createLight(grid_bbox); //now var rsmWidth = 512; var rsmHeight = 512; console.log("Create RSM."); createRSM(); console.log("Inject depth/normal buffer."); createDNBuffer(); console.log("Indirect light buffer."); createIndirectLightBuffer(); console.log("Grid."); createGrid( gridBbox, lightVolumeDim, rsmWidth, rsmHeight, sunLight ); console.log("Geometry volume."); createGeometryVolume(); // call tick() to prompt requestAnimFrame function tick(); } // shader function createShader() { console.log("CreateShader"); var baseShader = new ShaderResource(); baseShader.initShaders("baseShader", cubeVertexShader, cubeFragmentShader); baseShader.UseProgram(); shaderList.push(baseShader); console.log("Create RSM shader."); createRSMshader(); console.log("Create Final shader."); createFinalShader(); } function createRSMshader() { //rsmShader = new ShaderResource(); //rsmShader.initShaders("rsmShader", rsmVertexShader, rsmFragmentShader); var rsmNormalXShader = new ShaderResource(); rsmNormalXShader.initShaders("rsmNormalXShader", rsmVertexShader, rsmNormalXFragmentShader); shaderList.push(rsmNormalXShader); var rsmNormalYShader = new ShaderResource(); rsmNormalYShader.initShaders("rsmNormalYShader", rsmVertexShader, rsmNormalYFragmentShader); shaderList.push(rsmNormalYShader); var rsmDiffuseShader = new ShaderResource(); rsmDiffuseShader.initShaders("rsmDiffuseShader", rsmVertexShader, rsmDiffuseFragmentShader); shaderList.push(rsmDiffuseShader); var rsmDepthShader = new ShaderResource(); rsmDepthShader.initShaders("rsmDepthShader", rsmVertexShader, rsmDepthFragmentShader); shaderList.push(rsmDepthShader); } function createFinalShader() { var finalILShader = new ShaderResource(); finalILShader.initShaders("finalIndirectLightShader", finalVertexShader, finalFragmentShader); shaderList.push(finalILShader); var finalNILShader = new ShaderResource(); var finalNILVertexShader = "#define NO_INDIRECT_LIGHT\n"; finalNILVertexShader = finalNILVertexShader.concat(finalVertexShader); var finalNILFragmentShader = "#define NO_INDIRECT_LIGHT\n"; finalNILFragmentShader = finalNILFragmentShader.concat(finalFragmentShader); finalNILShader.initShaders("finalNoIndirectLightShader", finalNILVertexShader, finalNILFragmentShader); shaderList.push(finalNILShader); } // grid boundingbox // set size of grid // light & grid are fixed, scene are rotated according light direction. function createGridBoundingBox() { var r = bbox.calculateLength(bbox.calculateDim()) * 0.5; grid_bbox = new Boundingbox(); grid_bbox.maxV = [r, r, r]; grid_bbox.minV = [-r, -r, -r]; return grid_bbox; } function createRSM() { rsm = new RSM(); rsm.create(512, 512); } function normalize(vector) { var length = Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2]); vector = [vector[0] / length, vector[1] / length, vector[2] / length]; return vector; } // create depth normal buffer function createDNBuffer() { depthNormalBuffer = new ndepthNormalBuffer(); depthNormalBuffer.create(canvas.width, canvas.height, env.znear, env.zfar, 512); } // create indirect light buffer function createIndirectLightBuffer() { indirectLightBuffer = new nIndirectLightBuffer(); indirectLightBuffer.create(canvas.width / 2, canvas.height / 2); } function createGrid( grid_bbox, lightVolumeDim, rsmWidth, rsmHeight, sunLight ) { grid = new ngrid(); var iterations = 8; grid.setIterations( iterations ); grid.create( grid_bbox, lightVolumeDim[0], lightVolumeDim[1], lightVolumeDim[2], rsmWidth, rsmHeight, sunLight ); } function createGeometryVolume() { geometryVolume = new ngeometryVolume(); grid.createGeometryVolume(geometryVolume); } // call from main.js drawScene(); function baseShaderSet(shaderSource) { /*shaderSource.shaderProgram.vertexPositionAttribute = shaderSource.GetAttribute("aVertexPosition"); gl.enableVertexAttribArray(shaderSource.shaderProgram.vertexPositionAttribute); // color shaderSource.shaderProgram.vertexColorAttribute = shaderSource.GetAttribute("aVertexColor"); gl.enableVertexAttribArray(shaderSource.shaderProgram.vertexColorAttribute);*/ // texture //this.shaderProgram.textureCoordAttribute = this.GetAttribute("aTextureCoord"); //gl.enableVertexAttribArray(this.shaderProgram.textureCoordAttribute); /*shaderSource.shaderProgram.pMatrixUniform = shaderSource.GetUniform("uPMatrix"); shaderSource.shaderProgram.mvMatrixUniform = shaderSource.GetUniform("uMVMatrix"); shaderSource.shaderProgram.samplerUniform = shaderSource.GetUniform("uSampler");*/ //shaderSource.setMatrixUniforms("uPMatrix", shaderSource.shaderProgram.pMatrixUniform, pMatrix); //shaderSource.setMatrixUniforms("uMVMatrix", shaderSource.shaderProgram.mvMatrixUniform, mvMatrix); var positionBuffer = bufferList[0]._buffer; shaderSource.setAttributes(positionBuffer, "aVertexPosition", gl.FLOAT); //shaderSource.setAttributes(vertexPositionBuffer, "aVertexPosition", gl.FLOAT); shaderSource.setAttributes(vertexColorBuffer, "aVertexColor", gl.FLOAT); // matrix shaderSource.setMatrixUniforms("uPMatrix", pMatrix); shaderSource.setMatrixUniforms("uMVMatrix", mvMatrix); } // test model // setup RSM and shader to draw the scene to RSM // first : normalx, second : normaly // third : rsm color // fourth : rsm depth // accept shaderID & textureID, render the data to texture function renderRsmTex(light, rsm, shaderID, textureID) { var gridSpaceRotation = light.getGridSpaceRotation(); var gridSpaceTranslation = light.getGridSpaceTranslation(); var gridSpace = mat4.create(); mat4.multiply(gridSpaceTranslation, gridSpaceRotation, gridSpace); var projection = light.getGridSpaceProjection(); // rsm bind gl.viewport(0, 0, rsm.getWidth(), rsm.getHeight()); gl.clearColor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); var rsmShader = shaderList[shaderID]; rsmShader.UseProgram(); rsmShader.setMatrixUniforms("projection_matrix", projection); rsmShader.setMatrixUniforms("grid_space", gridSpace); var gridOrigin = light.getGridbox().getMin(); rsmShader.setUniform("grid_origin_z", gridOrigin[2]); var positionBuffer = bufferList[0]._buffer; rsmShader.setAttributes(positionBuffer, "position", gl.FLOAT); rsmShader.setAttributes(vertexNormalBuffer, "normal", gl.FLOAT); rsmShader.setAttributes(vertexTextureCoordBuffer, "texcoord", gl.FLOAT); rsmShader.setAttributes(vertexColorBuffer, "color", gl.FLOAT); // using framebuffer to get shader result. rsmShader.bindTexToFramebuffer(rsm.rsmFramebuffer, rsm.rsmRenderbuffer, textureList[textureID]); drawTextureElement(textureID); rsmShader.unbindFramebuffer(); // Create a framebuffer and attach the texture. /*var fb = gl.createFramebuffer(); gl.bindFramebuffer(gl.FRAMEBUFFER, fb); gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, textureList[0].texture, 0);*/ } function drawTextureElement(textureID) { //gl.bindTexture(gl.TEXTURE_2D, textureList[textureID].texture); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, vertexIndexBuffer); gl.drawElements(gl.TRIANGLES, vertexIndexBuffer.numItems, gl.UNSIGNED_SHORT, 0); //gl.drawArrays(gl.TRIANGLES, 0, 234); /*gl.copyTexImage2D(gl.TEXTURE_2D, 0, textureList[textureID].params.internalFormat, 0, 0, textureList[textureID].width, textureList[textureID].height, 0); if(textureList[textureID].params.type === gl.FLOAT) { Texture.getFloatTexImage(textureID); } else if(textureList[textureID].params.type === gl.UNSIGNED_BYTE) { Texture.getUnsignedTexImage(textureID); }*/ gl.bindTexture(gl.TEXTURE_2D, null); //gl.bindFramebuffer(gl.FRAMEBUFFER, null); } // draw the scene to RSM function drawtoRsm(light, rsm) { // draw to rsm normal (x,y) texture renderRsmTex(light, rsm, 1, 0); renderRsmTex(light, rsm, 2, 1); // drawtoRsmColor renderRsmTex(light, rsm, 3, 2); // drawtoRsmDepth renderRsmTex(light, rsm, 4, 3); //drawRGBTexture(rsm.getWidth(), rsm.getHeight(), 3); } function drawModel(viewMatrix, projMatrix, indirectLightBuffer, light, rsm, indirectLight) { // draw the scene with direct/indirect light and shadows // choose with/without indirect light shader var shader; indirectLight ? shader = shaderList[5] : shader = shaderList[6]; shader.UseProgram(); shader.setMatrixUniforms("projection_matrix", projMatrix); shader.setMatrixUniforms("view_matrix",viewMatrix); var gridSpaceRotation = light.getGridSpaceRotation(); // grid space - use RSM texture as shadow map shader.setMatrixUniforms("light_space_matrix", gridSpaceRotation); if(indirectLight) { // active : indirect light buffer texture shader.setUniformSampler("indirect_light", 6); shader.activeSampler(textureList[6].texture, 6); } shader.setUniform("grid_origin_z", light.getGridbox().getMin()[2]); // RSM : data required for the shadow var projection = light.getGridSpaceProjection(); var rsmMatrix = mat4.create(); mat4.multiply(projection, gridSpaceRotation, rsmMatrix); shader.setMatrixUniforms("rsm_matrix", rsmMatrix); shader.setUniformSampler("rsm_depth", 3); shader.activeSampler(textureList[3].texture, 3); var positionBuffer = bufferList[0]._buffer; shader.setAttributes(positionBuffer, "position", gl.FLOAT); shader.setAttributes(vertexNormalBuffer, "normal", gl.FLOAT); shader.setAttributes(vertexTextureCoordBuffer, "texcoord", gl.FLOAT); shader.setAttributes(vertexColorBuffer, "mcolor", gl.FLOAT); gl.drawArrays(gl.TRIANGLES, 0, positionBuffer.numItems); gl.bindTexture(gl.TEXTURE_2D, null); }
//模块 var ngApp = angular.module('myApp', []); //服务 ngApp.service('myService1', function () { this.sx1 = '{name: 123, age: 12}'; }); //控制器 ngApp.controller('myCtll', function ($scope, $rootScope, $location, myService1, $http) { $scope.carname = "liuhailong"; $scope.names = [{name: 'zhangsan', country: '12'}, {name: 'lisi', country: '18'}, { name: 'wangwu', country: '223' }]; $scope.carname = $location.absUrl(); $scope.carname = myService1.sx1; $http.post("ag/testJson").success(function (response) { $scope.namess = angular.fromJson(response.jsonStr); }); $scope.master = {firstName: 'John', lastName: 'Doe'}; $scope.reset = function () { $scope.user = angular.copy($scope.master); }; $scope.reset(); }); function liShow(t) { alert(t.innerHTML); }
/// <reference path="~/Layouts/TPCIP.Web/Scripts/_references.js" /> // Define TdcAsyncWebPartLoader namespace. if (TdcLogin == null || typeof (TdcLogin) != "object") { var TdcLogin = new Object(); } // Workaround for IE. //if (typeof console == "undefined" || typeof console.log == "undefined") { // var console = { log: function () { }, error: function () { } }; //} (function ($) { (function (context) { context.ValidateAndShowBatchUserLogOutButton = function() { if (TdcMain.isBatchUser.toLowerCase() == "true") { $(document).find(".logoutBatchUser").show(); if (window.location.href.indexOf("Default") >= 1 || window.location.href.indexOf("default") >= 1) { TdcPopupBatchUserLogin.setup(); } } else { $(document).find(".logoutBatchUser").hide(); } }; context.init = function () { //context.ValidateAndShowBatchUserLogOutButton(); //context.$rootElement = $("#cip_content_container"); //context.$rootElement.on(context.toolLoadedEventName, function (event, $html) { // $html.find('input[placeholder]').inputWatermark(); //}); //$(document).find("form").removeAttr('onsubmit') //$(document).find("form").submit(function (e) { // alert('c'); // e.preventDefault(); //}); }; context.onKeyupOfUsername = function (sender, event) { $(sender).removeClass("invalidInput"); if ($(sender).val().trim() != "") { if (event.keyCode == 13) { $(".BatchUserLoginScreen .passWord").focus(); } if ($(".BatchUserLoginScreen .passWord").val().trim() == "") { $(".BatchUserLoginScreen .btnLogin").attr("disabled", true); } else { $(".BatchUserLoginScreen .btnLogin").attr("disabled", false); } } else { if (event.keyCode == 13) { $(sender).addClass("invalidInput"); } $(".BatchUserLoginScreen .btnLogin").attr("disabled", true); } }; context.onKeyupOfPassword = function (sender, event) { $(sender).removeClass("invalidInput"); if ($(sender).val().trim() != "") { if (event.keyCode == 13) { if ($(".BatchUserLoginScreen .userName").val().trim() == "") { $(".BatchUserLoginScreen .userName").addClass("invalidInput"); $(".BatchUserLoginScreen .userName").focus(); } else { if (context.ValidUserNameAndPassword($(sender))) { context.ValidateAndCreateUserSession($(sender)) } } } if ($(".BatchUserLoginScreen .userName").val().trim() == "") { $(".BatchUserLoginScreen .btnLogin").attr("disabled", true); } else { $(".BatchUserLoginScreen .btnLogin").attr("disabled", false); } } else { if (event.keyCode == 13) { $(sender).addClass("invalidInput"); } $(".BatchUserLoginScreen .btnLogin").attr("disabled", true); } }; context.LogOutBatchUserAndClearSession = function (sender) { TdcAsyncWebPartLoader.DoAction({ toolname: 'PopupBatchUserLogin', action: 'logOutBatchUser', context: { }, callback: function (data) { window.location.replace(window.location.href.replace("Default", "Login").replace("default", "Login")); }, }, $(sender)); }; context.ValidUserNameAndPassword = function (sender) { var $sender = $(sender); var $webpart = TdcAsyncWebPartLoader.getTool($sender); $webpart.find(".userName").removeClass("invalidInput"); $webpart.find(".passWord").removeClass("invalidInput"); var res = true; if ($webpart.find(".passWord").val().trim() == "") { $webpart.find(".passWord").focus(); $webpart.find(".passWord").addClass("invalidInput"); res = false; } if ($webpart.find(".userName").val().trim() == "") { $webpart.find(".userName").focus(); $webpart.find(".userName").addClass("invalidInput"); res = false; } return res; } context.ValidateAndCreateUserSession = function (sender) { var $sender = $(sender); var $webpart = TdcAsyncWebPartLoader.getTool($sender); if (!context.ValidUserNameAndPassword($sender )) { return false; } var isLoginPage = window.location.href.toLowerCase().indexOf('login') > 0; //var $webpart = $(".loginMainDiv"); $webpart.find(".errorMsgDiv").hide(); $webpart.find("#lblUserLogin").val(""); var username = $webpart.find(".userName").val(); var password = $webpart.find(".passWord").val(); TdcAsyncWebPartLoader.DoAction({ toolname: 'Login', action: 'ValidateAndCreateUserSession', messageProcess: 'Validerer Bruger...', //messageSuccess: 'Valideret Bruger', context: { userName: username, passWord: password, isLoginPage: isLoginPage, }, callback: function (data) { if (data.loggedInSuccessfully == false) { $webpart.find("#lblUserLogin").text(data.ErrorText); $webpart.find(".errorMsgDiv").show(); return false; } else { if(window.location.href.toLowerCase().indexOf('login') > 0 )//if call from Login page { var groupname = data.userGroups; var ddUserGroupNames = $webpart.find("#ddUserGroupNames"); if( ddUserGroupNames ) { ddUserGroupNames.html(""); if (groupname != undefined) { $.each(groupname, function (index, value) { ddUserGroupNames.append($("<option></option>").val(value).html(value)); }); } } var hrefUrl = window.location.href.replace("Login", "Default").replace("login", "Default"); //hrefUrl = encodeURI(hrefUrl + "&userId=" + data.LoggedUserId + "&userName=" + data.LoggedUserName); window.location.assign(hrefUrl); } else //call from Popup { $("#PopupBatchUserLogin").modal("hide"); } } }, }, $webpart.find(".btnLogin")); } context.SignOffUser = function (sender) { TdcAsyncWebPartLoader.DoAction({ toolname: 'Login', action: 'signOffUser', }); } })(TdcLogin); $(document).ready(TdcLogin.init); })(jQuery);
//= require jquery //= require jquery_ujs //= require picturefill //= require ornament/defaults //= require settings //= require ornament/debug //= require ornament/console //= require ornament/window-dimensions //= require ornament/measure //= require ornament/debounce //= require ornament/accessibility //= require ornament/external_links //= require ornament/refresh //= require velocity //= require jquery.touchSwipe //= require jquery.placeholder //= require underscore
export { COMPLETE_STATUS } from './constants'; export { getWalletByAddress, fetchAddresses, fetchTransactions, searchTransactionsAndWalletsByValue, } from './queries';
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const THREE = SupEngine.THREE; const fs = require("fs"); const TileLayerGeometry_1 = require("./TileLayerGeometry"); const TileMapRendererUpdater_1 = require("./TileMapRendererUpdater"); class TileMapRenderer extends SupEngine.ActorComponent { constructor(actor) { super(actor, "TileMapRenderer"); this.castShadow = false; this.receiveShadow = false; this.materialType = "basic"; this.onSetTileAt = (layerIndex, x, y) => { this.refreshTileAt(layerIndex, x, y); }; } setTileMap(asset, materialType, customShader) { if (this.layerMeshes != null) this._clearLayerMeshes(); this.tileMap = asset; if (materialType != null) this.materialType = materialType; this.customShader = customShader; if (this.tileSet == null || this.tileSet.data.texture == null || this.tileMap == null) return; this._createLayerMeshes(); } setTileSet(asset) { if (this.layerMeshes != null) this._clearLayerMeshes(); this.tileSet = asset; if (this.tileSet == null || this.tileSet.data.texture == null) return; this.tilesPerRow = this.tileSet.data.texture.image.width / this.tileSet.data.grid.width; this.tilesPerColumn = this.tileSet.data.texture.image.height / this.tileSet.data.grid.height; if (this.tileMap != null) this._createLayerMeshes(); } _createLayerMeshes() { this.layerMeshes = []; this.layerMeshesById = {}; this.layerVisibleById = {}; for (let layerIndex = 0; layerIndex < this.tileMap.getLayersCount(); layerIndex++) { const layerId = this.tileMap.getLayerId(layerIndex); this.addLayer(layerId, layerIndex); } this.setCastShadow(this.castShadow); this.tileMap.on("setTileAt", this.onSetTileAt); } _clearLayerMeshes() { for (const layerMesh of this.layerMeshes) { layerMesh.geometry.dispose(); layerMesh.material.dispose(); this.actor.threeObject.remove(layerMesh); } this.layerMeshes = null; this.layerMeshesById = null; this.layerVisibleById = null; this.tileMap.removeListener("setTileAt", this.onSetTileAt); } _destroy() { if (this.layerMeshes != null) this._clearLayerMeshes(); this.tileMap = null; this.tileSet = null; super._destroy(); } addLayer(layerId, layerIndex) { const width = this.tileMap.getWidth() * this.tileSet.data.grid.width; const height = this.tileMap.getHeight() * this.tileSet.data.grid.height; const geometry = new TileLayerGeometry_1.default(width, height, this.tileMap.getWidth(), this.tileMap.getHeight()); let shaderData; let defaultUniforms; switch (this.materialType) { case "basic": shaderData = { formatVersion: null, vertexShader: { text: THREE.ShaderLib.basic.vertexShader, draft: null, revisionId: null }, fragmentShader: { text: fs.readFileSync(`${__dirname}/TileMapBasicFragmentShader.glsl`, { encoding: "utf8" }), draft: null, revisionId: null }, uniforms: [{ id: null, name: "map", type: "t", value: "map" }], attributes: [], useLightUniforms: false }; defaultUniforms = THREE.ShaderLib.basic.uniforms; break; case "phong": shaderData = { formatVersion: null, vertexShader: { text: THREE.ShaderLib.phong.vertexShader, draft: null, revisionId: null }, fragmentShader: { text: fs.readFileSync(`${__dirname}/TileMapPhongFragmentShader.glsl`, { encoding: "utf8" }), draft: null, revisionId: null }, uniforms: [{ id: null, name: "map", type: "t", value: "map" }], attributes: [], useLightUniforms: true }; defaultUniforms = THREE.ShaderLib.phong.uniforms; break; case "shader": shaderData = this.customShader; break; } const material = SupEngine.componentClasses["Shader"].createShaderMaterial(shaderData, { map: this.tileSet.data.texture }, geometry, { defaultUniforms }); material.map = this.tileSet.data.texture; material.alphaTest = 0.1; material.side = THREE.DoubleSide; material.transparent = true; const layerMesh = new THREE.Mesh(geometry, material); layerMesh.receiveShadow = this.receiveShadow; const scaleRatio = 1 / this.tileMap.getPixelsPerUnit(); layerMesh.scale.set(scaleRatio, scaleRatio, 1); layerMesh.updateMatrixWorld(false); this.layerMeshes.splice(layerIndex, 0, layerMesh); this.layerMeshesById[layerId] = layerMesh; this.layerVisibleById[layerId] = true; this.actor.threeObject.add(layerMesh); for (let y = 0; y < this.tileMap.getHeight(); y++) { for (let x = 0; x < this.tileMap.getWidth(); x++) { this.refreshTileAt(layerIndex, x, y); } } this.refreshLayersDepth(); } deleteLayer(layerIndex) { this.actor.threeObject.remove(this.layerMeshes[layerIndex]); this.layerMeshes.splice(layerIndex, 1); this.refreshLayersDepth(); } moveLayer(layerId, newIndex) { const layer = this.layerMeshesById[layerId]; const oldIndex = this.layerMeshes.indexOf(layer); this.layerMeshes.splice(oldIndex, 1); if (oldIndex < newIndex) newIndex--; this.layerMeshes.splice(newIndex, 0, layer); this.refreshLayersDepth(); } setCastShadow(castShadow) { this.castShadow = castShadow; for (const layerMesh of this.layerMeshes) layerMesh.castShadow = castShadow; if (!castShadow) return; this.actor.gameInstance.threeScene.traverse((object) => { const material = object.material; if (material != null) material.needsUpdate = true; }); } setReceiveShadow(receiveShadow) { this.receiveShadow = receiveShadow; for (const layerMesh of this.layerMeshes) { layerMesh.receiveShadow = receiveShadow; layerMesh.material.needsUpdate = true; } } refreshPixelsPerUnit(pixelsPerUnit) { const scaleRatio = 1 / this.tileMap.getPixelsPerUnit(); for (const layerMesh of this.layerMeshes) { layerMesh.scale.set(scaleRatio, scaleRatio, 1); layerMesh.updateMatrixWorld(false); } } refreshLayersDepth() { for (let layerMeshIndex = 0; layerMeshIndex < this.layerMeshes.length; layerMeshIndex++) { const layerMesh = this.layerMeshes[layerMeshIndex]; layerMesh.position.setZ(layerMeshIndex * this.tileMap.getLayersDepthOffset()); layerMesh.updateMatrixWorld(false); } } refreshEntireMap() { for (let layerIndex = 0; layerIndex < this.tileMap.getLayersCount(); layerIndex++) { for (let y = 0; y < this.tileMap.getWidth(); y++) { for (let x = 0; x < this.tileMap.getHeight(); x++) { this.refreshTileAt(layerIndex, x, y); } } } this.refreshLayersDepth(); } refreshTileAt(layerIndex, x, y) { let tileX = -1; let tileY = -1; let flipX = false; let flipY = false; let angle = 0; const tileInfo = this.tileMap.getTileAt(layerIndex, x, y); if (tileInfo !== 0) { tileX = tileInfo[0]; tileY = tileInfo[1]; flipX = tileInfo[2]; flipY = tileInfo[3]; angle = tileInfo[4]; } const quadIndex = (x + y * this.tileMap.getWidth()); const layerMesh = this.layerMeshes[layerIndex]; const uvs = layerMesh.geometry.getAttribute("uv"); uvs.needsUpdate = true; const uvsArray = uvs.array; if (tileX === -1 || tileY === -1 || tileX >= this.tilesPerRow || tileY >= this.tilesPerColumn) { for (let i = 0; i < 8; i++) uvsArray[quadIndex * 8 + i] = -1; return; } const image = this.tileSet.data.texture.image; let left = (tileX * this.tileSet.data.grid.width + 0.2) / image.width; let right = ((tileX + 1) * this.tileSet.data.grid.width - 0.2) / image.width; let bottom = 1 - ((tileY + 1) * this.tileSet.data.grid.height - 0.2) / image.height; let top = 1 - (tileY * this.tileSet.data.grid.height + 0.2) / image.height; if (flipX) [right, left] = [left, right]; if (flipY) [top, bottom] = [bottom, top]; switch (angle) { case 0: uvsArray[quadIndex * 8 + 0] = left; uvsArray[quadIndex * 8 + 1] = bottom; uvsArray[quadIndex * 8 + 2] = right; uvsArray[quadIndex * 8 + 3] = bottom; uvsArray[quadIndex * 8 + 4] = right; uvsArray[quadIndex * 8 + 5] = top; uvsArray[quadIndex * 8 + 6] = left; uvsArray[quadIndex * 8 + 7] = top; break; case 90: uvsArray[quadIndex * 8 + 0] = left; uvsArray[quadIndex * 8 + 1] = top; uvsArray[quadIndex * 8 + 2] = left; uvsArray[quadIndex * 8 + 3] = bottom; uvsArray[quadIndex * 8 + 4] = right; uvsArray[quadIndex * 8 + 5] = bottom; uvsArray[quadIndex * 8 + 6] = right; uvsArray[quadIndex * 8 + 7] = top; break; case 180: uvsArray[quadIndex * 8 + 0] = right; uvsArray[quadIndex * 8 + 1] = top; uvsArray[quadIndex * 8 + 2] = left; uvsArray[quadIndex * 8 + 3] = top; uvsArray[quadIndex * 8 + 4] = left; uvsArray[quadIndex * 8 + 5] = bottom; uvsArray[quadIndex * 8 + 6] = right; uvsArray[quadIndex * 8 + 7] = bottom; break; case 270: uvsArray[quadIndex * 8 + 0] = right; uvsArray[quadIndex * 8 + 1] = bottom; uvsArray[quadIndex * 8 + 2] = right; uvsArray[quadIndex * 8 + 3] = top; uvsArray[quadIndex * 8 + 4] = left; uvsArray[quadIndex * 8 + 5] = top; uvsArray[quadIndex * 8 + 6] = left; uvsArray[quadIndex * 8 + 7] = bottom; break; } } setIsLayerActive(active) { if (this.layerMeshes == null) return; for (const layerId in this.layerMeshesById) this.layerMeshesById[layerId].visible = active && this.layerVisibleById[layerId]; } } /* tslint:disable:variable-name */ TileMapRenderer.Updater = TileMapRendererUpdater_1.default; exports.default = TileMapRenderer;
/* Festival In your IDE of choice, create a new JavaScript file named festival.js and make it so that all code written in the file follows strict mode. Create an anonymous immediately-invoking function that will hold the main execution of all program calls. Writing a simple command console.log(“Hi”) inside this function and running code should output “Hi“ in the console. Create constructor functions with properties representing the following: Genre - name Movie - title, genre (instance of Genre), length Program - date, list of movies (initially empty) and total number of movies Festival - name, list of programs (initially empty), and number of movies in all programs Add method getData to Genre which returns formatted string as first and last letter of genre name "Action" -> AN "Drama" -> DA "Comedy" -> CY Add getData method to Movie. It should return a formatted string consisting of the movie title, length and genre acronym. The Shawshank Redemption, 130min, AN Add addMovie method to Program. It should receive a Movie and add the movie to the movie list of a given program. Add addProgram method to Festival. It should receive a Program and add the program to the list of the given festival’s programs. Add getData method to Program. It should return a formatted string of all data related to the program. The string should contain date, program length (calculated from length of all movies in a list) and data about movies in a list (see the example below). To display movie data, use Movie’s getData method. Date, program length from all movies First movie title, length and genre Second movie title, length and genre Third movie title, length and genre Fourth movie name and length and genre Add method getData to Festival which return formatted string like festival name, number of movies in all programs and all programs listed. Use Programs getData method to list all programs. (example output is shown below) Weekend festival has 4 movie titles 28.10.2017, program duration 368min Spider-Man: Homecoming, 133min, AN War for the Planet of the Apes, 140min, DA The Dark Tower, 95min, WN 29.10.2017, program duration 108min Deadpool, 108min, CY Inside your immediately-invoking function, add createMovie function that receives a movie title, movie length and genre (as a string) as parameters and returns a created Movie. Inside your immediately-invoking function, add createProgram function that receives a date and returns a created Program. Start creating your movie festival. In your main program function, create an instance of the Festival object. Create two instances of Program using createProgram function. Create four instances of Movie object using createMovie function. Add all created movies to both programs using the addMovie method. Add the created program instances to the created festival instance using festival’s addProgram method. Display festival’s data using getData method. Hints List is a synonym for array, so when we say a list of movies, it’s actually an array of movie objects Use JS built-in Date()object to create Date object Use \t and \n special strings to format output Use built-in String methods to transform text from lowercase to uppercase Use Array’s built-in methods to add and remove elements from an array */ "use strict"; (function (){ function Genre(name){ this.name = name; this.getData = function (){ return this.name.charAt(0) + this.name.charAt(this.name.length -1).toUpperCase(); }; } function Movie(title, length, genre){ this.title = title; this.genre = genre; this.length = length; this.getData = function (){ return this.title + ", " + this.length + "min" + ", " + this.genre.getData(); }; } function Program(date){ this.date = new Date(date); this.listOfMovies = []; this.totalNumberOfMovies = this.listOfMovies.length; this.addMovie = function (movie){ this.listOfMovies.push(movie); }; this.getData = function (){ var now = new Date(date); var day = now.getDate(); var month = now.getMonth() +1; var year = now.getFullYear(); var dayMonthYear = day + "." + month + "." + year; this.totalLength = function (){ var result = 0; this.listOfMovies.forEach(function (elem){ result += elem.length; }); return result; } this.movieList = function (){ var result = ""; this.listOfMovies.forEach(function (elem){ result += "\t\t" + elem.title + ", " + elem.length + " min" + ", " + elem.genre.getData() + "\n"; }); return result; }; return "\t" + dayMonthYear + ", program duration is " + this.totalLength() + " min" + "\n" + this.movieList(); }; } function Festival(name){ this.name = name; this.listOfPrograms = []; this.addProgram = function (program){ this.listOfPrograms.push(program); }; this.getData = function (){ var result = ""; var sum = 0; this.listOfPrograms.forEach(function (elem){ sum += elem.listOfMovies.length; }); result += "Weekend festival has " + sum + " movie titles" + "\n"; this.listOfPrograms.forEach(function (elem){ result += elem.getData(); }); return result; }; } var genre1 = new Genre("Action"); var genre2 = new Genre("Comedy"); var genre3 = new Genre("Drama"); var genre4 = new Genre("Western"); var movie1 = new Movie("Spider-Man", 133, genre1); var movie2 = new Movie("Deadpool", 108, genre2); var movie3 = new Movie("The Dark Tower", 95, genre4); var movie4 = new Movie("War for the Planet of the Apes", 140, genre3); var program1 = new Program("10 28 2017"); var program2 = new Program("10 29 2017"); var festival = new Festival("Fest"); program1.addMovie(movie1); program1.addMovie(movie2); program1.addMovie(movie3); program2.addMovie(movie4); festival.addProgram(program1); festival.addProgram(program2); //console.log(movie2.getData()); //console.log(genre1.getData()); //console.log(program1.getData()); //console.log(festival); console.log(festival.getData()); })();
import React from 'react'; import Alert from "./Alert/Alert"; const Footer = (props) => { return ( <div className="footer shadow-2"> <Alert notification ={props.notification} /> </div> ); } export default Footer;
function cargarJSON() { fetch("./data/movies.json") .then(function(res) { return res.json(); }) .then(function(data){ let html = document.querySelector("#content-container"); console.log(html) let movies = data.movies; for (let i = 0; i < movies.length; i++) { html.innerHTML +=` <div class="card mb-3" style="max-width: 540px;"> <div class="row g-0"> <div class="col-md-4"> <img src="img/${movies[i].img}" alt="..." width= 150px> </div> <div class="col-md-8"> <div class="card-body"> <h5 class="card-title">${movies[i].name}</h5> <p class="card-text">${movies[i].description}</p> <p class="card-text"><small class="text-muted">${movies[i].pegi}</small></p> </div> </div> </div> </div> ` } }) .catch(function(error) { console.log(error); }); } cargarJSON()
/**網絡客戶 第二步 填寫會員資料 */ import React,{Component} from 'react' import{ View,StyleSheet,Switch, Text,TouchableOpacity,Image, } from 'react-native' import {createDateData, currentFullData} from '@/utils/common' import { colors, scale, width } from '@/utils/device'; import Picker from 'react-native-picker'; import InputView from '@/components/InputView' import Select from '@/components/Select' import BtnView from './BtnView' import {navPage} from '@/utils/common' import sty from './styles.js'; export default class PlainMember extends Component{ constructor(props){ super(props) this.state = { name: '李曼迪', eName: 'MandyLee', country:'中國(香港)', email: 'mandylee@hotmail.com', email2: '', birthday: '', hasRecomm: false,//是否有推薦人 recommCode:'', tel: 'MandyLee', selCountry: false, gender: '男', selGender: false, area: '香港 852', selArea: false, currentDate: currentFullData() } } _next(){ navPage(this.props.navigation, 'SetPwd', {category: 0}) } _pre(){ this.props.navigation.pop(); } onChangeText(val,type){ let {name,eName,tel,email,email2,recommCode} = this.state if(type == 'name') name = val else if(type == 'eName') eName = val else if(type == 'tel') tel = val else if(type == 'email') email = val else if(type == 'email2') email2 = val else if(type == 'recommCode') recommCode = val this.setState({ name, eName, tel, email, email2, recommCode, }) } _recommChange=(value)=>{ this.setState({ hasRecomm:value }) } //點擊選擇國籍 _selCountry=(type)=>{ this.setState({ country: type.value, selCountry: false }) } _selGender=(type)=>{ this.setState({ gender: type.value, selGender: false }) } _selArea=(type)=>{ this.setState({ area: type.value, selArea: false }) } //打开日期选择 视图 _showDatePicker() { var year = '' var month = '' var day = '' var dateStr = this.state.currentDate day = dateStr.substring(0,2) month = parseInt(dateStr.substring(3,5)) year = parseInt(dateStr.substring(6,10)) Picker.init({ pickerTitleText:'时间选择', pickerCancelBtnText:'取消', pickerConfirmBtnText:'确定', selectedValue:[year+'年',month+'月',day+'日'], pickerBg:[255,255,255,1], pickerData: createDateData(), pickerFontColor: [33, 33 ,33, 1], onPickerConfirm: (pickedValue, pickedIndex) => { var year = pickedValue[0].substring(0,pickedValue[0].length-1) var month = pickedValue[1].substring(0,pickedValue[1].length-1) month = month.padStart(2,'0') var day = pickedValue[2].substring(0,pickedValue[2].length-1) day = day.padStart(2,'0') let str = day+'-'+month+'-'+year this.setState({ birthday:str, }) }, onPickerCancel: (pickedValue, pickedIndex) => { //console.log('date', pickedValue, pickedIndex); }, onPickerSelect: (pickedValue, pickedIndex) => { //console.log('date', pickedValue, pickedIndex); } }); Picker.show(); } render(){ const {name, eName, country,selCountry, gender, hasRecomm, selGender,area, selArea,tel,email,birthday} = this.state const t1 = '請確保填寫正確的電郵地址。您的新科士威會員編號、密碼及戶口的相關資料將發送至此電郵地址。' const remark2 = '如果你沒有推薦人,請留空此格,系統會設定\n你的推薦人為科士威(香港)有限公司。' const items = [ {key:'a', value: '中國(香港)'}, {key:'b', value: '中國(澳門)'}, {key:'c', value: '中國'}, ] const items2 = [ {key:'a', value: '男'}, {key:'b', value: '女'}, ] const items3 = [ {key:'香港 852', value: '香港 852'}, {key:'上海 021', value: '上海 021'}, {key:'杭州 571', value: '杭州 571'}, ] const arrowImage = <Image style={sty.arrowImg} source={require('@/images/set/input_r.png')}/> return( <View> <View style={sty.card1}> <InputView lab='中文全名' dVal={name} require={true} onChangeText={(val)=>this.onChangeText(val, 'name')}/> <View style={sty.line2}></View> <InputView lab='英文全名' dVal={eName} require={true} onChangeText={(val)=>this.onChangeText(val, 'eName')}/> <View style={sty.line2}></View> <View style={sty.box3}> <Text style={sty.textL}><Text style={sty.red}>* </Text>國籍</Text> <TouchableOpacity style={sty.row0} onPress={()=>this.setState({selCountry:true})}> <Text style={sty.t5}>{country}</Text> {arrowImage} </TouchableOpacity> <Select title='選擇國籍' items={items} _selItem={this._selCountry} showModal={selCountry} hideModal={()=>this.setState({selCountry:false})}/> </View> <View style={sty.line2}></View> <View style={sty.box3}> <Text style={sty.textL}><Text style={sty.red}>* </Text>出生日期</Text> <TouchableOpacity style={sty.row0} onPress={()=>this._showDatePicker()}> <Text style={sty.t2}>{birthday?birthday:'DD-MM-YYYY'}</Text> {arrowImage} </TouchableOpacity> </View> <View style={sty.line2}></View> <View style={sty.box3}> <Text style={sty.textL}><Text style={sty.red}>* </Text>性別</Text> <TouchableOpacity style={sty.row0} onPress={()=>this.setState({selGender:true})}> <Text style={sty.t5}>{gender}</Text> {arrowImage} </TouchableOpacity> <Select title='選擇性別' items={items2} _selItem={this._selGender} showModal={selGender} hideModal={()=>this.setState({selGender:false})}/> </View> <View style={sty.line}></View> <View style={sty.box3}> <Text style={sty.textL}><Text style={sty.red}>* </Text>區碼</Text> <TouchableOpacity style={sty.row0} onPress={()=>this.setState({selArea:true})}> <Text style={sty.t5}>{area}</Text> {arrowImage} </TouchableOpacity> <Select title='選擇區碼' items={items3} _selItem={this._selArea} showModal={selArea} hideModal={()=>this.setState({selArea:false})}/> </View> <View style={sty.line2}></View> <InputView lab='網絡電話號碼' dVal={tel} require={true} onChangeText={(val)=>this.onChangeText(val, 'tel')}/> <View style={sty.box1}> <Text style={sty.t1}>{t1}</Text> </View> <InputView lab='電郵地址' dVal={email} require={true} onChangeText={(val)=>this.onChangeText(val, 'email')}/> <View style={sty.line2}></View> <InputView lab='確認電郵地址' dVal={''} placeholder='請再次輸入電郵地址' require={true} onChangeText={(val)=>this.onChangeText(val, 'email2')}/> <View style={sty.line}></View> <View style={sty.box3}> <Text style={sty.textL}>是否有推薦人</Text> <Switch trackColor={{true:'#72AC41',false:'#DEDEDE'}} //thumbColor='#f0f0f0' value={hasRecomm} onValueChange={this._recommChange}/> </View> <View style={sty.line2}></View> <InputView lab='推薦人編號' dVal={''} placeholder='請輸入推薦人編號' remark={remark2} remarkStyle={{marginLeft:0}} onChangeText={(val)=>this.onChangeText(val, 'recommCode')}/> </View> <BtnView pre={()=>this._pre()} next={()=>this._next()}/> </View> ) } }
import React from 'react'; import Facebook from '../../../assets/images/contacts/Facebook.png'; import Github from '../../../assets/images/contacts/Github.png'; import Linkedin from '../../../assets/images/contacts/Linkedin.png'; import './Contacts.css'; const contacts = () => { return ( <div> <div className="row"> <div className="col s12 m12 skills-title-main">Contacts</div> </div> <div className="row"> <div className="col s6 m6 contact-pics"> <p><img src={Facebook} alt=""/></p><br/> <p><img src={Github} alt=""/></p><br/> <p><img src={Linkedin} alt=""/></p><br/> </div> <div className="col s6 m6"> <p><a href="https://www.facebook.com/yaks10">Facebook</a></p> <p><a href="https://github.com/sukiasyan">Github</a></p> <p><a href="https://www.linkedin.com/in/hakob-sukiasyan-8269a519/">Linkedin</a></p> </div> </div> </div> ) }; export default contacts;
/* * @Description: * @Author: yamanashi12 * @Date: 2019-05-10 10:18:19 * @LastEditTime: 2020-10-26 18:02:17 * @LastEditors: Please set LastEditors */ export default { schema: { type: { // 组件类型 type: 'string', default: 'Title' }, desc: { // 描述 type: 'string', default: '描述' }, title: { // 主标题 type: 'string', default: '主标题' } }, rules: { title: [{ required: true, message: '请输入页面标题', trigger: 'blur' }] } }
import { useState, useEffect, useRef } from 'react'; import { useBeforeunload } from "react-beforeunload"; import axios from 'axios'; import { withCookies } from 'react-cookie'; function Main(props) { let currentVoca; let currentEngVoca; let url = 'http://3.34.140.114:5000/voca'; const { cookies } = props; const inputRef = useRef(); const [value, setValue] = useState(true); const [testValue, setTestValue] = useState(false); const [language, setLanguage] = useState(''); const [text, clearText] = useState(''); const [vocalist, setVoca] = useState([]); const [voca, changeVoca] = useState(''); const [engText, clearEngText] = useState(''); const [engVocalist, setEngVoca] = useState([]); const [vocaObj, setVocaObj] = useState([]); const [engVoca, changeEngVoca] = useState(''); const [testVoca2, changeTest] = useState([]); const [inputs, setInputs] = useState({}); const [matchInputs, setMatchInputs] = useState({}); const [score, setScore] = useState(''); const [conclusion, setConclusion] = useState([]); const addVoca = (e) => { e.preventDefault(); inputRef.current.focus(); var pattern_kor = /[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/; var pattern_eng = /[a-zA-Z]/; if (voca === '' || engVoca === '') { return window.alert("단어를 입력해주세요."); } else if (!pattern_kor.test(voca)) { return window.alert("한글로 작성해주세요.") } else if (!pattern_eng.test(engVoca)) { return window.alert("영어로 작성해주세요.") } else { currentVoca = vocalist; currentVoca.push(voca); currentEngVoca = engVocalist; currentEngVoca.push(engVoca); } const obj = {}; for (var i = 0; i < vocalist.length; i += 1) { obj["voca"] = currentVoca[i]; obj["engvoca"] = currentEngVoca[i]; } const addResult = vocaObj.slice(); addResult.push(obj); setVocaObj(addResult); setVoca(currentVoca); setEngVoca(currentEngVoca); clearText(''); clearEngText(''); changeVoca(''); changeEngVoca(''); axios.post(url, { voca: voca, engvoca: engVoca, user_id: cookies.get('user'), }) } const startTest = (lang, question, answer) => { var testQ = question.slice(); var testA = answer.slice(); var currentIndex = testQ.length, randomIndex; //만약에 conclusion while (0 !== currentIndex) { // Pick a remaining element... randomIndex = Math.floor(Math.random() * currentIndex); currentIndex--; // And swap it with the current element. [testQ[currentIndex], testQ[randomIndex]] = [ testQ[randomIndex], testQ[currentIndex]]; [testA[currentIndex], testA[randomIndex]] = [ testA[randomIndex], testA[currentIndex]]; } changeTest(testQ); var testObj = {}; for (let i = 0; i < testQ.length; i += 1) { testObj = { ...testObj, [testQ[i]]: testA[i], } } setLanguage(lang); setInputs(testObj); setTestValue(true); setValue(true); } const onChange = (e) => { const { value, name } = e.target; setMatchInputs({ ...matchInputs, [name]: value }); }; const removeVoca = (data, i) => { // vocalist.splice(i, 1) // engVocalist.splice(i, 1) if (window.confirm('정말 삭제하시겠습니까?')) { setVoca(vocalist.filter(voca => voca !== data)); setEngVoca(engVocalist.filter(voca => voca !== engVocalist[i])); const currentObj = vocaObj.slice(); currentObj.splice(i, 1); axios.delete(url, { data: { voca: data['voca'], engvoca: data['engvoca'], userId: cookies.get('user'), } } ) .then(data => setVocaObj(currentObj)) return; } else { return; } } const finishTest = () => { // let conclusionAnswer; let count = 0; let score; const groupConclusion = []; for (const prop in inputs) { if ( inputs[prop] === matchInputs[prop] ) { const obj = {}; obj.question = prop; obj.answer = matchInputs[prop]; obj.value = "정답"; groupConclusion.push(obj); count += 1; } else { const obj = {}; obj.question = prop; obj.answer = matchInputs[prop]; obj.value = "오답"; groupConclusion.push(obj); } } score = `${groupConclusion.length}개 중에 ${count}개 정답`; setConclusion(groupConclusion); setValue(false); setScore(score); setMatchInputs({}); } const goMain = () => { setTestValue(false); setValue(true); } useEffect(() => { async function get() { const data = await axios.post(url, {}); setVocaObj(data.data); } get(); return () => { localStorage.removeItem('userId'); }; }, []); useBeforeunload((event) => event.preventDefault() ); return ( <div style={{background : "#8FC0A9"}}> <div id="container"> { !testValue ? <div id='page-1'> <div> <div style={{ fontSize : "1.5rem", color : "#FAF3DD", marginBottom : "1rem" }} > Enter the Words </div> <form id="add-container" onSubmit={addVoca} > <div style={{ margin : "0 0 1rem 0" }}> <div style={{ fontWeight : "600" , fontSize : "1.3rem" }}>영단어 기록하기</div> <div style={{ fontSize : "0.5rem" }}>단어장에 영단어를 기입하십시요</div> </div> <div className="voca-input"> <input placeholder="한글 입력" className="input-style" name="kor-input" ref={inputRef} value={text} onChange={(e) => { changeVoca(e.target.value); clearText(e.target.value); }} /> </div> <div style={{ marginBottom : "4rem" }} className="voca-input"> <input placeholder="영어 입력" className="input-style" name="eng-input" value={engText} onChange={(e) => { changeEngVoca(e.target.value); clearEngText(e.target.value); }} /> </div> <button type='submit' id='Jbutton' > 기록하기 </button> </form> <div style={{ width : "100%", background : "white", height : "9rem", borderRadius : "5px", display : "flex", flexDirection : "column", padding : "1rem 0", alignItems : "center", justifyContent : "space-around" }} > <div style={{ width : "100%", height: "3rem", display : "flex", flexDirection : "column", alignItems : "center", justifyContent: "space-between", }} > <div style={{ fontSize : "1.2rem", fontWeight : "600" }}>단어 시험 보기</div> <div style={{ fontSize : "0.8rem" }}>열심히 공부했나요? 영단어 테스트 보기</div> </div> <div style={{ width : "80%", display : "flex", justifyContent : "space-around"}}> <button className="test-button" onClick={() => { const question = []; vocaObj.forEach(obj => question.push(obj['voca'])); const answer = []; vocaObj.forEach(obj => answer.push(obj['engvoca'])); startTest('kor', question, answer); }} > 한글시험 </button> <button className="test-button" onClick={() => { const question = []; vocaObj.forEach(obj => question.push(obj['engvoca'])); const answer = []; vocaObj.forEach(obj => answer.push(obj['voca'])); startTest('eng', question, answer); }} > 영어시험 </button> </div> </div> </div> <div className="voca-container"> <div style={{ marginBottom : "1rem"}}> <span style={{ fontSize : "1.5rem", color : "#FAF3DD" }} > My WordBook </span> <span style={{ fontSize : "0.8rem", color : "#FAF3DD" }}> 내가 기록한 단어</span> </div> <div id="vocabulary"> <div id="vocabulary-intro"> <div className='row-vocalist'> <div className="voca-element">한글</div> <div className="voca-element">영어</div> <div className="voca-remove-cover"> <div className="voca-remove-emty"/> </div> </div> <hr className="driver" /> </div> { vocaObj.map((data, i) => ( <div style={{ width : "100%" }}> <div className='row-vocalist'> <div className="voca-element" key={i}>{data['voca']}</div> <div className="voca-element" key={i + 'en'}>{data['engvoca']}</div> <div className="voca-remove-cover"> <button className="voca-remove" onClick={() => removeVoca(data, i)} > 삭제 </button> </div> </div> <hr className="driver" /> </div> )) } </div> </div> </div> : <div> { language === 'kor' ? <div> { !value ? <div> <div style={{ marginBottom : "1rem"}}> <span style={{ fontSize : "1.5rem", color : "#FAF3DD" }} > Test Result </span> <span style={{ fontSize : "0.8rem", color : "#FAF3DD" }}> 시험 결과</span> </div> <div className="test-container"> <div style={{ width : "90%" }}> <div className='row-testlist-2'> <div className="voca-element">입력한 한글</div> <div className="voca-element">입력한 영어</div> <div className="voca-element">결과</div> </div> <hr className="driver" /> </div> { conclusion.map((data, i) => ( <div style={{ width : "90%"}}> <div className='row-testlist-2'> <div className="voca-element">{data.question}</div> <div className="voca-element">{data.answer}</div> <div className="voca-element" style={{ color : data.value === "정답" ? "#39A2DB" : "#F55C47" }} > {data.value} </div> </div> <hr className="driver" /> </div> )) } </div> <div style={{ width : "100%", display : "flex", justifyContent : "space-between"}}> <div style={{ fontSize : "1.2rem", fontWeight : "600", color : "#FAF3DD"}}>{score}</div> <div className="finish-button-container"> <button className="finish-button" onClick={() => { const question = []; vocaObj.forEach(obj => question.push(obj['voca'])); const answer = []; vocaObj.forEach(obj => answer.push(obj['engvoca'])); startTest('kor', question, answer); }} > 재시험 보기 </button> <button className="finish-button" onClick={goMain} > 돌아가기 </button> </div> </div> </div> : <div> <div style={{ marginBottom : "1rem"}}> <span style={{ fontSize : "1.5rem", color : "#FAF3DD" }} > Test Word </span> <span style={{ fontSize : "0.8rem", color : "#FAF3DD" }}> 단어시험</span> </div> <div className="test-container"> <div style={{ width : "90%" }}> <div className='row-testlist'> <div className="voca-element">한글</div> <div className="voca-element">영어</div> </div> <hr className="driver" /> </div> { testVoca2.map((data, i) => ( <div style={{ width : "90%" }}> <div className='row-testlist'> <div className="voca-element" key={i}>{data}</div> <div className="voca-element"> <input className="test-inputs" name={data} onChange={onChange} autoComplete='off' /> </div> </div> <hr className="driver" /> </div> )) } </div> <div id="finish-button-container"> <button className="finish-button" onClick= {finishTest}>시험종료</button> </div> </div> } </div> : <div> { !value ? <div> <div style={{ marginBottom : "1rem"}}> <span style={{ fontSize : "1.5rem", color : "#FAF3DD" }} > Test Result </span> <span style={{ fontSize : "0.8rem", color : "#FAF3DD" }}> 시험 결과</span> </div> <div className="test-container"> <div style={{ width : "90%" }}> <div className='row-testlist-2'> <div className="voca-element">입력한 영어</div> <div className="voca-element">입력한 한글</div> <div className="voca-element">결과</div> </div> <hr className="driver" /> </div> { conclusion.map((data, i) => ( <div style={{ width : "90%"}}> <div className='row-testlist-2'> <div className="voca-element">{data.question}</div> <div className="voca-element">{data.answer}</div> <div className="voca-element" style={{ color : data.value === "정답" ? "#39A2DB" : "#F55C47" }} > {data.value} </div> </div> <hr className="driver" /> </div> )) } </div> <div style={{ width : "100%", display : "flex", justifyContent : "space-between"}}> <div style={{ fontSize : "1.2rem", fontWeight : "600", color : "#FAF3DD"}}>{score}</div> <div className="finish-button-container"> <button className="finish-button" onClick={() => { const question = []; vocaObj.forEach(obj => question.push(obj['engvoca'])); const answer = []; vocaObj.forEach(obj => answer.push(obj['voca'])); startTest('eng', question, answer); }} > 재시험 보기 </button> <button className="finish-button" onClick={goMain} > 돌아가기 </button> </div> </div> </div> : <div> <div style={{ marginBottom : "1rem"}}> <span style={{ fontSize : "1.5rem", color : "#FAF3DD" }} > Test Word </span> <span style={{ fontSize : "0.8rem", color : "#FAF3DD" }}> 단어시험</span> </div> <div className="test-container"> <div style={{ width : "90%" }}> <div className='row-testlist'> <div className="voca-element">영어</div> <div className="voca-element">한글</div> </div> <hr className="driver" /> </div> { testVoca2.map((data, i) => ( <div style={{ width : "90%" }}> <div className='row-testlist'> <div className="voca-element" key={i}>{data}</div> <div className="voca-element"> <input className="test-inputs" name={data} onChange={onChange} autocomplete='off' /> </div> </div> <hr className="driver" /> </div> )) } </div> <div id="finish-button-container"> <button className="finish-button" onClick= {finishTest}>시험종료</button> </div> </div> } </div> } </div> } </div> </div> ); } export default withCookies(Main);
import React from 'react'; import 'tachyons'; const SearchBox = ({searchChange, buttonClick}) => { return( <div className=' input-container'> <input className='input-box' type='search' placeholder="search Robots" onChange={searchChange} /> <button type='button' className='br4 pa2 ba b--blue bg-blue' onClick={buttonClick}> Search </button> </div> ); } export default SearchBox;
const express=require("express"); const bodyParser=require("body-parser"); const app=express(); app.use(bodyParser.urlencoded({extended:true})); app.get("/",function(request,response){ response.sendFile(__dirname+"/index.html"); }); app.post("/",function(request,response){ response.send("Thanks for your shit"); response.body.num1; }); console.log(request.body.num1); app.listen(3000,function(){ console.log("Just trust in me my dear"); });
const { Credentials } = require('uport-credentials'); console.log(Credentials.createIdentity());
/*global describe: true, expect: true, it: true, jasmine: true */ describe('function expressions', function() { function checkLongnames(docSet, namespace) { var memberName = (namespace || '') + 'Foo#member1'; var variableName = (namespace || '') + 'Foo~var1'; var fooMember = docSet.getByLongname(memberName)[0]; var fooVariable = docSet.getByLongname(variableName)[0]; it('should assign the correct longname to members of a function expression', function() { expect(fooMember.longname).toBe(memberName); }); it('should assign the correct longname to variables in a function expression', function() { expect(fooVariable.longname).toBe(variableName); }); } describe('standard', function() { checkLongnames( jasmine.getDocSetFromFile('test/fixtures/funcExpression.js') ); }); describe('global', function() { checkLongnames( jasmine.getDocSetFromFile('test/fixtures/funcExpression2.js') ); }); describe('as object literal property', function() { checkLongnames( jasmine.getDocSetFromFile('test/fixtures/funcExpression3.js'), 'ns.' ); }); });
import React from 'react'; const input = ( props ) => { let inputElement = props.classes; let month = null; let year = null; const inputClasses = ["form-input"]; if (props.invalid && props.shouldValidate && props.touched) { inputClasses.push("form-field-error"); } let classSelect = "form-field"; switch ( props.elementType ) { case ( 'input' ): classSelect = "form-field has-float-label"; inputElement = <input className={inputClasses.join(' ')} {...props.elementConfig} value={props.value} id={props.id} onChange={props.changed} />; break; case ( 'textarea' ): classSelect = "form-field has-float-label"; inputElement = <textarea className={inputClasses.join(' ')} {...props.elementConfig} value={props.value} onChange={props.changed} />; break; case ( 'select' ): inputElement = ( <select className={inputClasses.join(' ')} value={props.value} onChange={props.changed}> {props.elementConfig.options.map(option => ( <option key={option.value} value={option.value}> {option.displayValue} </option> ))} </select> ); break; case ('radio'): inputElement = ( <ul key={props.keyValue} className="form-options"> {props.elementConfig.options.map(option => ( <li key={props.value+option.value}> <input type="radio" checked={props.value === option.value ? true : false} key={option.value} name={props.keyValue} value={option.value} onChange={props.changed} />{option.label} </li> ))} </ul> ) break; case ( 'dob' ): const dayInputClasses = ['form-input']; if (!props.dayValue && props.shouldValidate && props.touched) { dayInputClasses.push("form-field-error"); } const day = ( <select key="day" className={dayInputClasses.join(' ')} value={props.dayValue} onChange={props.dayChange}> {[...Array(32)].map((_,i) => ( <option key={i} value={(i === 0 ? "" : i)}> {i === 0 ? "Day" : i} </option> ))} </select> ); const monthInputClasses = ['form-input']; if (!props.monthValue && props.shouldValidate && props.touched) { monthInputClasses.push("form-field-error"); } month = ( <select key="month" className={monthInputClasses.join(' ')} value={props.monthValue} onChange={props.monthChange}> {[...Array(13)].map((_,i) => ( <option key={i} value={i === 0 ? "" : i}> {i === 0 ? "Month" : i} </option> ))} </select> ); const currentYear = new Date().getFullYear(); const dateDiff = currentYear - 1904; year = ( <select key="year" className={inputClasses.join(' ')} value={props.value} onChange={props.changed}> <option key="0" value=""> Year </option> {[...Array(dateDiff)].map((_,i) => ( <option key={currentYear-i} value={currentYear-i}> {currentYear-i} </option> ))} </select> ); inputElement = ( <div className="form-field-group"> {day} {month} {year} </div> ) classSelect = "form-field form-field-birthday"; break; case ('file'): let displayFileField = true; if(props.pictures){ displayFileField = false } inputElement = ( <div className={inputClasses.join(' ')+" fileUploader form-input"}> <div className="fileContainer"> <div className="fileContainerChooser" style={{display:displayFileField ? "block" : "none"}} > <img src="static/images/camera.svg" style={{height:"100px"}} className="uploadIcon" alt="Upload Icon" /> <p className="">accepted: jpg|png|jpeg</p> <div className="errorsContainer"></div> <input type="file" name="image" accept="image/*" onChange={props.onDrop} /> </div> <div className="uploadPicturesWrapper" style={{display:(displayFileField ? "none" : "block")}}> <div style={{position:"relative", display: "flex", alignItems: "center", justifyContent: "center", flexWrap: "wrap", width: "100%"}}> <div className="uploadPictureContainer"> <div className="deleteImage" onClick={props.removeUploadedImage}>X</div> <img src={props.pictures ? window.URL.createObjectURL(props.pictures) : null} className="uploadPicture" alt="preview" /> </div> </div> </div> </div> </div> ); break default: classSelect = "form-field has-float-label"; inputElement = <input className={inputClasses.join(' ')} {...props.elementConfig} value={props.value} id={props.id} onChange={props.changed} />; } classSelect = 'form_fields_'+props.elementConfig.placeholder.replace(' ','_').toString().toLowerCase()+' '+classSelect; return ( <div className={classSelect}> {props.elementType === "file" || props.elementType === "select" || props.elementType === "dob" || props.elementType === "radio" || props.elementType === "checkbox" ? <label htmlFor={props.id}>{props.elementConfig.placeholder}</label> : null} {inputElement} {props.elementType === "file" || props.elementType === "select" || props.elementType === "dob" || props.elementType === "radio" || props.elementType === "checkbox" ? null : <label htmlFor={props.id}>{props.elementConfig.placeholder}</label>} </div> ); }; export default input;
import styled from "styled-components"; const ButtonAddStyled = styled.div` position: absolute; top: 66px; button { border: none; background-color: white; color: #EF271B; :hover { background-color: white; color: #EF271B; } } ` export default ButtonAddStyled
var xmlhttps= new Array(); function loadXMLdoc(urli, id, attente, v, ids) { var entree = document.getElementById('entree').value; var entree2 = document.getElementById('entree2').value; var hapen = document.getElementById('hapen_put').value; var url= urli + "?v=" + v + "&ids=" + ids + "&entree=" + entree + "&entree2=" + entree2 + "&hapen=" + hapen; // var url= urli + "?v=" + v + "&ids=" + ids; // alert(url); var i= xmlhttps.length; if(attente != null) { document.getElementById(id).innerHTML= attente; } if(window.XMLHttpRequest) {/*Mozilla*/ xmlhttps[i]= new XMLHttpRequest(); xmlhttps[i].onreadystatechange= function() { xmlhttpChange(i, url, id); }; xmlhttps[i].open("GET", url, true); xmlhttps[i].send(null); } else if(window.ActiveXObject) {/*IE*/ xmlhttps[i]= new ActiveXObject("Microsoft.XMLHTTP"); if(xmlhttps[i]) { xmlhttps[i].onreadystatechange= function() { xmlhttpChange(i, url, id); }; xmlhttps[i].open("GET", url, true); xmlhttps[i].send(); } } } function xmlhttpChange(i, url, id) { if(xmlhttps[i].readyState==4) {/*complete*/ if(xmlhttps[i].status < 400) { document.getElementById(id).innerHTML= xmlhttps[i].responseText; } else { document.getElementById(id).innerHTML= "[<span title=\""+url+"\">Erreur "+xmlhttps[i].status+"</span>]"; } } } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function doPassVar(signal,sene,nom,skin1,fapen,hapenskin,perso2,skin2,perso3,skin3,perso4,skin4,opt1,opt2,opt3,bonus1,bonus12,bonus2,bonus22,malus1,malus12,malus2,malus22){ var sendText = signal.value; var sendSene = sene.value; var nom = nom.value; var skin1 = skin1.value; var fapen = fapen.value; var hapenskin = hapenskin.value; var perso2 = perso2.value; var skin2 = skin2.value; var perso3 = perso3.value; var skin3 = skin3.value; var perso4 = perso4.value; var skin4 = skin4.value; var opt1 = opt1.value; var opt2 = opt2.value; var opt3 = opt3.value; var bonus1 = bonus1.value; var bonus12 = bonus12.value; var bonus2 = bonus2.value; var bonus22 = bonus22.value; var malus1 = malus1.value; var malus12 = malus12.value; var malus2 = malus2.value; var malus22 = malus22.value; window.document.myFlash.SetVariable("myVar", sendText); window.document.myFlash.SetVariable("sene", sendSene); window.document.myFlash.SetVariable("skin1", skin1); window.document.myFlash.SetVariable("var1", nom); window.document.myFlash.SetVariable("fapen", fapen); window.document.myFlash.SetVariable("hapenskin", hapenskin); window.document.myFlash.SetVariable("perso2", perso2); window.document.myFlash.SetVariable("perso3", perso3); window.document.myFlash.SetVariable("perso4", perso4); window.document.myFlash.SetVariable("skin2", skin2); window.document.myFlash.SetVariable("skin3", skin3); window.document.myFlash.SetVariable("skin4", skin4); window.document.myFlash.SetVariable("opt2", opt2); window.document.myFlash.SetVariable("opt3", opt3); window.document.myFlash.SetVariable("opt1", opt1); window.document.myFlash.SetVariable("bonus1", bonus1); window.document.myFlash.SetVariable("bonus2", bonus2); window.document.myFlash.SetVariable("bonus12", bonus12); window.document.myFlash.SetVariable("bonus22", bonus22); window.document.myFlash.SetVariable("malus1", malus1); window.document.myFlash.SetVariable("malus2", malus2); window.document.myFlash.SetVariable("malus12", malus12); window.document.myFlash.SetVariable("malus22", malus22); } //v1.7 // Flash Player Version Detection // Detect Client Browser type // Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion() { var version; var axo; var e; // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry try { // version will be set for 7.X or greater players axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); } catch (e) { } if (!version) { try { // version will be set for 6.X players only axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); // installed player is some revision of 6.0 // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, // so we have to be careful. // default to the first public version version = "WIN 6,0,21,0"; // throws if AllowScripAccess does not exist (introduced in 6.0r47) axo.AllowScriptAccess = "always"; // safe to call for 6.0r47 or greater version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 4.X or 5.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 3.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; } catch (e) { } } if (!version) { try { // version will be set for 2.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; } catch (e) { version = -1; } } return version; } // JavaScript helper required to detect Flash Player PlugIn version information function GetSwfVer(){ // NS/Opera version >= 3 check for Flash plugin in plugin array var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; var versionRevision = descArray[3]; if (versionRevision == "") { versionRevision = descArray[4]; } if (versionRevision[0] == "d") { versionRevision = versionRevision.substring(1); } else if (versionRevision[0] == "r") { versionRevision = versionRevision.substring(1); if (versionRevision.indexOf("d") > 0) { versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); } } var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) { flashVer = ControlVersion(); } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { versionStr = GetSwfVer(); if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { // Given "WIN 2,0,0,11" tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] tempString = tempArray[1]; // "2,0,0,11" versionArray = tempString.split(","); // ['2', '0', '0', '11'] } else { versionArray = versionStr.split("."); } var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; // is the major.revision >= requested major.revision AND the minor version >= requested minor if (versionMajor > parseFloat(reqMajorVer)) { return true; } else if (versionMajor == parseFloat(reqMajorVer)) { if (versionMinor > parseFloat(reqMinorVer)) return true; else if (versionMinor == parseFloat(reqMinorVer)) { if (versionRevision >= parseFloat(reqRevision)) return true; } } return false; } } function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += '<object '; for (var i in objAttrs) { str += i + '="' + objAttrs[i] + '" '; } str += '>'; for (var i in params) { str += '<param name="' + i + '" value="' + params[i] + '" /> '; } str += '</object>'; } else { str += '<embed '; for (var i in embedAttrs) { str += i + '="' + embedAttrs[i] + '" '; } str += '> </embed>'; } document.write(str); } function AC_FL_RunContent(){ var ret = AC_GetArgs ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_SW_RunContent(){ var ret = AC_GetArgs ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_GetArgs(args, ext, srcParamName, classid, mimeType){ var ret = new Object(); ret.embedAttrs = new Object(); ret.params = new Object(); ret.objAttrs = new Object(); for (var i=0; i < args.length; i=i+2){ var currArg = args[i].toLowerCase(); switch (currArg){ case "classid": break; case "pluginspage": ret.embedAttrs[args[i]] = args[i+1]; break; case "src": case "movie": args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.params[srcParamName] = args[i+1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblClick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": case "id": ret.objAttrs[args[i]] = args[i+1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "tabindex": ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1]; break; default: ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1]; } } ret.objAttrs["classid"] = classid; if (mimeType) ret.embedAttrs["type"] = mimeType; return ret; } //v1.7 // Flash Player Version Detection // Detect Client Browser type // Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion() { var version; var axo; var e; // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry try { // version will be set for 7.X or greater players axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); } catch (e) { } if (!version) { try { // version will be set for 6.X players only axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); // installed player is some revision of 6.0 // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, // so we have to be careful. // default to the first public version version = "WIN 6,0,21,0"; // throws if AllowScripAccess does not exist (introduced in 6.0r47) axo.AllowScriptAccess = "always"; // safe to call for 6.0r47 or greater version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 4.X or 5.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); } catch (e) { } } if (!version) { try { // version will be set for 3.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; } catch (e) { } } if (!version) { try { // version will be set for 2.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; } catch (e) { version = -1; } } return version; } // JavaScript helper required to detect Flash Player PlugIn version information function GetSwfVer(){ // NS/Opera version >= 3 check for Flash plugin in plugin array var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; var versionRevision = descArray[3]; if (versionRevision == "") { versionRevision = descArray[4]; } if (versionRevision[0] == "d") { versionRevision = versionRevision.substring(1); } else if (versionRevision[0] == "r") { versionRevision = versionRevision.substring(1); if (versionRevision.indexOf("d") > 0) { versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); } } var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) { flashVer = ControlVersion(); } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { versionStr = GetSwfVer(); if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { // Given "WIN 2,0,0,11" tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] tempString = tempArray[1]; // "2,0,0,11" versionArray = tempString.split(","); // ['2', '0', '0', '11'] } else { versionArray = versionStr.split("."); } var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; // is the major.revision >= requested major.revision AND the minor version >= requested minor if (versionMajor > parseFloat(reqMajorVer)) { return true; } else if (versionMajor == parseFloat(reqMajorVer)) { if (versionMinor > parseFloat(reqMinorVer)) return true; else if (versionMinor == parseFloat(reqMinorVer)) { if (versionRevision >= parseFloat(reqRevision)) return true; } } return false; } } function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += '<object '; for (var i in objAttrs) { str += i + '="' + objAttrs[i] + '" '; } str += '>'; for (var i in params) { str += '<param name="' + i + '" value="' + params[i] + '" /> '; } str += '</object>'; } else { str += '<embed '; for (var i in embedAttrs) { str += i + '="' + embedAttrs[i] + '" '; } str += '> </embed>'; } document.write(str); } function AC_FL_RunContent(){ var ret = AC_GetArgs ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_SW_RunContent(){ var ret = AC_GetArgs ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_GetArgs(args, ext, srcParamName, classid, mimeType){ var ret = new Object(); ret.embedAttrs = new Object(); ret.params = new Object(); ret.objAttrs = new Object(); for (var i=0; i < args.length; i=i+2){ var currArg = args[i].toLowerCase(); switch (currArg){ case "classid": break; case "pluginspage": ret.embedAttrs[args[i]] = args[i+1]; break; case "src": case "movie": args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.params[srcParamName] = args[i+1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblClick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": case "id": ret.objAttrs[args[i]] = args[i+1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "tabindex": ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1]; break; default: ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1]; } } ret.objAttrs["classid"] = classid; if (mimeType) ret.embedAttrs["type"] = mimeType; return ret; }
const readline = require('readline'); const reader = readline.createInterface({ input: process.stdin, output: process.stdout, }); reader.question("Password: ", function(input){ input.toUpperCase() input.toLowerCase() //input = Number() console.log(`${input.length} characters used`) if (input.length >= 10){ //input.toUpperCase(); console.log(`Password created Successfully`); } else { console.log('Password Failed: Please enter atleast 10 characters') } reader.close() // This line closes the connection to the command line interface.- });
import './App.css'; import React from "react"; import {Switch, Route, Link} from "react-router-dom"; import "bootstrap/dist/css/bootstrap.min.css"; import Home from "./components/Home"; import LoginComponent from "./components/Login"; import SignupComponent from "./components/Signup"; import ProfileComponent from "./components/Profile"; import UploadComponent from "./components/Upload"; import PlanComponent from "./components/Plan"; import CheckoutComponent from "./components/Checkout"; export default class App extends React.Component{ constructor(props) { super(props); this.state = { currentUser: null } } componentDidMount() { this.setState({redirect: false}) const cookie = JSON.parse(localStorage.getItem('cookie')); if (cookie) { this.setState({ currentUser: cookie, }) } } logOut = () => { localStorage.removeItem("cookie"); } render() { const {currentUser} = this.state; return ( <div> <nav className="navbar navbar-expand navbar-dark bg-dark"> <Link to={"/"} className="navbar-brand"> Interview </Link> <div className="navbar-nav mr-auto"> <li className="nav-item"> <Link to={"/home"} className="nav-link"> Home </Link> </li> {currentUser && ( <li className="nav-item"> <Link to={"/profile"} className="nav-link"> Profile </Link> </li> )} <li className="nav-item"> <Link to={"/plan"} className="nav-link"> Plan </Link> </li> {currentUser && ( <li className="nav-item"> <Link to={"/upload"} className="nav-link"> Upload </Link> </li> )} </div> {currentUser ? ( <div className="navbar-nav ml-auto"> <li className="nav-item"> <Link to={"/profile"} className="nav-link"> {currentUser.username} </Link> </li> <li className="nav-item"> <a href="/login" className="nav-link" onClick={() => this.logOut()}> LogOut </a> </li> </div> ) : ( <div className="navbar-nav ml-auto"> <li className="nav-item"> <Link to={"/login"} className="nav-link"> Login </Link> </li> <li className="nav-item"> <Link to={"/signup"} className="nav-link"> Sign Up </Link> </li> </div> )} </nav> <div className="container mt-3"> <Switch> <Route exact path={["/", "/home"]} component={Home}/> <Route exact path="/login" component={LoginComponent}/> <Route exact path="/signup" component={SignupComponent}/> <Route exact path="/profile" component={ProfileComponent}/> <Route exact path="/upload" component={UploadComponent}/> <Route exact path="/plan" component={PlanComponent}/> <Route path="/checkout/:id" component={CheckoutComponent}/> </Switch> </div> </div> ); } }
/* * To run this test : livre/fiche/selection */ function livre_fiche_selection() { my = livre_fiche_selection my.specs = "Test de la sélection/déselection d'une fiche."+ "\nLe test se fait dans tous les cas : avec touche majuscule ou non" my.step_list = [ ["Existence des méthodes et propriétés utiles", FicheSelect_Methods_et_properties], ["Test de la sélection simple d'une fiche (sans sélection)", FicheSelect_Test_simple], ["Test de la sélection simple d'une fiche (avec autre sélection)", FicheSelect_Test_simple_avec_autre_selection], ["Test de la sélection multiple de fiches", FicheSelect_Test_selection_multiple] ] switch(my.step) { case "/* step name */": /* test */ break default: pending("Step '"+my.step+"' should be implanted") } } function FicheSelect_Methods_et_properties() { blue("Pour `FICHES`") APP.FICHES.init_all 'FICHES'.should.have.property('init_all') 'FICHES'.should.have.property('selecteds') 'FICHES.selecteds'.should = {} 'FICHES'.should.have.property('current') 'FICHES.current'.should.be.null 'FICHES'.should.respond_to('add_selected') 'FICHES'.should.respond_to('remove_selected') blue("Pour la classe `Fiche`") APP.ifiche = new APP.Fiche() var props = [ 'selected' ] L(props).each(function(prop){ 'ifiche'.should.have.property(prop)}) var methods = [ 'toggle_select' ] L(methods).each(function(method){ 'Fiche.prototype'.should.respond_to(method)}) } function FicheSelect_Test_simple() { specs("Test de la simple sélection d'une fiche."+ "\nOn vérifie d'abord les méthodes (test unitaire) puis on procède ensuite à "+ "la sélection/déselection de la fiche par clic (test intégration).") APP.FICHES.init_all APP.ipage = new APP.Page() var page = APP.ipage page.create jq(page.jid).should.be.visible // OK, la fiche a bien été créée 'FICHES.current'.should.be.null 'FICHES.selecteds'.should = {} w("Je `toggle_select` la fiche") page.toggle_select({shiftKey:false}) // <-- TEST 'FICHES.current'.should = page ; ('FICHES.selecteds['+page.id+']').should = page jq(page.jid).should.have.class('selected') 'ipage.selected'.should.be.true // TODO Vérifier la couleur de la fiche (exergue) w("Je `toggle_select` à nouveau la fiche (ça ne doit rien changer)") page.toggle_select({shiftKey:false}) // <-- TEST 'FICHES.current'.should = page ; ('FICHES.selecteds['+page.id+']').should = page jq(page.jid).should.have.class('selected') 'ipage.selected'.should.be.true w("Je `toggle_select` la fiche, mais avec la touche Majuscule appuyée") page.toggle_select({shiftKey:true}) // <-- TEST 'FICHES.current'.should.be.null 'FICHES.selecteds'.should = {} jq(page.jid).should_not.have.class('selected') 'ipage.selected'.should.be.false //@note: la dernière fiche doit toujours régler FICHES.current } function FicheSelect_Test_simple_avec_autre_selection() { pending("À implémenter") } function FicheSelect_Test_selection_multiple() { pending("À implémenter") }
Page({ data: { amount:"" }, onLoad: function () { var that = this; wx.getSystemInfo({ success: function(res) { } }); this.setData({ balance: getApp().globalData.balance }) }, setAmount: function(e){ console.log(e) this.data.amount = e.detail.value; }, withdraw: function () { var that = this; var params = {}; params["amount"] = that.data.amount; params["openid"] = getApp().globalData.openid; wx.request({ url: getApp().config.host + "/withdraw_money", data: params, method: "POST", header: { "Content-Type": "application/x-www-form-urlencoded", "token": getApp().globalData.userInfo.token }, success: function (res) { if (res.data.code != 0) { wx.showToast({ title: res.data.msg, icon: 'error', duration: 1000 }) return } wx.showToast({ title: res.data.msg, icon: 'error', duration: 1000 }) wx.navigateBack({ }) } }) }, });
/** * Controller for the Sharingear Your gear dashboard page view. * @author: Chris Hjorth */ /*jslint node: true */ 'use strict'; var _ = require('underscore'), $ = require('jquery'), Config = require('../config.js'), ViewController = require('../viewcontroller.js'), App = require('../app.js'), GearList = require('../models/gearlist.js'), gearBlockID = 'yourgear-gear-block'; function DashboardYourGear(options) { ViewController.call(this, options); } DashboardYourGear.prototype = new ViewController(); DashboardYourGear.prototype.didInitialize = function() { var view = this; view.gearList = new GearList({ rootURL: Config.API_URL }); view.gearList.initialize(); view.gearList.getUserGear(App.user.data.id, function() { view.render(); }); this.setTitle('Sharingear Dashboard - Your gear'); this.setDescription('An overview of all your gear listed on Sharingear.'); }; DashboardYourGear.prototype.didRender = function() { if (App.rootVC !== null && App.rootVC.header) { App.rootVC.header.setTitle('Your gear'); } if (this.gearList.data.length > 0) { this.populateYourGear(); } else { $('#' + gearBlockID, this.$element).append('You haven\'t listed any gear yet!'); } this.setupEvent('click', '#dashboard-yourgear-add-btn', this, this.handleAddGear); this.setupEvent('click', '.yourgear-item-edit-btn', this, this.handleEditGearItem); }; DashboardYourGear.prototype.populateYourGear = function(callback) { var view = this, handleImageLoad, YourGearItemTemplate; YourGearItemTemplate = require('../../templates/yourgear-item.html'); var yourGearItemTemplate = _.template(YourGearItemTemplate), yourGear = view.gearList.data, $gearBlock, defaultGear, gear, i, $gearItem; $gearBlock = $('#' + gearBlockID, view.$element); handleImageLoad = function() { if (this.width < this.height) { $('.gear-item-' + this.resultNum).addClass('search-result-gear-vertical'); } else { $('.gear-item-' + this.resultNum).addClass('search-result-gear-horizontal'); } }; for (i = 0; i < yourGear.length; i++) { defaultGear = { id: null, gear_type: '', subtype: '', brand: '', model: '', description: '', img_url: 'images/placeholder_grey.png', price_a: 0, price_b: 0, price_c: 0, owner_id: null, gear_status: 'unavailable' }; gear = yourGear[i]; _.extend(defaultGear, gear.data); if (defaultGear.images.length > 0) { defaultGear.img_url = defaultGear.images.split(',')[0]; } $gearItem = $(yourGearItemTemplate(defaultGear)); //Add unique class for every image $('.sg-bg-image', $gearItem).addClass('gear-item-' + i); // Create an image object var img = new Image(); img.resultNum = i; //Get thumbURL from the imageURL var thumbURL, imgName, imgNameComponents, imgExt, imageURL; imageURL = defaultGear.img_url; thumbURL = imageURL.split('/'); imgName = thumbURL.pop(); thumbURL = thumbURL.join('/'); imgNameComponents = imgName.split('.'); imgName = imgNameComponents[0]; imgExt = imgNameComponents[1]; if (window.window.devicePixelRatio > 1) { thumbURL = thumbURL + '/' + imgName + '_thumb@2x.' + imgExt; } else { thumbURL = thumbURL + '/' + imgName + '_thumb.' + imgExt; } //Assign the img source to the the thumbURL $('.sg-bg-image', $gearItem).css({ 'background-image': 'url("' + thumbURL + '")' }); img.alt = 'Thumb image of a ' + gear.data.brand + ' ' + gear.data.model + ' ' + gear.data.subtype; img.src = thumbURL; //Make the pictures fit the boxes img.onload = handleImageLoad; $gearBlock.append($gearItem); } if (callback && typeof callback === 'function') { callback(); } }; DashboardYourGear.prototype.handleAddGear = function() { App.router.openModalView('addgear'); }; DashboardYourGear.prototype.handleEditGearItem = function(event) { var view = event.data, gear; gear = view.gearList.getGearItem('id', $(this).data('yourgearid')); App.router.openModalView('editgear', gear); }; module.exports = DashboardYourGear;
import React, { useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import './modal-create.css'; import InvSearch from './InvSearch.jsx'; import CreateItem from './CreateItem.jsx'; const CreatePortfolio = ({ open, setOpen }) => { if (!open) return null; const [selected, setSelected] = useState([]); const [username, setUsername] = useState(''); const [name, setName] = useState(''); const [risk, setRisk] = useState(''); const [thesis, setThesis] = useState(''); const [totalValue, setTotalValue] = useState(0); const handleSelection = (selection) => { const invName = { symbol: selection.symbol, name: selection.name, exchange: selection.exchangeShortName, }; axios.get(`/quote/${selection.symbol}`) .then((quote) => { invName.name = quote.data.name; const invQuote = { price: quote.data.price, dayChange: Math.round((quote.data.change * 100)) / 100, dayChangePct: Math.round((quote.data.changesPercentage * 100)) / 100, }; const newInv = { ...invName, ...invQuote }; setSelected([newInv, ...selected]); }) .catch((err) => { console.log(err); }); }; const changeShares = (num, selectionSymbol) => { let newSelected = [...selected]; for (let i = 0; i < newSelected.length; i += 1) { if (newSelected[i].symbol === selectionSymbol) { newSelected[i].numberOfShares = num; newSelected[i].marketValue = Math.round((num * newSelected[i].price * 100)) / 100; break; } } setSelected(newSelected); }; const handleCreate = (event) => { event.preventDefault(); const portfolioObj = { name, username, risk, thesis, totalValue, holdings: selected, }; axios.post('/portfolios', portfolioObj) .then((res) => { console.log(res); }) .catch((err) => { console.log(err); }); setOpen(false); }; useEffect(() => { let newValue = 0; selected.forEach((selection) => { newValue += selection.marketValue; }); setTotalValue(Math.round(newValue * 100) / 100); }, [selected]); return ReactDOM.createPortal( <> <div className="modal-overlay" /> <div className="modal-window"> <div className="create-bar"> <button type="button" className="btn-close-create" onClick={() => setOpen(false)}>X</button> <div className="create-window-title">Create Portfolio</div> </div> <div className="create-form-ctr"> <p className="create-directions">Construct your model portfolio by adding investments. Select one of the risk/reward profiles and give reasoning to your selections.</p> <form className="create-form" onSubmit={handleCreate}> <div className="username"> <label htmlFor="username">Username: </label> <input name="username" required onChange={(e) => setUsername(e.target.value)} /> </div> <div className="name"> <label htmlFor="name">Portfolio Name: </label> <input name="name" required onChange={(e) => setName(e.target.value)} /> </div> <InvSearch handleSelection={handleSelection} /> <div className="create-list"> <div className="create-titles"> <div className="create-col1">Symbol</div> <div className="create-col2">Holding</div> <div className="create-col3">No. of Shares</div> <div className="create-col4">Price</div> <div className="create-col5">Day Change</div> <div className="create-col6">Market Value</div> </div> {selected.map(selection => ( <CreateItem key={selection.symbol} selection={selection} changeShares={changeShares} /> ))} <div className="create-totals"> <div className="create-col1"></div> <div className="create-col2"></div> <div className="create-col3"></div> <div className="create-col4"></div> <div className="create-col5"></div> <div className="create-total-val create-col6">{`$${totalValue}`}</div> </div> </div> <div className="risk" onChange={(e) => setRisk(e.target.value)}> <label className="risk-label" htmlFor="risk">Risk Tolerance: </label> <input name="risk" type="radio" value="1" required /> Conservative <input name="risk" type="radio" value="2" /> Moderate Conservative <input name="risk" type="radio" value="3" /> Moderate <input name="risk" type="radio" value="4" /> Moderate Growth <input name="risk" type="radio" value="5" /> Moderate Aggressive <input name="risk" type="radio" value="6" /> Aggressive Growth </div> <div className="thesis-ctr"> <label className="thesis-label" htmlFor="thesis">Rationale: </label> <textarea className="thesis-textarea" name="thesis" required onChange={(e) => setThesis(e.target.value)} /> </div> <button className="create-submit" type="submit">Create</button> </form> </div> </div> </>, document.getElementById('app'), ); }; export default CreatePortfolio;
import React from 'react'; export default React.createClass({ getTitle: function() { return this.props.title; }, render: function() { return <div className="Bottle"> <h3>{this.getTitle()}</h3> </div> } });
import Promise from './promise'; export default function deferred () { let deferred = {}; deferred.promise = new Promise(function(resolve, reject) { deferred.resolve = resolve; deferred.reject = reject; }); return deferred; };