- Best mentoring experience is a two-way street
- Talk to others and find out who would be interested in the process
- Is this for engineering, or the whole company
- Start a pilot program
- Ask HR about it
- Fear of doing it badly
function start_agent | |
echo "Initializing new SSH agent ..." | |
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV | |
echo "succeeded" | |
chmod 600 $SSH_ENV | |
. $SSH_ENV > /dev/null | |
ssh-add | |
end | |
function test_identities |
from django.db import models | |
import markdown | |
class Blog(models.Model): | |
content = models.TextField() | |
_html = models.TextField() | |
def save(self, *args, **kwargs): |
from django.conf import settings | |
from django.conf.urls.defaults import patterns, include, url | |
from django.contrib import admin | |
# Tells the admin to discover any 'admin.py' files in your apps. Not necessary in Django 1.7+ | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
url(r'^{}/admin/'.format(settings.ADMIN_URL_PATH), include(admin.site.urls)), | |
... |
import os | |
... | |
# Admin URL path for obfuscating the admin interface | |
ADMIN_URL_PATH = os.environ.get('ADMIN_URL_PATH') |
import uuid | |
# UUID4 is random! | |
my_uuid = uuid.uuid4() |
from django import template | |
import markdown | |
register = template.Library() | |
@register.filter | |
def markdownify(text): | |
# safe_mode governs how the function handles raw HTML | |
return markdown.markdown(text, safe_mode='escape') |
# Here we import the 'requests' library. This allows us to visit URLs | |
# straight from Python. Note that this must be installed using pip, | |
# as described in the previous post | |
import requests | |
# We define a variable which represents the URL we want to get data from | |
api_url = 'http://api.crunchbase.com/v/1/company/trackmaven.js' | |
# Next we make a dictionary of parameters that are needed to contact the | |
# API - in this case, all we need is the key that tells the API we are |