Skip to content

Instantly share code, notes, and snippets.

View Shahn-Auronas's full-sized avatar
💭
Head-down on App

Shahn Auronas Shahn-Auronas

💭
Head-down on App
  • American Express
  • Phoenix, AZ
View GitHub Profile
@Shahn-Auronas
Shahn-Auronas / StatsTableViewController.swift
Created January 27, 2017 15:23
A Table View Controller that uses charts and graphs in dynamically expandable cells
//
// StatsTableViewController.swift
//
// Created by Shahn Auronas on 12/16/16.
// Copyright © 2016 Shahn Auronas. All rights reserved.
//
import Foundation
import UIKit
import ASPCircleChart
@Shahn-Auronas
Shahn-Auronas / MoveToLocaction
Created June 16, 2014 17:31
Using button within project details page to display on map
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[[tableView cellForRowAtIndexPath:indexPath] setSelected:YES];
if (indexPath.section == MAP_SECTION) {
if ([self.locationTextField isFirstResponder]) {
[self.locationTextField resignFirstResponder];
}
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
@Shahn-Auronas
Shahn-Auronas / using_djan
Created June 7, 2014 18:07
Django/Python Notes
1. django-admin.py startproject <mysite>
creates folder <mysite>
with:
manage.py: A command-line utility that lets you interact with this Django project in various ways.
mysite/: actual python package for the project
__init__.py: An empty file that tells Python that this directory should be considered a Python package.
settings.py: Settings/configuration for this Django project
urls.py: The URL declarations for this Django project; a “table of contents” of your Django-powered site.
wsgi.py: An entry-point for WSGI-compatible web servers to serve your project.