- For a 64bit Windows machine, download the MSI installer here.
- Python v2.7.9 comes with
pip
. Hence, no need to explicitly installpip
- Time to set environment variables. Here's how you do it -
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link.
- Note the value of the PATH for your Python installation. (Generally
C:\Python27
). To be able to accesspip
from anywhere, we'll have to addC:\Python27\Scripts
as well. - Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
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
#!/usr/bin/python | |
from flask import Flask, request | |
import requests | |
app = Flask(__name__) | |
@app.route("/") | |
def main(): | |
return redirect("https://kite.zerodha.com/connect/login?v3&api_key=api_key_here") |
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
package main | |
import ("fmt" | |
"errors" | |
"strconv" | |
) | |
func main() { | |
var n, m, i, j int | |
var stmnt string | |
var multiple_found bool |
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
n = int(input('Please enter the value of N: ')) | |
if n <=0: | |
raise Exception('Value of N ({}) should be greater than 0'.format(n)) | |
m = int(input('Please enter the value of M: ')) | |
if m <=0: | |
raise Exception('Value of M ({}) should be greater than 0'.format(m)) |
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
n = int(input('Please enter the value of N: ')) | |
if n <=0: | |
raise Exception('Value of N ({}) should be greater than 0'.format(n)) | |
m = int(input('Please enter the value of M: ')) | |
if m <=0: | |
raise Exception('Value of M ({}) should be greater than 0'.format(m)) |
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 tkinter import * | |
root = Tk() | |
def callback(event): | |
print(event.widget.get()) | |
e = Entry(root) | |
e.bind("<FocusOut>", callback) | |
e.grid() |
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
package com.example.bhawesh.vso.fragments; | |
import com.firebase.ui.database.FirebaseRecyclerAdapter; | |
import com.firebase.ui.database.FirebaseRecyclerOptions; | |
import com.google.firebase.database.DatabaseError; | |
import com.google.firebase.database.FirebaseDatabase; | |
import com.google.firebase.database.Query; | |
public class FaqFragment extends Fragment | |
{ |
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 | |
import requests, json | |
app = Flask(__name__) | |
@app.route('/') | |
def home(): | |
return "Hello world!" | |
@app.route('/encoded', methods=['POST']) |
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
public class MainActivity extends AppCompatActivity { | |
Button button_camera; | |
ImageView image; | |
TextView desc; | |
public static final int REQUEST_CODE = 1; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
class SignupComponent extends Component { | |
constructor (props) { | |
super(props) | |
this.state = { | |
name: '', | |
username: '', | |
email: '', | |
phone_number: '', | |
password: '', | |
smsVerificationCode: '', |