Skip to content

Instantly share code, notes, and snippets.

View jeongwhanchoi's full-sized avatar

Jeongwhan Choi jeongwhanchoi

View GitHub Profile
@jeongwhanchoi
jeongwhanchoi / install_nvidia_driver.md
Last active August 31, 2025 23:38 — forked from espoirMur/install_nvidia_driver.md
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I had many driver installed I my virtual machine , so It was actually the reason why I was having the error.

To fix it I had first to remove all driver I have installed before using :

  • sudo apt-get purge nvidia-*
  • sudo apt-get update
  • sudo apt-get autoremove

After that I when a head and installed the latest version of it nvidia driver:

I did :

@jeongwhanchoi
jeongwhanchoi / Bank.sol
Created November 14, 2019 06:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.6+commit.b259423e.js&optimize=false&gist=
pragma solidity 0.5.6;
contract Bank{
mapping(address => uint256) public balances;
mapping(address => bool) public hasCreated;
function addAcount() public{
if(!hasCreated[msg.sender]){
balances[msg.sender] = 1000;
hasCreated[msg.sender] = true;
@jeongwhanchoi
jeongwhanchoi / Bank.sol
Created November 14, 2019 06:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.6+commit.b259423e.js&optimize=false&gist=
pragma solidity 0.5.6;
contract Bank{
mapping(address => uint256) public balances;
mapping(address => bool) public hasCreated;
function addAcount() public{
if(!hasCreated[msg.sender]){
balances[msg.sender] = 1000;
hasCreated[msg.sender] = true;
out = lm(level ~ ., data=for_feature_selection)
anova(out)
lmfx_bth <- step(out, direction="both")
summary(lmfx_bth)
out = lm(level ~ ., data=for_feature_selection_Norm)
anova(out)
#For this problem, you aren't writing any code.
#Instead, please just change the last argument
#in f() to maximize the output.
from math import *
def f(mu, sigma2, x):
return 1/sqrt(2.*pi*sigma2) * exp(-.5*(x-mu)**2 / sigma2)
print f(10.,4.,10.) #Change the 8. to something else!
<web-app>
<servlet>
<servlet-names>AddServlet</servlet-names>
<servlet-class>AddServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AddServlet</servlet-name>
<url-pattern>abc.html</url-pattern>
</servlet-mapping>
</web-app>
public class AddServlet extends HttpServlet
{
protected void doGet(HttpServletRequest req, HttpServletResponse res)
{
int i = Integer.parseInt(req.getParameter("t1"));
int j = Integer.parseInt(req.getParameter("t2"));
int k = i + j;
PrintWriter out = req.getWriter();
out.print(k);
@jeongwhanchoi
jeongwhanchoi / spyder_launch_error.md
Created September 8, 2018 09:18
Spyder does not launch after install
conda update navigator-updater 
conda update anaconda-navigator  

conda update python python.app
@jeongwhanchoi
jeongwhanchoi / pyzmq.md
Last active September 8, 2018 05:50
[Solved] iPython/Jupyter Notebook error: reason image not found

[Solved] iPython/Jupyter Notebook error

reason image not found

install or upgrade the pyzmq

pip install pyzmq     

pip install --upgrade pyzmq