This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add(:mysql_version) do | |
setcode do | |
mysql_version = Facter::Util::Resolution.exec('mysql --version') | |
mysql_version.chomp.split(' ')[4].gsub(',', '') if mysql_version | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns spark | |
(:require [clojure.string])) | |
(defn spark | |
[coll] | |
(let [ticks [\▁ \▂ \▃ \▄ \▅ \▆ \▇] | |
low (apply min coll) | |
range (- (apply max coll) low) | |
scale (- (count ticks) 1)] | |
(clojure.string/join (map #(get ticks (int (* (/ (- % low) range) scale))) coll)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ID: dvyjone1 | |
PROG: beads | |
LANG: C++ | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
typedef struct bead { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all clean | |
all: bananarepublic | |
OBJS=bananarepublic | |
CFLAGS=-O3 -Wall -g3 -march=native | |
clean: | |
rm -fv *.o $(OBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeClass | |
# Some method that does some magic. | |
# | |
# @overload foo(args) | |
# @param [Array] args Bluh bluh bluh. | |
# @overload foo(*args) | |
# @param [Array] *args Bluh bluh bluh. | |
def foo(*args) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'context-io/resource' | |
module ContextIO | |
# Public: A file found as an email attachment. | |
class File < Resource | |
# Public: Get all files for a given account. | |
# | |
# query - Optional query Hash (all fields are optional): | |
# file_name - A String or Regexp matching the filename to | |
# search for. The String can contain shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rubinius Crash Report #rbxcrashreport | |
Error: signal SIGILL | |
[[Backtrace]] | |
0 rbx 0x000000010540c2c6 _ZN8rubiniusL12segv_handlerEi + 486 | |
1 libsystem_c.dylib 0x00007fff932b6cfa _sigtramp + 26 | |
2 ??? 0x0000000000000006 0x0 + 6 | |
3 rbx 0x0000000105435e9e _ZN6thread5Mutex4lockEv + 54 | |
4 rbx 0x00000001054e0594 _ZN8rubinius11SharedState6new_vmEv + 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vm/arguments.hpp b/vm/arguments.hpp | |
index 094bdb9..ea13d71 100644 | |
--- a/vm/arguments.hpp | |
+++ b/vm/arguments.hpp | |
@@ -111,7 +111,13 @@ namespace rubinius { | |
} | |
void use_array(Array* ary) { | |
- use_tuple(ary->tuple(), ary->size()); | |
+ use_tuple(ary->tuple(), ary->size(), ary->start()->to_int()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compiling ossl_x509store.c | |
ossl_x509store.c: In function ‘ossl_x509store_new’: | |
ossl_x509store.c:62: warning: ‘X509_STORE_free’ is deprecated (declared at /usr/include/openssl/x509_vfy.h:390) | |
ossl_x509store.c: In function ‘DupX509StorePtr’: | |
ossl_x509store.c:83: warning: ‘CRYPTO_add_lock’ is deprecated (declared at /usr/include/openssl/crypto.h:430) | |
ossl_x509store.c: In function ‘ossl_x509store_alloc’: | |
ossl_x509store.c:97: warning: ‘X509_STORE_new’ is deprecated (declared at /usr/include/openssl/x509_vfy.h:389) | |
ossl_x509store.c:100: warning: ‘X509_STORE_free’ is deprecated (declared at /usr/include/openssl/x509_vfy.h:390) | |
ossl_x509store.c: In function ‘ossl_x509store_set_flags’: | |
ossl_x509store.c:160: warning: ‘X509_STORE_set_flags’ is deprecated (declared at /usr/include/openssl/x509_vfy.h:392) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Incident Identifier: 72CB0FA9-46A1-4F1B-BF55-E3B6455506C4 | |
CrashReporter Key: d5b33bff9bc664d260966cdfeaac267a3f5ab291 | |
Hardware Model: iPhone4,1 | |
Process: Tweetbot [1997] | |
Path: /var/mobile/Applications/33F68613-A107-45DF-B2EB-77EDE70BEA33/Tweetbot.app/Tweetbot | |
Identifier: Tweetbot | |
Version: ??? (???) | |
Code Type: ARM (Native) | |
Parent Process: launchd [1] |