I hereby claim:
- I am kronos on github.
- I am krrronos (https://keybase.io/krrronos) on keybase.
- I have a public key whose fingerprint is C094 7097 4A32 2E9B ED80 5061 AA30 8677 0513 D74E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(ns clj-dns.impl.resolver | |
(:import [org.xbill.DNS SimpleResolver Lookup])) | |
(defn set-dns-address | |
[host port] | |
(Lookup/setDefaultResolver (doto (SimpleResolver. host) | |
(.setPort port)))) | |
(defn record->map | |
[record] |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>GitHub</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
class LinkedList | |
include Enumerable | |
attr_reader :head | |
class Node | |
attr_reader :value | |
attr_accessor :next | |
def initialize(value, _next = nil) |
From 13646bc77c6144d1e5a2d098cd77b0e83e2627fb Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Sun, 4 Sep 2011 00:50:38 +0400 | |
Subject: [PATCH] Implement getWindowPosition for OS X | |
--- | |
src/SFML/Window/OSX/SFViewController.mm | 10 ++++++++++ | |
src/SFML/Window/OSX/SFWindowController.mm | 10 ++++++++++ | |
src/SFML/Window/OSX/WindowImplCocoa.mm | 3 ++- | |
src/SFML/Window/OSX/WindowImplDelegateProtocol.h | 6 ++++++ |
module FieldTracker | |
def self.included(cls) | |
cls.extend(ClassMethods) | |
cls.before_save :save_changes | |
cls.after_save :check_changes | |
end | |
def save_changes | |
@changes ||= [] | |
hash = {} |
From a92ffb1947016df74169211d6bb962fd3da13f98 Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Wed, 18 May 2011 20:43:44 +0400 | |
Subject: [PATCH] Provide size for converting byte_array. Fixes #887 | |
--- | |
vm/builtin/bytearray.cpp | 4 ++-- | |
vm/builtin/bytearray.hpp | 2 +- | |
vm/builtin/string.cpp | 2 +- | |
vm/test/test_bytearray.hpp | 2 +- |
kronos:rubinius:[master]$ bin/rbx -I heap_dump/lib/ heap_dump/bin/histo.rb heap.dump heap2.dump | |
43 Method 2408 | |
40 String 2880 | |
40 Rubinius::ByteArray 1600 | |
3 Rubinius::Tuple 480 | |
3 Rubinius::GlobalCacheEntry 144 | |
2 Rubinius::LookupTable 96 | |
1 Class 112 | |
1 Rubinius::LookupTable::Bucket 48 | |
1 Rubinius::MethodTable 48 |
require 'test/unit' | |
require 'tempfile' | |
$:.replace([File.dirname(File.expand_path(__FILE__))] | $:) | |
require 'ut_eof' | |
class TestFile < Test::Unit::TestCase | |
# I don't know Ruby's spec about "unlink-before-close" exactly. | |
# This test asserts current behaviour. | |
def test_unlink_before_close |
diff --git a/kernel/common/file.rb b/kernel/common/file.rb | |
index 5e56cfb..e67341b 100644 | |
--- a/kernel/common/file.rb | |
+++ b/kernel/common/file.rb | |
@@ -1010,6 +1010,8 @@ class File < IO | |
ensure_open_and_writable | |
raise Errno::EINVAL, "Can't truncate a file to a negative length" if length < 0 | |
+ flush | |
+ reset_buffering |