text:
<ion-view view-title="Change PIN">
    <ion-nav-buttons side="left">

    </ion-nav-buttons>
    <ion-content>

            <form name="pinChangingForm" ng-submit="pinChangingFormSubmission(pinChangingForm)" novalidate>

                        Old PIN
                        <input type="tel" name="oldPin" placeholder="Old PIN" ng-model="changePinForm.oldPin" required ng-keyup="checkPin(changePinForm.oldPin, pinChangingForm)" ng-pattern="/^[0-9]{4}$/g">

                     PIN should be a 4 digit number
                    Wrong Pin

                        New PIN
                        <input type="tel" name="newPin" placeholder="New PIN" ng-model="changePinForm.newPin" ng-disabled="!fieldsEnabled" ng-pattern="/^[0-9]{4}$/g" required>

                    PIN should be a 4 digit number

                        Confirm PIN
                        <input type="tel" name="confirmPin" placeholder="Confirm PIN" ng-model="changePinForm.confirmPin" ng-disabled="!fieldsEnabled" ng-pattern="/^[0-9]{4}$/g" required>

                        PIN's do not match

                    <button type="submit" class="button button-block">Change PIN</button>

            </form>

    </ion-content>
</ion-view>

redpajama_set_name: RedPajamaGithub


text:
class RemoveStringValuesFromTopologies < ActiveRecord::Migration
  def up
    Topology.where("`graph` LIKE '%\"investment_cost\":\"\"%'").each do |topology|
      graph = topology.graph.to_json

      graph.gsub!("\"investment_cost\":\"\"", "\"investment_cost\":null")
      graph.gsub!("\"technical_lifetime\":\"\"", "\"technical_lifetime\":null")
      graph.gsub!("\"capacity\":\"\"", "\"capacity\":null")

      topology.graph = graph
      topology.save
    end
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end


text:
namespace ThesesSystem.Web.ViewModels.Users
{
    using ThesesSystem.Models;
    using ThesesSystem.Web.Infrastructure.Mapping;

    public class VerificationViewModel : IMapFrom<User>, IHaveCustomMappings
    {
        public string Id { get; set; }

        public string FullName { get; set; }

        public long EGN { get; set; }

        public void CreateMappings(AutoMapper.IConfiguration configuration)
        {
            configuration.CreateMap<User, VerificationViewModel>()
               .ForMember(u => u.FullName, opt => opt.MapFrom(u => u.FirstName + " " + u.MiddleName + " " + u.LastName));
        }
    }
}


text:
import { Question } from './question';
import { ClassMember } from './class-member';

export interface Quiz {
    question: Question;
    classMembers?: ClassMember[];
    className?: string;
    quizId: string;
    answer: string;
}


text:
{% if page.lang == "es" %}
  {% include header/header-sp.html %}
{% else %}
  {% include header/header-en.html %}
{% endif %}