Skip to content

Instantly share code, notes, and snippets.

View shekhargulati's full-sized avatar

Shekhar Gulati shekhargulati

View GitHub Profile
@Filirom1
Filirom1 / README.md
Last active August 29, 2015 14:04
What happens when you create an application on OpenShift.

What happens when you create an application on OpenShift.

             __________                __________
            |          |     mco      |          |__
rhc ----->  |  Broker  |  --------->  |   Node   |  |__
            |__________| \            |__________|  |  |
                  /\     \  --------->   |__________|  |
                  |       \ --------->      |__________|
             _____|____ 

| |

@smarterclayton
smarterclayton / openshift_system_design_v3.md
Last active August 29, 2015 14:03
OpenShift 3.x System Design
@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@idosela
idosela / http-response-interceptor.js
Last active February 25, 2024 12:51
Sample code for ng-conf 2014
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;
<!-- on persistence.xml file -->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="pu" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>