Skip to content

Instantly share code, notes, and snippets.

View sjcotto's full-sized avatar

Santiago Cotto sjcotto

  • Delaware | Montevideo
View GitHub Profile
{
"a" : 1
}
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><DiscoverResponse xmlns="urn:schemas-microsoft-com:xml-analysis" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100="http://schemas.microsoft.com/analysisservices/2008/engine/100" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400"><return><root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:xsi="h
function isChatMessage(message) {
if (message.__x_isSentByMe) {
return false;
}
if (message.__x_isNotification) {
return false;
}
if (!message.__x_isUserCreatedType) {
return false;
}
root@colombia:/apps/imm_oracle# npm install
npm http GET https://registry.npmjs.org/oracledb
npm http 304 https://registry.npmjs.org/oracledb
npm WARN engine oracledb@1.8.0: wanted: {"node":">=0.10.28 <6"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
> oracledb@1.8.0 install /apps/imm_oracle/node_modules/oracledb
> node-gyp rebuild
@sjcotto
sjcotto / qrCode.js
Created May 5, 2016 20:07
Generate QR Code and save to mongodb
var json = {
email : "santiago@konacloud.io",
name : "Santiago Cotto"
};
var qr = require('qr-image');
var mongoose = require('mongoose');
var image = qr.imageSync(JSON.stringify(json), { type: 'png', size : 10 });
var Grid = require('gridfs');
@sjcotto
sjcotto / controllers.js
Created May 1, 2016 22:38
bower install angular-drag-and-drop-lists
$scope.dropCallback = function(event, index, item, external, type, allowedType) {
RestClient.post('benefits/' + item._id, {order : index}, function(err, result){
});
return item;
};
@sjcotto
sjcotto / controllers.js
Created May 1, 2016 22:38
angular drag and drop
$scope.dropCallback = function(event, index, item, external, type, allowedType) {
RestClient.post('benefits/' + item._id, {order : index}, function(err, result){
});
return item;
};
<html>
<head>
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
<body>
<ul id="storyUL">
</ul>
<html>
<head>
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
<body>
<ul id="storyUL">
</ul>
<html>
<head>
</head>
<body>
<script>
(function() {
if( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
window.location = "https://itunes.apple.com/us/app/flipflop/id1042371958?mt=8";
}else if( (navigator.userAgent.match(/Android/i)) ) {
window.location = "https://play.google.com/store/apps/details?id=com.appflipflop.flipflop";