Skip to content

Instantly share code, notes, and snippets.

View sarahhodne's full-sized avatar
🏳️‍⚧️

Sarah Hodne sarahhodne

🏳️‍⚧️
View GitHub Profile
@sarahhodne
sarahhodne / mysql.rb
Created July 26, 2012 13:08 — forked from DamianZaremba/mysql.rb
Facter MySQL version module
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
(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))))
/*
ID: dvyjone1
PROG: beads
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <string>
typedef struct bead {
.PHONY: all clean
all: bananarepublic
OBJS=bananarepublic
CFLAGS=-O3 -Wall -g3 -march=native
clean:
rm -fv *.o $(OBJS)
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
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
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
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());
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)
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]