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
// RouteConfig Excerpt | |
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.MapRoute( | |
name: "Default", | |
url: "{controller}/{action}/{compID}/{id}", | |
defaults: new { controller = "Home", action = "Index", compID = UrlParameter.Optional, id = UrlParameter.Optional } | |
); |
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
// RouteConfig Excerpt | |
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
routes.MapMvcAttributeRoutes(); | |
AreaRegistration.RegisterAllAreas(); | |
routes.MapRoute( |
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
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
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 | |
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'safe_yaml' | |
require 'time' | |
require 'uri' | |
require 'open-uri' |
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
<template> | |
<require from="./man-with-no-name"></require> | |
<require from="./western-extra"></require> | |
<man-with-no-name>Sometimes the dead can be more useful than the living.</man-with-no-name> | |
<western-extra> | |
<h1 slot="outfit">dead man's shoes</h1> | |
<h2 slot="weapon">rifle</h2> | |
</western-extra> |
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
<template> | |
<div ref="appcontainer" style="width: 150px; border: 1px solid red;"> | |
<p>App width is ${elementwidth}</p> | |
<p>div width is ${divwidth}</p> | |
</div> | |
</template> |
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
<template> | |
<div ref="appcontainer" style="width: 150px; border: 1px solid red;"> | |
<p>App width is ${elementwidth}</p> | |
<p>div width is ${divwidth}</p> | |
</div> | |
</template> |
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
<template> | |
<div> | |
<select md-select value.two-way="selectedMeal"> | |
<option disabled selected>Select your meal</option> | |
<option repeat.for="meal of food" model.bind="meal">${meal.name}</option> | |
</select> | |
<a md-button="flat: true;" md-waves click.trigger="setSelectedMeal()" class="accent-text">select steak</a> | |
You selected: ${selectedMeal | stringify} | |
</div> |
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
<template> | |
<h1>${message}</h1> | |
<input ref="input" disabled.bind="isDisabled" placeholder="readonly" max-length.bind="maxLength"> | |
</template> |
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 {autoinject} from 'aurelia-framework'; | |
import {HttpClient} from "aurelia-fetch-client"; | |
import {Steam} from './steam'; | |
import {BaseI18N, I18N} from 'aurelia-i18n'; | |
import {EventAggregator} from 'aurelia-event-aggregator'; | |
@autoinject() | |
export class Producers extends BaseI18N { | |
producers = 'Producers Page!'; |
OlderNewer