Skip to content

Instantly share code, notes, and snippets.

class Team(models.Model):
"""
This model should be thought of as an Access Window, because
it is easier to understand what is actually going on.
"""
# Fields
name = models.CharField(_('Name'), max_length=100, blank=False)
address_1 = models.CharField(_('Address 1'), max_length=100, blank=False)
address_2 = models.CharField(_('Address 2'), max_length=100, blank=True)
state('root.auth.home.locks', {
abstract: true,
url: 'locks',
templateUrl: FILE_ROOT + 'components/home/Locks/LocksCtrl.html',
controller: 'LocksCtrl'
}).
state('root.auth.home.locks.edit', {
url: 'locks/edit',
templateUrl: FILE_ROOT + 'components/home/Locks/LockEdit.html',
controller: 'LocksCtrl'
{
"id": 1,
"name": "Office Front Lock",
"serial_num": "123123123",
"pre_shared_key": "",
"static_code": "12341234",
"status": "in use",
"lock_type": "static",
"description": "",
"is_active": true,
{
"count": 11,
"next": "http://localhost:8000/v1/companies?page=3",
"previous": "http://localhost:8000/v1/companies?page=1",
"results": [
{
"id": 3,
"name": "Alpha Company",
"img": "",
"address_1": "107 E Techno Ave",
@jpotts18
jpotts18 / ExecuteHere.java
Created July 21, 2014 05:41
Jonathan's Scrambler
package io.jpotts18.algoritms;
import java.util.ArrayList;
import java.util.List;
public class JonStuff {
public static void main(String[] args){
package com.mydietitian.md.activities.settings;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import com.mydietitian.md.R;
import com.mydietitian.md.activities.AbstractActivity;
import com.mydietitian.md.adapter.ReminderAdapter;
package com.jpotts18.myveterinarian.app.core;
import com.jpotts18.myveterinarian.app.models.Issue;
import com.jpotts18.myveterinarian.app.models.Message;
import com.jpotts18.myveterinarian.app.models.Pet;
import com.jpotts18.myveterinarian.app.models.Photo;
import com.jpotts18.myveterinarian.app.models.User;
import java.util.ArrayList;
import java.util.List;
var company = {
softwareVersion: 1,
oldSoftware: true,
owner: "you"
}
var updateTechnology = function(company){
company.softwareVersion++;
}
if (company.oldSoftware) {
updateTechnology(company);
// viewDidLoad
AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:[self getDBPath] error:&error];
for (AGSFeatureTable* fTable in gdb.featureTables) {
if ([fTable.tableName isEqual: @"wwGrid"]){
continue;
}
if ([fTable hasGeometry]) {
AGSFeatureTableLayer *featureTableLayer = [[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable];
var schedule = require('node-schedule');
var getDate = function (){
var date = new Date();
var inTenSeconds = new Date(date.getTime() + 1000);
return inTenSeconds;
}
var everyMinute = function(){
return "* * * * *"