Skip to content

Instantly share code, notes, and snippets.

Avatar

George geoapi

  • University of Babylon , College of IT
View GitHub Profile
@jnewman12
jnewman12 / Mongo.md
Last active Jul 15, 2020
Data Modeling With Mongo
View Mongo.md

Data Modeling with MongoDB

mongo


Objectives

  • Understand model relationships in MongoDB
  • Understand One-to-Many relationships
@amysimmons
amysimmons / js-tricky-bits.md
Last active Aug 28, 2020
Understanding closures, callbacks and promises in JavaScript
View js-tricky-bits.md

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@etes
etes / pi_mount_usb.md
Last active Aug 15, 2020
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi
View pi_mount_usb.md

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

View summary_tool.py
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
You can’t perform that action at this time.