This file contains hidden or 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 csv | |
| with open('log_transformed_truncated.csv', 'w') as outfile: | |
| c = csv.writer(outfile) | |
| counter = 0 | |
| with open('log_prepared_truncated.csv','rb') as f: | |
| for row in csv.reader(f, delimiter=','): | |
| counter = counter + 1 | |
| mod_row = [] | |
| if counter != 1: |
This file contains hidden or 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
| { | |
| "template" : "*", | |
| "settings" : { | |
| "analysis": { | |
| "analyzer": { | |
| "custom_keyword": { | |
| "type": "keyword" | |
| } | |
| } | |
| }, |
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # resolve symlinks | |
| # | |
| #### DV: START BUGFIX #### | |
| export JAVA_HOME=/usr/lib/jvm/default-java | |
| jdkhome=$JAVA_HOME | |
| #### DV: END BUGFIX #### |
This file contains hidden or 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
| db.find({ | |
| selector: { | |
| _id: {$gte: null}, | |
| name: {$regex: ".*ri.*"} | |
| }, | |
| fields: ['_id', 'debut', 'name', 'series'] | |
| }); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <title>Circles</title> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| margin: 0; |
This file contains hidden or 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
| classifier = skflow.TensorFlowEstimator(model_fn=conv_model, n_classes=outer_name+1, | |
| batch_size=10) | |
| # use a full grid over all parameters | |
| param_grid = {"steps": [1000, 1500, 2000, 2500, 3000], | |
| "learning_rate": [0.01, 0.03, 0.05, 0.08], | |
| "batch_size": [8, 10, 12]} | |
| # run grid search |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Installation script for the vlfeat module | |
| """ | |
| import numpy | |
| import sys, os | |
| from distutils.core import Extension, setup | |
| from distutils.errors import DistutilsFileError |
This file contains hidden or 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
| mLayout = findViewById(R.id.fullscreen_content); | |
| if (ContextCompat.checkSelfPermission(mContext, | |
| android.Manifest.permission.CAMERA) | |
| != PackageManager.PERMISSION_GRANTED) { | |
| // Should we show an explanation? | |
| if (ActivityCompat.shouldShowRequestPermissionRationale((Activity) mContext, | |
| android.Manifest.permission.CAMERA)) { |
This file contains hidden or 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
| #include "opencv2/opencv.hpp" | |
| #include "opencv2/videoio.hpp" | |
| #include "cv.h" | |
| #include "highgui.h" | |
| #include <iostream> | |
| #include <sstream> | |
| #include <unistd.h> | |
| using namespace std; | |
| using namespace cv; |
This file contains hidden or 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 ReactTable = React.createClass({ | |
| getInitialState: function() { | |
| return {currentData: this.props.data}; | |
| }, | |
| render: function() { | |
| var key = Date.now(); |