I hereby claim:
- I am somnathrakshit on github.
- I am somnath (https://keybase.io/somnath) on keybase.
- I have a public key whose fingerprint is 9E7B 9FE7 555F E260 D57E 8EC2 8322 27CB 04A2 94F9
To claim this, I am signing this object:
import math | |
import random | |
def distL2((x1,y1), (x2,y2)): | |
"""Compute the L2-norm (Euclidean) distance between two points. | |
The distance is rounded to the closest integer, for compatibility | |
with the TSPLIB convention. |
/* Java program for solution of M Coloring problem | |
using backtracking */ | |
public class mColoringProblem { | |
final int V = 4; | |
int color[]; | |
/* A utility function to check if the current | |
color assignment is safe for vertex v */ | |
boolean isSafe(int v, int graph[][], int color[], | |
int c) |
#!/usr/bin/env python3 | |
'''This code should actually work with any ASCII maze that contains spaces for open paths, and a S, and E for | |
start and ending points. characters representing borders are redundant. | |
Create a text file containing the maze and type the name of the file as input | |
while running this code. | |
''' | |
''' | |
Main method in which the program starts |
BOARD_SIZE = 4 | |
def under_attack(col, queens): | |
left = right = col | |
for r, c in reversed(queens): | |
left, right = left-1, right+1 | |
if c in (left, col, right): | |
return True | |
return False |
# R is a scripting language | |
# Arithmetic Operators | |
5+5 | |
# 10 | |
# Arithmetic Operators | |
# Addition: + | |
# Subtraction: - |
class ProductAdmin(admin.ModelAdmin): | |
list_display = ('name','thumb') | |
def thumb(self, obj): | |
return render_to_string('thumb.html',{ | |
'image': obj.image | |
}) | |
thumb.allow_tags = True |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
""" | |
Upload folder to Google Drive | |
""" | |
# Enable Python3 compatibility | |
from __future__ import (unicode_literals, absolute_import, print_function, | |
division) |
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz | |
mkdir -p /usr/local/lib /usr/local/bin | |
sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib | |
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku |
captainVersion: 4 | |
services: | |
$$cap_appname: | |
environment: | |
database__client: 'mysql' | |
database__connection__host: $$cap_mariadb_host | |
database__connection__database: $$cap_ghost_database_name | |
database__connection__password: $$cap_ghost_database_password | |
database__connection__user: $$cap_ghost_database_user | |
database__connection__port: '3306' |