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
export PS1=$'\n\[\033[35m\]\u@\h:$PWD`git branch 2> /dev/null | grep -e ^* | sed s/"* "// | sed s/^/"\[\033[31\]m ⏣ \[\033[0;32m\]"/`\n\[\033[35m\] \[\033[m\]' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<assembly | |
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | |
<id>jar-with-dependencies</id> | |
<formats> | |
<format>jar</format> | |
</formats> | |
<includeBaseDirectory>false</includeBaseDirectory> |
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
============ OUTPUT FROM: HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install opencv | |
/usr/bin/env python -c import numpy | |
/usr/bin/env python -c import numpy | |
==> Downloading http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.4/OpenCV-2.4.4a.tar.bz2 | |
Already downloaded: /Library/Caches/Homebrew/opencv-2.4.4a.tar.bz2 | |
tar xf /Library/Caches/Homebrew/opencv-2.4.4a.tar.bz2 | |
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.4a -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DWITH_CUDA=OFF -DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_PNG=OFF -DBUILD_JPEG=OFF -DBUILD_JASPER=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DPYTHON_LIBRARY='/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Python' -DPYTHON_INCLUDE_DIR='/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Headers' -DPYTHON_PACKAGES_PATH='/usr/local/Cellar/opencv/2.4.4a/lib/python2.7/site-packages' .. | |
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.4a -DCMAKE_BUILD_TYPE=None - |
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
PS1=$'\n\[\033[35m\]\u@\h:$PWD`git branch 2> /dev/null | grep -e ^* | sed s/"* "// | sed s/^/"\[\033[31\]m ⏣ \[\033[0;32m\]"/`\n\[\033[35m\] \[\033[m\]' |
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
% DATABASE - connect to a SQL database | |
% | |
% Usage: | |
% c = database(url, user, password, driverName) | |
% | |
% Inputs: | |
% url = The database URL. e.g. jdbc:jtds:sqlserver://solstice.shore.mbari.org:1433/EXPD | |
% user = The user name to connect to the database | |
% password = THe password for user | |
% driverName = the name of the JDBC driver to use for the connection. |
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
class Sample1 { | |
// --- Native methods | |
@native def intMethod(n: Int): Int | |
@native def booleanMethod(b: Boolean): Boolean | |
@native def stringMethod(s: String): String | |
@native def intArrayMethod(a: Array[Int]): Int | |
} | |
object Sample1 { |
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
/* DO NOT EDIT THIS FILE - it is machine generated */ | |
#include <jni.h> | |
/* Header for class Sample1 */ | |
#ifndef _Included_Sample1 | |
#define _Included_Sample1 | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* |
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
#include "Sample1.h" | |
#include <ctype.h> | |
#include <string.h> | |
// Mutate array to uppercase | |
void uppercase(char* str) { | |
size_t n = strlen(str); | |
for (size_t i = 0; i < n; i++) { | |
str[i] = toupper(str[i]); | |
} |
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
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
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
[ | |
{"ConceptName": "Pandalus", | |
"Salinity": 35.234, | |
"Associations": [ | |
"eating | Sergestes | nil", | |
"surface-color | self | red", | |
"upon | bedrock | nil" | |
], | |
"ImageURL": "http://www.foo.com/bar.png" | |
}, |
OlderNewer