Skip to content

Instantly share code, notes, and snippets.

View hamikm's full-sized avatar

Hamik Mukelyan hamikm

View GitHub Profile
{
"South": {
"Bear": {
"regions": [
{
"rows": 9,
"columns": 3,
"rowColOrigin": { "row": 1, "column": "A"},
"vertices": [{"x": 2.45, "y": 14}, {"x": 5.45, "y": 23}]
},
###############################################################################
# CS/CNS 171 Fall 2014
#
# This is a template Makefile for OpenGL programs. Edit it however you find
# convenient.
#
# The current version of this file should compile OpenGL programs just fine on
# Debian-based Linux operating systems.
#
# If you run Mac OS or other distributions of Linux, then you may have to
#include <GL/glew.h>
#include <GL/glut.h>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
struct Point
@hamikm
hamikm / grab.sh
Created March 2, 2019 17:46
Programmatically get generated AWS API Gateway SDK
# Example invocation: ./setup.sh dev baileys-cellar hamik us-east-1
# Results: gets ID # of API, uses it to grab its SDK, unzips the archive into ../web/scripts directory, then removes archive
STAGE=$1
STACK_NAME=$2
AWS_PROFILE=$3
REGION=$4
MY_DIR=$(dirname $(greadlink -f $0))
# Get the id string of the Bailey's Cellar API
@hamikm
hamikm / domain_checker.py
Created January 23, 2018 07:23
Basic script to check URL availability with mashape in python
import requests
good_status = ['undelegated', 'inactive', 'marketed', 'priced', 'transferable', 'premium']
names = ['paprika', 'corn', 'face', 'wow']
endings = ['co', 'com', 'io']
key = 'key goes here'
headers = {
'X-Mashape-Key': key,