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
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) |
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
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' |
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
{ | |
"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, |
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
{ | |
"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", |
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
package io.jpotts18.algoritms; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class JonStuff { | |
public static void main(String[] args){ |
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
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; |
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
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; |
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
var company = { | |
softwareVersion: 1, | |
oldSoftware: true, | |
owner: "you" | |
} | |
var updateTechnology = function(company){ | |
company.softwareVersion++; | |
} | |
if (company.oldSoftware) { | |
updateTechnology(company); |
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
// 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]; |
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
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 "* * * * *" |