This file contains hidden or 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
#/bin/bash | |
#Cancels all the flink jobs. Run in the $FLINK_DIR/bin | |
#@Author: Aman Garg | |
echo -e "Cancelling all flink jobs" | |
echo -e "*************************" | |
JOB_LIST=`./flink list | awk {'print $4'} | egrep '^\w+$'` | |
for i in $JOB_LIST |
This file contains hidden or 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.lang.reflect.Field; | |
import java.lang.reflect.ParameterizedType; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.stream.IntStream; | |
import org.apache.commons.lang3.ClassUtils; |
This file contains hidden or 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 os | |
import filecmp | |
import re | |
codes = {200: 'success', 404: 'file_name not found', | |
400: 'error', 408: 'timeout'} | |
class program: | |
"""Class that handles all nitty gritties of a user program""" |
This file contains hidden or 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
#!/bin/bash | |
ROOT_UID=0 | |
SUCCESS=0 | |
E_USEREXISTS=70 | |
# Run as root, of course. (this might not be necessary, because we have to run the script somehow with root anyway) | |
if [ "$UID" -ne "$ROOT_UID" ] | |
then | |
echo "Must be root to run this script." | |
exit $E_NOTROOT |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
#define inputFile "apriorinput" | |
#define _MIN_SUPPORT 2 | |
vector<set<int> > inputVec; | |
set<int> allItems; | |
/* |
NewerOlder