Skip to content

Instantly share code, notes, and snippets.

@hashg
hashg / webdev_online_resources.md
Created July 9, 2021 19:06 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@hashg
hashg / .eslintrc.js
Created May 12, 2020 02:31 — forked from tracker1/.eslintrc.js
eslint-prettier
module.exports = {
parser: 'babel-eslint',
extends: ['plugin:prettier/recommended', 'prettier/react'],
plugins: ['prettier', 'jest'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
@hashg
hashg / dummy-web-server.py
Created May 4, 2020 22:43 — forked from bmcculley/dummy-web-server.py
a minimal http server in python (2/3). Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@hashg
hashg / README.md
Created May 4, 2020 22:41 — forked from nitaku/README.md
Minimal JSON HTTP server in python

A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.

python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
@hashg
hashg / git.merge.md
Created December 2, 2019 18:49
How to get changes from another branch
  • go to the master branch our-team

git checkout our-team

  • pull all the new changes from our-team branch

git pull

  • go to your branch featurex

git checkout featurex

  • merge the changes of our-team branch into featurex branch
@hashg
hashg / Readme.md
Last active November 20, 2019 22:38 — forked from shiningnicholson95/SetupGuide.md
Smarthub setup

Initial Setup Guides

SmartHub

Installing Node.js

  1. Node.js is essential for the project. Download it here: https://nodejs.org/en/. Download the LTS version.
  2. Install n. It maintains the version of node.js from time to time.
  3. In your terminal install nodemon. Nodemon is an npm package.
  4. Run the command: npm install nodemon –g

Above command installs the nodemon globally.

@hashg
hashg / readme.md
Last active September 6, 2019 08:23

Header 1

Header 2

header 3

  1. One
  2. Two
  3. Three
  • One
  • Two
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
firstName: 'Alex',
lastName: 'Matchneer',
fullName: auto(get =>
@hashg
hashg / index.html
Created February 9, 2017 06:07 — forked from nolanlawson/index.html
pouchdb-load example
<html>
<body>
<pre id="display"></pre>
<script src="pouchdb.js"></script>
<script src="pouchdb.load.js"></script>
<script>
var db = new PouchDB('turtles');
db.get('_local/preloaded').catch(function (err) {
if (err.status !== 404) {
throw err;