Skip to content

Instantly share code, notes, and snippets.

View mtho11's full-sized avatar

Mike Thompson mtho11

  • Red Hat, Inc. (http://developers.redhat.com)
  • Klamath Falls, Oregon
View GitHub Profile
@lucasponce
lucasponce / full-stack-developer-setup.md
Last active March 2, 2020 19:16
Sharing my setup: How I develop on Kiali

Hi,

Kiali maintainers typically work on a full stack basis contributing into back-end and front-end repos.

Here I'm going to share some notes about my laptop setup that hope it may help to new maintainers to jump into the project and prepare your first PR.

The way you setup your workstation could be quite personal, so I don't think there are two Kiali maintainers sharing the same :-).

Hardware & Operating System

@japsu
japsu / README.md
Last active January 2, 2018 17:56
Type-safe Redux reducers in TypeScript using Immutable.js and typed-immutable-record

Type-safe Redux reducers in TypeScript using Immutable.js and typed-immutable-record

Copyright (C) 2017 Leonidas Oy Ltd
Written by <santtu.pajukanta@leonidasoy.fi>
Licensed under the MIT license

We attempt to harness the friendly API of Immutable.js to build Redux reducers while trying to preserve as much type safety as possible.

State branches are TypedRecords. A combineReducers that outputs TypedRecords is provided.

@coryhouse
coryhouse / ReactBindingApproaches.js
Last active May 4, 2019 18:12
React Binding Approaches
// Approach 1: Use React.createClass
var HelloWorld = React.createClass({
getInitialState() {
return { message: 'Hi' };
},
logMessage() {
// this magically works because React.createClass autobinds.
console.log(this.state.message);
},
@wellington1993
wellington1993 / A-Rails-Angular-install-node.sh
Last active April 4, 2018 08:37
Ubuntu instructions to install Node.js(+ npm) + AngularJS + YEOMAN + generator-angular + rbenv + Ruby + Rails-api - App Example: https://github.com/wellington1993/astronauta-test1-rails-angular
# Before this please install zsh and oh-my-zsh
apt-get install curl
#curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs vim htop git gitg
sudo add-apt-repository ppa:chris-lea/node.js
@btroncone
btroncone / ngrxintro.md
Last active June 26, 2024 08:27
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@danieldietrich
danieldietrich / FP_IN_JAVA.md
Last active December 6, 2015 17:43
A strong frame for functional programming in Java

A strong frame for functional programming in Java

Regarding functional programming in Java, the most important design rule is to avoid mutability. We use it only in places, where it makes sense and we use it internally, only, i.e. mutability does not leak to the outside as public API. Within the last years I deduced these three simple rules to achieve it:

Preamble

i. Don't try to create purely functional programs with Java. Simply spoken, Java is not the right language for that.

ii. It is most important to follow these rules consistently and make no exceptions other than stated.

@jkremser
jkremser / gist:119ac1ad8181abbd4ec1
Last active August 29, 2015 14:18
inventory REST api
# this is no longer valid because of the AuthN
create tenant
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "acme"}' http://127.0.0.1:8080/hawkular/inventory/tenants
create environment
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "prod"}' http://127.0.0.1:8080/hawkular/inventory/acme/environments
create resource type
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "URL", "version": "1.0"}' http://127.0.0.1:8080/hawkular/inventory/acme/resourceTypes
@mstruk
mstruk / Analytics.md
Last active August 29, 2015 14:13
Instructions for analytics

Analytics - Initial implementation

Building

Checkout rhq-metrics branch with analytics work from github.com/mstruk:

git clone https://github.com/mstruk/rhq-metrics.git

git checkout liveoak

@ericelliott
ericelliott / essential-javascript-links.md
Last active July 18, 2024 15:03
Essential JavaScript Links
@scottmcarthur
scottmcarthur / app.ts
Last active August 15, 2019 12:39
How to use AngularJS ng.resource.IResource with TypeScript.
/// <reference path="angular.d.ts" />
/// <reference path="angular-resource.d.ts" />
interface IEmployee extends ng.resource.IResource<IEmployee>
{
id: number;
firstName : string;
lastName : string;
}
interface IEmployeeResource extends ng.resource.IResourceClass<IEmployee>