Skip to content

Instantly share code, notes, and snippets.

View naveenrobo's full-sized avatar
👋

Naveen Sakthivel naveenrobo

👋
View GitHub Profile
@naveenrobo
naveenrobo / filter.txt
Created September 21, 2017 11:53
AngularJS : We can use the value of the input field as an expression in a filter
<div ng-app="myApp" ng-controller="namesCtrl">
<p><input type="text" ng-model="test"></p>
<ul>
<li ng-repeat="x in names | filter : test">
{{ x }}
</li>
</ul>
@naveenrobo
naveenrobo / gist:87bf1e36f33386aa5973600886547a63
Created September 21, 2017 11:55
AngularJS : sorting - w3school
<div ng-app="myApp" ng-controller="namesCtrl">
<table border="1" width="100%">
<tr>
<th ng-click="orderByMe('name')">Name</th>
<th ng-click="orderByMe('country')">Country</th>
</tr>
<tr ng-repeat="x in names | orderBy:myOrderBy">
<td>{{x.name}}</td>
<td>{{x.country}}</td>
@naveenrobo
naveenrobo / angular-service.js
Created September 21, 2017 12:01
AngularJS : service - w3schools
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("welcome.htm").then(function (response) {
$scope.myWelcome = response.data;
});
});
Client Credentials - Business system interactions, where resources being operated in are owend by the partner, not a particular user
Resource owner password credentials - resources are owned bt a particular user and the requesting application is trusted.
Authorization code - owned bt particular user and requesting application is untrusted
implicit - resources are owned by partivular user and requesting applicaion is untrusted, browser0based app written in a scriting language such as javascript
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World');
})
var server = app.listen(8081, function () {
var host = server.address().address
var port = server.address().port
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="false" enabled="true" name="ExtractAddress">
<DisplayName>ExtractAddress</DisplayName>
<Properties/>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<JSONPayload>
<Variable name="address">
<JSONPath>$.results[0].formatted_address</JSONPath>
</Variable>
</JSONPayload>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RaiseFault async="false" continueOnError="false" enabled="true" name="RaiseFault">
<DisplayName>RaiseFault</DisplayName>
<Properties/>
<FaultResponse>
<Set>
<Headers/>
<Payload contentType="application/json" variablePrefix="@" variableSuffix="#">
{"error":"Internal Error", "path":"@proxy.pathsuffix#"}
</Payload>
<!-- Naveen Sakthivel -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
background-color: #ffffff;
margin: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js canvas - particles - waves</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: #000000;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="./js/Detector.js"></script>
<script src="./js/three.js"></script>
<script src="./js/loaders/LoaderSupport.js"></script>
<script src="./js/loaders/OBJLoader2.js"></script>
<script src="./js/controls/OrbitControls.js"></script>