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
numerals = {"I":1, "V":5, "X":10, "L": 50, "C": 100, "D": 500, "M": 1000 } | |
def convert_roman(input_number): | |
range_flag = None | |
for symbol, integer in numerals.items(): | |
if integer == input_number: return symbol | |
if input_number > integer: | |
range_flag = symbol | |
remaining = input_number - numerals[range_flag] |
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
# coding: utf-8 | |
from datetime import datetime | |
from datetime import timedelta | |
def calc_diff(delta): | |
delta = abs( delta ) | |
return { | |
'year' : int(delta.days / 365), | |
'month' : int(delta.days % 365) / 30, | |
'day' : int(delta.days % 365) % 30, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
import json | |
import cv2 | |
addr = 'http://localhost:5000' | |
test_url = addr + '/api/test' | |
# prepare headers for http request | |
content_type = 'image/jpeg' | |
headers = {'content-type': content_type} |
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
border: no | |
height: 900 | |
license: gpl-3.0 |
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
[2016-10-23 19:16:49] __rvm_make | |
__rvm_make () | |
{ | |
\make "$@" || return $? | |
} | |
current path: /usr/share/rvm/src/ruby-2.3.1 | |
PATH=/home/kristian/.rbenv/bin:/home/kristian/.pyenv/shims:/home/kristian/.pyenv/bin:/home/kristian/bin:/home/kristian/bin:/home/kristian/Downloads/gcloud/google-cloud-sdk/bin:/home/kristian/.sdkman/candidates/grails/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/share/rvm/bin | |
command(2): __rvm_make -j2 | |
++ make -j2 | |
CC = gcc |
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
<?php | |
use yii\helpers\Html; | |
use yii\widgets\ActiveForm; | |
use yii\helpers\ArrayHelper; | |
use yii\helpers\Url; | |
use yii\web\View; | |
/* @var $this yii\web\View */ | |
/* @var $model common\models\ConsejoComunal */ |
NewerOlder