This file contains hidden or 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
<body> | |
<div ng-controller="ChartCtrl" class="row" style="display:inline-block; width: 100%;"> | |
<div class="col-md-12"> | |
<div pf-c3-chart id="chartId" config="chartConfig" get-chart-callback="getChart"></div> | |
</div> | |
</div> | |
</body> |
This file contains hidden or 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
<body> | |
<div ng-controller="ChartCtrl" class="row" style="display:inline-block; width: 100%;"> | |
<div class="col-md-12"> | |
<div pf-bar-chart config="config" chart-data="data" chart-category="category" chart-type="vertical"></div> | |
</div> | |
</div> | |
</body> |
This file contains hidden or 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
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
context "GET index" do | |
#context "POST create" do | |
#context "GET show" do | |
#context "PATCH update" do (or PUT update) | |
#context "DELETE destroy" do | |
#context "GET new" do |
This file contains hidden or 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
Normalizer.normalize(text, Normalizer.Form.NFD) // es tu amigo |
This file contains hidden or 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
function ValidateEmail(mail) | |
{ | |
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value)) | |
{ | |
return (true) | |
} | |
alert("You have entered an invalid email address!") | |
return (false) | |
} |
This file contains hidden or 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
// Holo Theme | |
Assert: AA66CC | |
Debug: 33B5E5 | |
Error: FF4444 | |
Info: 99CC00 | |
Verbose: FFFFFF | |
Warning: FFBB33 | |
// Darcula Theme |
This file contains hidden or 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
def getFields(t: Any): Map[String, Any] = { | |
val fieldsAsPairs = for (field <- t.getClass.getDeclaredFields) yield { | |
field.setAccessible(true) | |
(field.getName, field.get(t)) | |
} | |
Map(fieldsAsPairs :_*) | |
} |