code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh PYTHONPATH=./lib python -3 -W ignore create_theme_preview.py
Shell
#!/bin/sh PYTHONPATH=../lib python "$@"
Shell
#!/bin/sh xgettext --package-name=pychess -o lang/pychess.pot glade/*.glade lib/pychess/Main.py lib/pychess/*/*.py lib/pychess/*/*/*.py sidepanel/*.py sidepanel/*.glade sed -i '/#, fuzzy/d' lang/pychess.pot line=""Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"" sed -i "/${line}/ s/^/# /" lang/pychess.pot
Shell
#!/bin/sh PYTHONPATH=./lib python -3 -W ignore pgn2ecodb.py
Shell
#!/bin/sh PYTHONPATH=/home/tamas/gbtami-database/lib python -m cProfile -o rep.prof PgnImport.py python print_pstats.py
Shell
#!/bin/sh # Only enter the script if the opening connection type is GPRS if [ "$ICD_CONNECTION_TYPE" -a "$ICD_CONNECTION_TYPE" == "GPRSv6" ]; then killall nat64d echo 0 >/proc/sys/net/ipv6/conf/all/forwarding fi
Shell
#!/bin/sh # Only enter the script if the opening connection type is GPRS if [ "$ICD_CONNECTION_TYPE" -a "$ICD_CONNECTION_TYPE" == "GPRSv6" ]; then /usr/sbin/nat64d >/tmp/nat64d.log 2>&1 </dev/null & fi
Shell
#!/bin/bash if [ ! -e eigen-android ]; then hg clone https://bitbucket.org/eigen/eigen eigen-android else cd eigen-android && hg pull && hg update fi
Shell
#!/bin/sh current_dir=`pwd` mkdir -p download cd download if [ ! -e boost_1_45_0.tar.gz ] then echo "wget'ing boost'" #this url is for convenience, consider it a mirror and you may replace it #with any existing boost_1_45_0.tar.gz url boost_download=http://vault.willowgarage.com/wgdata1/vol1/android_bo...
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < android.patch
Shell
#!/bin/sh if [ $# -ne 1 ] then echo "Error in $0 - Invalid Argument Count" echo "Syntax: $0 boost_1_45_0" exit fi patch $1/libs/filesystem/v2/src/v2_operations.cpp < filesystem.patch patch $1/boost/detail/endian.hpp < endian.patch
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk to." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0b7...
Shell
if [ -z "$1" ] then echo "Usage: `basename $0` <path> the path will be used to download and untar the android-ndk into." exit $E_NOARGS fi export destination=$1 if [ ! -e $destination ]; then echo "$destination does not exist!" exit 1 fi ball=android-ndk-r5b-linux-x86.tar.bz2 hash=4c0045ddc2bfd657be9d5177d0e0...
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-android-cmake \ --path .
Shell
#this generates an ant based cli build of the android-jni project android update project --name HelloGL2 \ --path .
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloBoost.jar
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloBoost
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
#!/bin/sh #this generates an ant based cli build of the android-jni project android update project --name hello-eigen \ --path .
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloEigen.jar
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloEigen
Shell
#!/bin/bash #javac HelloWorld.java cd java && ant
Shell
#!/bin/bash LD_LIBRARY_PATH=./lib/pc export LD_LIBRARY_PATH java -jar java/dist/lib/HelloCMake.jar
Shell
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
Shell
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) an...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2012 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 gelin, 2011 mihovilic # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at...
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2010 Denis Nelubin aka Gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
Shell
#!/bin/sh TARGETS=$* buildin() { BASE_DIR=$(pwd) cd $1 ant $TARGETS cd $BASE_DIR } buildin core buildin skins/black-text buildin skins/white-text buildin skins/black-text-plus buildin skins/white-text-plus buildin skins/bigger-text
Shell
#!/bin/sh # # Android Weather Notification. # Copyright (C) 2014 gelin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) an...
Shell
#!/bin/bash : ${MAKESELF:=/usr/share/loki-setup/makeself} : ${SETUPIMAGE:=/usr/share/loki-setup/image} : ${VERSION:=0.0_`date +%Y%m%d%H%M`} : ${RELEASE:=0} set -e set -x shopt -s nullglob rm -rf image mkdir image ### loki-setup files cp -a $SETUPIMAGE/{setup.data,setup.sh} image/ ### splash rm -f image/setup.dat...
Shell
#!/bin/sh CWD=`pwd` BASE=$CWD/../.. if [ "$TMP" = "" ]; then TMP=/tmp fi # clean, update make -C $BASE clean || exit 1 svn up $BASE || exit 1 # extract version info VERSION=`grep "\#define *PRODUCT_VERSION" $BASE/code/qcommon/q_shared.h | \ sed -e 's/[^"]*"\(.*\)"/\1/'` SVN_REV=`LANG=C svnversion $BASE` if [ ! ...
Shell
#!/bin/sh # # @(#)postinstall $Id: postremove,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: postinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/bash # Rev: $Id: ioq3ded.sh,v 1.9 2006/01/18 13:47:42 raistlin Exp raistlin $ # Needed to make symlinks/shortcuts work. # the binaries must run with correct working directory IOQ3_DIR=/usr/local/share/games/quake3 if [ "x${LD_LIBRARY_PATH}" = "x" ]; then LD_LIBRARY_PATH="${IOQ3_DIR}/lib" else LD_LIBRARY_PATH...
Shell
#!/bin/bash # Rev: $Id: ioquake3.sh,v 1.11 2006/01/18 13:47:42 raistlin Exp raistlin $ # Needed to make symlinks/shortcuts work. # the binaries must run with correct working directory IOQ3_DIR=/usr/local/share/games/quake3 if [ "x${LD_LIBRARY_PATH}" = "x" ]; then LD_LIBRARY_PATH="${IOQ3_DIR}/lib" else LD_LIBRARY_PA...
Shell
#!/bin/sh # # @(#)postinstall $Id: postremove,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: postinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postremove $Id: postremove,v 1.3 2006/01/21 12:54:52 coyote Exp $ # # postremove script for quake3 quake3_dir=$BASEDIR dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin if [ -d ${dest_dir} ]; then for inst_script in ioq3ded.sh ioquake3.sh do dest_script=${dest_dir}/${inst_script} if [ -h ${dest_scrip...
Shell
#!/bin/sh # # @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh # # @(#)postinstall $Id: postinstall,v 1.3 2006/01/21 12:54:52 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR/quake3 dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin if [ -d ${dest_dir} ]; then for inst_script in ioq3ded.sh ioquake3.sh do dest_script=${dest_dir}/${inst_script} if [ ! -h ...
Shell
#!/bin/sh # # @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $ # # postinstall script for quake3 quake3_dir=$BASEDIR exit 0
Shell
#!/bin/sh set -e if ! test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then exit 0 fi xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null` if test "x$xdg_desktop_menu" = x; then xdg_desktop_menu=./xdg-desktop-menu fi sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/ioquake3#" \ -e "s#^Icon=.*#Icon=$SETUP_INSTALLPAT...
Shell
#!/bin/sh rmdir --ignore-fail-on-non-empty demoq3 missionpack >& /dev/null if test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null` if test "x$xdg_desktop_menu" = x; then xdg_desktop_menu=./xdg-desktop-menu fi $xdg_desktop_menu uninstall --novendor ioqu...
Shell
#!/bin/sh readlink() { local path=$1 ll if [ -L "$path" ]; then ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" && echo "${ll##* -> }" else return 1 fi } script=$0 count=0 while [ -L "$script" ] do script=$(readlink "$script") count=`expr $count + 1` if [ $c...
Shell
#!/bin/bash # Source directory MOUNT_DIR="../.." # Solaris stuff PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'` if [ "X${PLATFORM}" != "Xsunos" ]; then echo "Unsupported platform! Must run this script on Solaris host!" ; exit 127 fi if [ "X`uname -m`" = "Xi86pc" ]; then ARCH=i386 else ARCH=sparc fi ...
Shell
#!/bin/sh readlink() { local path=$1 ll if [ -L "$path" ]; then ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" && echo "${ll/* -> }" else return 1 fi } script=$0 count=0 while [ -L "$script" ] do script=$(readlink "$script") count=`expr $count + 1` if [ $co...
Shell
#!/bin/bash # # This script appends the text from Q3A_EULA.txt to a .dmg as a SLA resource # # usage is './SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg' # if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then echo "usage: ./SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg" exit 1; fi if [ ! -r $1 ]; then ech...
Shell
#!/bin/sh APPBUNDLE=ioquake3.app BINARY=ioquake3.ub DEDBIN=ioq3ded.ub PKGINFO=APPLIOQ3 ICNS=misc/quake3.icns DESTDIR=build/release-darwin-ub BASEDIR=baseq3 MPACKDIR=missionpack BIN_OBJ=" build/release-darwin-ppc/ioquake3-smp.ppc build/release-darwin-i386/ioquake3-smp.i386 " BIN_DEDOBJ=" build/release-darwin-ppc/ioq...
Shell
#!/bin/sh export CC=i586-mingw32msvc-gcc export WINDRES=i586-mingw32msvc-windres export PLATFORM=mingw32 exec make $*
Shell
#!/bin/sh # configure script for zlib. This script is needed only if # you wish to build a shared library and your system supports them, # of if you need special compiler, flags or install directory. # Otherwise, you can just use directly "make test; make install" # # To create a shared library, use "configure --shared...
Shell
#! /bin/bash aclocal -I ac_macros/ autoconf autoheader automake --add-missing
Shell
#-*- mode: shell-script;-*- # Ulogic tools completion. # Copyright 2007 Jean-Baptiste Note <jbnote@gmail.com> # _ulogic() { local cur prev opts base COMPREPLY=() CMD=$1 cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" # # Complete the arguments to some of the basic comm...
Shell
#! /bin/bash . log-functions COMPARE="cmp -s" #MAKE is set by make itself from above function get_dirs() { DIRS=`ls -d $1/*/` } function test_family() { get_dirs $family for chip in $DIRS; do #echo "Descending in chip $chip" test_chip || exit 1 done } function test_chip() { get_dirs $chip ...
Shell
#! /bin/bash source $srcdir/test.sh echo "************************" echo "Testing Virtex-II Family" echo "************************" MAKEFILE="$srcdir/testmake.mk DEBIT=\$(top_builddir)/debit DUMPARG=--framedump" family=virtex2 test_family
Shell
#! /bin/bash source $srcdir/test.sh echo "***********************" echo "Testing Virtex-4 Family" echo "***********************" MAKEFILE="$srcdir/testmake.mk DEBIT=\$(top_builddir)/debit_v4 DUMPARG=--unkdump XDL2BIT=\$(top_builddir)/xdl/xdl2bit_v4" family=virtex4 test_family
Shell
#! /bin/bash source $srcdir/test.sh echo "************************" echo "Testing Spartan-3 Family" echo "************************" MAKEFILE="$srcdir/testmake.mk DEBIT=\$(top_builddir)/debit_s3 DUMPARG=--framedump XDL2BIT=\$(top_builddir)/xdl/xdl2bit_s3" family=spartan3 test_family
Shell
#! /bin/bash source $srcdir/test.sh echo "************************" echo "Speed Virtex-II Family" echo "************************" function speed_design() { local DESIGN_NAME=$1; echo "Doing speed analysis for design $DESIGN_NAME" make -s --no-print-directory -f $MAKEFILE ${DESIGN_NAME}.allspeed } CALLED...
Shell
#! /bin/bash source $srcdir/test.sh echo "***********************" echo "Testing Virtex-5 Family" echo "***********************" MAKEFILE="$srcdir/testmake.mk DEBIT=\$(top_builddir)/debit_v5 DUMPARG=--unkdump XDL2BIT=\$(top_builddir)/xdl/xdl2bit_v5" family=virtex5 test_family
Shell
#! /bin/bash #This script converts windows .pc files for gtk to a linux-xcompile-environment safe version . cross.env PCDIR=$WINGTK_PATH/lib/pkgconfig echo "Converting .pc files in $PCDIR" cd $PCDIR for f in *.pc; do if grep 'prefix=' $f >/dev/null 2>&1 ; then cat $f | sed s+^prefix=.*$+prefix=$WINGTK_PATH+ >...
Shell
#! /bin/bash #small script to cross-compile the packages for windows. BUILD_DIR=build SOURCE_DIR=../.. . cross.env #get the absolute path SOURCE_DIR=$(cd $(dirname ${SOURCE_DIR}) && pwd) make -C $SOURCE_DIR distclean echo "Compiling for target ${TARGET} in ${BUILD_DIR} from ${SOURCE_DIR}" echo "PKGCONFIG path is ...
Shell
#! /bin/bash BASEDIR=$1 OUTNAME=$2 pushd $BASEDIR DIRS=`find data/* -type d | sed -e 's:/:\\\\:g' | awk '{ print "File /r ${SRCDIR}\\\\" $0 }'` #Then top-level files ending in .db FILES=`find data -maxdepth 1 -name '*.db' | sed -e 's:/:\\\\:g' | awk '{ print "File ${SRCDIR}\\\\" $0 }'` popd echo "$DIRS" > ${OUTNAME} ...
Shell
#!/bin/bash if [ $# != 1 ] then echo "Usage: $0 emailAddress" exit 1 fi read -s -p "Password: " mypassword echo "" curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
Shell
#!/bin/sh # Need to run a full clean install when changing the request factory interfaces # Doing so deletes the local debug app engine database # This script backs that up first SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated DEST=../db_backup rm -r $DEST mkdir $DEST cp -...
Shell
#!/bin/sh # Create a backup tar gzip file of the cwd with the date appended # located in the parent directory. FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz echo Will create $FILENAME tar cfz $FILENAME . echo Done.
Shell
#!/bin/sh cd build if [ -f public_html.tar.gz ] then rm public_html.tar.gz fi if [ -d public_html ] then rm -fR public_html fi cp -R html public_html tar -czvf public_html.tar.gz public_html scp public_html.tar.gz openlyri@openlyrics.info: ssh openlyri@openlyrics.info 'tar -xzvf public_html.tar.gz; rm public_h...
Shell
#!/bin/sh python setup.py --command-packages=stdeb.command sdist_dsc --workaround-548392=False bdist_deb
Shell
#!/bin/sh PYTHONPATH=./lib python -3 -W ignore create_theme_preview.py
Shell
#!/bin/sh PYTHONPATH=../lib python "$@"
Shell
#!/bin/sh xgettext --package-name=pychess -o lang/pychess.pot glade/*.glade lib/pychess/Main.py lib/pychess/*/*.py lib/pychess/*/*/*.py sidepanel/*.py sidepanel/*.glade sed -i '/#, fuzzy/d' lang/pychess.pot line=""Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"" sed -i "/${line}/ s/^/# /" lang/pychess.pot
Shell
#!/bin/sh PYTHONPATH=./lib python -3 -W ignore pgn2ecodb.py
Shell
#!/bin/sh PYTHONPATH=/home/tamas/gbtami-database/lib python -m cProfile -o rep.prof PgnImport.py python print_pstats.py
Shell
#!/bin/sh scp -q res/values/strings.xml linode:ath/incoming/en.xml wget --quiet -O /dev/null --ignore-length --post-data="" http://ath.darshancomputing.com/bi/load_new_en if [ "$?" -ne "0" ]; then echo "Sorry, something didn't work!" exit 1 fi
Shell
#!/bin/bash #ruby generate_images.rb #for i in res/drawable/b[0-9]*.png; do mogrify -resize 25x25 $i; done #gimp res/drawable/b100.png #for i in res/drawable/*.png; do mogrify -sharpen 25x25 $i; done # shift ("roll") images 1px to the right # for i in numbers/*.png; do convert $i -roll +1+0 $i; done d=`dirname $(rea...
Shell
#!/bin/sh # After initial checkout from svn, you'll want to run this as your first step. android update project --path . --name "BatteryIndicator" --target "android-16"
Shell
make if [ ! -e news.2012.en.shuffled ]; then wget http://www.statmt.org/wmt14/training-monolingual-news-crawl/news.2012.en.shuffled.gz gzip -d news.2012.en.shuffled.gz -f fi sed -e "s/’/'/g" -e "s/′/'/g" -e "s/''/ /g" < news.2012.en.shuffled | tr -c "A-Za-z'_ \n" " " > news.2012.en.shuffled-norm0 time ./word2phrase...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15 ./distance vectors.bin
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15 ./compute-accuracy vectors.bin 30000 < questions-words.txt # to compute...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi time ./word2vec -train text8 -output classes.txt -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -iter 15 -classes 500 sort classes.txt -k 2 -n > classes.sorted.txt echo The word classes ...
Shell
make if [ ! -e text8 ]; then wget http://mattmahoney.net/dc/text8.zip -O text8.gz gzip -d text8.gz -f fi echo --------------------------------------------------------------------------------------------------- echo Note that for the word analogy to perform well, the model should be trained on much larger data set e...
Shell
############################################################################################### # # Script for training good word and phrase vector model using public corpora, version 1.0. # The training time will be from several hours to about a day. # # Downloads about 8 billion words, makes phrases using two runs of...
Shell
make if [ ! -e news.2012.en.shuffled ]; then wget http://www.statmt.org/wmt14/training-monolingual-news-crawl/news.2012.en.shuffled.gz gzip -d news.2012.en.shuffled.gz -f fi sed -e "s/’/'/g" -e "s/′/'/g" -e "s/''/ /g" < news.2012.en.shuffled | tr -c "A-Za-z'_ \n" " " > news.2012.en.shuffled-norm0 time ./word2phrase...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright 2005-2012, Cake Software Foundation, Inc. # # Licensed under The MIT Lic...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script # PHP 5 # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licen...
Shell
# adjust paths below and then run # . ./android-gcc-setup.sh # to setup build environment export NDK=/cygdrive/d/Code/android/android-ndk-r3 HOST_TYPE=windows ANDROID_VERSION=3 LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib export CFLAGS="-march=armv5te -mtune=xscale" export CC=$NDK/build/preb...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` . $SCRIPTDIR/android-gcc-setup.sh cd $SCRIPTDIR/.. if [ ! -d "deps" ] then mkdir -p deps fi cd deps DEPSDIR=$PWD JNIDIR=$DEPSDIR/../jni if [ ! -d "$JNIDIR/pdfview2/lib" ] then mkdir -p $JNIDIR/pdfview2/lib fi if [ ! -d "$JNIDIR/pdfview2/include" ] then mkdir -p $JNIDIR/pd...
Shell
# This file will start the Osm Extraction UI with custom memory settings for # the JVM. With the below settings the heap size (Available memory for the application) # will range from 64 megabyte up to 512 megabyte. #/usr/lib/jvm/java-6-sun/jre/bin/ if [ -n "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | g...
Shell