Skip to content

Instantly share code, notes, and snippets.

'''
1 -> 2 -> 4
/
3
2 is a direct edge to 3.
'''
var arrayOfObjects = [
{
name: 'Diana',
born: 1373925600000, // Mon, Jul 15 2013
num: 4,
sex: 'female'
},
{
name: 'Doris',
born: 1354412087000, // Sat, Dec 1 2012
app.controller('HomeController', ['$scope', 'emails', function($scope, emails) {
emails.success(function(data) {
$scope.emails = data;
});
// $scope.emails = [
// {
// from: "Shawn Carter",
// datetime: 1420816800000,
// subject: "Current state of mind",
app.controller('HomeController', ['$scope', function($scope) {
$scope.emails = [
{
from: "Shawn Carter",
datetime: 1420816800000,
subject: "Current state of mind",
message: "Yeah I'm out that Brooklyn, now I'm down in Tribeca. Want to check out that new bistro?",
unread: true
},
{
@bcuz
bcuz / z.js
Created October 4, 2018 16:01
app.factory('emails', [function() {
var stuff = [
{
from: "Shawn Carter",
datetime: 1420816800000,
subject: "Current state of mind",
message: "Yeah I'm out that Brooklyn, now I'm down in Tribeca. Want to check out that new bistro?",
unread: true
},
{
app.controller('MainController', ['$scope', function($scope) {
$scope.program = {
series: "Sherlock",
series_img: "http://placehold.it/300x300",
genre: "Crime drama",
season: 3,
episode: "The Empty Hearse",
description: "Two years after his reported Reichenback Fall demise",
datetime: new Date(2014, 11, 31, 21, 00, 00)
}
varA=input()
varB=input()
if (type(varA) == str) or (type(varB) == str):
print( "string involved")
# else:
try:
varA=int(varA)
varB=int(varB)
varA=input()
varB=input()
if (type(varA) == str) or (type(varB) == str):
print( "string involved")
else:
varA=int(varA)
varB=int(varB)
if varA>varB:
print ("bigger")
varA=input()
varB=input()
if (type(varA) == str) or (type(varB) == str):
print( "string involved")
varA=int(varA)
varB=int(varB)
if type(varA) and type(varB) == int:
if varA>varB:
varA=int(input())
varB=int(input())
if (type(varA) == str) or (type(varB) == str):
print( "string involved")
elif (type(varA) == int) and (type(varB) == int):
if varA>varB:
print ("bigger")
elif varA< varB:
print ("smaller")
else: