This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module GoogleTranslate | |
class LanguageDetect | |
def self.detect(text) | |
response = google_api_call(text,"#{SERVICE}",DetectResponse) | |
return nil if !response.is_reliable | |
response.language # return value | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: It appears you have Macports or Fink installed | |
Although, unlikely, this can break builds or cause obscure runtime issues. | |
If you experience problems try uninstalling these tools. | |
==> Downloading http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz | |
######################################################################## 100.0% | |
==> Downloading patches | |
######################################################################## 100.0% | |
==> Patching | |
patching file gettext-runtime/gnulib-lib/setenv.c | |
patching file gettext-tools/gnulib-lib/execute.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drwxrwxr-x 19 marknutter staff 646 Oct 15 11:21 . | |
drwxr-xr-x@ 14 root wheel 476 May 6 23:53 .. | |
drwxr-xr-x 12 marknutter staff 408 Oct 13 17:14 .git | |
-rw-r--r-- 1 marknutter staff 84 Oct 13 17:14 .gitignore | |
drwxr-xr-x 25 marknutter staff 850 Oct 28 10:13 Cellar | |
drwxr-xr-x 6 marknutter staff 204 Oct 13 17:14 Library | |
-rw-r--r-- 1 marknutter staff 1248 Oct 13 17:14 README.md | |
drwxrwxr-x 178 marknutter staff 6052 Oct 28 10:12 bin | |
drwxrwxr-x 8 marknutter staff 272 Oct 28 10:12 etc | |
drwxr-xr-x 8 marknutter wheel 272 Jan 31 2010 git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2# sudo brew install librsvg | |
==> Downloading http://ftp.gnome.org/pub/gnome/sources/librsvg/2.26/librsvg-2.26.3.tar.gz | |
File already downloaded and cached to /Library/Caches/Homebrew | |
==> export CFLAGS='-I/usr/local/Cellar/glib/2.24.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.24.2/lib/glib-2 | |
==> export LDFLAGS='-L/usr/local/Cellar/glib/2.24.2/lib -L/usr/local/Cellar/gettext/0.17/lib -lglib-2.0 -lintl | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/librsvg/2.26.3 --enab | |
==> make install | |
Making install in . | |
CC librsvg-features.lo | |
/bin/sh ./libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I. -D_REENTRANT -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -I/usr/local/Cellar/libgsf/1.14.17/include/libgsf-1 -I/usr/local/Cellar/glib/2.24.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.24.2/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.17/include -DHAVE_SVGZ=1 -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -I/usr/local/Cellar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mark-Nutters-MacBook-Pro:~ marknutter$ brew install librsvg | |
Warning: It appears you have Macports or Fink installed | |
Although, unlikely, this can break builds or cause obscure runtime issues. | |
If you experience problems try uninstalling these tools. | |
==> Downloading http://edge.launchpad.net/intltool/trunk/0.41.0/+download/intltool-0.41.0.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/intltool/0.41.0 | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Downloading http://ftp.gnome.org/pub/gnome/sources/librsvg/2.26/librsvg-2.26.3.tar.gz | |
File already downloaded and cached to /Library/Caches/Homebrew | |
==> export CFLAGS='-I/usr/local/Cellar/glib/2.24.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.24.2/lib/glib-2 | |
==> export LDFLAGS='-L/usr/local/Cellar/glib/2.24.2/lib -L/usr/local/Cellar/gettext/0.17/lib -lglib-2.0 -lintl | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/librsvg/2.26.3 --enab | |
==> make install | |
Making install in . | |
CC rsvg-affine.lo | |
CC librsvg-features.lo | |
/bin/sh ./libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I. -D_REENTRANT -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -I/usr/local/Cellar/libgsf/1.14.17/include/libgsf-1 -I/usr/local/Cellar/glib/2.24.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.24.2/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.17/include -DHAVE_SVGZ=1 -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -I/usr/local/Cellar/libcroco/0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.find(".action_items").scroll(function() { | |
if ((!self.options.all_loaded) && (!self.options.loading_on_scroll)) { | |
$(".title_and_create:visible").html($(this).scrollTop() + " - h " + $(this).height()); | |
if ($(this).scrollTop() > $(this).height() - 40) { | |
self.options.loading_on_scroll = true; | |
self.options.params.page = self.options.params.page + 1; | |
self.getItems(true); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @license AngularJS v1.0.0rc12 | |
* (c) 2010-2012 Google, Inc. http://angularjs.org | |
* License: MIT | |
*/ | |
(function(window, angular, undefined) { | |
'use strict'; | |
/** | |
* @ngdoc overview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.3-p194@kona: | |
system: | |
uname: "Darwin Marks-iMac.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64" | |
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)" | |
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)" | |
rvm: | |
version: "rvm 1.15.5 () by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]" | |
updated: "19 days 15 hours 59 minutes 3 seconds ago" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.openDiscussion = function(discussion) { | |
window.cordovaInterface(discussion.description, function(a) { console.log(a)}); | |
$location.path(discussion.key.replace(/\:/g,'/')); | |
} |
OlderNewer