This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* fibbonacci.js | |
* Copyright (C) 2013 dhilipsiva <dhilipsiva@gmail.com> | |
* | |
* Distributed under terms of the MIT license. | |
*/ | |
function isDigit(val) { | |
/* | |
* Find if given value is a digit or not. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = 4, fib; | |
var a = (5 * Math.pow(n, 2) + 4) | |
var b=(5 * Math.pow(n, 2) - 4 ) | |
var result = Math.sqrt(a) % 1==0; | |
var res = Math.sqrt(b) % 1==0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, redirect | |
import requests | |
import MySQLdb as mdb | |
from github import Github | |
client_id = '8d4c7fafa31f1f8abf3a' | |
client_secret = 'f42dba103d8ff88399dceb77a3f7a3d9cdb359c8' | |
redirect_url = "https://localhost:5000/home" | |
authorization_base_url = 'https://github.com/login/oauth/authorize' |