Events: FirstSeen LastSeen Count From SubobjectPath Reason Message ───────── ──────── ───── ──── ───────────── ────── ─────── 7m 7m 1 {scheduler } Scheduled Successfully assigned bobosales-rc-3aos8 to ip-172-20-0-87.us-west-2.compute.internal 7m 1s 46 {kubelet ip-172-20-0-87.us-west-2.compute.internal} FailedSync Error syncing pod, skipping: mkdir /mnt/ephemeral/kubernetes/kubelet/pods/1c516e1e-e7c7-11e5-a56a-02e4b8c2a487: read-only file system
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
(ns fb.admin | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [om.core :as om :include-macros true] | |
[om-tools.dom :as dom :include-macros true])) | |
(defn play [] | |
(print "play clicked")) | |
(defn pause [] | |
(print "pause clicked")) |
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
# -*- coding: utf-8 -*- | |
import datetime | |
from south.db import db | |
from south.v2 import SchemaMigration | |
from django.db import models | |
class Migration(SchemaMigration): | |
def forwards(self, orm): |
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
import datetime | |
from time import sleep | |
class A(object): | |
@property | |
def b(self): | |
return datetime.datetime.now() | |
a = A() | |
print a.b |
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
from products.models import Product | |
from reports.models import (OutOfStockReport, ProjectedStockTransfers, | |
ProjectedStockTransferScores, LandedCostReport) | |
from datetime import date, timedelta | |
now = date.today() | |
plus_1_month = now + timedelta(days=30) | |
plus_2_month = now + timedelta(days=60) | |
plus_3_month = now + timedelta(days=90) | |
LandedCostReport.objects.all().delete() |
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
(ns nmk.account | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [om.core :as om :include-macros true] | |
[cljs.core.async :refer [put! chan <! >!]] | |
[om-tools.dom :as dom :include-macros true] | |
[om-tools.core :refer-macros [defcomponent]] | |
[om-bootstrap.table :refer [table]] | |
[om-bootstrap.random :as r] | |
[nmk.cart :as cart] | |
[goog.dom.xml :as xml])) |
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
(mapv {:6001 "The Structure and Interpretation of Computer Programs" | |
:6946 "The Structure and Interpretation of Classical Mechanics" | |
:1806 "Linear Algebra"} | |
[:6001 :6946]) | |
;; => ["The Structure and Interpretation of Computer Programs" | |
;; "The Structure and Interpretation of Classical Mechanics"] |
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
def _parse_float(s): | |
return float(s.replace(',','')) | |
def _size_to_unit_of_measure(size): | |
# normalize case | |
size = size.lower() | |
# Not everything is currently split-able on white space, ie | |
# there are existing examples of 9oz etc. But I think those | |
# are date entry errors and should be corrected | |
parts = size.split(' ') |