Skip to content

Instantly share code, notes, and snippets.

View sujaykundu777's full-sized avatar
🚀
focusing

Sujay Kundu sujaykundu777

🚀
focusing
View GitHub Profile
@sujaykundu777
sujaykundu777 / MainCtrl.js
Created November 23, 2017 19:30 — forked from clouddueling/MainCtrl.js
How to authenticate using AngularJS
controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) {
$scope.$on('authLoaded', function() {
$scope.isExpert($scope.main.serieId);
$scope.isMember($scope.main.serieId);
});
$scope.loadAuth = function() {
Auth.load().success(function(data) {
$scope.main.user = data.user;
$scope.$broadcast("authLoaded");
@sujaykundu777
sujaykundu777 / Ubuntu1604py36Dockerfile
Created February 13, 2018 09:57 — forked from monkut/Ubuntu1604py36Dockerfile
Base Docker image for ubuntu-16.04 & Python3.6
# docker build -t ubuntu1604py36
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y software-properties-common vim
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN apt-get install -y git
@sujaykundu777
sujaykundu777 / step.md
Created April 30, 2018 19:12 — forked from evenchange4/step.md
Deploy a Express.js project on Heroku

Deploy a Express.js project on Heroku

Step by step from command line by Michael Hsu

Quick start

Create a Node.js web framework 'express'

$ express myfirstexpress && cd myfirstexpress

Declare dependencies with NPM /package.json

@sujaykundu777
sujaykundu777 / media-query.css
Created June 5, 2018 09:48 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@sujaykundu777
sujaykundu777 / js-concepts.md
Created July 5, 2018 11:13 — forked from ericelliott/js-concepts.md
Seven JS Concepts You Must Understand Before Your Next Job Interview

Here are seven JavaScript concepts you must understand before you go into your next JavaScript job interview:

  1. Prototypes - JavaScript is a prototype-based language. Even more, it's a delegation-based system, which means that each object has a prototype chain. When you try to access a property on an object, and that property is not found, JavaScript looks at the object's prototype. The prototype is a delegate object, which means that the property lookup is delegated to the prototype object. That object, in turn, may have its own prototype. The search continues up the prototype chain until it reaches the root prototype, which is usually Object.prototype. The best feature of this system is that many object instances can share the same methods on a prototype object, which conserves memory and enables easy code reuse. To assign a prototype to a new object, you can use Object.create(prototypeObject). Prototypal OO is the first course being offered in the "Learn JavaScript" series.

  2. Functional Programming

@sujaykundu777
sujaykundu777 / README.md
Created July 23, 2018 11:17 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@sujaykundu777
sujaykundu777 / Install WordPress Blog.md
Created July 27, 2018 17:21 — forked from janikvonrotz/Install WordPress Blog.md
Step by Step: Install WordPress Blog #PHP #MySQL #Nginx #phpMyAdmin #WordPress #Markdown #Ubuntu

Finishing this guide you'll get:

  • A running WordPress installation
  • Nginx proxy with PHP and Fast CGI
  • MySQL server accessible with phpMyAdmin

Specification of latest running installation:

  • Date: 03.03.2014

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@sujaykundu777
sujaykundu777 / horizontal menu using CSS Inline.html
Created January 13, 2019 17:05 — forked from stavrossk/horizontal menu using CSS Inline.html
An horizontal html navigation menu using CSS inline. In this example, we let the ul element and the a element float to the left. The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line. The ul element has a width of 100% and each hyperlink in the list has a width of…
<html>
<head>
<style>
ul
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}