Skip to content

Instantly share code, notes, and snippets.

View sarancruzer's full-sized avatar
😎
Opportunities Don't Happen. You Create Them

Saravanan Nandhan sarancruzer

😎
Opportunities Don't Happen. You Create Them
View GitHub Profile
@sarancruzer
sarancruzer / auth.service.ts
Created January 3, 2018 06:12 — forked from codediodeio/auth.service.ts
Angular4 Firebase authentication service using OAuth, Anonymous, and Email/Password. Designed specifically for changes introduced in AngularFire2 4.0.0
import { Injectable } from '@angular/core';
import { AngularFireDatabaseModule, AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
import { Router } from "@angular/router";
import * as firebase from 'firebase';
@Injectable()
export class AuthService {
@sarancruzer
sarancruzer / default-ssl.conf
Created November 17, 2017 06:36 — forked from vesche/default-ssl.conf
/etc/apache2/sites-available/default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName 1.2.3.4:443
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
@sarancruzer
sarancruzer / dbconn.py
Created August 19, 2017 09:00
i get the error when i initialize the array in python
File "/var/www/html/python/flask_movie/dbconn.py", line 35, in userRegister
# name = request.json['name']
# company_name = request.json['company_name']
# address = request.json['address']
myArray = []
myArray["john"] = "johns value"
myArray["jeff"] = "jeffs value"
print myArray["john"]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>