contact: tiiliass@gmail.com
425 287 4279
Github
Central Washington University Master of Science in Computer Science 2015-2017
University of Ouaga Bachelor of Science in Computer Science 2014
def getMatch(bitmapQ, bitmapT): | |
""" | |
if bitmapT exist in bitmapQ | |
Return the coordinates of the match | |
or therewise return None | |
""" | |
n = len(bitmapQ) | |
m = len(bitmapQ[0]) | |
if len(bitmapT) > n or len(bitmapT[0]) > m: |
# card mapped to digits from 1 to 13 | |
# A,2,3,4,5,6,7,8,9,10,J, Q, K | |
# [1 2 3 4 5 6 7 8 9 10 11 12 13] | |
# [1,2,2,4] | |
# [k, 2, k, 2, 2] # <<<<<<<<< | |
# [13, 2,13,2, 2] |
import cv2 | |
import sys | |
import tensorflow as tf | |
import numpy as np | |
import time | |
colors = [tuple(255 * np.random.rand(3)) for _ in range(10)] | |
capture = cv2.VideoCapture(0) |
contact: tiiliass@gmail.com
425 287 4279
Github
Central Washington University Master of Science in Computer Science 2015-2017
University of Ouaga Bachelor of Science in Computer Science 2014
I hereby claim:
To claim this, I am signing this object:
def combinations(arr1, arr2): | |
finalArray = [] | |
for i in xrange(len(arr1)): | |
for j in xrange(len(arr2)): | |
finalArray.append(arr1[i]+arr2[j]) | |
#print arr1[i]+arr2[j] | |
print finalArray | |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
public static String reverse(String s) | |
{ | |
int len = s.length(), last = len -1; | |
char cArray = s.toCharArray(); | |
for (int i = 0; i< len/2; i++){ | |
// swiping symetrical elements | |
char c = cArray[i]; | |
cArray[i] = cArray[last - i]; | |
cArray[last - i] = c; | |
} |
public class HasLetter{ | |
public static int hasLetter(String word, char letter){ | |
for (int i=0; i < word.length(); i++){ | |
// comparison | |
if(word.charAt(i)==letter){ | |
return i; | |
} | |
} | |
return -1; | |
} |
var Command = require('./command') | |
var handleResult = function(err){ | |
if (err) { console.log("error") } | |
else{ | |
console.log("Ok! Command ran successfully!") | |
} | |
} | |
Command.add(handleResult) |