Skip to content

Instantly share code, notes, and snippets.

View sasasa671's full-sized avatar

Tev sasasa671

View GitHub Profile
import fileinput
import json
import csv
import sys
l = []
for line in fileinput.input():
myjson = json.loads(''.join(l))
keys = {}
<!DOCTYPE html>
<script src=""></script>
<script src="//"></script>
<script src=""></script>
<meta charset=utf-8 />
<title>JS Bin</title>
aaronksaunders / controllers.js
Last active November 9, 2018 04:51
Accessing MongoDB Example Ionic Framework - based on hello sample
angular.module('starter.controllers', [])
.controller('DashCtrl', function ($scope) {
.controller('FriendsCtrl', function ($scope, Friends) {
.then(function (_data) {
Friends.all().then(function (_data) {
iksose / restAPI.markdown
Last active September 21, 2023 06:39
Creating a REST API using Node.js, Express, and MongoDB

###Creating a REST API using Node.js, Express, and MongoDB

####Installing Node.js

Go to, and click the Install button. Run the installer that you just downloaded. When the installer completes, a message indicates that Node was installed at /usr/local/bin/node and npm was installed at /usr/local/bin/npm. At this point node.js is ready to use. Let’s implement the webserver application from the home page. We will use it as a starting point for our project: a RESTful API to access data (retrieve, create, update, delete) in a wine cellar database.

Create a folder named nodecellar anywhere on your file system. In the wincellar folder, create a file named server.js.