This file contains hidden or 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 django.contrib.gis import admin | |
from django.contrib.gis.geos import Point | |
from .models import Location | |
class CustomGeoAdmin(admin.OSMGeoAdmin): | |
map_width = 800 | |
map_height = 500 | |
# Toronto | |
lon = -79.3832 |
This file contains hidden or 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
# See http://stackoverflow.com/questions/27966453/how-to-use-printhierarchy-in-lldb-console-with-swift | |
# Only Obj-C when pressing pause button | |
po [[[UIWindow keyWindow] rootViewController] _printHierarchy] | |
# Can use Swift when on breakpoint | |
po UIApplication.sharedApplication().keyWindow!.rootViewController!._printHierarchy | |
# Force Obj-C on breakpoint | |
expr -l objc++ -O -- [[[UIWindow keyWindow] rootViewController] _printHierarchy] |
This file contains hidden or 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
xcodebuild -project myProj.xcodeproj -target "myTarg" -showBuildSettings | |
xcodebuild -workspace WORKSPACE.xcworkspace -scheme SCHEME -showBuildSettings |
This file contains hidden or 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
# New Relic's script that uploads dSYMs automatically (required to symbolicate crashes) | |
SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1` | |
# Reading tokens from info.plist for this target from keys are "NewRelicToken[Prod/Dev/Debug]" | |
PROD_TOKEN="$(defaults read "${PRODUCT_SETTINGS_PATH}" NewRelicTokenProd)" | |
DEV_TOKEN="$(defaults read "${PRODUCT_SETTINGS_PATH}" NewRelicTokenDev)" | |
# Select token for configuration | |
if [ ${CONFIGURATION} = "AppStore" ]; then | |
echo "Using Production Agent Token" |
This file contains hidden or 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
What you need to get started: | |
1. Github account setup with TradeRev team | |
2. Altassian account JIRA | |
3. AWS Keys (Access and Secret Key) | |
Install pip to install AWS CLI: | |
easy_install pip | |
Install AWSCLI: | |
pip install awscli --ignore-installed six |
These functions are exactly equivalent
Reference | ||
---|---|---|
filter | where | pyspark.sql.DataFrame.filter |
drop_duplicates | dropDuplicates | pyspark.sql.DataFrame.drop_duplicates |
avg | mean | pyspark.sql.GroupedData.avg |
This file contains hidden or 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
sudo yum -y update | |
sudo yum -y install make cmake gcc gcc-c++ libtool libcurl-devel libxml2-devel curl-devel python-devel | |
#GEOS | |
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
tar xvf geos-3.4.2.tar.bz2 | |
cd geos-3.4.2/ | |
./configure | |
make | |
sudo make install |
OlderNewer