Skip to content

Instantly share code, notes, and snippets.

View NonaryR's full-sized avatar

Rustam G NonaryR

View GitHub Profile
@NonaryR
NonaryR / gist:e9aaf6130ec037ac8ebca197fddd370e
Created July 17, 2016 04:39 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@NonaryR
NonaryR / g.py
Last active November 17, 2016 20:12
import collections
import gym
import numpy as np
import math
class IterationAgent(object):
def __init__(self, env, discount = 0.9, fail_reward = 0.0, living_reward = 0.0):
self.env = env
self.discount = discount
@NonaryR
NonaryR / softmax.ipynb
Created January 7, 2017 13:27 — forked from awjuliani/softmax.ipynb
A simple ipython notebook that walks through the creation of a softmax regression model using MNIST dataset.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(ns ololo
(:require [clojure.core.match :as m])
(let [x 2]
(m/match x
1 :1
2 :two!
:3))
(m/match [false true false true]