Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Laurent Sansonetti lrz

💭
I may be slow to respond.
View GitHub Profile
View no-emscripten-glue.diff
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp
index 7d1c35d..ddbac05 100644
--- a/src/wasm-linker.cpp
+++ b/src/wasm-linker.cpp
@@ -332,6 +332,7 @@ bool Linker::linkArchive(Archive& archive) {
return true;
}
+#if !defined(NO_EMSCRIPTEN_GLUE)
void Linker::emscriptenGlue(std::ostream& o) {
View gist:8f2c4350ac80d032dad8

RubyMotion Workshop Exercice

We are going to write two simple apps in RubyMotion: a basic timer app for iOS, and one for Android as well. These will be two different projects and code bases.

The goal is to allow you, for each mobile platform, to understand how to create a basic app, to call the native APIs, and interact with the RubyMotion toolchain. The projects will not share any code on purpose.

We will start with the iOS version.

Timer.app (iOS)

View gist:b91288c36d0cd237f4c6
= RubyMotion 2.30 =
* The iOS 8.0 and OS X 10.10 versions of the runtime have been recompiled
with Xcode 6 Beta 2.
* Added the `device_name' parameter in order to select iOS 8 simulater device.
You can use "iPhone 4s", "iPhone 5", "iPhone 5s", "iPad 2" ,"iPad Retina",
"iPad Air", "Resizable iPhone" and "Resizable iPad" for device name.
(Ex rake device_name="Resizable iPhone")
* Improved the compiler to optimize the app executable size, by removing
unnecessary internal Objective-C stubs. Apps should be 10-30% lighter,
View keybase.md

Keybase proof

I hereby claim:

  • I am lrz on github.
  • I am lrz (https://keybase.io/lrz) on keybase.
  • I have a public key whose fingerprint is DC40 ACCA 7D3F E78C F2D7 1B3A 98A4 D969 434A 9919

To claim this, I am signing this object:

View gist:6678846
Dear Elliot,
Hope you are doing well too! Thanks so much for contacting me over LinkedIn, it's always a pleasure to talk to another software industry professional.
My client is based in Belgium and is URGENTLY seeking work as a mobile developer position. He has about 7 years of experience as an Android and iOS developer. He's also comfortable with User Interface implementations, network communications and he's a worldwide expert about Git-related stuff (reposotories / e-notes)
If you're interested I can put you guys in contact. My fee is 3000 euros (excluding VAT) + a waffle.
Best regards.
Laurent
View gist:6030133
describe "cycles" do
class TestObjectCycle
def test_block_retain
test_block_assign { 42 }
end
def test_block_assign(&b)
@b = b
end
def test_array_retain
@a = []
@lrz
lrz / gist:5748428
Created Jun 10, 2013
RubyMotion 2.1 Changes
View gist:5748428
= RubyMotion 2.1 =
* Improved the `rake simulator' (iOS) and `rake run' (OSX) tasks to honor the
`args' environment variable, which can be used to provide command-line
arguments that will be passed to the app executable when launching.
(ex. rake simulator args="-com.apple.CoreData.SQLDebug 1").
* [iOS] Improved `rake archive' to generate a `manifest.plist' file that can
be used for Ad-Hoc distribution. Added the `app.manifest_assets' Rakefile
variable which can be set to an array of hashes describing the assets to be
included in the file. The default is an empty array, and no file is then
View rubymotion-inspect-traveling-guide.md

RubyMotion #inspect 2013 Traveling Guide

Overview

This document is a travel guide to RubyMotion's first conference, #inspect 2013.

http://www.rubymotion.com/conference

If you are attending or considering attending the conference, you might find here some handy tips that will answer questions you might have. If you have a question that isn't answered here, feel free to contact us and we will update this document accordingly.

View gist:943692
diff --git a/re.c b/re.c
index 523ba17..0df6349 100644
--- a/re.c
+++ b/re.c
@@ -696,34 +696,56 @@ rb_reg_matcher_new(VALUE re, VALUE str)
u_errorName(status));
}
- long chars_len = 0;
- UChar *chars = rb_str_xcopy_uchars(str, &chars_len);
@lrz
lrz / gist:939092
Created Apr 23, 2011
Fix for #1238 and #1240 (work in progress)
View gist:939092
diff --git a/class.c b/class.c
index 8b18f71..e411aeb 100644
--- a/class.c
+++ b/class.c
@@ -23,6 +23,27 @@
extern st_table *rb_class_tbl;
extern VALUE rb_cRubyObject;
+VALUE
+rb_class_super(VALUE klass)