Skip to content

Instantly share code, notes, and snippets.

View lfranchi's full-sized avatar

Leo Franchi lfranchi

View GitHub Profile
diff --git a/vlc.rb b/vlc.rb
index d577870..f66ff65 100644
--- a/vlc.rb
+++ b/vlc.rb
@@ -31,7 +31,7 @@ class Vlc < Formula
# gettext is keg-only so make sure vlc finds it
gettext = Formula.factory("gettext")
- ldf = "LDFLAGS=\"-L#{gettext.lib} -lintl\""
+ ldf = "LDFLAGS=\"-L#{gettext.lib} -lintl -lstdc++\""
@lfranchi
lfranchi / keybase.md
Last active August 29, 2015 13:56
Keybase.md

Keybase proof

I hereby claim:

  • I am lfranchi on github.
  • I am lfranchi (https://keybase.io/lfranchi) on keybase.
  • I have a public key whose fingerprint is 50A4 0BE7 695D 0AA8 CBB8 445B 599B 8608 67DA 0A44

To claim this, I am signing this object:

diff --git a/src/shared/CLucene/LuceneThreads.h b/src/shared/CLucene/LuceneThreads.h
index 97072ee..297cdef 100644
--- a/src/shared/CLucene/LuceneThreads.h
+++ b/src/shared/CLucene/LuceneThreads.h
@@ -7,6 +7,9 @@
#ifndef _LuceneThreads_h
#define _LuceneThreads_h
+#if defined(_CL_HAVE_PTHREAD)
+ #include <pthread.h>
@lfranchi
lfranchi / CLucene-HEAD-config-repl_tchar.h.diff
Last active December 31, 2015 07:29
CLucene HEAD Mavericks patch repl_tchar.h
diff --git a/src/shared/CLucene/config/repl_tchar.h b/src/shared/CLucene/config/repl_tchar.h
index 159dcc1..bbb1eb2 100644
--- a/src/shared/CLucene/config/repl_tchar.h
+++ b/src/shared/CLucene/config/repl_tchar.h
@@ -28,7 +28,7 @@
#define _istdigit iswdigit //* digit char check
#define _totlower towlower //* convert char to lower case
#define _totupper towupper //* convert char to lower case
- #define _tcslwr wcslwr //* convert string to lower case
+ #define _tcslwr std::wcslwr //* convert string to lower case
@lfranchi
lfranchi / CLucene-HEAD-LuceneThreads.h.diff
Last active December 31, 2015 07:29
CLucene HEAD Mavericks patch LuceneThreads.h
diff --git a/src/shared/CLucene/LuceneThreads.h b/src/shared/CLucene/LuceneThreads.h
index 97072ee..573b40a 100644
--- a/src/shared/CLucene/LuceneThreads.h
+++ b/src/shared/CLucene/LuceneThreads.h
@@ -7,6 +7,9 @@
#ifndef _LuceneThreads_h
#define _LuceneThreads_h
+#if defined(_CL_HAVE_PTHREAD)
+ #include <pthread.h>
lycophron ♤ lein trampoline cljsbuild repl-listen (master|✚3…)[~/src/cljs-intro]
Running ClojureScript REPL, listening on port 9000.
"Type: " :cljs/quit " to quit"
WARNING: Symbol IHash is not a protocol at line 7 file:/Users/leo/.m2/repository/crate/crate/0.2.4/crate-0.2.4.jar!/crate/binding.cljs
WARNING: Symbol IWatchable is not a protocol at line 7 file:/Users/leo/.m2/repository/crate/crate/0.2.4/crate-0.2.4.jar!/crate/binding.cljs
WARNING: Symbol IPrintWithWriter is not a protocol at line 7 file:/Users/leo/.m2/repository/crate/crate/0.2.4/crate-0.2.4.jar!/crate/binding.cljs
WARNING: Symbol IDeref is not a protocol at line 7 file:/Users/leo/.m2/repository/crate/crate/0.2.4/crate-0.2.4.jar!/crate/binding.cljs
WARNING: Symbol IEquiv is not a protocol at line 7 file:/Users/leo/.m2/repository/crate/crate/0.2.4/crate-0
a
~~~~
>>> z()
~~~~
b
~~~~
c
(unsigned-bit-shift-right -890572415 30)
17179869183
scala> -890572415 >>> 30
res11: Int = 3
user> (on-realized (tcp-client {:host "lycophron.local" :port 50210 :frame ono.net/frame})
(fn [ch]
(println "Hello! Realized!"))
(fn [ch]
(println "Error!")))
:lamina/subscribed
user>
ono.core=> (l/on-realized (tcp/tcp-client {:host "lycophron.local" :port 50210 :frame ono.net/frame})
#_=> (fn [ch]
#_=> (println "Hello! Realized!"))
#_=> (fn [ch]
#_=> (println "Error!")))
:lamina/subscribed
ono.core=> Hello! Realized!
ono.core=>