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
import math | |
def rgb_to_hsv(r, g, b): | |
r = float(r) | |
g = float(g) | |
b = float(b) | |
high = max(r, g, b) | |
low = min(r, g, b) | |
h, s, v = high, high, high |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# pegasos.py | |
# | |
# Copyright 2013 nipun batra <nipunb@iiitd.ac.in> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
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
{ | |
"name" : "SomeName", | |
"description" : "A description.", | |
"keywords" : ["some", "name", "foo", "bar"], | |
"homepage" : "http://some.name/", | |
"version" : "1", | |
"author" : { | |
"name" : "Christopher Joel", | |
"email" : "chris@scriptolo.gy", | |
"url" : "http://scriptolo.gy" |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |