Skip to content

Instantly share code, notes, and snippets.

View tutysara's full-sized avatar

tutysara tutysara

View GitHub Profile
@a-yee
a-yee / nvimCondaEnv.txt
Last active February 21, 2024 01:23
Setting up neovim python3 environment using conda
# bash commands
# lists all of your conda env
conda env list
# Create a conda env w/ python3.5
# -n sets the name for your new env. I call it neovim here
conda create -n neovim python=3.5
# add neovim for python3 to the env
# specify version you want here, 0.1.13 up to date ver atm
@ksopyla
ksopyla / ubuntu16_tensorflow_cuda8.sh
Last active March 7, 2021 16:31
How to set up tensorflow with CUDA 8 cuDNN 5.1 in virtualenv with Python 3.5 on Ubuntu 16.04 http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# This is shorthened version of blog post
# http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# update packages
sudo apt-get update
sudo apt-get upgrade
#Add the ppa repo for NVIDIA graphics driver
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
@tylerchilds
tylerchilds / piplay_raspberry_pi_3_setup.md
Last active December 18, 2018 12:29
PiPlay Raspberry Pi 3 Setup

PiPlay Raspberry Pi 3 Setup

Let me first preface this guide with the fact that I had zero experience with raspberry pi before tonight. I'm comfortable in the command line and I've played with linux as an enthusiastic dabbler.

If you follow this guide, you should be able to go from fresh raspberry pi to running roms on piplay. Also, only use roms that you've legally obtained. I used Robot Bowl available for free, for non-commercial use at mamedev.org.

  1. Install raspbian to your sd card using a different computer than your pi

  2. plug in the pi your username/password will be pi/raspberry

@TheBB
TheBB / loading.org
Last active June 22, 2023 11:53
Loading in Spacemacs

Emacs packages, features, files, layers, extensions, auto-loading, require, provide, use-package… All these terms getting you confused? Let’s clear up a few things.

Files

Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.

One major problem is to ensure that all the correct files are loaded, and in the

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 10, 2024 06:01
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@akottr
akottr / Maven.sublime-build
Last active August 1, 2022 06:47
For maven build put this file into ~/.config/sublime-text-3/Packages/User. Choose Tools -> Build System -> Maven. Ctrl+Shift+ P shows the entries (e.g mvn clean)
{
"working_dir": "$file_path",
"shell_cmd":"mvn clean install",
"variants": [
{
"name": "mvn clean install",
"shell_cmd": "mvn clean install"
},
{
"name": "mvn full build",
@mrchief
mrchief / LICENSE.md
Last active March 23, 2024 12:28
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)

MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@swannodette
swannodette / gist:3217582
Created July 31, 2012 14:52
sudoku_compact.clj
;; based on core.logic 0.8-alpha2 or core.logic master branch
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [rows x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in rows [x y])))
@panuta
panuta / gist:1852087
Last active April 8, 2020 16:46
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action
@insin
insin / bash_prompt.sh
Created December 3, 2011 01:49 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.