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
var outerVar = 0; | |
for (var i = 0; i < 100; i++) { | |
if (i % 10 === 0) { | |
outerVar++ | |
} | |
} |
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
var objects = {}; | |
var array = "Address\\DeliveryPointValidationStatus\\Description".split('\\'); | |
var array2 = "Address\\DeliveryPointValidationStatus\\Code".split('\\'); | |
var array3 = "Employee\\Name".split('\\'); | |
createNestedObj(objects, array, "Bleh"); | |
createNestedObj(objects, array2, "CodeBleh"); | |
createNestedObj(objects, array3, "BigBen"); | |
console.log(objects); |
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
class User(UserMixin, db.Model): | |
__tablename__ = 'users' | |
id = db.Column(db.Integer, primary_key=True) | |
email = db.Column(db.String(64), unique=True, index=True) | |
username = db.Column(db.String(64), unique=True, index=True) | |
password_hash = db.Column(db.String(128)) | |
@property | |
def password(self): | |
raise AttributeError('password is not a readable attribute') |
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
- (IBAction)didClickAddButton:(UIBarButtonItem *)sender { | |
NSArray *time = @[@"10:00", @"11:00", @"12:00", @"1:00", @"2:00", @"3:00", @"4:00", @"5:00", @"6:00", @"7:00", @"8:00"]; | |
NSArray *zoneName = @[@"Vestibule / Front End Area",@"Sales Floor",@"Receiving Area",@"Building Specific",]; | |
NSArray *checkItems = @[ | |
@[@"Trash, spills & trip hazards",@"Electrical hazards",@"Emergency exits",@"Optical",@"Entrance / Exit"], | |
@[@"Trash, spills & trip hazards",@"Electrical hazards",@"Emergency exits",@"Merchandise issues",@"Road shows",@"Unattended pallet jacks",@"Walk-in coolers",@"Demo areas",@"Display safety",@"Jewelry / Alarmed displays"], | |
@[@"Trash, spills & trip hazards",@"Electrical hazards",@"Emergency exits",@"Safe stacks / storage",@"Roof hatch",@"Overhead heaters",@"Compactors",@"Re-wrap machine",@"RTV",@"Receiving doors",@"Eye wash station"], | |
@[] | |
]; | |
for ( |
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
/* JSON File | |
{ | |
"batchcomplete": "", | |
"continue": { | |
"sroffset": 10, | |
"continue": "-||info" | |
}, | |
"query": { | |
"searchinfo": { | |
"totalhits": 20345 |