Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am roconda on github.
  • I am timms (https://keybase.io/timms) on keybase.
  • I have a public key ASBTVvl6wwW_21QC1_RiZSoLUv825c8efWcq43_2WGRH4Ao

To claim this, I am signing this object:

04617d6fb8fd03c95dc4d9819de5601b8e0166f1fd1fbb2b92c9b78349a96d18950e1a8a04efdb396e98b1b9625aa5f06cf2830ce1c231f7880dca929feebaf10e
import { createStore, combineReducers } from 'redux'
import _name from './reducers'
export default function(data) {
var reducer = combineReducers(_name)
return createStore(store)
}
mport React from 'react'
import { Provider } from 'react-redux'
import { connect } from 'react-redux'
import Dashboard from './Dashboard'
export default class Application extends React.Component {
render() {
return(
<Provider store={this.props.store}>
{ () => <Dashboard store={this.props.store} /> }
@Roconda
Roconda / ambari_centos6_mysql.md
Created July 31, 2015 07:59
Ambari MySQL install on CentOS 6

Ambari uses a local postgres db by default. This page describes how to configure ambari-server with a local mysql server.

Install Ambari

Get the latest Ambari from the repository. Note that you should use the newest version listed on the documentation page.

Install the 3rd party repository:

cd /etc/yum.repos.d/
@Roconda
Roconda / gist:1d4bd5c48bc681e2172a
Created February 27, 2015 10:31
Slow down Android emulator's internet speed
$ telnet localhost 5554
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
network status
Current network status:
download speed: 0 bits/s (0.0 KB/s)
upload speed: 0 bits/s (0.0 KB/s)
class Blaat {
private TaskCompletionSource<Pion> _pionCompletion = new TaskCompletionSource<Pion>();
private void PionKlik(Pion item)
{
_pionCompletion.TrySetResult(item);
}
//spel.cs
public async Task<Pion> KiesPion(Func<Pion, bool> mogelijk)
{
@Roconda
Roconda / gist:4745216
Created February 9, 2013 12:53
reversed selectionsort
public void SelectionSort()
{
int HuidigePositie, HuidigeWaarde;
for (int I = 0 ; I < collection.Length - 1 ; I++)
{
HuidigePositie = I;
HuidigeWaarde = collection[I];
for (int J = collection.Length-1 ; J > I ; J--)
{
if (collection[J] < HuidigeWaarde)
server {
listen 80;
server_name <url>;
root /var/www/html;
location / {
@Roconda
Roconda / update-books.sh
Created September 24, 2012 22:59
Using this script to update my chef cookbooks
#!/bin/sh
# Author: Roconda
# Description: Script updates chef cookbooks by using git
# Only execute when in current directory
for e in `ls`
do
if [ -d $e ]; then
cd $e && git pull && cd ..
fi