Skip to content

Instantly share code, notes, and snippets.

import { Injectable } from '@angular/core';
import {Http, Headers} from '@angular/http';
import 'rxjs/add/operator/map';
/*
Generated class for the Appdata provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/
[
{
"item": 1,
"header": {
"price": "12",
"percent": "10"
},
"Price": {
"current":{
"upper": "55",
static void readFile(string fileName, bool showOutput, out string[][] fileData)
{
string line;
string[] tempData;
fileData = null;
int n = 0;
if (File.Exists(fileName)) {
tempData = File.ReadAllLines(fileName, Encoding.GetEncoding("utf-8"));
foreach(string fileDataElement in tempData)
{
"data": [
{
"id": "1",
"pavadinimas": "loremas",
"img": "https://placekitten.com/g/400/200",
"tekstas": "ipsumas"
},
{
"id": "2",
[
{
"featureType": "all",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#cf3131"
div.menu a:focus{
color:#0091eb !important;
}
<div class="row" style="
text-align: right;
color: white;
padding-right: 30px;
">test</div>
36->364
364->656
315->703
115->718
217->719
474->737
520->771
307->772
111->784
521->790
11->49
41->52
13->68
54->85
12->89
47->93
68->103
70->104
52->108
12->134
#!/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')},