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 interface TwitterAuthAPI { | |
@Headers({"content-type: application/x-www-form-urlencoded"}) | |
@POST("oauth2/token?grant_type=client_credentials") | |
Call<BearerCredential> getBearerToken(@Header("authorization") String authorization); | |
} |
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
chmod +x configure.sh | |
./configure.sh # install program dependencies | |
mkdir build # create a directory which will hold compiled files | |
cd build # enters created directory | |
cmake .. # generate makefiles | |
make # compile program | |
./app -i ../instances/abz5_f13.txt -m vns -p # execution sample running vns algorithm for abz5 instance |
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
#!/bin/bash | |
# It's necessary give the correct permissions for the brightness file | |
# Verify the correct path to the brightness file on your pc | |
# Parameters: "inc" for increment and "dec" for decrement brightness | |
#get the current brightness | |
current=`cat /sys/class/backlight/intel_backlight/actual_brightness` |
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
class Graph: | |
def __init__(self): | |
self.nodes = set() | |
self.edges = defaultdict(list) | |
self.distances = {} | |
def add_node(self, value): | |
self.nodes.add(value) | |
def add_edge(self, from_node, to_node, distance): |