Skip to content

Instantly share code, notes, and snippets.

View munyari's full-sized avatar

Panashe Fundira munyari

View GitHub Profile
"""
Provided code for Application portion of Module 1
Imports physics citation graph
"""
# general imports
import urllib2
import matplotlib.pyplot as plt
@munyari
munyari / dfs
Last active March 21, 2016 15:55
#!/usr/bin/env ruby
require "pry"
class TreeNode
attr_reader :data, :subtrees
private :data, :subtrees
def initialize(data:, subtrees:[])
@data = data
@subtrees = subtrees
@munyari
munyari / about.md
Last active April 26, 2016 13:45 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
function is_palindrome(n)
str = tostring(n)
return str == string.reverse(str)
end
for p = 1, 9 do
n = 9 * p + 1
for j = 1, n do
if n % j == 0 then
a = 1001 - n // j

Wow, I just lost all of this 🙁 never typing a long comment in zulip again.

TL;DR at the bottom.

Spacemacs and neovim are somewhat different projects, with different goals. Spacemacs is a community-driven distribution of useful plugins bundled together with it's own customization framework, designed to show vim users just how awesome emacs can be. In that way, it's similar to [Janus][janus] for vim (interestingly, just yesterday I saw [spacevim][spacevim]).

health#deoplete#check

deoplete.nvim

  • SUCCESS: has("nvim") was successful
  • SUCCESS: has("python3") was successful
  • INFO: If you're still having problems, ' . 'try the following commands: $ export NVIM_PYTHON_LOG_FILE=/tmp/log $ export NVIM_PYTHON_LOG_LEVEL=DEBUG $ nvim
Launching way-cooler...
INFO [way_cooler] x27[37msrc/main.rs:108x27[0m Logger initialized, setting wlc handlers. x27[0m
x27[37m TRACE [callbacks] x27[37msrc/callbacks.rs:240x27[0mx27[37m Registered wlc callbacks x27[0m
INFO [way_cooler] x27[37msrc/main.rs:69x27[0m wlc: logind: session control granted x27[0m
INFO [way_cooler] x27[37msrc/main.rs:69x27[0m wlc: Running on vt 1 (fd 0) x27[0m
x27[33m WARN [way_cooler] x27[37msrc/main.rs:70x27[0mx27[33m wlc: Failed to open X11 display x27[0m
INFO [ipc] x27[37msrc/ipc/mod.rs:87x27[0m Starting IPC with unique ID 47953 x27[0m
x27[37m DEBUG [ipc] x27[37msrc/ipc/mod.rs:95x27[0mx27[37m IPC initialized, now listening for clients. x27[0m
INFO [way_cooler] x27[37msrc/main.rs:161x27[0m Running wlc... x27[0m
INFO [way_cooler] x27[37msrc/main.rs:69x27[0m wlc: libinput: resume x27[0m
layout title date tags
post
The Flyweight Pattern in Java
2016-10-06 09:23:13 -0400
programming java

Types in Java fall into two categories, the [primitive types][prim] (char,

# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
#
# Sway is a work in progress. Some of these defaults are currently unimplemented.
### Variables
10/10/16 13:30:02 - [wlc] logind: session control granted
10/10/16 13:30:02 - [wlc] Running on vt 1 (fd 0)
10/10/16 13:30:02 - [wlc] Failed to open X11 display
10/10/16 13:30:02 - Starting sway version (2016-08-02, branch "")
10/10/16 13:30:02 - Loading config from /home/nash/.config/sway/config
10/10/16 13:30:02 - handling config command 'set $mod Mod4'
10/10/16 13:30:02 - find_handler(set) 0
10/10/16 13:30:02 - handling config command 'set $term urxvt'
10/10/16 13:30:02 - find_handler(set) 0