Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View KignorChan's full-sized avatar

KignorC KignorChan

  • Toronto
View GitHub Profile
@KignorChan
KignorChan / countKeyword.cu
Last active April 8, 2018 21:04
grep - count keyword in file - parallel program using CUDA resources.
/*
This program is to count keyword in file. The original code can run as command like:
" ./grep keyword filename "
in linux terminal. I modified it to let it run in parallel by using CUDA resources.
Now it can run in Visual Studio in machine with GPU device which support CUDA library.
*/
#include <iostream>
#include <sstream>
@KignorChan
KignorChan / reverseArrayTester.js
Created March 15, 2018 15:56
Array.prototype.reverse test
// Copyright (C) 2016 Qiliang Chen. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Array.prototype.reverse is to reverse the array. This tester will test
if this function work correctly. This will try both numbers and strings.
This tester will create two array: Array of strings named "sample", and Array of integer named "sample2"
Then they will call reverse built-in function.
At last, the reversed array will be compared with expected datas.