I hereby claim:
- I am ghoshabhi on github.
- I am ghoshabhi (https://keybase.io/ghoshabhi) on keybase.
- I have a public key whose fingerprint is B7ED D3CC 306A 031F C5A3 B1A9 7810 3277 5C74 9BF4
To claim this, I am signing this object:
def sampleJoin(): | |
posts = Post.query(Post.is_draft == False).order(-Post.created) | |
all_users = User.query() | |
list_dict = [] | |
for p in posts: | |
p_dict = {} | |
for u in all_users: | |
if p.user == u.key: |
#!/usr/bin/env python | |
# | |
# Copyright 2007 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
I hereby claim:
To claim this, I am signing this object:
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import PropTypes from 'prop-types'; | |
import * as FilterListActions from './actions'; | |
import FilterList from '../../components/FiltersList'; | |
class FilterListContainer extends Component { | |
constructor(props) { | |
super(props); |
import * as types from './constants'; | |
export const setUserFilter = filterName => ({ | |
type: types.SET_USER_FILTER, | |
payload: filterName, | |
}); | |
export const removeUserFilter = filterName => ({ | |
type: types.REMOVE_USER_FILTER, | |
payload: filterName, |
import * as types from './constants'; | |
import { find, near } from './utils'; | |
export const initialState = { | |
selectedFilters: [], | |
find, | |
near, | |
}; | |
const filterListReducer = (state = initialState, action) => { |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import PropTypes from 'prop-types'; | |
import Section from 'grommet/components/Section'; | |
import Map from '../../components/Map'; | |
import * as MapActionCreators from './actions'; | |
// import icons from '../../assets/icons-util'; | |
import { find, near } from '../FilterContainer/utils'; |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import GoogleMap from 'google-map-react'; | |
import Section from 'grommet/components/Section'; | |
const Map = ({ center, zoom, onBoundsChange, onMapLoaded }) => ( | |
<Section pad="none" style={{ height: '500px' }}> | |
<GoogleMap | |
center={center} | |
zoom={zoom} |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import PropTypes from 'prop-types'; | |
import * as FilterListActions from './actions'; | |
import FilterList from '../../components/FiltersList'; | |
class FilterListContainer extends Component { | |
constructor(props) { | |
super(props); |
export const fetchByPostId = id => { | |
const data = API.getPostById(id); | |
return { | |
type: FETCH_POST_BY_ID, | |
payload: data, | |
} | |
} |