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
,
#lang plai-typed | |
(define-type ExprC | |
[numC (n : number)] | |
[idC (s : symbol)] | |
[plusC (l : ExprC) (r : ExprC )] | |
[multC (l : ExprC) (r : ExprC)] | |
[appC ( s : symbol ) | |
( arg : ExprC)]) |
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 |
# 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 |
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
,
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 |
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]).
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 |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/usr/bin/env ruby | |
require "pry" | |
class TreeNode | |
attr_reader :data, :subtrees | |
private :data, :subtrees | |
def initialize(data:, subtrees:[]) | |
@data = data | |
@subtrees = subtrees |