A UI element that can be used to indicate that the operation was successful.
(version: 1.0.5.)
Just use
<successful-operation></successful-operation>to show up the above element.
| // function decorator example | |
| function keepTrack() { | |
| // stores(or tracks) input and output | |
| const track: [any, any][] = []; | |
| return { | |
| tracker: <MethodDecorator>( | |
| function(target, prop, descriptor: PropertyDescriptor) { | |
| const method = descriptor.value; |
visit npm package
You need Polymer base files to use this component.
sudo npm install -g bower.bower install Polymer/polymer.| // require q lib | |
| var q = require('q'); | |
| // function deininitions | |
| function sayone(){ | |
| var d = q.defer(); | |
| // function that takes time to finish | |
| setTimeout(function(){ | |
| console.log("sayone is called"); |
| wget https://download.sublimetext.com/sublime_text_3_build_3103_x64.tar.bz2 | |
| tar xjf sublime_text_3_build_3103_x64.tar.bz2 | |
| ./configure | |
| make | |
| sudo make install |
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "1337 Color Scheme", | |
| "All Autocomplete", | |
| "AngularJS", |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/SublimeLinter/1337 (SL).tmTheme", | |
| "font_size": 15, | |
| "ignored_packages": | |
| [ | |
| "Arduino-like IDE", | |
| "CSSComb", | |
| "jQuery", |
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
| /** | |
| * @file Javascript Code Reference | |
| * @author [email protected] | |
| */ | |
| // create model file for mongoose model | |
| // =========================================BEGIN | |
| /** | |
| * @file Describes the 'user' model for generating mongoose schema. | |
| * @author Vajahath |
| $.ajax({ | |
| type: 'POST', | |
| url: 'http://localhost:3000/auth/google/authCodeHandler', | |
| contentType: 'application/json; charset=utf-8', | |
| success: function (result) { | |
| // Handle or verify the server response. | |
| console.log(result); | |
| }, | |
| processData: false, | |
| data: JSON.stringify({code: authResult['code']}) |