This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var request = require('request'); | |
var EventEmitter = require('events').EventEmitter; | |
var mime = require('mime'); | |
var util = require('util'); | |
function gmailResumableUpload() { | |
this.byteCount = 0; //init variables | |
this.tokens = {}; | |
this.filepath = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var request = require('request'); | |
var EventEmitter = require('events').EventEmitter; | |
var mime = require('mime'); | |
var util = require('util'); | |
function resumableUpload() { | |
this.byteCount = 0; //init variables | |
this.tokens = {}; | |
this.filepath = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.gridOptions.onRegisterApi = function (gridApi) { | |
SaveStateGridService.init(gridApi); | |
}; | |
<div | |
ui-grid="gridOptions" | |
ui-grid-save-state></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
var path = require('path'); | |
var url = require('url'); | |
var FormData = require('form-data'); | |
var IonicProject = require('./project'); | |
var Utils = require('./utils'); | |
var Q = require('q'); | |
var settings = require('./settings'); | |
var ioLib = require('./io-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongod --port 27017 --dbpath /data/db --replSet rs0 --smallfiles --oplogSize 128 | |
mongod --port 27018 --dbpath /data/db2 --replSet rs0 --smallfiles --oplogSize 128 | |
rs.initiate({_id:"rs0", members: [{"_id":1, "host":"127.0.0.1:27017"}]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var request = require('request'); | |
var async = require('async'); | |
var htmlparser = require("htmlparser2"); | |
var util = require('util'); | |
var fs = require('fs'); | |
var path = require('path'); | |
/** | |
* Because we use FREE Yandex Translate api, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install gcc-c++ openssl-devel make | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash | |
nvm install 4.4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('starter.controllers') | |
.controller('LoginCtrl', function ($scope, $state, DataCacheService, $rootScope, User, $ionicPopup, $translate, $ionicLoading, InitializeService) { | |
$rootScope.AAuser={password: '', email: ''}; | |
$scope.login=function () { | |
if ($rootScope.AAuser.password != null && $rootScope.AAuser.password.length >= 4) { | |
$ionicLoading.show(); | |
var loginData=$rootScope.AAuser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$translate Mock : | |
$translate=function (translation) { | |
return { | |
then: function (callback) { | |
var translated={}; | |
translation.map(function (transl) { | |
translated[transl]=transl; | |
}); | |
return callback(translated); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* A directive for adding google places autocomplete to a text box | |
* google places autocomplete info: https://developers.google.com/maps/documentation/javascript/places | |
* | |
* Usage: | |
* | |
* <input type="text" ng-autocomplete ng-model="autocomplete" options="options" details="details/> | |
* |
NewerOlder