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
// Load required packages | |
var fs = require('fs'); | |
var csv = require('csv'); | |
var async = require('async'); | |
var angel = require('angellist'); | |
var json2csv = require('json2csv'); | |
// Set this to your AngelList params for your registered application | |
var clientID = ''; | |
var clientSecret = ''; |
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 config = require('./config'), | |
request = require('request'), | |
urlHelper = require('./util/url_helper'); | |
function init(clientID, secret) { | |
config.clientID = clientID; | |
config.secret = secret; | |
} | |
function setAccessToken(token) { |
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
/** | |
* Libraries | |
*/ | |
// Default | |
var request = require('request'); | |
var fs = require('fs'); | |
var async = require('async'); | |
// CSV |
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
SELECT current AS Agency, | |
(count(current)/37*100) AS Percent | |
FROM UtahAgencyEmployees | |
WHERE latest_education_major = 'Graphic Design' | |
GROUP BY current | |
ORDER BY Percent DESC | |
LIMIT 20 |
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
SELECT skill, | |
count(*) as count | |
FROM EmployeeSkills | |
WHERE skill != '' | |
GROUP BY skill | |
ORDER BY Count DESC | |
Limit 20 |
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
SELECT latest_education_major AS Major, | |
count(latest_education_major) AS Employees | |
FROM UtahAgencyEmployees | |
WHERE latest_education_major != '' | |
GROUP BY latest_education_major | |
ORDER BY Employees DESC | |
LIMIT 20 |
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
SELECT education AS School, | |
count(education) AS Employees | |
FROM UtahAgencyEmployees | |
WHERE education != '' | |
GROUP BY education | |
ORDER BY Employees DESC | |
LIMIT 20 |
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
SELECT current, | |
avg(monthsTenure) as monthsTenure | |
FROM UtahAgencyEmployees | |
WHERE current != '' AND monthsTenure < 73 | |
GROUP BY current | |
HAVING count(*) > 2 | |
ORDER BY monthsTenure DESC | |
LIMIT 20 |
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
<?php | |
setcookie('sptfrUser', 'eqc\gortiz'); | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>API Scenario</title> |
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
# Docker file to build a CentOS LAMP Stack | |
# (CentOS and Apache latest versions, PHP 5.6.16, mssql, freetds and wktmltopdf) | |
FROM centos:latest | |
MAINTAINER Marco Ramos <mramos29@sapo.pt> | |
# Environment Variables | |
# Install essential packages |
OlderNewer