Download this package
open terminal cd into this directory and run node app.js
| package com.mohammedlakkadshaw.ken; | |
| import java.util.Vector; | |
| import org.xml.sax.XMLReader; | |
| import android.text.Editable; | |
| import android.text.Html; | |
| import android.text.Spannable; | |
| import android.text.style.BulletSpan; |
| var data = [{model:"T", manufacturer: "ford"}, | |
| {model:"S", manufacturer:"tesla"}, | |
| {model:"r8", manufacturer:"audi"}, | |
| {model:"fiesta", manufacturer:"ford"}]; | |
| //Code to fetch all the ford cars | |
| var fordCars = _.where(data, {manufacturer: "ford"}); | |
| //output | |
| [{model:"fiesta", manufacturer:"ford"},{model:"T", manufacturer: "ford"}] |
| var data = ['a','b','c','a','s','b']; //This array contains duplicates | |
| _.uniq(data); | |
| //Ouput | |
| ['a','b','c','s','b'] //duplicates removed | |
| //Also works on array of objects | |
| var objs = [{name:"Samsung"}, {name: "LG"}, {name:"Sony"}, {name:"Samsung"}]; //contains duplicate objects | |
| _.uniq(objs); | |
| //output |
| var underscore = angular.module('underscore', []); | |
| underscore.factory('_', function() { | |
| return window._; // assumes underscore has already been loaded on the page | |
| }); |
| //Now we can inject underscoreJS in the controllers | |
| function MainCtrl($scope, _) { | |
| //using underscoreJS method | |
| _.max([1,2,3,4]); //It will return 4, which is the maximum value in the array | |
| } |
| Environment: | |
| Request Method: GET | |
| Request URL: http://localhost:8000/me/ | |
| Django Version: 1.7b4 | |
| Python Version: 2.7.5 | |
| Installed Applications: | |
| ('django.contrib.admin', |
| collaborativeLearningApp.service('screenShare', function($q, mainService) { | |
| var $scope = undefined; | |
| var that = this; | |
| this.socket = mainService.socket; | |
| this.getScope = function(s, room) { | |
| $scope = s; | |
| that.loadCount = 0; | |
| var countx = 0, | |
| county = 0; |
| (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mqtt = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| (function (process,global){ | |
| 'use strict'; | |
| /** | |
| * Module dependencies | |
| */ | |
| /*global setImmediate:true*/ | |
| var events = require('events'), | |
| Store = require('./store'), | |
| eos = require |
| #! /bin/bash | |
| export RUN_AS='sentry'; | |
| export INSTALL_DIR='/var/www/sentry'; | |
| HOSTNAME='http://mysentry.example.com'; # No trailing slash | |
| DB_HOST='something.rds.amazonaws.com'; | |
| DB_PORT='5432'; | |
| DB_USER='sentry'; | |
| DB_NAME='sentry'; | |
| DB_PASSWORD='DB_PASSWORD'; |