In this tutorial you will create and run your first science app.
git checkout tutorial/1
private static final String[] NUMBERS = {"zero","one","two","three","four","five","six","seven","eight","nine","ten"}; | |
private static final String[] OPERATIONS = {"+", "-", "×"}; | |
private static final Random RAND = new Random(); // not high entropy, but not a big deal here | |
private Map<String,String> generateCaptcha(PortletSession session) { | |
Map<String,String> captcha = new HashMap<String, String>(); | |
int first, second, third, op, pos, solution; | |
op = RAND.nextInt(OPERATIONS.length); |
{ | |
"name": "projects-running-jobs", | |
"version": "1.0.0", | |
"description": "", | |
"main": "projects-running-jobs.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Thanks to and @artemyk and @gkuenning for their nice tweaks. |
package edu.utexas.tacc.helpers; | |
import com.github.jknack.handlebars.Helper; | |
import com.github.jknack.handlebars.Options; | |
import com.liferay.portal.kernel.language.LanguageUtil; | |
import com.liferay.portal.kernel.servlet.SessionErrors; | |
import com.liferay.portal.kernel.servlet.SessionMessages; | |
import com.liferay.portal.kernel.util.JavaConstants; | |
import javax.portlet.PortletConfig; |
#!/bin/bash | |
### | |
# tomcat-pem-to-jks.sh | |
# Converts a PEM formatted TLS certificate to a PKCS12 formatted keystore, | |
# ready for import into a standard JKS formatted keystore. | |
# | |
# Usage: | |
# tomcat-pem-to-jks.sh -k /path/to/server.key -c /path/to/cert.crt -i /path/to/intermediate.crt | |
### |
from boxsdk import OAuth2, Client | |
from django.contrib.auth import get_user_model | |
from django.conf import settings | |
from designsafe.apps.box_integration.models import BoxUserToken | |
from designsafe.apps.box_integration.tasks import * | |
username = '<username>' | |
user = get_user_model().objects.get(username=username) | |
token = BoxUserToken.objects.get(user=user) |
#!/usr/bin/python | |
import sys | |
import requests | |
import json | |
from agavepy.agave import Agave | |
from django.contrib.auth import get_user_model | |
def index_metadata(username): | |
me = get_user_model().objects.get(username='') |
Mount the remote volume through whatever means. Example, sshfs
:
sshfs -o allow_other,defer_permissions,IdentityFile=~/.ssh/id_rsa <remote_user>@host:/path/to/mount /path/to/mount
Stop the machine and add the new shared folder to the VirtualBox config.
docker-machine stop