Skip to content

Instantly share code, notes, and snippets.

View gugl's full-sized avatar

Günter Glück gugl

View GitHub Profile
mutation createClient(client: ClientInput!, organizationId: ID!) {
id
}
@gugl
gugl / gist:40f50ac5aa28cb38758b005b5bb5abaf
Created June 23, 2018 14:10
Files with the most changes in a git repository
git log --format=format: --name-only | egrep -v '^$' | sort | uniq -c | sort -r | head -5
@gugl
gugl / redux_store_tree_example.js
Last active October 20, 2015 11:59
Whats the best store tree structure so that it still make sense to use combineReducers?
var example = {
selectedTodoList: 'tl-1',
todosByTodoList: {
'tl-1': {
lastUpdated: 1439478405547,
items: ['t-1', 't-2']
}
},
attachmentsByTodo: {
't-1': {
@TaskListBox = React.createClass
getInitialState: ->
taskLists: []
componentDidMount: ->
$.ajax
url: this.props.url
dataType: 'json'
cache: false