Skip to content

Instantly share code, notes, and snippets.

View fayland's full-sized avatar

Fayland Lam fayland

View GitHub Profile
@fayland
fayland / remote-typeahead.js
Created March 24, 2012 08:17 — forked from geuis/remote-typeahead.js
Remote data querying for Twitter Bootstrap 2.0 Typeahead without modifications
<script>
// Charles Lawrence - Feb 16, 2012. Free to use and modify. Please attribute back to @geuis if you find this useful
// Twitter Bootstrap Typeahead doesn't support remote data querying. This is an expected feature in the future. In the meantime, others have submitted patches to the core bootstrap component that allow it.
// The following will allow remote autocompletes *without* modifying any officially released core code.
// If others find ways to improve this, please share.
var autocomplete = $('#searchinput').typeahead()
.on('keyup', function(ev){
ev.stopPropagation();
@fayland
fayland / gwt
Created September 19, 2012 14:12
This file has been truncated, but you can view the full file.
$wnd.com_google_ads_apps_targetingideas_client_TargetingIdeas.runAsyncCallback10("function Hd(){}\nfunction $d(){}\nfunction Ff(){}\nfunction Fs(){}\nfunction hs(){}\nfunction rs(){}\nfunction Ws(){}\nfunction ok(){}\nfunction ul(){}\nfunction Hl(){}\nfunction vm(){}\nfunction Yr(){}\nfunction Pt(){}\nfunction Ut(){}\nfunction gx(){}\nfunction ix(){}\nfunction qx(){}\nfunction Xx(){}\nfunction dy(){}\nfunction hz(){}\nfunction lz(){}\nfunction nz(){}\nfunction pz(){}\nfunction rz(){}\nfunction tz(){}\nfunction tA(){}\nfunction yA(){}\nfunction DA(){}\nfunction IA(){}\nfunction NA(){}\nfunction SA(){}\nfunction uC(){}\nfunction xC(){}\nfunction HC(){}\nfunction xD(){}\nfunction uG(){}\nfunction zG(){}\nfunction IG(){}\nfunction MG(){}\nfunction VG(){}\nfunction dH(){}\nfunction aI(){}\nfunction YI(){}\nfunction hJ(){}\nfunction lJ(){}\nfunction TJ(){}\nfunction AK(){}\nfunction JK(){}\nfunction vL(){}\nfunction SL(){}\nfunction _L(){}\nfunction iM(){}\nfunction RM(){}\nfunction wN(){}\nfunction XN(){}\nfunctio
@fayland
fayland / debug.log
Created August 31, 2014 02:02
pubnub
➜ PubNub-PubSub git:(master) ✗ perl examples/subscribe.pl
<<<<<<
HTTP/1.1 200 OK
Date: Sun, 31 Aug 2014 02:00:57 GMT
Content-Type: text/javascript; charset="UTF-8"
Content-Length: 24
Connection: keep-alive
Cache-Control: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
@fayland
fayland / file1.txt
Created October 8, 2014 00:09
the description for this gist
String file contents
@fayland
fayland / gist:c3aba0bac46a9e4c9ede
Created October 18, 2014 02:49
yosemite php54
~ brew reinstall php54 --homebrew-apxs
==> Reinstalling php54 with --homebrew-apxs
==> Downloading http://www.php.net/get/php-5.4.33.tar.bz2/from/this/mirror
######################################################################## 100.0%
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.33 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/loca
3. Apache was not built using --enable-so (the apxs usage page is displayed)
@fayland
fayland / test.txt
Created October 17, 2015 04:49
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057426.585477
@fayland
fayland / test.txt
Created October 17, 2015 04:51
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057503.279866
@fayland
fayland / test.txt
Created October 17, 2015 04:52
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057596.540210
#!/usr/bin/env perl
use Mojolicious::Lite;
use Mojo::Redis2;
use Scalar::Util;
helper redis => sub { shift->stash->{redis} ||= Mojo::Redis2->new(
url => 'redis://127.0.0.1:6379/1'
); };
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ gitdiff
diff --git a/Makefile.PL b/Makefile.PL
index c2d26d3..aa85a4e 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -51,9 +51,12 @@ if (-d "/usr/include/openssl") {
} elsif (-d "/usr/local/ssl/include") {
cc_inc_paths('/usr/local/ssl/include');
cc_lib_paths('/usr/local/ssl/lib');
+} elsif (-d "/usr/local/opt/openssl/include") {