Skip to content

Instantly share code, notes, and snippets.

@jaisonoh
jaisonoh / cuda_10.0_installation_on_Ubuntu_18.04
Created December 10, 2019 08:15 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Cuda 10.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@jaisonoh
jaisonoh / README.md
Created December 8, 2019 06:31 — forked from philwo/README.md
How to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk

This is how I managed to build TensorFlow 2.0 on Ubuntu 18.04 (x86_64) with Bazelisk:

$ sudo apt update
$ sudo apt full-upgrade
$ sudo apt install curl

# Install Bazelisk.
$ sudo curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64
$ sudo chmod +x /usr/local/bin/bazel
@jaisonoh
jaisonoh / simple_gradient.cpp
Last active July 16, 2018 11:56
simple gradient
#include "Debug"
void main() {
// Load a reference image
ref<Debug> debug;
std::vector<float4> _ref = debug->getRefimg(film);
// Calculate
float4* _refDxErr = new float4[xSize * ySize];
float4* _refDyErr = new float4[xSize * ySize];
@jaisonoh
jaisonoh / convenience.js
Created November 24, 2014 15:46
convenience.js
{"type":"FeatureCollection","features":[
{"type":"Feature","properties":{"name":"중앙주차장","type1":"편의시설","type2":"주차장","inform":"<table><tr><th>30분이내</th><td>1,000원</td></tr><tr><th>15분추가</th><td>300원</td></tr></table>","url":"","location":[33.5127356771332,126.5251553088001],"color":"#d5a6bd"},"geometry":{"type":"Polygon","coordinates":[[[126.525348870436,33.51286363963522],[126.525002422927,33.51288165322094],[126.524965985120,33.51281493249531],[126.524935441452,33.51269504303295],[126.524942146975,33.51260248136892],[126.525321605799,33.512631184662695],[126.525348870436,33.51286363963522]]]}},
{"type":"Feature","properties":{"name":"수산시장주차장","type1":"편의시설","type2":"주차장","inform":"","url":"","location":[33.512170376563,126.52518510818481],"color":"#d5a6bd"},"geometry":{"type":"Polygon","coordinates":[[[126.525283082564,33.51227772085719],[126.525071704390,33.512249263461946],[126.525058521331,33.51195835432757],[126.525259318191,33.511952701968426],[126.525283082564,33.51227772085719]]]}},
{"type":"Feature"
@jaisonoh
jaisonoh / marketStore.js
Last active August 29, 2015 14:10
marketStore.js
{"type":"FeatureCollection","features":[
{"type":"Feature","properties":{"name":"제주은행","type1":"편의시설","type2":"은행","inform":"","url":"","location":[33.51275430570464,126.5256127595967],"color":"#d5a6bd"},"geometry":{"type":"Point","coordinates":[33.51275430570464,126.5256127595967]}},
{"type":"Feature","properties":{"name":"스탠다드차타드은행","type1":"편의시설","type2":"은행","inform":"","url":"","location":[33.513253743057305,126.52664095750879],"color":"#d5a6bd"},"geometry":{"type":"Point","coordinates":[33.513253743057305,126.52664095750879]}},
{"type":"Feature","properties":{"name":"농협","type1":"편의시설","type2":"은행","inform":"","url":"","location":[33.51148133458581,126.52527437209755],"color":"#d5a6bd"},"geometry":{"type":"Point","coordinates":[33.51148133458581,126.52527437209755]}},
{"type":"Feature","properties":{"name":"새마을금고","type1":"편의시설","type2":"은행","inform":"","url":"","location":[33.51097839826697,126.52544840725568],"color":"#d5a6bd"},"geometry":{"type":"Point","coordinates":[33.51097839826697,126.5254484072
@jaisonoh
jaisonoh / market.js
Last active August 29, 2015 14:09
market.js
{"type":"FeatureCollection","features":[
{"type":"Feature","properties":{"name":"중앙주차장","type1":"편의시설","type2":"주차장","inform":"<table><tr><th>30분이내</th><td>1,000원</td></tr><tr><th>15분추가</th><td>300원</td></tr></table>","url":"","location":[33.5127356771332,126.5251553088001],"color":"#d5a6bd"},"geometry":{"type":"Polygon","coordinates":[[[126.525348870436,33.51286363963522],[126.525002422927,33.51288165322094],[126.524965985120,33.51281493249531],[126.524935441452,33.51269504303295],[126.524942146975,33.51260248136892],[126.525321605799,33.512631184662695],[126.525348870436,33.51286363963522]]]}},
{"type":"Feature","properties":{"name":"수산시장주차장","type1":"편의시설","type2":"주차장","inform":"","url":"","location":[33.512170376563,126.52518510818481],"color":"#d5a6bd"},"geometry":{"type":"Polygon","coordinates":[[[126.525283082564,33.51227772085719],[126.525071704390,33.512249263461946],[126.525058521331,33.51195835432757],[126.525259318191,33.511952701968426],[126.525283082564,33.51227772085719]]]}},
{"type":"Feature"
@jaisonoh
jaisonoh / point.js
Last active August 29, 2015 14:09
point.js
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "중앙 주차장",
"type1": "편의시설",
"type2": "주차장",
"inform": "<table><tr><th>30분 이내</th><td>1,000원</td></tr><tr><th>15분 추가</th><td>300원</td></tr></table>",
@jaisonoh
jaisonoh / style.css
Created November 4, 2014 16:43
SmartFaucet_style
@charset "utf-8";
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd,
q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
@jaisonoh
jaisonoh / script.js
Created November 4, 2014 16:42
SmartFaucet_script
$(document).ready(function() {
//html
var body = '\
<div id="panel-menu">\
<input type="button" id="menu-button" value="욕조">\
<h1><span id="title">스마트 수도꼭지 프로젝트</span></h1>\
</div>\
<div id="panel-page">\
@jaisonoh
jaisonoh / marketmap.js
Last active August 29, 2015 14:07
marketmap.js
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"letter": "G",
"color" : "grey",
"stroke": "black",
"opacity": "0.2",