Skip to content

Instantly share code, notes, and snippets.

View moorthi07's full-sized avatar

PV moorthi07

View GitHub Profile

A demonstration using the Adventureworks sample DB

One of the challenges facing users of a data warehouse is to understand how the different tables within the warehouse relate to each other.

A graph database can solve this problem easily if we copy the table and foreign key metadata into a Cypher script.

@moorthi07
moorthi07 / gist:7a481299d4299ff1d2223161ad816df9
Last active August 28, 2016 17:45
deployd mastercard api call inside validate event
exports.demandIn = function() {
var self = this;
self.port = process.env.PORT || 5500;
self.serverIp = process.env.serverIP;
console.log(self.serverIp);
if (typeof self.serverIp === "undefined" ) {
console.log("hhhhh....")
self.serverIp = "127.0.0.1";
}
@moorthi07
moorthi07 / gist:ce6821e0922245ce13f655f998616347
Last active September 16, 2016 22:28
Android takes 10 minutes to compile On windows 10
app.gradle, compile output - below.
--------------
apply plugin: 'com.android.application'
//apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion '22.0.0'
https://drive.google.com/file/d/0Bw2tQfFAGNE1blNSM1VXVXZBMTQ/view?usp=sharing
https://drive.google.com/open?id=0Bw2tQfFAGNE1NjBOMGFNMWsyVEk
@moorthi07
moorthi07 / gist:07b19091ee446ceefa431da5a5f86d0a
Created July 10, 2017 06:27
VM10816:1 GET http://localhost:4204/node_modules/ace-builds/src-min/theme-clouds.js
VM10816:1 GET http://localhost:4204/node_modules/ace-builds/src-min/theme-clouds.js
t.loadScript @ VM10816:1
t.loadModule @ VM10816:1
setTheme @ VM10816:1
setTheme @ VM10816:1
set @ directive.ts:85
updateProp @ core.es5.js:10966
checkAndUpdateDirectiveInline @ core.es5.js:10671
checkAndUpdateNodeInline @ core.es5.js:12084
checkAndUpdateNode @ core.es5.js:12052
@moorthi07
moorthi07 / azure_appservice_errors
Last active October 23, 2017 18:35
appservice azure errors
npm install: @ console : wwwroot:
npm WARN package.json assert@1.4.1 assert is also the name of a node core module.
npm WARN package.json bcrypt-pbkdf@1.0.1 No repository field.
npm WARN package.json buffer@4.9.1 buffer is also the name of a node core module.
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json events@1.1.1 events is also the name of a node core module.
npm WARN package.json has-binary@0.1.7 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm http GET https://registry.npmjs.org/mocha
@moorthi07
moorthi07 / dpd server.js
Created November 12, 2017 00:27
dpd server.js
// require deployd
var deployd = require('deployd');
var PORT=2403;
// configure database etc.
var server = deployd({
port: process.env.PORT || PORT,
env: process.env.ENV || 'development',
db: {
@moorthi07
moorthi07 / nativescript-tns-run-android
Last active December 29, 2017 22:00
nativescript tns run android for Angular app
C:\demo_tutorials\MyApaibot1>tns run android
Searching for devices...
Executing before-liveSync hook from C:\demo_tutorials\MyApaibot1\hooks\before-liveSync\nativescript-angular-sync.js
Copying template files...
\ Installing tns-androidInstalling tns-android
@moorthi07
moorthi07 / REACT REST Example
Last active January 26, 2019 21:45
REACTJS REST CALL WITH AXIO : UPDATE A SEARCH LIST
//demo.js
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import ListSubheader from "@material-ui/core/ListSubheader";
@moorthi07
moorthi07 / nginx-commands
Created June 20, 2020 18:53
nginx-commands
Site files: /var/www/site/
nginx site config files:root@localhost:/etc/nginx/sites-enabled# 
commands:
sudo chmod -R 0755 /var/www/svffi
egrep "(svm|vmx)" /proc/cpuinfo
 sudo systemctl restart nginx