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
import weka.classifiers.Evaluation; | |
import weka.classifiers.bayes.NaiveBayes; | |
import weka.core.Instances; | |
import weka.core.Instance; | |
import weka.core.converters.ConverterUtils.DataSource; | |
import weka.core.Attribute; | |
import weka.core.DenseInstance; | |
import java.io.File; | |
import java.io.BufferedReader; |
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
import requests | |
import re | |
from requests.auth import HTTPBasicAuth | |
import time | |
import pyttsx | |
engine = pyttsx.init() | |
REFRESH_INTERVAL = 5 |
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
import scrapy | |
import re | |
class QuotesSpider(scrapy.Spider): | |
name = "microsoft" | |
custom_settings = { | |
# specifies exported fields and order | |
'FEED_EXPORT_FIELDS': ["url"], | |
} | |
f = open("input/test1.txt") |
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
/* Starts an APK download attempt */ | |
var MarketSession = { | |
/** | |
* Called when pressing the APK Downloader icon in the location bar. | |
*/ | |
download: function(packageName, versionCode, tabId) { | |
BrowserStorage.get(["account", "sim"], function(items) { | |
if (!items.account || !items.sim) { | |
//alert("Please setup your device in the Options page first"); | |
BrowserTabs.create({ |
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
unescape(s){ | |
return this.stripTags(this.s(s)).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); | |
} |
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
{% if "error" in RepoOutput[RepoName.index(repo)] %} | |
<td id="error"> {{ RepoOutput[RepoName.index(repo)] }} </td> | |
{% elif "Already" in RepoOutput[RepoName.index(repo) %} | |
<td id="good"> {{ RepoOutput[RepoName.index(repo)] }} </td> | |
{% else %} | |
<td id="error"> {{ RepoOutput[RepoName.index(repo)] }} </td> | |
{% endif %} | |
</tr> | |
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
#Original Author https://raw.githubusercontent.com/kgoedecke/python-ecs-example/master/python_ecs_example/deployment.py | |
import boto3 | |
import pprint | |
import os | |
# Credentials & Region | |
access_key = os.environ["AWS_ACCESS_KEY_ID"] | |
secret_key = os.environ["AWS_SECRET_ACCESS_KEY"] | |
region = "us-east-1" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[program:mlmodule] | |
command = /root/anaconda2/bin/gunicorn launcher:app -w 4 -b 0.0.0.0:6666 | |
directory = /datavolume/manuels_module | |
user = root | |
stdout_logfile = /datavolume/manuels_module/gunicorn_stdout.log | |
stderr_logfile = /datavolume/manuels_module/gunicorn_stderr.log | |
redirect_stderr = True |
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
http://cogcomp.org/Data/QA/QC/ |