Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
// MP 2: Due Sunday, Dec 16, 2012 at 11:59 p.m. PST | |
#include <wb.h> | |
#define wbCheck(stmt) do { \ | |
cudaError_t err = stmt; \ | |
if (err != cudaSuccess) { \ | |
wbLog(ERROR, "Failed to run stmt ", #stmt); \ | |
return -1; \ | |
} \ | |
} while(0) |
/* | |
* Screen Scraping Application (from Yahoo Weather) | |
* @author : Mohammad Arafath | |
* @email : [email protected] | |
* | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- name: install package openJDK 7 | |
apt: pkg=openjdk-7-jdk update_cache=yes | |
sudo: yes | |
- name: create archives folder | |
file: path=/home/vagrant/archives state=directory | |
- name: Download Tomcat 8 | |
get_url: url="http://apache.crihan.fr/dist/tomcat/tomcat-8/v8.0.0-RC1/bin/apache-tomcat-8.0.0-RC1.tar.gz" dest=/home/vagrant/archives/ | |
- name: Create tomcat directory | |
file: name=/opt/apache-tomcat owner=vagrant group=vagrant state=directory | |
sudo: yes |
#Create Group | |
# groupadd tomcat | |
# useradd -g tomcat -d /usrlocal/tomcat8 tomcat | |
# usermod -G www-data tomcat | |
# chown tomcat:tomcat /usrlocal/tomcat8 -R | |
# vim /etc/init.d/tomcat | |
#!/bin/sh |
import sys, cv2 | |
# Refactored https://realpython.com/blog/python/face-recognition-with-python/ | |
def cascade_detect(cascade, image): | |
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
return cascade.detectMultiScale( | |
gray_image, | |
scaleFactor = 1.15, | |
minNeighbors = 5, |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import urllib | |
import urllib2 | |
import httplib | |
import json | |
{ | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::bucket_name_here/*" |
################################################################################# | |
# Import modules | |
################################################################################# | |
import os | |
import time | |
import sys | |
import socket | |
import string |