Tagged Questions
5
votes
1answer
31 views
Creating ICS calendar events from JSON-like file
the purpose of this code is to take a Taskwarrior (it's a todo list application) server file that is mostly JSON and create unique ICS calendar events. The logic mostly works: I still see some ...
1
vote
0answers
11 views
iOS - Populate TableView with JSON data
I basically want to display JSON -data in a TableView. The TableView always displays a List ...
3
votes
1answer
62 views
Using chartJS in Angularjs to plot IOT data
I am a Javascript and AngularJS beginner.
Below is the code inside my chartController. What this does is get IOT data from a back-end call and display it in my front-end with a chart. There are two ...
3
votes
0answers
52 views
MVC JavaScript app to display athletes by country
I'm new to javascript programming and not sure if I'm coding correctly.
For testing myself I created a small JS application.
The idea of app is:
List of athletes, grouped by country and the ...
4
votes
1answer
55 views
Sort and describe itinerary segments
Given some incoming some data in JSON format, representing unsorted train, bus, and flight tickets:
...
0
votes
1answer
53 views
Optimizing JSON append template
I am fetching a list of messages from some JSON and appending each message as an LI within a UL. I have created the message template within jQuery to append each message to the document. My code works ...
1
vote
0answers
48 views
JSON file for storing means and standard deviation values per demographic group
I wrote an ad hoc script in Python 3 that calculates where the patient result reside with a specific demographic group within the Turkish population, but until now I stored the data in the python code ...
5
votes
1answer
74 views
Currency Converter in Python 3
Beginner Python developer here.
I was tinkering around with Python and decided to build a currency converter. It takes in input from the user and prints out the converted currency values. The fixer.io ...
4
votes
1answer
56 views
Ruby command-line app that outputs from JSON file
I made this application that runs fine, but I feel the code is sloppy as there are many if statements. I'm a beginner so I'm not sure how to improve it, at least not without messing everything up. Any ...
5
votes
1answer
63 views
HackerNews news fetcher
The following code is part of a big application. I am new to Go, and appreciate feedback on the best practices and improvements. Please consider styling and comments as well.
Every 30 minutes, this ...
2
votes
1answer
89 views
REST API client
I am new in iOS development and Swift. I am going to develop a simple application which communicates with external REST services. This is my first experiment.
I appreciate feedback on best ...
0
votes
1answer
110 views
Javacript code to flatten JSON via recursion with conditional logic
I'm flattening a JSON structure where objects have their interaction type appended at the end, for use in an HTML/PDF generated file. I have variable names for Checkboxes, Text inputs, TextCheck is a ...
6
votes
2answers
132 views
Sending a Torrent magnet link using the Deluge JSON API
I have built this script that sends a magnet link to the client. As I never ever had any proper programming lessons I would want to ask you if this approach is good, if I am missing something, There ...
4
votes
0answers
80 views
Dynamically creating login screen on Android devices
This has been an experience. I'm well above "hello world" java is not a language I use often when programming and I don't program too much. I find myself a lot on Google.... basically just about for ...
6
votes
3answers
656 views
Simple Product Inventory software using C# and OOP
I did this small program, as part of a list of coding exercises. The list proposes the coding of a small software that's supposed to manage an inventory of products. Here's what is requested:
...
0
votes
0answers
35 views
Implementation of dynamical forms for JSON ActiveRecord using JavaScript
I have some data in my database I store as JSON (PostgreSQL supports it). The data can be pretty flexible, something like work-experience, with names of previous companies and positions or education ...
3
votes
0answers
36 views
Sorting upcoming events listed in JSON
I've written my first program in GO, a command line tool that parses JSON containing events from a file or from STDIN and outputs the upcoming events in sorted order. Please critique it!
...
3
votes
2answers
422 views
Search and sort customers from JSON file
I have just completed my first JavaScript/jquery project. It searches customers from .JSON file and sorts them by name or ID. Everything just works fine. The thing is, I am not sure that I have ...
2
votes
0answers
51 views
Correct Swift Model for JSON
I am working on a program that would generate swift classes/ structures for JSON file contents.
The link to the application is Json2Model in case you want to contribute directly.
I do not know a ...
2
votes
1answer
1k views
Calling TWITCH API and displaying online/offline users of a channel
I've got this working almost to where I want it. The part I can't get right may be due to the programming so I'd like to get a review.
I'm making JSON calls to ...
3
votes
0answers
46 views
xkcd comics data provider
Please help me improving this code(golang), thanks!
Why I need built a API for xkcd
Can't get the data provided by xkcd directly in front-end(CORS).
So we can package the data to 10 comics per ...
4
votes
1answer
2k views
Converting embedded JSON into flat table
I am new Python user, who decided to use Python to create simple application that allows for converting json files into flat table and saving the output in cvs format. I was wondering if you could ...
0
votes
2answers
261 views
Currency converter in Python 2.7
I'm a beginner and it is my first project in Python 2.7.
My goal is writing a script that I can run with two or three arguments.
If run with two arguments like ...
1
vote
1answer
175 views
Twitch client that notifies me when a followed streamer comes online
I've been writing code for a little while but I'm a little slapdash. I'd like to get better so I've been having a glance at best practices, other peoples code and reading a whole lot. I'd appreciate ...
0
votes
1answer
64 views
Collect several API call results
Want to brush up my rusty web dev skills. I want to call the twitch API for several channels and eventually call a callback function when all results are in without using a sync call.
I didn't work ...
3
votes
1answer
128 views
Angular JSON weather app
I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint.
Here's the HTML:
<...
7
votes
1answer
207 views
Parse JSON data of upcoming fixtures of Chelsea FC
This program makes a call to an API (http://api.football-data.org/) and obtains data for fixtures of Chelsea FC for the next 100 days in JSON format. The JSON is parsed into a Java object and then ...
5
votes
1answer
690 views
3
votes
1answer
73 views
Renaming video files based on episode title lookup
I'm new to F#, so I've ported an old Python script I have to F#. It scans a directory for files named something like Game.Of.Thrones.S01E02.xvidblahblah.mp4 or <...
-1
votes
2answers
4k views
Program that filters JSON data based on user selection
I have made a basic program using AngularJS that displays data from a JSON file, and filters it according to the user's selection (specifically FIFA 15 chemistry cards).
I did plenty of CSS work to ...
12
votes
2answers
154 views
A closer look at the chat's mumblings
The Go Playground was boring so I decided to make a small application that throws me into the language. It basically queries the chatroom every second for new messages and displays them in the output ...
7
votes
1answer
183 views
Small console app to execute some remote scripts
I'm learning F# and functional programming, from a background in C# and imperative/OOP. I've ported a small, one-off console app from C# to F#. The port worked (the app behaves the same way), but I'd ...
4
votes
3answers
397 views
Converting click count data to JSON
I have an array filled with 5 other arrays that consists of arrays of 2 values (first a date then a count):
...
2
votes
1answer
56 views
Fetching and displaying the provisioning status of a phone number
I have the following function:
...
1
vote
1answer
20k views
Displaying data from JSON in a table
What do you think of my code? I know it is a little rough around the edges but as of two days ago I had no idea how to use jQuery or JavaScript.
...
4
votes
1answer
913 views
Steam API JSON function
Upon coming face to face with the mighty cross-origin request block, and needing to get a JSON file from an external source, I decided to use the Yahoo Query Language in order to achieve this.
I'm ...
6
votes
1answer
16k views
JavaScript Weather App
I am pretty new to JavaScript, and put together a weather application. I'd like to get some feedback on improvements I could make to the code itself and also possible ways to speed up weather data ...
6
votes
2answers
467 views
Clean and tidy Python code for dictionary look up and API interactions
I am new to programming and entirely self-taught. Below is a program I wrote to retrieve text content via an API and scan the text for important words. If the word is found URI is returned. The API ...
6
votes
1answer
1k views
Load JSON file into model using Javascript / jQuery (deferred, asynchronous)
As a beginner I am always determined to improve myself. I've got written the following Code using jQuery that is working fine. However, I am sure that there are cleaner ways for achieving the same.
...
4
votes
1answer
111 views
Refactor Ruby code from Hacker News API. Trouble parsing the JSON data
I made a command line Hacker News reader in Ruby that pulls the latest 10 stories from HN and allows the user to cycle through them or open them with Launchy. This was to play around with Ruby and ...
6
votes
1answer
315 views
Dynamic toggle system
I'm new to jQuery/JSON and I've build an dynamic toggle system. It work fine, but I'm not sure about my code and I want a better way of building this.
Could you please see my code and give comments/...
4
votes
1answer
12k views
Converting entire table to JSON data. Is there a better way?
Building a 'card' database: I'm simply learning to take input data and store to database. Incorporating JSON, PDO, SQL, and enforcing my general coding skills through PHP, hopefully.
...
1
vote
1answer
205 views
Feedback on a small PHP function that generates JSON data
I wrote a PHP function that generates JSON data to populate a line graph. Through jQuery, my code uses a GET request to the PHP script to fetch the JSON data. An example of the JSON data is as follows:...
1
vote
1answer
198 views
Parsing XML file containing some events
I'm a beginner and have written my first Python module that parses a XML file containing some events and prints them out to stdout as JSON. I would appreciate some ...