Skip to content

Instantly share code, notes, and snippets.


Sushant Dinesh sushant94

Block or report user

Report or block sushant94

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wangruohui / Install NVIDIA Driver and
Last active Jan 22, 2020
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
View Install NVIDIA Driver and
View setup_task.rb
require 'pty'
require 'fileutils'
def execmd cmd
PTY.spawn(cmd) do |r, w, pid|
r.each { |line| print line;}
rescue Errno::EIO
View gist:abb168ed43947b80529c
extern crate libc;
use libc::{ c_void };
use std::env;
fn atoi(k: &str) -> i32 {
match k.parse::<i32>() {
Ok(val) => val,
Err(_) => 0
atheriel / macroexpand.c
Last active Jan 20, 2018
Can one write a Python extension in Rust?
View macroexpand.c
PyObject * RustPy_InitModule(const char *name, PyMethodDef *methods, const char *doc) {
// return Py_InitModule4(name, methods, doc, (PyObject *) NULL, PYTHON_API_VERSION);
return Py_InitModule3(name, methods, doc);
You can’t perform that action at this time.