Skip to content

Instantly share code, notes, and snippets.

View Slabity's full-sized avatar

Slabity Slabity

View GitHub Profile
@Slabity
Slabity / .vimrc
Last active August 29, 2015 13:57
Personal Vimrc file
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'gmarik/vundle'
Bundle 'flazz/vim-colorschemes'
Bundle 'wincent/Command-T'
Bundle 'scrooloose/nerdcommenter'
@Slabity
Slabity / Windows.xml
Last active August 29, 2015 14:08
Libvirt configuration for VT-d powered Windows VM
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit Windows
or other application using the libvirt API.
-->
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>Windows</name>
<uuid>2a81c13d-ba23-45d5-b367-4836c62b43b3</uuid>
@Slabity
Slabity / .zshrc
Created November 17, 2014 19:10
Personal zshrc file
#
# ~/.zshrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Save this arrow! 
#
# Global for saving prompt data.
@Slabity
Slabity / .ncmpcpp.conf
Created November 17, 2014 19:11
Personal ncmpcpp file
ncmpcpp_directory = "~/.ncmpcpp"
lyrics_directory = "~/.lyrics"
mpd_host = "localhost"
mpd_port = "6600"
mpd_music_dir = "/home/slabity/Music"
mpd_connection_timeout = "5"
mpd_crossfade_time = "5"
audio_output {
@Slabity
Slabity / .Xresources
Last active September 26, 2015 04:11
Personal Xresources file
*saveLines: 8192
*font: xft:Terminess Powerline:size=8
URxvt*scrollBar: false
URxvt.perl-ext-common: clipboard
URxvt*termName: rxvt-unicode-256color
! special
*.foreground: #e0bfbf
*.background: #0f0808
*.cursorColor: #e0bfbf
@Slabity
Slabity / .config
Created February 21, 2017 02:10
Kernel config file
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.8-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
import tensorflow as tf
import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
nhidden = 500
nvisible = 784
x = tf.placeholder(tf.float32, [None, nvisible])
{% include './types.yml' %}
syscall: &syscall
type: syscall
args: []
return: c_int
open:
<<: *syscall
args:
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;;; xresources-theme.el --- Use your .Xresources as your emacs theme
;; Copyright (C) 2014-2014 Marten Lienen <marten.lienen@gmail.com>
;; Author: Marten Lienen <marten.lienen@gmail.com>
;; Keywords: xresources, theme
;; Version: 0.2.0
;; This file is not part of GNU Emacs.