- Set
$GOPATH
to the Hypertask directory. - Install with
glock install hypertask/api
- Synchronize with
glock sync hypertask/api
Easy...!
#!/bin/bash | |
./configure --with-x --with-features=huge --enable-rubyinterp \ | |
--enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-gtk2-check | |
make VIMRUNTIMEDIR=/usr/share/vim/vim74 | |
sudo make install | |
#Set vim as your default editor with update-alternatives. |
#!/bin/bash | |
if [ -z $1 ] | |
then | |
echo "USAGE: $0 <test file without extension>"; | |
echo "EXAMPLE: $0 TestQuickSort"; | |
exit 1; | |
fi | |
cat > .build <<EOF |
#include <iostream> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <algorithm> | |
using namespace std; | |
const int MAX = 100005; | |
char S[MAX]; | |
int Z[MAX]; |
//region Template | |
#include <bits/stdc++.h> | |
//#define ONLINE_JUDGE | |
using namespace std; | |
//ios_base::sync_with_stdio(false); | |
inline int log(const char* format, ...) | |
{ | |
#ifndef ONLINE_JUDGE | |
va_list args; | |
va_start(args, format); |
//region Template | |
#include <bits/stdc++.h> | |
//#define ONLINE_JUDGE | |
using namespace std; | |
//ios_base::sync_with_stdio(false); | |
inline int log(const char* format, ...) | |
{ | |
#ifndef ONLINE_JUDGE | |
va_list args; | |
va_start(args, format); |
2014-07-31 18:55:07,561 [main] INFO omegaup.Logging - Logger loaded for /var/log/omegaup/service.log | |
2014-07-31 18:55:07,605 [main] INFO org.eclipse.jetty.util.log - Logging initialized @758ms | |
2014-07-31 18:55:07,690 [main] INFO org.eclipse.jetty.server.Server - jetty-9.1.z-SNAPSHOT | |
2014-07-31 18:55:07,741 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@4f106738{HTTP/1.1}{0.0.0.0:39613} | |
2014-07-31 18:55:07,741 [main] INFO org.eclipse.jetty.server.Server - Started @900ms | |
2014-07-31 18:55:07,742 [main] INFO omegaup.broadcaster.Broadcaster - Registering port 39613 | |
2014-07-31 18:55:07,742 [main] INFO omegaup.broadcaster.Broadcaster - Broadcaster started | |
2014-07-31 18:55:10,444 [main] INFO omegaup.grader.RoutingDescription - Parsing routing table: | |
2014-07-31 18:55:10,536 [main] INFO omegaup.grader.RoutingDescription - Routing rule parsed: List() | |
2014-07-31 18:55:10,566 [main] INFO omegaup.grader.RoutingDescription - Parsing routing table: |
require 'twitter' | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "..." | |
config.consumer_secret = "..." | |
config.access_token = "..." | |
config.access_token_secret = "..." | |
end | |
user = 123 | |
cursor = client.follower_ids(user, count: 5000) |
function max() { | |
if [ $1 -gt $2 ] | |
then | |
echo $1 | |
else | |
echo $2 | |
fi | |
} | |
function min() { |