Skip to content

Instantly share code, notes, and snippets.

//if set to appear
// if displayed, return false
// else start appearing
//else
// if displayed, start disappearing
// else return false
var https = require('https');
var options = {
hostname: 'gbfs.bcycle.com',
port: 443,
path: '/bcycle_pacersbikeshare/station_information.json',
method: 'GET'
};
//if appearing (boolean) has NOT changed
if (!(nextProps.dropZone.appearing ^ dropZone.appearing)) { return false }
define(function () {
return {
'layout_A': {
slots: {},
content: '',
meta: {
layoutOptions: {
type: 'layout_A',
spacing: 6,
rows: [
import React from 'react'
import { render } from 'react-dom'
import HTML5Backend from 'react-dnd-html5-backend'
import { DragDropContext, DropTarget } from 'react-dnd'
import ReactTransitionGroup from 'react-addons-transition-group'
@DragDropContext(HTML5Backend)
class App extends React.Component {
constructor() {
// import 'babel-core/polyfill' //i guess this needs to be first?
import './index.html'
import './favicon.ico'
import 'react-bootstrap'
import 'bootstrap/dist/css/bootstrap.css'
import './index.less'
// import 'babel-core/polyfill' //i guess this needs to be first?
import './index.html'
import './favicon.ico'
import 'react-bootstrap'
import 'bootstrap/dist/css/bootstrap.css'
import './index.less'
import React from 'react'
import { render } from 'react-dom'
import HTML5Backend from 'react-dnd-html5-backend'
import { DragDropContext, DropTarget } from 'react-dnd'
import ReactTransitionGroup from 'react-addons-transition-group'
@DragDropContext(HTML5Backend)
class App extends React.Component {
constructor() {
reference: function (e, r) {
var self = this;
// the different types of references below
var fullSelector = '[data-reference-type~="full"]';// full replacement
var innerSelector = '[data-reference-type~="inner"]';// replace with inner
var attrSelector = '[data-reference-type~="attributes"]';// replace attributes
var nullSelector = '[data-reference-type="none"]';// remove
$.each(r.find(attrSelector).addBack(attrSelector), function (i, attr) {
this.$el.find('.geartabselement').geartabs('setTarget', this.target);
this.$el.find('.geartabselement').geartabs('selectTab', 'content');
if (this.gearView.gear && this.gearView.gear.id && this.gearView.gear.assetType !== 'image') {
this.saveAndUpdate.removeClass('disabled');
} else {
this.saveAndUpdate.addClass('disabled');
}
if (this.gearView.gear) {