Skip to content

Instantly share code, notes, and snippets.

<Select
onChange={ this.onChange }
value={this.state.selectedElement.name}
style={{ width: '150px'}}
>
{
this.state.elementsArray.map((element) => {
return (
<Option value={JSON.stringify(element)}>{element.name}</Option>
);
This is gist created from ubuntu
desctope, with the haste
application. Gist was edited.
This is gist created from ubuntu
desctope, with the haste
application.
declare module 'react-google-maps/lib/components/addons/MarkerClusterer' {
import { Component } from 'react'
export interface MarkerClustererProps {
defaultAverageCenter?: boolean
defaultBatchSizeIE?: number
defaultBatchSize?: number
defaultCalculator?: Calculator
defaultClusterClass?: string
defaultEnableRetinaIcons?: boolean
declare module 'react-google-maps/lib/components/addons/MarkerClusterer' {
import { Component } from 'react'
export interface MarkerClustererProps {
defaultAverageCenter?: boolean
defaultBatchSizeIE?: number
defaultBatchSize?: number
defaultCalculator?: any
defaultClusterClass?: string
defaultEnableRetinaIcons?: boolean
module UsersCrutchable
extend ActiveSupport::Concern
# included do
# has_many :taggings, as: :taggable
# has_many :tags, through: :taggings
# class_attribute :tag_limit
# end
@DemikGit
DemikGit / gist:1ad08c3ac47614b008a84862539059ae
Created March 29, 2017 14:01
Простой способ показать кому-нибудь код
Привет мир, я типо код
@user ➜ v2 rvm:(ruby-2.3.1) git:(master) rs
=> Booting Thin
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/user/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec': PG::UndefinedTable: ERROR: relation "tradein_car_documents" does not exist (ActiveRecord::StatementInvalid)
LINE 5: WHERE a.attrelid = '"tradein_car_documents"':...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),