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 logging | |
import argparse | |
import socket | |
import sys | |
import binascii | |
import struct | |
import array | |
import time | |
logging.basicConfig(level=logging.INFO,format='%(asctime)s %(levelname)-5s %(message)s', datefmt='%Y-%m-%d %I:%M:%S %p') |
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
item { | |
name: "none_of_the_above" | |
label: 0 | |
display_name: "background" | |
} | |
item { | |
name: "person" | |
label: 1 | |
display_name: "person" | |
} |
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
cur_dir=$(cd $( dirname ${BASH_SOURCE[0]} ) && pwd ) | |
root_dir="/workspace" | |
cd $root_dir | |
redo=1 | |
data_root_dir="/workspace/mydata/" | |
dataset_name="result" | |
mapfile="/workspace/data/VOC0712/labelmap_person.prototxt" | |
anno_type="detection" |
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
#!/bin/bash | |
root_dir="/workspace/mydata" | |
sub_dir="ImageSets/Main" | |
bash_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
for dataset in train test | |
do | |
dst_file=$bash_dir/$dataset.txt | |
if [ -f $dst_file ] | |
then |
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
c.NotebookApp.ip = '*' | |
c.NotebookApp.password = 'sha1:931d7c84b41e:fe983820617e2674b47a068bae46ae1d9fc85c35' | |
c.NotebookApp.open_browser = False | |
c.NotebookApp.port = 8888 |
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
package com.vm5.adplay; | |
/** | |
* Created by andy on 3/4/16. | |
*/ | |
public class viewcontroller { | |
void onCreate(){ | |
Request object = new Request(); | |
object.request(); |
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
package com.vm5.adplay; | |
import com.ext.loopj.android.http.AsyncHttpClient; | |
import com.ext.loopj.android.http.JsonHttpResponseHandler; | |
import org.apache.http.Header; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
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
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { | |
var cell : UITableViewCell? = tableView.dequeueReusableCellWithIdentifier("cellID")! as UITableViewCell | |
if(cell_== nil) | |
{ | |
cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "cellID") | |
} | |
cell.textLabel.text = array[array.count - indexPath.row - 1] | |
return cell; | |
} |
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 UIKit | |
class ViewController: UIViewController { | |
let brown:UIView = { | |
let view = UIView(frame: CGRectZero) | |
view.backgroundColor = UIColor.brownColor() | |
view.translatesAutoresizingMaskIntoConstraints = false | |
return view | |
}() |