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
from copy import deepcopy | |
import boto3 | |
import requests | |
import environ | |
from PIL import Image | |
import io | |
env = environ.Env() | |
# Download an image with the url and store it in s3. |
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/sh | |
IFS=$'\n' | |
for line in $(cat images.txt) | |
do | |
url=$(echo $line | awk '{ print $1 }') | |
out=$(echo $line | awk '{ print $2 }') | |
wget --user-agent="Mozilla" "$url" -O "$out" | |
done |
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
/* | |
* NRLM Scraper by chandruscm | |
* -------------------------- | |
* - Intended for educational purposes ONLY 📖 | |
* - Use at your own risk ☠️ | |
* - Requires jsoup : https://jsoup.org | |
*/ | |
import org.jsoup.Connection | |
import org.jsoup.Jsoup |
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
/* | |
3 set of assets are used for targeting 480p, 720p and 1080p+ resolutions | |
These are packed in TextureAtlases placed in folders SD/, MD/, LD/ respectively inside res/ | |
Each containing the TextureAtlas with the name gameScreen.pack | |
*/ | |
public static float dpiScale; | |
public static String dpiPixel; | |
//Check if the dpiScale has been calculated, if not find it and save it to preference(only for the first run) |
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 mechanize | |
import getpass | |
import time | |
url = 'https://aums-apps-6.amrita.edu:8443/portal/tool/3193c471-8aec-4c93-b000-66166b6c483b' | |
br = mechanize.Browser() | |
br.set_handle_robots(False) | |
br.set_handle_refresh(False) |
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<iostream> | |
#include<ctime> | |
#include<unistd.h> | |
#include<cstdlib> | |
#include<cstdio> | |
#include<cmath> | |
using namespace std; | |
int press_enter; |