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
echo off | |
echo Starting up oracle | |
net start OracleServiceORCL | |
net start OracleOraDb11g_home1TNSListener | |
set ACEQL_HOME=your\path\to\aceql-pro-4.0-bin | |
echo ACEQL_HOME=%ACEQL_HOME% | |
echo | |
echo PATH=%PATH% |
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
public class Question implements SQLEntity { | |
public String title; | |
public String description; | |
public String username; | |
@Override | |
public String getEntityName() { | |
return "Question"; | |
} |
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
import java.io.*; | |
import java.util.*; | |
import org.json.simple.JSONObject; | |
enum TURN{ | |
JUMP,LEFT,RIGHT | |
}; | |
class Turn{ | |
public int pos,cnt; | |
public int el; | |
TURN cmd; |
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
-- Haskell is a functional programming language | |
-- Everything is immutable so once a value is set it is set forever | |
-- Functions can be passed as a parameter to other functions | |
-- Recursion is used often | |
-- Haskell has no for, while, or technically variables, but it does have | |
-- constants | |
-- Haskell is lazy in that it doesn't execute more then is needed and instead | |
-- just checks for errors | |
-- Best Free Haskell Book |
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 <stdio.h> | |
#include <string.h> | |
#include <regex.h> | |
FILE *in,*out; | |
int nextChar(char buf[], int* cnt){ | |
buf[*cnt+1] = '\0'; | |
return fscanf(in,"%c",&buf[(*cnt)++]) > 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
if [ -e ~/.manas_aliases ] | |
then | |
echo "" | |
else | |
echo "Error: Please ensure .manas_aliases exists in your home directory" | |
if [ -e ~/.rick_vnc_config ] | |
then | |
echo "" | |
else |
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
#!/usr/bin/env bash | |
# Note this script is part of the distributed_horse_rider example over hosted at: | |
# https://github.com/Project-MANAS/distributed_horse_rider | |
touch "/tmp/dhr.sh"; chmod +x "/tmp/dhr.sh" | |
launch(){ | |
for ((i=0;i<$1;i++)) | |
do | |
echo "python3.5 -m distributed_horse_rider.${2} ${i}" > "/tmp/dhr.sh" && gnome-terminal -x "/tmp/dhr.sh" |
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
from multiprocessing import Process, Queue | |
import numpy as np | |
import tensorflow as tf | |
def store(next_m, queue): | |
with tf.Session() as sess: | |
while True: | |
queue.put(sess.run(next_m)) |