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
{"Message":"Object reference not set to an instance of an object.","StackTrace":" at Comcast.Customer.BusinessClass.UI.Services.AccountService.GetOutageMessage()\r\n at Comcast.Customer.BusinessClass.UI.Services.AccountService.GetServiceStatus(String accountNumber)","ExceptionType":"System.NullReferenceException"} |
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
309.89x-4.02 | |
534.47x-6.91 | |
709.20x-7.31 | |
159.46x-3.62 | |
626.19x-6.96 | |
388.98x-7.28 | |
21.80x-4.82 | |
131.56x-4.65 | |
46.56x-4.70 | |
98.42x-5.51 |
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 worker | |
import ( | |
"sync" | |
) | |
type Worker struct { | |
n int | |
q chan func() error | |
d chan bool |
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
bool ReadFeatureDescriptors(const std::string& path, | |
std::vector<cv::KeyPoint>& keypoints, | |
cv::Mat& descriptors) { | |
cv::Mat img = cv::imread(path.c_str(), CV_LOAD_IMAGE_GRAYSCALE); | |
if (!img.data) { | |
return false; | |
} | |
cv::SurfFeatureDetector detector; | |
cv::SurfDescriptorExtractor extractor; |
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
void FindMatches( | |
std::vector<cv::DMatch>* matches, | |
cv::Mat& desc_a, | |
cv::Mat& desc_b, | |
float threshold) { | |
cv::FlannBasedMatcher matcher; | |
std::vector<cv::DMatch> all; | |
matcher.match(desc_a, desc_b, all); | |
float min = 1e6, max = -1e6; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) { | |
void* ptrs[9]; | |
// allocate 3 16 byte buffers. | |
for (int i = 0; i < 3; i++) { |
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
#!/usr/bin/env python3 | |
import math | |
def ex1(): | |
return '%0.3f' % (4 * math.pi * math.pow(5, 3) / 3.0) | |
def ex2(): | |
return '$%0.2f' % (60*(24.95 * (1 - 0.4)) + 3.00 + 0.75*59) |
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
def time_to_mins(t): | |
h, m = [int(x) for x in t.split(':')] | |
return h*60 + m |
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 math | |
print(4 * math.pi * math.pow(5, 3) / 3) | |
# run this with python3 ex2.4.py |
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
#!/usr/bin/env python2.7 | |
import optparse | |
import os | |
import subprocess | |
import sys | |
import tempfile | |
import time | |