Skip to content

Instantly share code, notes, and snippets.

View lfranchi's full-sized avatar

Leo Franchi lfranchi

View GitHub Profile
@lfranchi
lfranchi / vlc-buildsystem-fix-xcode-4.3
Created June 12, 2012 07:18
VLC buildsystem fix for XCode 4.3
diff --git a/contrib/bootstrap b/contrib/bootstrap
index df3dd85..a0a7244 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -143,15 +143,19 @@ add_make_enabled()
check_macosx_sdk()
{
- [ -z "${OSX_VERSION}" ] && echo "OSX_VERSION not specified, assuming 10.5" && OSX_VERSION=10.5
- SDK="/Developer/SDKs/MacOSX${OSX_VERSION}.sdk"
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-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>
@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
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
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=>
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>
- latest.each do |article|
= render( 'article_embedded', :item => article, :extended => true ) { article.compiled_content( :snapshot => :pre ) }