This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint camelcase: false */ | |
define(['jquery', 'text!templates/spacingbox.html', 'underscore', 'backbone', 'moment', 'text!templates/spinbox.html', 'views/margin-view.js', 'views/padding-view.js', 'models/spacingbox-model', 'fusion-fuel'], | |
function ($, template, _, backbone, moment, spinboxTemplate, MarginView, PaddingView, SpacingBoxModel) { | |
void(backbone); // REMOVE - helps prevent "object not used" jslint errors until the object is used in code | |
void(moment); // REMOVE - helps prevent "object not used" jslint errors until the object is used in code | |
/** | |
@element Spacingbox | |
@description The margin and padding styling control. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Component } from 'react'; | |
import {connect} from 'react-redux'; | |
import Table from './Table'; | |
import TableColumns from './TableColumns'; | |
import TableRows from './TableRows'; | |
class TableContainer extends Component{ | |
render(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//parent.js | |
export default class Parent extends React.Component { | |
render() { | |
var somePropFromStore = this.prop.somePropFromStore | |
return <Child /> | |
} | |
} | |
//child.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//parent.js | |
export default class Parent extends React.Component { | |
childClicked = (data) => { | |
console.log('data from child:', data) | |
} | |
render() { | |
return <Child onClick={this.childClicked} } /> | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
export default class Map extends React.Component { | |
componentDidMount() { | |
// console.log('componentDidMount'); | |
initGoogleMap(this.refs.map) | |
} | |
render() { | |
return ( | |
<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gl () { | |
echo '-----------------------------------------------------------'; | |
if [[ $# = 0 ]]; then | |
git log --graph --decorate --oneline --all --max-count 25; | |
else | |
git log --graph --decorate --oneline --all --max-count $1; | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
// import BarChartExample from './components/BarChart'; | |
// import Pie from './components/PieChart'; | |
// import Scatter from './components/ScatterPlot'; | |
// import ZoomBar from './components/Bar_Zoom'; | |
// var d3 = require('d3'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assetType (contentitem-fusion-amd.js:274) | |
renderTableCell (contentitem-fusion-amd.js:1932) | |
_columnRenderer (contentrepeater…on-amd.js:1456) | |
renderColumn (fuelux-all.js:6499) | |
renderRow (fuelux-all.js:6676) | |
renderItem (fuelux-all.js:6413) | |
runRenderer (fuelux-all.js:5743) | |
(anonymous function) (fuelux-all.js:5631) | |
processDatasource (contentrepeater…on-amd.js:1359) | |
(anonymous function) (contentstore-amd.js:905) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import entities from 'entities' | |
import request from 'request' | |
import { OAUTH, URL } from './meetup' | |
export class MeetupOauth { | |
constructor(context) { | |
this.context = context | |
this._data = {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async getAccessToken() { | |
// log(this.context.meetup, 'meetup') | |
var authUri = 'https://secure.meetup.com/oauth2/authorize?client_id=sgeirri963sprv1a1vh3r8cp3o&response_type=token&scope=basic+event_management&redirect_uri=http://localhost:7000/authentication' | |
request.get({ | |
uri: authUri, | |
jar: true | |
}, (a,b, body) => { |