Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

  • Senior Engineer, SSD FW Eng @doubleOplus
  • Busan, Republic of Korea
  • 22:38 (UTC +09:00)
View GitHub Profile
/* https://dl.dropboxusercontent.com/u/16142350/ProbSolving2016/chap03/practice01.pdf */
#include <stdio.h>
#define O_SIZE_MAX 100
#define O_PNONE 0
#define O_PBLACK 1
#define O_PWHITE 2
int bsize;
int bgame[O_SIZE_MAX][O_SIZE_MAX];
@jmkim
jmkim / tree.c
Last active May 13, 2016 09:07
Concept of BST in C
/**
*
* ADT: Binary search tree
* Definition
*
* http://github.com/kdzlvaids/algorithm
*
*/
#include <stdlib.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/kdev_t.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <asm/uaccess.h>
#include <linux/slab.h> /** kmalloc() */

[어필치 반영]

  • 덱 센터스킬
  • 카드 1 보컬 스탯 카드 1 댄스 스탯 카드 1 비주얼 스탯
  • 카드 2 보컬 스탯 카드 2 댄스 스탯 카드 2 비주얼 스탯
@jmkim
jmkim / huffman.cpp
Last active June 3, 2016 07:58
Skel for Huffman coding
#include <iostream>
#include <fstream>
#include <map>
//#define FLAG_USE_STRUCT
namespace algorithm
{
class Huffman
b1 3 1
a9 3 1
af 3 1
a7 3 1
a1 3 1
97 3 1
ad 3 1
85 3 1
a5 3 1
9f 3 1
@jmkim
jmkim / heap.hpp
Created June 9, 2016 13:22
Concept of heapify in C++
#ifndef ALGORITHM_HEAP_H_
#define ALGORITHM_HEAP_H_ 1
#include <functional>
#include <utility>
#include <vector>
#include <iostream>
namespace algorithm
{
@jmkim
jmkim / ocu.c
Last active June 11, 2016 12:53
int i;
int var[] = { 1, 3, 2, 4, 6, 5 };
int * varptr = var;
int odd = 0, nonodd = 0;
for(i = 0; i < sizeof(var) / sizeof(int); ++i)
(*(varptr + i) % 2 == 0) ? nonodd += *(varptr + i) : odd += *(varptr + i);

How to install NVIDIA kernel module on Ubuntu 16.04 LTS with UEFI

This will resolve the black screen which occurs while booting, or the screen freezing which is occurred by nouveau.

Ready for step

  • Turn off SecureBoot in UEFI settings in your mainboard.
  • Download a driver for your graphic card. (Visit NVIDIA Support page.)
@jmkim
jmkim / pc
Last active June 12, 2016 07:23
/usr/share/X11/xkb/symbols from Ubuntu 16.04 LTS
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };