Skip to content

Instantly share code, notes, and snippets.

CoolService.getCool($scope.id).then(function(resp) {
$scope.cool = resp.powerLevel || 9000;
$scope.lame = resp.coolLevel || 9;
});
var service = {};
service.findAll = function(scope) {
service.define()
.then(function(resp) {
return promiseWhile(function() { return scope.finished}, service.nextPage.bind(service, scope));
})
.finally(function(resp) {
callback(scope);
require "avro_turf"
avro = AvroTurf.new(schemas_path: ".")
=> #<AvroTurf:0x007fa44a9e72d0 @namespace=nil, @schema_store=#<AvroTurf::SchemaStore:0x007fa44a9e7258 @path=".", @schemas={}>, @codec=nil>
avro.encode({ "full_name" => "Jane", "age" => "28" }, schema_name: "person")
=> "Obj\u0001\u0004\u0014avro.codec\bnull\u0016avro.schema\xE0\u0001{\"type\":\"record\",\"name\":\"person\",\"fields\":[{\"name\":\"full_name\",\"type\":\"string\"},{\"name\":\"age\",\"type\":\"string\"}]}\u0000M\xAF\xB4\xF5%J\x83[\a\xFC{\u0013?)A\xB9\u0002\u0010\bJane\u000428M\xAF\xB4\xF5%J\x83[\a\xFC{\u0013?)A\xB9"
#
#after adding "namespace" value
# current option 1
input1 = ipywidgets.Text(description="Input Label Here")
input1.observe(input_changed)
input2 = ipywidgets.Text(description="Input Label2 Here")
input2.observe(input_two_changed)
input3 = ipywidgets.Text(description="Input Label3 Here")
input3.observe(input_three_changed)
input4 = ipywidgets.Text(description="Input Label4 Here")
input4.observe(input_four_changed)
do_bypass = False
def bypass_wait():
print('this never gets run')
do_bypass = True
bypass = widgets.Button(description='Skip')
bypass.on_click(bypass_wait)
display(bypass)
async def check_status(objects):