Skip to content

Instantly share code, notes, and snippets.

View YashasSamaga's full-sized avatar

Yashas Samaga B L YashasSamaga

  • University of Washington
  • Seattle
  • 21:02 (UTC -08:00)
  • X @yashassamaga
View GitHub Profile
@goldsborough
goldsborough / conv.cu
Last active July 27, 2024 17:10
Convolution with cuDNN
#include <cudnn.h>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
#define checkCUDNN(expression) \
{ \
cudnnStatus_t status = (expression); \
if (status != CUDNN_STATUS_SUCCESS) { \
[12:09:30] [INFO] changed log level from 'warning, error' to 'info, warning, error'
[12:09:30] [INFO] Options instance with id '1' successfully created.
[12:09:30] [INFO] Creating new connection handle...
[12:09:30] [INFO] Connection handle with id '1' successfully created.
[12:09:30] [INFO] query "DELETE FROM employees WHERE emp_no >= 500000" successfully executed within 5.134 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500002, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500001, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500000, curdate(), 'asd', 'fgh', 'F', curdate(), NULL) " successfully executed within 4.395 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500008, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500007, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500006, curdate(), 'asd', 'fgh', 'F', curdate(), NULL) " successfully executed within 8.645 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500005, curdate(), 'asd', '
@sharmaeklavya2
sharmaeklavya2 / lolcode_tutorial.md
Last active October 9, 2024 18:03
LOLCODE tutorial

LOLCODE

LOLCODE is an esoteric programming language inspired by lolcat memes on the internet. The language was created in 2007 by Adam Lindsay, researcher at Lancaster University's Computing Department.

Here I have explained basics of LOLCODE with complete examples. However, you may have questions even after reading them because I have not included all details. For an exhaustive reference, read the official documentation.

Hello World

HAI 1.2
BTW This is the famous 'Hello World' program
@vlandham
vlandham / part1.md
Last active March 21, 2024 12:57
Feature Branches and Pull Requests : Walkthrough

Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.

Questions, comments, and suggestions for improvements welcome!

Start with the latest on master

When starting a new feature, I make sure to start with the latest and greatest codebase:

git checkout master