Skip to content

Instantly share code, notes, and snippets.

View RaymondDixon's full-sized avatar

Raymond Dixon RaymondDixon

View GitHub Profile
@RaymondDixon
RaymondDixon / TCPTestClient.cs
Created June 14, 2018 14:13 — forked from danielbierwirth/TCPTestClient.cs
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
public class TCPTestClient : MonoBehaviour {
#region private members
@RaymondDixon
RaymondDixon / Install NVIDIA Driver and CUDA.md
Created May 24, 2018 13:43 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@RaymondDixon
RaymondDixon / Install Anaconda in Ubuntu.md
Last active May 20, 2018 17:38
Installing Anaconda in Ubuntu for Python 3

Go to home directory

cd ~

We can change Anaconda version we want from Anaconda installer archive

wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh

Verifying data Integrity, replace /path/filename with the actual path

#For Windows users# Note: <> denotes changes to be made

#Create a conda environment

conda create --name python=version:2.7/3.5

#To create a requirements.txt file:

conda list #Gives you list of packages used for the environment

conda list -e > requirements.txt #Save all the info about packages to your folder

@RaymondDixon
RaymondDixon / DataSet for NLP.md
Last active June 2, 2018 07:32
This Gist contains most of the NLP dataset details for specific research focus domain.
@RaymondDixon
RaymondDixon / condaenv.txt
Created May 16, 2018 10:43 — forked from pratos/condaenv.txt
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder
@RaymondDixon
RaymondDixon / gist:99e11535fa84cdfdc90c474572b7ae51
Created May 4, 2018 17:54 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@RaymondDixon
RaymondDixon / Full width jupyter notebook cell .md
Last active May 5, 2018 03:21
Below are options to install jupyter notebook extensions, get full width Notebook cells, custom themes and more.

To Update conda conda update -n base conda

To get kernel support install nb_conda in base env conda install nb_conda

Based on SO link to get kernel option inside notebooks, install jupyter in new env conda install ipykernel

Then install jupyter extensions conda install -c conda-forge jupyter_contrib_nbextensions, install doc, list doc

To get a custom cell formats, like full width ones, 3 methods are available.

@RaymondDixon
RaymondDixon / rank_metrics.py
Created April 30, 2018 03:58 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
@RaymondDixon
RaymondDixon / Git Setup in home-work env.md
Last active May 4, 2018 18:10
This Gist provide basic setup for GitBash in work and home environment

Info available in SO1, SO2

For Err:

fatal: unable to access 'https://github.com/RaymondDixon/ml-agents.git/': Could not resolve proxy: proxy.domain.com

it means proxy is wrong.

In windows-Behind Firewall to setup proxy, Open GitBash type git config --list --show-origin to see where .gitconfig file is (usually in Users/username/.gitconfig) type cd to be in then press enter type vim .gitconfig then press enter