Tutorial by Examples: er

$color-purple-bg: #AF6EC4; $color-purple-border: #5D0C66; $color-yellow-bg: #E8CB48; $color-yellow-border: #757526; .tooltip { position: relative; &--arrow-down { @include pointer('bottom', 30px, ($color-purple-border, $color-purple-bg), 15px); } ...
// GET: Student/Edit/5 // It is receives a get http request for the controller Student and Action Edit with the id of 5 public ActionResult Edit(int? id) { // it good practice to consider that things could go wrong so,it is wise to have a validation in the controller ...
The void generator class: public class VoidGenerator extends ChunkGenerator { @SuppressWarnings("deprecation") public byte[] generate(World w, Random rand, int x, int z) { byte[] result = new byte[32768]; //chunksized array filled with 0 - Air //Build a...
A frequent reason why your read operation may not work is because your security rules reject the operation, for example because you're not authenticated (by default a database can only be accessed by an authenticated user). You can see these security rule violations in the logcat output. But it's e...
(ns so-doc.events) (enable-console-print!) (defn click-event [] (println "Button clicked")) (defn load-event [] (println "Page loaded!") (.addEventListener (.getElementById js/document "btn") "click" click-event false)) (.addEventListener ...
Large scale applications often need different properties when running on different environments. we can achieve this by passing arguments to NodeJs application and using same argument in node process to load specific environment property file. Suppose we have two property files for different enviro...
Separate the construction of a complex object from its representation so that the same construction process can create different representations and and provides a high level of control over the assembly of the objects. In this example demonstrates the Builder pattern in which different vehicles ar...
Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. In this example demonstrates the Prototype pattern in which new Color objects are created by copying pre-existing, user-defined Colors of the same type. using System; using Syste...
Provide an interface for creating families of related or dependent objects without specifying their concrete classes. In this example demonstrates the creation of different animal worlds for a computer game using different factories. Although the animals created by the Continent factories are diffe...
if true; then echo Always executed fi if false; then echo Never executed fi
using System; using Xamarin.Forms; namespace contact_picker { public class App : Application { public App () { // The root page of your application MainPage = new MyPage(); } protected override void OnStart () ...
using System; using Xamarin.Forms; namespace contact_picker { public class ChooseContactPage : ContentPage { public ChooseContactPage () { } } }
using UIKit; using AddressBookUI; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using contact_picker; using contact_picker.iOS; [assembly: ExportRenderer (typeof(ChooseContactPage), typeof(ChooseContactRenderer))] namespace contact_picker.iOS { public partial class Choose...
If the input HTML DOM is <html> <body> <a>link</a> <div class='container' id='divone'> <p class='common' id='enclosedone'>Element One</p> <p class='common' id='enclosedtwo'>Element Two</p> ...
To convert px to em or rem you can use the following function: @function rem-calc($size, $font-size : $font-size) { $font-size: $font-size + 0px; $remSize: $size / $font-size; @return #{$remSize}rem; } @function em-calc($size, $font-size : $font-size) { $font-size: $font-siz...
In image processing applications, the bilateral filters are a special type of non-linear filters. There is a trade off between loosing structure and noise removal, because the most popular method to remove noise is Gaussian blurring which is not aware of structure of image; therefore, it also remov...
Interceptors require the IInterceptor interface. Any public method within the intercepted class will be intercepted (including getters and setters) public class MyInterceptor : IInterceptor { public void Intercept(IInvocation invocation) { //Calls the next method in the chain - T...
Install systemjs and plugin-typescript npm install systemjs npm install plugin-typescript NOTE: this will install typescript 2.0.0 compiler which is not released yet. For TypeScript 1.8 you have to use plugin-typescript 4.0.16 Create hello.ts file export function greeter(person: String) { ...
Occasionally you will want to access the result of your filters from outside the ng-repeat, perhaps to indicate the number of items that have been filtered out. You can do this using as [variablename] syntax on the ng-repeat. <ul> <li ng-repeat="item in vm.listItems | filter:vm.myF...
Okay it took me about a day to figure it out so here I am posting the steps I followed to get my Database First working in a Class Project (.NET Core), with a .NET Core Web App. Step 1 - Install .NET Core Make Sure you are using .NET Core not DNX (Hint: You should be able to see the .NET Core opti...

Page 285 of 417