Skip to content

Instantly share code, notes, and snippets.

@ovidijusr
ovidijusr / gist:ca529f0a9f2947619c22
Last active February 22, 2016 09:04
String to int/double
atoi pvz atoi(tempVector[2].c_str());
@ovidijusr
ovidijusr / data.txt
Created February 29, 2016 08:55
LD1_atsiskaitymo data
www.fb.com,100000,8545,LIETUVA
feisbukas,1000000,8543,ESTIJA
www.bbc.com,10000,45,JAV
www.delfi.lt,2121,6565,LIETUVA
naujas viber,848515,85435,JAE
www.ryanair.com,68456331,545485,Didzioji britanija
@import url("//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css");
$color_lightBlue: #5AC8FA;
$color_blue: #007AFF;
$color_yellow: #FFCC00;
$color_green: #4CD964;
$color_orange: #FF9500;
$color_red: #FF3B30;
$color_purple: #FF2D55;
$color_gray: #8E8E93;
$color_almostWhite: #EFEFF4;
#include <iostream>
#include <cstdlib>
using namespace std;
long function(int variable, int target)
{
if (variable == 0 || variable == 1) {
return 1;
}
else {
return function(variable-1, 0) * variable;
grafas = {
'1': {'2': float('Inf'), '6': float('Inf')},
'2': {'1': float('Inf'), '3': float('Inf'), '7': 1},
'3': {'2': float('Inf'), '8': float('Inf'), '4': float('Inf')},
'4': {'3': float('Inf'), '5': float('Inf'), '9': float('Inf')},
'5': {'4': float('Inf'), '10': float('Inf')},
'6': {'7': 1, '11': 1, '1': float('Inf')},
'7': {'2': 1, '6': 1, '8': 1, '12': float('Inf')},
'8': {'3': float('Inf'), '13': 1, '7': 1, '9': 1},
'9': {'4': float('Inf'), '8': 1, '10': 1},
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
grafas = {
'1': {'2': float('Inf'), '6': float('Inf')},
'2': {'1': float('Inf'), '3': float('Inf'), '7': 1},
'3': {'2': float('Inf'), '8': float('Inf'), '4': float('Inf')},
'4': {'3': float('Inf'), '5': float('Inf'), '9': float('Inf')},
'5': {'4': float('Inf'), '10': float('Inf')},
'6': {'7': 1, '11': 1, '1': float('Inf')},
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
grafas = {
'1': {'2': float('Inf'), '6': float('Inf')},
'2': {'1': float('Inf'), '3': float('Inf'), '7': 1},
'3': {'2': float('Inf'), '8': float('Inf'), '4': float('Inf')},
'4': {'3': float('Inf'), '5': float('Inf'), '9': float('Inf')},
'5': {'4': float('Inf'), '10': float('Inf')},
'6': {'7': 1, '11': 1, '1': float('Inf')},
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
grafas = {
'1': {'2': float('Inf'), '6': float('Inf')},
'2': {'1': float('Inf'), '3': float('Inf'), '7': 1},
'3': {'2': float('Inf'), '8': float('Inf'), '4': float('Inf')},
'4': {'3': float('Inf'), '5': float('Inf'), '9': float('Inf')},
'5': {'4': float('Inf'), '10': float('Inf')},
'6': {'7': 1, '11': 1, '1': float('Inf')},
11->49
41->52
13->68
54->85
12->89
47->93
68->103
70->104
52->108
12->134
36->364
364->656
315->703
115->718
217->719
474->737
520->771
307->772
111->784
521->790