Skip to content

Instantly share code, notes, and snippets.

ismaelc

Block or report user

Report or block ismaelc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View diabetes.csv
Pregnancies Glucose BloodPressure SkinThickness Insulin BMI DiabetesPedigreeFunction Age Outcome
4 183 0 0 0 28.4 0.212 36 1
5 162 104 0 0 37.7 0.151 52 1
2 197 70 99 0 34.7 0.575 62 1
13 158 114 0 0 42.3 0.257 44 1
0 162 76 56 100 53.2 0.759 25 1
0 57 60 0 0 21.7 0.735 67 0
0 101 76 0 0 35.7 0.198 26 0
1 90 62 18 59 25.1 1.268 25 0
5 117 86 30 105 39.1 0.251 42 0
View robotserver.js
// Set focus to app passed to URL
cmd.run(`open -a ${app}`);
setTimeout(function () {
// Execute after 2500
robot.moveMouse(x, y)
robot.mouseToggle("down");
setTimeout(function () {
// Execute after pressDuration 100ms
robot.mouseToggle("up");
View mouse.js
// Move the mouse across the screen as a sine wave.
var robot = require("robotjs");
// Speed up the mouse.
robot.setMouseDelay(2);
var twoPI = Math.PI * 2.0;
var screenSize = robot.getScreenSize();
var height = (screenSize.height / 2) - 10;
var width = screenSize.width;
View Itinerary_POST.json
{
"method": "POST",
"url": "https://www.concursolutions.com/api/travel/trip/v1.1",
"httpVersion": "HTTP/1.1",
"headers": [{
"name": "Authorization",
"value": "OAuth <token>"
}, {
"name": "Content-Type",
"value": "text/xml"
@ismaelc
ismaelc / Overhead Compartment Bin .js
Last active Aug 29, 2015
Rough quick demo for Thack Tnooz - Overhead Compartment Bin Map
View Overhead Compartment Bin .js
var express = require('express');
var app = express();
var seatMap = [
["O","X","Y","N"],
["Y","X","O","O"],
["N","X","Y","Y"],
["N","N","X","O"],
["O","X","Y","N"],
["Y","X","O","O"],
@ismaelc
ismaelc / ConcurAppRecommendation.js
Created Jun 10, 2015
Rough concept for app recommendation engine powered by Concur Itinerary
View ConcurAppRecommendation.js
var express = require('express');
var app = express();
var async = require('async');
var gplay = require('google-play-scraper');
var querystring = require('querystring');
var https = require('https');
app.set('port', (process.env.PORT || 5000));
@ismaelc
ismaelc / concurrevoke.json
Created May 14, 2015
Revoking access token APIEmbed HAR request object
View concurrevoke.json
{
"method": "POST",
"url": "https://www.concursolutions.com/net2/oauth2/revoketoken.ashx",
"queryString": [
{ "name": "token", "value": "<insert access token>" }
],
"headers": [
{ "name": "Accept", "value": "application/xml" },
{ "name": "Authorization", "value": "OAuth <insert access token>" }
]
View nexmo2.xml
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1">
<form>
<transfer name="result" dest="tel:+16192071673" bridge="true">
<prompt>Please wait while we transfer you.</prompt>
<grammar xml:lang="en-US" root = "TOPLEVEL" mode="voice">
<rule id="TOPLEVEL" scope="public">
<one-of>
<item> disconnect </item>
</one-of>
View nexmo.xml
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
<form>
<block>
<prompt>
Hello.
</prompt>
<audio src="http://www.freesfx.co.uk/rx2/mp3s/9/10778_1380921485.mp3"/>
<prompt xml:lang="es-mx-female">
Hola.
View Concur_Native_Flow.json
{
"method": "GET",
"url": "https://www.concursolutions.com/net2/oauth2/accesstoken.ashx",
"headers": [{
"name": "X-ConsumerKey",
"value": "o3G7Xb35ZCBAs88NSQpM3i"
},{
"name": "Authorization",
"value": "Basic Y2hyaXMuaXNtYWVsQGdtYWlsLmNvbTpqVm16SHc1Nyo="
},{
You can’t perform that action at this time.