- Aardvark - Bug Report https://github.com/square/Aardvark
- AFnetworkactivity logger
- AlamoFire https://github.com/Alamofire/Alamofire
- AKSegemented control
- AsyncDisplayKit https://github.com/facebook/AsyncDisplayKit
- DZNEmptyDataset https://github.com/dzenbot/DZNEmptyDataSet
- DZNPhotoPickerController https://github.com/dzenbot/DZNPhotoPickerController
- DZNSegemented Control
- GLAnimatedImage
- FLEX
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
ALLOWED_HOSTS = ['adelar.pytonanywhere.com'] |
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
if DEBUG: | |
DATABASES = { | |
'default': { | |
'ENGINE': 'sql_server.pyodbc', | |
'NAME': 'cupcakeshop_db_local', | |
'USER': 'admincupcake', | |
'PASSWORD': '*****', | |
'HOST': 'cupcakeshop.database.windows.net', | |
'PORT': '1433', | |
'OPTIONS': { |
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
[ | |
{ | |
"model": "mapaplace.tag", | |
"pk": 1, | |
"fields": { | |
"title": "\ud55c\uad6d\uc5b4", | |
"slug": "\ud55c\uad6d\uc5b4" | |
} | |
}, | |
{ |
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
#!/bin/bash | |
# | |
# Copyright (C) 2016 The Android Open Source Project | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
- [BeautifulSoup] (https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
- [Selenium] (http://selenium-python.readthedocs.io/)
- [Regex] (https://docs.python.org/3/library/re.html)
- [Requests] (http://docs.python-requests.org/en/master/user/quickstart/#make-a-request)
- [CSV] (https://docs.python.org/3/library/csv.html)
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 bs4 import BeautifulSoup | |
import requests | |
import re | |
import csv | |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC |
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
let params = ["location": locationStr,"rtype": escapedRestaurantValue] | |
Alamofire.request(.GET, API_BASE_URL, parameters: params) | |
.responseJSON { response in | |
if let restaurants = response.result.value { | |
print("JSON: \(restaurants)") | |
if let error = restaurants["error"] { | |
print("No venue found | error :\(error)") | |
self.restaurantName.text = "Nothing found! Try again" | |
self.stopSpinner(nil) | |
return |
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
[ | |
{"name":"Peppes Pizza", | |
"latitude":"59.911342", | |
"longitude":"10.749586", | |
"address":"Karl Johans gate 1 (Jernbanetorget) 0154 Oslo Norge", | |
"photo_url":"https://irs0.4sqi.net/img/general/455x300/1089036_6y6hN44be6KeNqnl8hjS-OaLpV6i0bF-h_yXQJ5nzEQ.jpg", | |
"phone_number":"+47 22 22 55 55", | |
"venue_id":"4b67301bf964a52038402be3", | |
"checkins":1025, | |
"r_type":"pizza", |
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
# required imports | |
def getRestaurantList(ilocation,query): | |
#.... | |
# code implementation can be seen here https://github.com/hassanabidpk/searchrestaurant/blob/master/django/searchrestaurant/search/views.py | |
return result | |
class RestaurantList(APIView): | |
def get(self,request,format=None): | |
if "location" in request.GET and "rtype" in request.GET: |