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 cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
im = cv2.imread('IMG_3545S.JPG') | |
# convert to greyscale for easy thresholding | |
imgray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) | |
# get a threshold - basically splits the image into black and white |
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 pointerTagging | |
import ( | |
"testing" | |
) | |
func BenchmarkInitializingInterface(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
initializingConventional() | |
} |
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 pointerTagging | |
import ( | |
"unsafe" | |
"math/rand" | |
"time" | |
) | |
type vector struct { | |
x int |
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 main | |
import ( | |
"fmt" | |
"github.com/chewxy/gogogadget" | |
"unsafe" | |
) | |
func main() { | |
var x int64 = 1234 |
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 bisect | |
import csv | |
import datetime | |
survivalFile = open('Survival_lang_no_title.csv') | |
reader = csv.reader(survivalFile) | |
reader.next() # pop the first row | |
minutes = [] | |
langDict = {} |
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
SELECT | |
Questions.CreationDate, | |
Questions.Title, | |
Tags.TagName, | |
Answers.CreationDate as ResponseDate, | |
datediff(minute, Questions.CreationDate, | |
Answers.CreationDate) as ResponseTime, | |
cast(DATEPART(hour, Questions.CreationDate) as int) as ResponseHour | |
FROM Posts Questions | |
join Posts Answers on Answers.id = Questions.AcceptedAnswerId |
NewerOlder